Rev 1 | Rev 106 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 63 | ||
---|---|---|---|
Line 74... | Line 74... | ||
74 | memcopy(VIDEORAM + ROW*2, VIDEORAM, (SCREEN - ROW)*2); |
74 | memcopy(VIDEORAM + ROW*2, VIDEORAM, (SCREEN - ROW)*2); |
75 | memsetw(VIDEORAM + (SCREEN - ROW)*2, ROW, 0x0720); |
75 | memsetw(VIDEORAM + (SCREEN - ROW)*2, ROW, 0x0720); |
76 | ega_cursor = ega_cursor - ROW; |
76 | ega_cursor = ega_cursor - ROW; |
77 | } |
77 | } |
78 | 78 | ||
79 | void ega_putchar(char ch) |
79 | void ega_putchar(const char ch) |
80 | { |
80 | { |
81 | pri_t pri; |
81 | pri_t pri; |
82 | 82 | ||
83 | pri = cpu_priority_high(); |
83 | pri = cpu_priority_high(); |
84 | spinlock_lock(&egalock); |
84 | spinlock_lock(&egalock); |
Line 108... | Line 108... | ||
108 | outb(0x3d5,(ega_cursor>>8)&0xff); |
108 | outb(0x3d5,(ega_cursor>>8)&0xff); |
109 | outb(0x3d4,0xf); |
109 | outb(0x3d4,0xf); |
110 | outb(0x3d5,ega_cursor&0xff); |
110 | outb(0x3d5,ega_cursor&0xff); |
111 | } |
111 | } |
112 | 112 | ||
113 | void putchar(char ch) |
113 | void putchar(const char ch) |
114 | { |
114 | { |
115 | ega_putchar(ch); |
115 | ega_putchar(ch); |
116 | } |
116 | } |