Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2722 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <arch/drivers/serial.h> |
38 | #include <arch/drivers/serial.h> |
39 | #include <arch/drivers/msim.h> |
39 | #include <arch/drivers/msim.h> |
40 | 40 | ||
41 | void console_init(devno_t devno) |
41 | void console_init(devno_t devno) |
42 | { |
42 | { |
43 | if (arc_enabled()) { |
43 | if (!arc_console()) { |
44 | arc_console(); |
- | |
45 | } else if (serial_init()) { |
44 | if (serial_init()) |
46 | serial_console(devno); |
45 | serial_console(devno); |
47 | } else { |
46 | else |
48 | msim_console(devno); |
47 | msim_console(devno); |
49 | } |
48 | } |
50 | } |
49 | } |
51 | 50 | ||
52 | /** Acquire console back for kernel |
51 | /** Acquire console back for kernel |
53 | * |
52 | * |