Changeset 5f70118 in mainline for uspace/srv/bd/rd/rd.c
- Timestamp:
- 2010-01-10T12:16:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77a64f
- Parents:
- 309ede1 (diff), 1ac3a52 (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/rd/rd.c
r309ede1 r5f70118 51 51 #include <align.h> 52 52 #include <async.h> 53 #include <fibril_sync .h>53 #include <fibril_synch.h> 54 54 #include <stdio.h> 55 55 #include <devmap.h> … … 102 102 */ 103 103 int flags; 104 if ( ipc_share_out_receive(&callid, &comm_size, &flags)) {104 if (async_share_out_receive(&callid, &comm_size, &flags)) { 105 105 fs_va = as_get_mappable_page(comm_size); 106 106 if (fs_va) { 107 (void) ipc_share_out_finalize(callid, fs_va);107 (void) async_share_out_finalize(callid, fs_va); 108 108 } else { 109 109 ipc_answer_0(callid, EHANGUP); … … 153 153 ipc_answer_1(callid, EOK, block_size); 154 154 continue; 155 case BD_GET_NUM_BLOCKS: 156 ipc_answer_2(callid, EOK, LOWER32(rd_size / block_size), 157 UPPER32(rd_size / block_size)); 158 continue; 155 159 default: 156 160 /* … … 228 232 229 233 dev_handle_t dev_handle; 230 if (devmap_device_register(" initrd", &dev_handle) != EOK) {234 if (devmap_device_register("bd/initrd", &dev_handle) != EOK) { 231 235 devmap_hangup_phone(DEVMAP_DRIVER); 232 236 printf(NAME ": Unable to register device\n");
Note:
See TracChangeset
for help on using the changeset viewer.