Changeset 2e51969 in mainline for uspace/app


Ignore:
Timestamp:
2007-11-19T12:20:10Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0c09f2b
Parents:
e0bc7fc
Message:

Modify synchronous IPC to make use of all six syscall arguments. The preferred
means of synchronous communication is now via the set of ipc_call_sync_m_n()
macros, where m is the number of payload arguments passed to the kernel and n is
the number of return values. These macros will automatically decide between the
fast and the universal slow version of ipc_call_sync.

Location:
uspace/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/klog/klog.c

    re0bc7fc r2e51969  
    6464       
    6565        mapping = as_get_mappable_page(PAGE_SIZE);
    66         res = ipc_call_sync_3(PHONE_NS, IPC_M_AS_AREA_RECV,
    67                               (sysarg_t) mapping, PAGE_SIZE, SERVICE_MEM_KLOG,
    68                               NULL, NULL, NULL);
     66        res = ipc_call_sync_3_0(PHONE_NS, IPC_M_AS_AREA_RECV,
     67            (sysarg_t) mapping, PAGE_SIZE, SERVICE_MEM_KLOG);
    6968        if (res) {
    7069                printf("Failed to initialize klog memarea\n");
  • uspace/app/tester/ipc/send_sync.c

    re0bc7fc r2e51969  
    3030#include <unistd.h>
    3131#include "../tester.h"
     32#include <ipc/ipc.h>
    3233
    3334char * test_send_sync(bool quiet)
     
    4546       
    4647        printf("Sending msg...");
    47         res = ipc_call_sync_2(phoneid, 2000, 0, 0, NULL, NULL);
     48        res = ipc_call_sync_0_0(phoneid, 2000);
    4849        printf("done: %d\n", res);
    4950       
Note: See TracChangeset for help on using the changeset viewer.