Changeset 4a68194 in mainline


Ignore:
Timestamp:
2009-06-04T18:06:29Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
abc4982
Parents:
3bf907a
Message:

no not disturb console initialization by connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/console/console.c

    r3bf907a r4a68194  
    712712static bool console_init(void)
    713713{
     714        async_serialize_start();
     715       
    714716        /* Connect to keyboard driver */
    715        
    716717        kbd_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_KEYBOARD, 0, 0);
    717718        if (kbd_phone < 0) {
    718719                printf(NAME ": Failed to connect to keyboard service\n");
     720                async_serialize_end();
    719721                return false;
    720722        }
     
    723725        if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) {
    724726                printf(NAME ": Failed to create callback from keyboard service\n");
     727                async_serialize_end();
    725728                return false;
    726729        }
     
    733736        if (fb_info.phone < 0) {
    734737                printf(NAME ": Failed to connect to video service\n");
     738                async_serialize_end();
    735739                return -1;
    736740        }
     
    740744        if (rc < 0) {
    741745                printf(NAME ": Unable to register driver (%d)\n", rc);
     746                async_serialize_end();
    742747                return false;
    743748        }
     
    775780                            fb_info.cols, fb_info.rows) == NULL) {
    776781                                printf(NAME ": Unable to allocate screen buffer %u\n", i);
     782                                async_serialize_end();
    777783                                return false;
    778784                        }
     
    788794                                devmap_hangup_phone(DEVMAP_DRIVER);
    789795                                printf(NAME ": Unable to register device %s\n", vc);
     796                                async_serialize_end();
    790797                                return false;
    791798                        }
     
    809816        async_set_interrupt_received(interrupt_received);
    810817       
     818        async_serialize_end();
    811819        return true;
    812820}
Note: See TracChangeset for help on using the changeset viewer.