Changes in kernel/arch/ia32/src/ia32.c [a71c158:c2417bc] in mainline
- File:
-
- 1 edited
-
kernel/arch/ia32/src/ia32.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/ia32.c
ra71c158 rc2417bc 112 112 i8254_init(); 113 113 114 #if (defined(CONFIG_FB) || defined(CONFIG_EGA))115 bool vesa = false;116 #endif117 118 114 #ifdef CONFIG_FB 119 vesa = vesa_init(); 120 #endif 121 115 if (vesa_present()) 116 vesa_init(); 117 else 118 #endif 122 119 #ifdef CONFIG_EGA 123 if (!vesa) { 124 outdev_t *egadev = ega_init(EGA_BASE, EGA_VIDEORAM); 125 if (egadev) 126 stdout_wire(egadev); 127 } 120 ega_init(EGA_BASE, EGA_VIDEORAM); /* video */ 121 #else 122 {} 128 123 #endif 129 124 … … 206 201 THREAD->arch.tls = addr; 207 202 set_tls_desc(addr); 208 203 209 204 return 0; 205 } 206 207 /** Acquire console back for kernel 208 * 209 */ 210 void arch_grab_console(void) 211 { 212 #ifdef CONFIG_FB 213 if (vesa_present()) 214 vesa_redraw(); 215 else 216 #endif 217 #ifdef CONFIG_EGA 218 ega_redraw(); 219 #else 220 {} 221 #endif 222 } 223 224 /** Return console to userspace 225 * 226 */ 227 void arch_release_console(void) 228 { 210 229 } 211 230
Note:
See TracChangeset
for help on using the changeset viewer.
