Rev 2722 | Rev 3343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2722 | Rev 3228 | ||
---|---|---|---|
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 | 39 | ||
41 | void console_init(devno_t devno) |
40 | void console_init(devno_t devno) |
42 | { |
41 | { |
43 | if (!arc_console()) { |
- | |
44 | if (serial_init()) |
42 | if (serial_init()) |
45 | serial_console(devno); |
43 | serial_console(devno); |
46 | else |
44 | else |
47 | msim_console(devno); |
45 | msim_console(devno); |
48 | } |
- | |
49 | } |
46 | } |
50 | 47 | ||
51 | /** Acquire console back for kernel |
48 | /** Acquire console back for kernel |
52 | * |
49 | * |
53 | */ |
50 | */ |