Subversion Repositories HelenOS-historic

Rev

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

Rev 1135 Rev 1376
Line 69... Line 69...
69
    stdout = &ofw_sparc64_console;
69
    stdout = &ofw_sparc64_console;
70
    mutex_initialize(&canwork);
70
    mutex_initialize(&canwork);
71
    ofw_console_active = 1;
71
    ofw_console_active = 1;
72
}
72
}
73
 
73
 
-
 
74
void fb_map_arch(__address virtaddr, __address physaddr, size_t size)
-
 
75
{
-
 
76
    dtlb_insert_mapping(virtaddr, physaddr, PAGESIZE_512K, true, false);
-
 
77
    dtlb_insert_mapping(virtaddr + 512*1024, physaddr + 512*1024, PAGESIZE_512K, true, false);
-
 
78
}
-
 
79
 
74
/** Initialize kernel console to use framebuffer and keyboard directly. */
80
/** Initialize kernel console to use framebuffer and keyboard directly. */
75
void standalone_sparc64_console_init(void)
81
void standalone_sparc64_console_init(void)
76
{
82
{
77
    ofw_console_active = 0;
83
    ofw_console_active = 0;
78
    stdin = NULL;
84
    stdin = NULL;
79
 
85
 
80
    dtlb_insert_mapping(FB_VIRT_ADDRESS, FB_PHYS_ADDRESS, PAGESIZE_4M, true, false);
-
 
81
    dtlb_insert_mapping(KBD_VIRT_ADDRESS, KBD_PHYS_ADDRESS, PAGESIZE_8K, true, false);
86
    dtlb_insert_mapping(KBD_VIRT_ADDRESS, KBD_PHYS_ADDRESS, PAGESIZE_8K, true, false);
82
 
87
 
83
    fb_init(FB_VIRT_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH, FB_X_RES * FB_COLOR_DEPTH / 8);
88
    fb_init(FB_PHYS_ADDRESS, FB_X_RES, FB_Y_RES, FB_COLOR_DEPTH, FB_X_RES * FB_COLOR_DEPTH / 8);
84
    i8042_init();
89
    i8042_init();
85
}
90
}
86
 
91
 
87
/** Write one character using OpenFirmware.
92
/** Write one character using OpenFirmware.
88
 *
93
 *