Changeset 8a568e3 in mainline for ns/ns.c


Ignore:
Timestamp:
2006-05-14T17:17:35Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
52352ec
Parents:
8071af9f
Message:

Added support to IPC for sharing pages. Remove old calls as_area_send/accept,
modify tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ns/ns.c

    r8071af9f r8a568e3  
    3232        ipc_call_t call;
    3333        ipc_callid_t callid;
     34        char *as;
    3435       
    3536        ipcarg_t retval, arg1, arg2;
     
    4243                printf("NS:Call phone=%lX..", call.phoneid);
    4344                switch (IPC_GET_METHOD(call)) {
     45                case IPC_M_AS_SEND:
     46                        as = (char *)IPC_GET_ARG2(call);
     47                        printf("Received as: %P, size:%d\n", as, IPC_GET_ARG3(call));
     48                        retval = ipc_answer(callid, 0,(sysarg_t)(1024*1024), 0);
     49                        if (!retval) {
     50                                printf("Reading shared memory...");
     51                                printf("Text: %s", as);
     52                        } else
     53                                printf("Failed answer: %d\n", retval);
     54                        continue;
     55                        break;
    4456                case IPC_M_INTERRUPT:
    4557                        printf("GOT INTERRUPT: %c\n", IPC_GET_ARG2(call));
Note: See TracChangeset for help on using the changeset viewer.