Rev 687 | Rev 756 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 687 | Rev 755 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/ega.h> |
29 | #include <arch/ega.h> |
30 | #include <putchar.h> |
30 | #include <putchar.h> |
31 | #include <mm/page.h> |
31 | #include <mm/page.h> |
32 | #include <mm/asid.h> |
32 | #include <mm/as.h> |
33 | #include <arch/mm/page.h> |
33 | #include <arch/mm/page.h> |
34 | #include <synch/spinlock.h> |
34 | #include <synch/spinlock.h> |
35 | #include <arch/types.h> |
35 | #include <arch/types.h> |
36 | #include <arch/asm.h> |
36 | #include <arch/asm.h> |
37 | #include <memstr.h> |
37 | #include <memstr.h> |
Line 57... | Line 57... | ||
57 | 57 | ||
58 | void ega_init(void) |
58 | void ega_init(void) |
59 | { |
59 | { |
60 | __u8 hi, lo; |
60 | __u8 hi, lo; |
61 | 61 | ||
62 | page_mapping_insert(PA2KA(VIDEORAM), ASID_KERNEL, VIDEORAM, PAGE_NOT_CACHEABLE, 0); |
62 | page_mapping_insert(AS_KERNEL, PA2KA(VIDEORAM), VIDEORAM, PAGE_NOT_CACHEABLE, 0); |
63 | outb(0x3d4,0xe); |
63 | outb(0x3d4,0xe); |
64 | hi = inb(0x3d5); |
64 | hi = inb(0x3d5); |
65 | outb(0x3d4,0xf); |
65 | outb(0x3d4,0xf); |
66 | lo = inb(0x3d5); |
66 | lo = inb(0x3d5); |
67 | ega_cursor = (hi<<8)|lo; |
67 | ega_cursor = (hi<<8)|lo; |