|
|
1.1 ! root 1: #include "u.h" ! 2: #include "../port/lib.h" ! 3: #include "mem.h" ! 4: #include "dat.h" ! 5: #include "fns.h" ! 6: #include "../port/error.h" ! 7: ! 8: #include <libg.h> ! 9: #include "screen.h" ! 10: #include "vga.h" ! 11: ! 12: static void ! 13: mach32page(int page) ! 14: { ! 15: uchar ae, p; ! 16: ! 17: ! 18: p = (page & 0x0F)<<1; ! 19: p |= (page & 0x07)<<5; ! 20: outs(0x1CE, (p<<8)|0xB2); ! 21: ! 22: outb(0x1CE, 0xAE); ! 23: ae = inb(0x1CE+1); ! 24: ! 25: p = (page>>4) & 0x03; ! 26: p |= p<<2; ! 27: p |= ae & 0xF0; ! 28: outs(0x1CE, (p<<8)|0xAE); ! 29: } ! 30: ! 31: static Vgac mach32 = { ! 32: "mach32", ! 33: mach32page, ! 34: ! 35: 0, ! 36: }; ! 37: ! 38: void ! 39: vgamach32link(void) ! 40: { ! 41: addvgaclink(&mach32); ! 42: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.