Changes in uspace/srv/bd/part/mbr_part/mbr_part.c [47b7006:9934f7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/mbr_part/mbr_part.c
r47b7006 r9934f7d 150 150 static part_t *mbr_part_new(void); 151 151 static void mbr_pte_to_part(uint32_t base, const pt_entry_t *pte, part_t *part); 152 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall );152 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg); 153 153 static int mbr_bd_read(part_t *p, uint64_t ba, size_t cnt, void *buf); 154 154 static int mbr_bd_write(part_t *p, uint64_t ba, size_t cnt, const void *buf); … … 190 190 } 191 191 192 rc = block_init( indev_handle, 2048);192 rc = block_init(EXCHANGE_SERIALIZE, indev_handle, 2048); 193 193 if (rc != EOK) { 194 194 printf(NAME ": could not init libblock.\n"); … … 385 385 } 386 386 387 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall )387 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 388 388 { 389 389 size_t comm_size; … … 437 437 callid = async_get_call(&call); 438 438 method = IPC_GET_IMETHOD(call); 439 switch (method) {440 case IPC_M_PHONE_HUNGUP:439 440 if (!method) { 441 441 /* The other side has hung up. */ 442 442 async_answer_0(callid, EOK); 443 443 return; 444 } 445 446 switch (method) { 444 447 case BD_READ_BLOCKS: 445 448 ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note:
See TracChangeset
for help on using the changeset viewer.