Changeset 19a1800 in mainline for uspace/srv/bd/part/guid_part/guid_part.c
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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/guid_part/guid_part.c
r976f546 r19a1800 47 47 #include <stdlib.h> 48 48 #include <unistd.h> 49 #include <ipc/ipc.h>50 49 #include <ipc/bd.h> 51 50 #include <async.h> … … 316 315 sysarg_t method; 317 316 devmap_handle_t dh; 318 int flags;317 unsigned int flags; 319 318 int retval; 320 319 aoff64_t ba; … … 335 334 336 335 if (part == NULL) { 337 ipc_answer_0(iid, EINVAL);336 async_answer_0(iid, EINVAL); 338 337 return; 339 338 } … … 342 341 343 342 /* Answer the IPC_M_CONNECT_ME_TO call. */ 344 ipc_answer_0(iid, EOK);343 async_answer_0(iid, EOK); 345 344 346 345 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 347 ipc_answer_0(callid, EHANGUP);346 async_answer_0(callid, EHANGUP); 348 347 return; 349 348 } … … 351 350 fs_va = as_get_mappable_page(comm_size); 352 351 if (fs_va == NULL) { 353 ipc_answer_0(callid, EHANGUP);352 async_answer_0(callid, EHANGUP); 354 353 return; 355 354 } … … 363 362 case IPC_M_PHONE_HUNGUP: 364 363 /* The other side has hung up. */ 365 ipc_answer_0(callid, EOK);364 async_answer_0(callid, EOK); 366 365 return; 367 366 case BD_READ_BLOCKS: … … 386 385 break; 387 386 case BD_GET_BLOCK_SIZE: 388 ipc_answer_1(callid, EOK, block_size);387 async_answer_1(callid, EOK, block_size); 389 388 continue; 390 389 case BD_GET_NUM_BLOCKS: 391 ipc_answer_2(callid, EOK, LOWER32(part->length),390 async_answer_2(callid, EOK, LOWER32(part->length), 392 391 UPPER32(part->length)); 393 392 continue; … … 396 395 break; 397 396 } 398 ipc_answer_0(callid, retval);397 async_answer_0(callid, retval); 399 398 } 400 399 }
Note:
See TracChangeset
for help on using the changeset viewer.