Subversion Repositories HelenOS

Rev

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

Rev 4342 Rev 4343
Line 371... Line 371...
371
 
371
 
372
    ega_ph_addr = (void *) sysinfo_value("fb.address.physical");
372
    ega_ph_addr = (void *) sysinfo_value("fb.address.physical");
373
    scr_width = sysinfo_value("fb.width");
373
    scr_width = sysinfo_value("fb.width");
374
    scr_height = sysinfo_value("fb.height");
374
    scr_height = sysinfo_value("fb.height");
375
 
375
 
376
    if(sysinfo_value("fb.blinking")) {
376
    if (sysinfo_value("fb.blinking")) {
377
        ega_normal_color &= 0x77;
377
        ega_normal_color &= 0x77;
378
        ega_inverted_color &= 0x77;
378
        ega_inverted_color &= 0x77;
379
    }
379
    }
380
 
380
 
381
    style = NORMAL_COLOR;
381
    style = NORMAL_COLOR;
Line 383... Line 383...
383
    iospace_enable(task_get_id(), (void *) EGA_IO_ADDRESS, 2);
383
    iospace_enable(task_get_id(), (void *) EGA_IO_ADDRESS, 2);
384
 
384
 
385
    sz = scr_width * scr_height * 2;
385
    sz = scr_width * scr_height * 2;
386
    scr_addr = as_get_mappable_page(sz);
386
    scr_addr = as_get_mappable_page(sz);
387
 
387
 
388
    physmem_map(ega_ph_addr, scr_addr, ALIGN_UP(sz, PAGE_SIZE) >>
388
    if (physmem_map(ega_ph_addr, scr_addr, ALIGN_UP(sz, PAGE_SIZE) >>
389
        PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE);
389
        PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE) != 0)
-
 
390
        return -1;
390
 
391
 
391
    async_set_client_connection(ega_client_connection);
392
    async_set_client_connection(ega_client_connection);
392
 
393
 
393
    return 0;
394
    return 0;
394
}
395
}