Changeset c028b22 in mainline for uspace/srv/bd/part/mbr_part/mbr_part.c
- Timestamp:
- 2011-07-08T17:01:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc1a727
- Parents:
- 4e36219 (diff), 026793d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/mbr_part/mbr_part.c
r4e36219 rc028b22 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.