Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 63 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #include <arch/types.h> |
30 | #include <arch/types.h> |
31 | #include <arch/cp0.h> |
31 | #include <arch/cp0.h> |
32 | 32 | ||
33 | #define VIDEORAM 0xA000000 |
33 | #define VIDEORAM 0xA000000 |
34 | 34 | ||
35 | void putchar(char ch) |
35 | void putchar(const char ch) |
36 | { |
36 | { |
37 | __u32 status = cp0_status_read(); |
37 | __u32 status = cp0_status_read(); |
38 | 38 | ||
39 | cp0_status_write(cp0_status_read() | cp0_status_erl_error_bit); |
39 | cp0_status_write(cp0_status_read() | cp0_status_erl_error_bit); |
40 | *((char *) VIDEORAM) = ch; |
40 | *((char *) VIDEORAM) = ch; |