Changeset 51c1b003 in mainline for init/init.c


Ignore:
Timestamp:
2006-05-29T13:34:40Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
854387b
Parents:
d1e70c7
Message:

First attempt to uspace console. Not working yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    rd1e70c7 r51c1b003  
    306306
    307307        printf("Test: Starting connect...\n");
    308         while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0)) < 0) {
     308        while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_CONSOLE, 0)) < 0) {
    309309        };
    310310       
    311311        printf("Test: Connected: %d\n", res);
    312312        printf("Test: pinging.\n");
    313         while (1) {
     313/*      while (1) {
     314               
    314315                res = ipc_call_sync(phoneid, KBD_GETCHAR, 0xbeef,&result);
    315316//              printf("Test: Retval: %d - received: %c\n", res, result);
    316317                printf("%c", result);
    317318        }
    318        
     319*/     
    319320        printf("Test: Hangin up\n");
    320321        ipc_hangup(phoneid);
     
    336337        printf("Test: pinging.\n");
    337338
    338         aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata);
     339
    339340        while (1) {
    340                 if (async_wait_timeout(aid, NULL, 1000000)) {
    341                         printf("^");
    342                         continue;
    343                 }
    344                 printf("%c", IPC_GET_ARG1(kbddata));
    345                 aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata);
    346341        }
    347342       
Note: See TracChangeset for help on using the changeset viewer.