9 static inline Console * cons();
15 IMPLEMENTATION[ia32,amd64]:
21 #include "kernel_console.h"
23 #include "mux_console.h"
24 #include "initcalls.h"
25 #include "static_init.h"
26 #include "vga_console.h"
27 #include "mem_layout.h"
30 Console *Boot_console::_c;
33 static Console *vga_console()
35 #if defined(CONFIG_IRQ_SPINNER)
36 static Vga_console v(Mem_layout::Adap_vram_cga_beg,80,20,true,true);
38 static Vga_console v(Mem_layout::Adap_vram_cga_beg,80,25,true,true);
43 //STATIC_INITIALIZE_P(Boot_console, BOOT_CONSOLE_INIT_PRIO);
46 void Boot_console::init()
49 Kconsole::console()->register_console(&k);
51 if (strstr(Cmdline::cmdline(), " -noscreen"))
54 Vga_console *c = (Vga_console*)vga_console();
56 Kconsole::console()->register_console(c);
58 #if defined(CONFIG_IRQ_SPINNER)
59 for (int y = 20; y < 25; ++y)
60 for (int x = 0; x < 80; ++x)
61 c->printchar(x, y, ' ', 8);
66 Console * Boot_console::cons()