Changeset b74959bd in mainline for uspace/app/tester/ipc


Ignore:
Timestamp:
2007-11-20T21:33:32Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8498915
Parents:
3209923
Message:

Modify ipc_answer_*() to make use of all six syscall arguments. The recommended
means of answering calls is via the ipc_answer_m() macros (where m denotes the
number of return arguments) that automatically decide between the fast register
version or the slow universal version of ipc_answer().

Location:
uspace/app/tester/ipc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/ipc/answer.c

    r3209923 rb74959bd  
    4747        }
    4848        if (!cnt)
    49                 return;
     49                return NULL;
    5050        printf("Choose message:\n");
    5151        do {
     
    7070                errn = ENOENT;
    7171        printf("Answering %P\n", callids[i]);
    72         ipc_answer_fast(callids[i], errn, 0, 0);
     72        ipc_answer_0(callids[i], errn);
    7373        callids[i] = 0;
    7474       
  • uspace/app/tester/ipc/register.c

    r3209923 rb74959bd  
    3030#include <unistd.h>
    3131#include <async.h>
     32#include <errno.h>
    3233#include "../tester.h"
    3334
     
    4142
    4243        printf("Connected phone: %P, accepting\n", icall->in_phone_hash);
    43         ipc_answer_fast(iid, 0, 0, 0);
     44        ipc_answer_0(iid, EOK);
    4445        for (i = 0; i < 1024; i++)
    4546                if (!connections[i]) {
     
    5657                        break;
    5758                default:
    58                         printf("Received message from %P: %X\n", phonehash,callid);
     59                        printf("Received message from %P: %X\n", phonehash,
     60                            callid);
    5961                        for (i = 0; i < 1024; i++)
    6062                                if (!callids[i]) {
     
    6466                        continue;
    6567                }
    66                 ipc_answer_fast(callid, retval, 0, 0);
     68                ipc_answer_0(callid, retval);
    6769        }
    6870}
  • uspace/app/tester/ipc/send_async.c

    r3209923 rb74959bd  
    3939{
    4040        int phoneid;
    41         int res;
    4241        static int msgid = 1;
    4342        char c;
Note: See TracChangeset for help on using the changeset viewer.