Subversion Repositories HelenOS-historic

Rev

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

Rev 1630 Rev 1640
Line 469... Line 469...
469
    gcons_init(fb_info.phone);
469
    gcons_init(fb_info.phone);
470
    /* Synchronize, the gcons can have something in queue */
470
    /* Synchronize, the gcons can have something in queue */
471
    async_req(fb_info.phone, FB_FLUSH, 0, NULL);
471
    async_req(fb_info.phone, FB_FLUSH, 0, NULL);
472
 
472
 
473
   
473
   
474
    ipc_call_sync_2(fb_info.phone, FB_GET_CSIZE, 0, 0, &(fb_info.rows), &(fb_info.cols));
474
    async_req_2(fb_info.phone, FB_GET_CSIZE, 0, 0, &(fb_info.rows), &(fb_info.cols));
475
    set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND);
475
    set_style_col(DEFAULT_FOREGROUND, DEFAULT_BACKGROUND);
476
    clrscr();
476
    clrscr();
477
   
477
   
478
    /* Init virtual consoles */
478
    /* Init virtual consoles */
479
    for (i = 0; i < CONSOLE_COUNT; i++) {
479
    for (i = 0; i < CONSOLE_COUNT; i++) {
Line 490... Line 490...
490
        }
490
        }
491
    }
491
    }
492
    connections[KERNEL_CONSOLE].used = 1;
492
    connections[KERNEL_CONSOLE].used = 1;
493
   
493
   
494
    if ((interbuffer = mmap(NULL, sizeof(keyfield_t) * fb_info.cols * fb_info.rows , PROTO_READ|PROTO_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, 0 ,0 )) != NULL) {
494
    if ((interbuffer = mmap(NULL, sizeof(keyfield_t) * fb_info.cols * fb_info.rows , PROTO_READ|PROTO_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, 0 ,0 )) != NULL) {
495
        if (ipc_call_sync_3(fb_info.phone, IPC_M_AS_AREA_SEND, (ipcarg_t)interbuffer, 0, AS_AREA_READ, NULL, NULL, NULL) != 0) {
495
        if (async_req_3(fb_info.phone, IPC_M_AS_AREA_SEND, (ipcarg_t)interbuffer, 0, AS_AREA_READ, NULL, NULL, NULL) != 0) {
496
            munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
496
            munmap(interbuffer, sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
497
            interbuffer = NULL;
497
            interbuffer = NULL;
498
        }
498
        }
499
    }
499
    }
500
 
500