Changes in uspace/srv/hid/fb/fb.c [f302586:7c014d1] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/fb.c

    rf302586 r7c014d1  
    304304        }
    305305       
    306         int rc = async_share_out_finalize(callid, &frontbuf->data);
    307         if ((rc != EOK) || (frontbuf->data == (void *) -1)) {
     306        frontbuf->data = as_get_mappable_page(frontbuf->size);
     307        int rc = async_answer_1(callid, EOK, (sysarg_t) frontbuf->data);
     308        if (rc != EOK) {
    308309                free(frontbuf);
    309310                async_answer_0(iid, ENOMEM);
     
    347348        }
    348349       
    349         int rc = async_share_out_finalize(callid, &imagemap->data);
    350         if ((rc != EOK) || (imagemap->data == (void *) -1)) {
     350        imagemap->data = as_get_mappable_page(imagemap->size);
     351        int rc = async_answer_1(callid, EOK, (sysarg_t) imagemap->data);
     352        if (rc != EOK) {
    351353                free(imagemap);
    352354                async_answer_0(iid, ENOMEM);
     
    987989       
    988990        /* Register server */
    989         async_set_client_connection(client_connection);
    990         int rc = loc_server_register(NAME);
     991        int rc = loc_server_register(NAME, client_connection);
    991992        if (rc != EOK) {
    992993                printf("%s: Unable to register driver (%d)\n", NAME, rc);
Note: See TracChangeset for help on using the changeset viewer.