Changeset 51d6f80 in mainline
- Timestamp:
- 2006-05-15T21:08:29Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 250717cc
- Parents:
- 108602e
- Files:
-
- 10 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r108602e r51d6f80 45 45 endif 46 46 ifeq ($(ARCH), ia32) 47 DIRS += pci 47 DIRS += pci \ 48 kbd 48 49 endif 49 50 -
init/Makefile
r108602e r51d6f80 35 35 include $(LIBC_PREFIX)/Makefile.toolchain 36 36 37 CFLAGS += -I../libipc/include 37 CFLAGS += -I../libipc/include -I../kbd/include 38 38 39 39 LIBS = $(LIBIPC_PREFIX)/libipc.a $(LIBC_PREFIX)/libc.a -
init/init.c
r108602e r51d6f80 40 40 #include <ddi.h> 41 41 #include <string.h> 42 #include <kbd.h> 42 43 43 44 int a; … … 293 294 } 294 295 296 static void test_kbd() 297 { 298 int res; 299 ipcarg_t result; 300 int phoneid; 301 302 printf("Test: Starting connect...\n"); 303 while ((phoneid = ipc_connect_me_to(PHONE_NS, 30, 60)) < 0) { 304 }; 305 306 printf("Test: Connected: %d\n", res); 307 printf("Test: pinging.\n"); 308 while (1) { 309 res = ipc_call_sync(phoneid, KBD_GETCHAR, 0xbeef,&result); 310 // printf("Test: Retval: %d - received: %c\n", res, result); 311 printf("%c", result); 312 } 313 314 printf("Test: Hangin up\n"); 315 ipc_hangup(phoneid); 316 } 317 295 318 static int test_as_send() 296 319 { … … 331 354 // test_hangup(); 332 355 // test_slam(); 333 test_as_send(); 356 // test_as_send(); 357 test_kbd(); 358 334 359 /* 335 360 printf("Userspace task, taskid=%llX\n", task_get_id());
Note:
See TracChangeset
for help on using the changeset viewer.