Subversion Repositories HelenOS

Rev

Rev 1674 | Rev 1694 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1674 Rev 1689
Line 457... Line 457...
457
    };
457
    };
458
   
458
   
459
    if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, &phonehash) != 0) {
459
    if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, &phonehash) != 0) {
460
        return -1;
460
        return -1;
461
    };
461
    };
-
 
462
    async_new_connection(phonehash, 0, NULL, keyboard_events);
462
 
463
   
463
    /* Connect to framebuffer driver */
464
    /* Connect to framebuffer driver */
464
   
465
   
465
    while ((fb_info.phone = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) {
466
    while ((fb_info.phone = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) {
466
        usleep(10000);
467
        usleep(10000);
467
    }
468
    }
Line 501... Line 502...
501
            munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
502
            munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
502
            interbuffer = NULL;
503
            interbuffer = NULL;
503
        }
504
        }
504
    }
505
    }
505
 
506
 
506
    async_new_connection(phonehash, 0, NULL, keyboard_events);
-
 
507
   
-
 
508
    curs_goto(0,0);
507
    curs_goto(0,0);
509
    curs_visibility(connections[active_console].screenbuffer.is_cursor_visible);
508
    curs_visibility(connections[active_console].screenbuffer.is_cursor_visible);
510
 
509
 
511
    /* Register at NS */
510
    /* Register at NS */
512
    if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, &phonehash) != 0) {
511
    if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, &phonehash) != 0) {