Changeset afa6e74 in mainline for init/init.c
- Timestamp:
- 2006-05-16T23:37:58Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 04a73cdf
- Parents:
- 6efe0ddf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
r6efe0ddf rafa6e74 43 43 #include <errno.h> 44 44 #include <kbd.h> 45 #include <ipc/fb.h> 45 46 46 47 int a; … … 349 350 } 350 351 352 static void test_fb() 353 { 354 int res; 355 ipcarg_t result; 356 int phoneid; 357 358 // printf("Test: Starting connect...\n"); 359 360 phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0); 361 362 while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) { 363 volatile int a; 364 for(a=0;a<1048576;a++); 365 }; 366 367 // printf("Test: Connected: %d\n", res); 368 // printf("Test: pinging.\n"); 369 while (1) { 370 res = ipc_call_sync(phoneid, FB_GET_VFB, 0xbeef,&result); 371 // printf("Test: Retval: %d - received: %c\n", res, result); 372 // printf("%c", result); 373 } 374 375 // printf("Test: Hangin up\n"); 376 ipc_hangup(phoneid); 377 } 378 379 351 380 int main(int argc, char *argv[]) 352 381 { … … 354 383 int tid; 355 384 356 version_print();385 // version_print(); 357 386 358 387 // test_printf(); … … 366 395 // test_as_send(); 367 396 // test_pci(); 368 test_kbd(); 397 // test_kbd(); 398 // test_fb(); 399 400 printf("Hello\nThis is Init\n\nBye."); 401 369 402 370 403 /*
Note:
See TracChangeset
for help on using the changeset viewer.