Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #include <console/console.h> |
35 | #include <console/console.h> |
36 | #include <arch/console.h> |
36 | #include <arch/console.h> |
37 | #include <arch/drivers/arc.h> |
- | |
38 | #include <arch/drivers/serial.h> |
37 | #include <arch/drivers/serial.h> |
39 | #include <arch/drivers/msim.h> |
38 | #include <arch/drivers/msim.h> |
40 | - | ||
41 | void console_init(devno_t devno) |
- | |
42 | { |
- | |
43 | if (!arc_console()) { |
- | |
44 | if (serial_init()) |
- | |
45 | serial_console(devno); |
39 | #include <genarch/fb/fb.h> |
46 | else |
- | |
47 | msim_console(devno); |
- | |
48 | } |
- | |
49 | } |
- | |
50 | 40 | ||
51 | /** Acquire console back for kernel |
41 | /** Acquire console back for kernel |
52 | * |
42 | * |
53 | */ |
43 | */ |
54 | void arch_grab_console(void) |
44 | void arch_grab_console(void) |
55 | { |
45 | { |
- | 46 | #ifdef CONFIG_FB |
|
- | 47 | fb_redraw(); |
|
- | 48 | #endif |
|
56 | msim_kbd_grab(); |
49 | msim_kbd_grab(); |
57 | } |
50 | } |
58 | 51 | ||
59 | /** Return console to userspace |
52 | /** Return console to userspace |
60 | * |
53 | * |