Rev 605 | Rev 610 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 605 | Rev 606 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | #include <arch/byteorder.h> |
33 | #include <arch/byteorder.h> |
34 | #include <arch/mm/frame.h> |
34 | #include <arch/mm/frame.h> |
35 | #include <mm/frame.h> |
35 | #include <mm/frame.h> |
36 | #include <interrupt.h> |
36 | #include <interrupt.h> |
37 | #include <align.h> |
37 | #include <align.h> |
- | 38 | #include <console/console.h> |
|
38 | 39 | ||
39 | /* This is a good joke, SGI HAS different types than NT bioses... */ |
40 | /* This is a good joke, SGI HAS different types than NT bioses... */ |
40 | /* Here is the SGI type */ |
41 | /* Here is the SGI type */ |
41 | static char *basetypes[] = { |
42 | static char *basetypes[] = { |
42 | "ExceptionBlock", |
43 | "ExceptionBlock", |
Line 244... | Line 245... | ||
244 | arc_keyboard_poll(); |
245 | arc_keyboard_poll(); |
245 | old_timer(n, stack); |
246 | old_timer(n, stack); |
246 | arc_keyboard_poll(); |
247 | arc_keyboard_poll(); |
247 | } |
248 | } |
248 | 249 | ||
249 | - | ||
250 | chardev_t * arc_console(void) |
250 | void arc_console(void) |
251 | { |
251 | { |
252 | kbd_polling_enabled = true; |
252 | kbd_polling_enabled = true; |
253 | 253 | ||
254 | chardev_initialize("arc_console", &console, &arc_ops); |
254 | chardev_initialize("arc_console", &console, &arc_ops); |
255 | old_timer = int_register(TIMER_IRQ, "arc_kb_poll", timer_replace); |
255 | old_timer = int_register(TIMER_IRQ, "arc_kb_poll", timer_replace); |
256 | return &console; |
256 | stdin = &console; |
- | 257 | stdout = &console; |
|
257 | } |
258 | } |
258 | 259 | ||
259 | /* Initialize frame zones from ARC firmware. |
260 | /* Initialize frame zones from ARC firmware. |
260 | * In the future we may use even the FirmwareTemporary regions, |
261 | * In the future we may use even the FirmwareTemporary regions, |
261 | * currently we use the FreeMemory (what about the LoadedProgram?) |
262 | * currently we use the FreeMemory (what about the LoadedProgram?) |