Rev 167 | Rev 198 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 167 | Rev 195 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include <mm/page.h> |
31 | #include <mm/page.h> |
32 | #include <arch/mm/page.h> |
32 | #include <arch/mm/page.h> |
33 | #include <synch/spinlock.h> |
33 | #include <synch/spinlock.h> |
34 | #include <arch/types.h> |
34 | #include <arch/types.h> |
35 | #include <arch/asm.h> |
35 | #include <arch/asm.h> |
- | 36 | #include <memstr.h> |
|
36 | 37 | ||
37 | /* |
38 | /* |
38 | * The EGA driver. |
39 | * The EGA driver. |
39 | * Simple and short. Function for displaying characters and "scrolling". |
40 | * Simple and short. Function for displaying characters and "scrolling". |
40 | */ |
41 | */ |
Line 70... | Line 71... | ||
70 | void ega_check_cursor(void) |
71 | void ega_check_cursor(void) |
71 | { |
72 | { |
72 | if (ega_cursor < SCREEN) |
73 | if (ega_cursor < SCREEN) |
73 | return; |
74 | return; |
74 | 75 | ||
75 | memcopy(PA2KA(VIDEORAM) + ROW*2, PA2KA(VIDEORAM), (SCREEN - ROW)*2); |
76 | memcopy((void *)PA2KA(VIDEORAM),(void *)PA2KA(VIDEORAM) + ROW*2, (SCREEN - ROW)*2); //swaped |
76 | memsetw(PA2KA(VIDEORAM) + (SCREEN - ROW)*2, ROW, 0x0720); |
77 | memsetw(PA2KA(VIDEORAM) + (SCREEN - ROW)*2, ROW, 0x0720); |
77 | ega_cursor = ega_cursor - ROW; |
78 | ega_cursor = ega_cursor - ROW; |
78 | } |
79 | } |
79 | 80 | ||
80 | void ega_putchar(const char ch) |
81 | void ega_putchar(const char ch) |