Ignore:
Timestamp:
2011-02-03T05:11:01Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba38f72c
Parents:
22027b6e (diff), 86d7bfa (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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

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

    r22027b6e r8b5690f  
    4747#include <stdlib.h>
    4848#include <unistd.h>
    49 #include <ipc/ipc.h>
    5049#include <ipc/bd.h>
    5150#include <async.h>
     
    191190                rc = devmap_device_register(name, &dev);
    192191                if (rc != EOK) {
    193                         devmap_hangup_phone(DEVMAP_DRIVER);
    194192                        printf(NAME ": Unable to register device %s.\n", name);
    195193                        return rc;
     
    317315        sysarg_t method;
    318316        devmap_handle_t dh;
    319         int flags;
     317        unsigned int flags;
    320318        int retval;
    321319        aoff64_t ba;
     
    336334
    337335        if (part == NULL) {
    338                 ipc_answer_0(iid, EINVAL);
     336                async_answer_0(iid, EINVAL);
    339337                return;
    340338        }
     
    343341
    344342        /* Answer the IPC_M_CONNECT_ME_TO call. */
    345         ipc_answer_0(iid, EOK);
     343        async_answer_0(iid, EOK);
    346344
    347345        if (!async_share_out_receive(&callid, &comm_size, &flags)) {
    348                 ipc_answer_0(callid, EHANGUP);
     346                async_answer_0(callid, EHANGUP);
    349347                return;
    350348        }
     
    352350        fs_va = as_get_mappable_page(comm_size);
    353351        if (fs_va == NULL) {
    354                 ipc_answer_0(callid, EHANGUP);
     352                async_answer_0(callid, EHANGUP);
    355353                return;
    356354        }
     
    364362                case IPC_M_PHONE_HUNGUP:
    365363                        /* The other side has hung up. */
    366                         ipc_answer_0(callid, EOK);
     364                        async_answer_0(callid, EOK);
    367365                        return;
    368366                case BD_READ_BLOCKS:
     
    387385                        break;
    388386                case BD_GET_BLOCK_SIZE:
    389                         ipc_answer_1(callid, EOK, block_size);
     387                        async_answer_1(callid, EOK, block_size);
    390388                        continue;
    391389                case BD_GET_NUM_BLOCKS:
    392                         ipc_answer_2(callid, EOK, LOWER32(part->length),
     390                        async_answer_2(callid, EOK, LOWER32(part->length),
    393391                            UPPER32(part->length));
    394392                        continue;
     
    397395                        break;
    398396                }
    399                 ipc_answer_0(callid, retval);
     397                async_answer_0(callid, retval);
    400398        }
    401399}
Note: See TracChangeset for help on using the changeset viewer.