Changeset 8b655705 in mainline for uspace/srv/bd/part/mbr_part/mbr_part.c
- Timestamp:
- 2011-04-15T19:38:07Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9dd730d1
- Parents:
- 6b9e85b (diff), b2fb47f (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
r6b9e85b r8b655705 57 57 #include <stdlib.h> 58 58 #include <unistd.h> 59 #include <ipc/ipc.h>60 59 #include <ipc/bd.h> 61 60 #include <async.h> … … 394 393 sysarg_t method; 395 394 devmap_handle_t dh; 396 int flags;395 unsigned int flags; 397 396 int retval; 398 397 uint64_t ba; … … 413 412 414 413 if (part == NULL) { 415 ipc_answer_0(iid, EINVAL);414 async_answer_0(iid, EINVAL); 416 415 return; 417 416 } … … 420 419 421 420 /* Answer the IPC_M_CONNECT_ME_TO call. */ 422 ipc_answer_0(iid, EOK);421 async_answer_0(iid, EOK); 423 422 424 423 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 425 ipc_answer_0(callid, EHANGUP);424 async_answer_0(callid, EHANGUP); 426 425 return; 427 426 } … … 429 428 fs_va = as_get_mappable_page(comm_size); 430 429 if (fs_va == NULL) { 431 ipc_answer_0(callid, EHANGUP);430 async_answer_0(callid, EHANGUP); 432 431 return; 433 432 } … … 441 440 case IPC_M_PHONE_HUNGUP: 442 441 /* The other side has hung up. */ 443 ipc_answer_0(callid, EOK);442 async_answer_0(callid, EOK); 444 443 return; 445 444 case BD_READ_BLOCKS: … … 464 463 break; 465 464 case BD_GET_BLOCK_SIZE: 466 ipc_answer_1(callid, EOK, block_size);465 async_answer_1(callid, EOK, block_size); 467 466 continue; 468 467 case BD_GET_NUM_BLOCKS: 469 ipc_answer_2(callid, EOK, LOWER32(part->length),468 async_answer_2(callid, EOK, LOWER32(part->length), 470 469 UPPER32(part->length)); 471 470 continue; … … 474 473 break; 475 474 } 476 ipc_answer_0(callid, retval);475 async_answer_0(callid, retval); 477 476 } 478 477 }
Note:
See TracChangeset
for help on using the changeset viewer.