Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/part/mbr_part/mbr_part.c

    r47b7006 r9934f7d  
    150150static part_t *mbr_part_new(void);
    151151static 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);
     152static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg);
    153153static int mbr_bd_read(part_t *p, uint64_t ba, size_t cnt, void *buf);
    154154static int mbr_bd_write(part_t *p, uint64_t ba, size_t cnt, const void *buf);
     
    190190        }
    191191
    192         rc = block_init(indev_handle, 2048);
     192        rc = block_init(EXCHANGE_SERIALIZE, indev_handle, 2048);
    193193        if (rc != EOK)  {
    194194                printf(NAME ": could not init libblock.\n");
     
    385385}
    386386
    387 static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall)
     387static void mbr_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    388388{
    389389        size_t comm_size;
     
    437437                callid = async_get_call(&call);
    438438                method = IPC_GET_IMETHOD(call);
    439                 switch (method) {
    440                 case IPC_M_PHONE_HUNGUP:
     439               
     440                if (!method) {
    441441                        /* The other side has hung up. */
    442442                        async_answer_0(callid, EOK);
    443443                        return;
     444                }
     445               
     446                switch (method) {
    444447                case BD_READ_BLOCKS:
    445448                        ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note: See TracChangeset for help on using the changeset viewer.