Rev 575 | Rev 836 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 575 | Rev 606 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | #include <arch/drivers/serial.h> |
32 | #include <arch/drivers/serial.h> |
33 | #include <arch/drivers/msim.h> |
33 | #include <arch/drivers/msim.h> |
34 | 34 | ||
35 | void console_init(void) |
35 | void console_init(void) |
36 | { |
36 | { |
37 | chardev_t *console; |
- | |
38 | - | ||
39 | if (arc_enabled()) { |
37 | if (arc_enabled()) { |
40 | console = arc_console(); |
38 | arc_console(); |
41 | } else if (serial_init()) { |
39 | } else if (serial_init()) { |
42 | console = serial_console(); |
40 | serial_console(); |
43 | } else |
41 | } else |
44 | console = msim_console(); |
42 | msim_console(); |
45 | - | ||
46 | stdin = console; |
- | |
47 | stdout = console; |
- | |
48 | } |
43 | } |