Subversion Repositories HelenOS

Rev

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

Rev 3716 Rev 3908
Line 57... Line 57...
57
int msim_init(void)
57
int msim_init(void)
58
{
58
{
59
    void *phys_addr = (void *) sysinfo_value("fb.address.physical");
59
    void *phys_addr = (void *) sysinfo_value("fb.address.physical");
60
    virt_addr = (char *) as_get_mappable_page(1);
60
    virt_addr = (char *) as_get_mappable_page(1);
61
   
61
   
62
    physmem_map(phys_addr, virt_addr, 1, AS_AREA_READ | AS_AREA_WRITE);
62
    if (physmem_map(phys_addr, virt_addr, 1, AS_AREA_READ | AS_AREA_WRITE) != 0)
-
 
63
        return -1;
63
   
64
   
64
    serial_console_init(msim_putc, WIDTH, HEIGHT);
65
    serial_console_init(msim_putc, WIDTH, HEIGHT);
65
   
66
   
66
    async_set_client_connection(serial_client_connection);
67
    async_set_client_connection(serial_client_connection);
67
    return 0;
68
    return 0;