Changes in uspace/srv/loader/main.c [79ae36dd:8a1fb09] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/loader/main.c
r79ae36dd r8a1fb09 52 52 #include <ipc/services.h> 53 53 #include <ipc/loader.h> 54 #include <ns.h> 54 #include <ipc/ns.h> 55 #include <macros.h> 55 56 #include <loader/pcb.h> 56 57 #include <entry_point.h> … … 59 60 #include <str.h> 60 61 #include <as.h> 62 61 63 #include <elf.h> 62 64 #include <elf_load.h> … … 412 414 static void ldr_connection(ipc_callid_t iid, ipc_call_t *icall) 413 415 { 416 ipc_callid_t callid; 417 ipc_call_t call; 418 int retval; 419 414 420 /* Already have a connection? */ 415 421 if (connected) { … … 424 430 425 431 /* Ignore parameters, the connection is already open */ 432 (void) iid; 426 433 (void) icall; 427 434 428 while (true) { 429 int retval; 430 ipc_call_t call; 431 ipc_callid_t callid = async_get_call(&call); 432 433 if (!IPC_GET_IMETHOD(call)) 435 while (1) { 436 callid = async_get_call(&call); 437 438 switch (IPC_GET_IMETHOD(call)) { 439 case IPC_M_PHONE_HUNGUP: 434 440 exit(0); 435 436 switch (IPC_GET_IMETHOD(call)) {437 441 case LOADER_GET_TASKID: 438 442 ldr_get_taskid(callid, &call); … … 461 465 } 462 466 463 async_answer_0(callid, retval); 467 if (IPC_GET_IMETHOD(call) != IPC_M_PHONE_HUNGUP) 468 async_answer_0(callid, retval); 464 469 } 465 470 } … … 474 479 /* Introduce this task to the NS (give it our task ID). */ 475 480 task_id_t id = task_get_id(); 476 int rc = ns_intro(id);481 int rc = async_req_2_0(PHONE_NS, NS_ID_INTRO, LOWER32(id), UPPER32(id)); 477 482 if (rc != EOK) 478 483 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.