7 static BYTE cmosaddress;
9 static BYTE cmosimage[64] = {
10 0x27, 0x34, 0x31, 0x47, 0x16, 0x15, 0x00, 0x01,
11 0x04, 0x94, 0x26, 0x02, 0x50, 0x80, 0x00, 0x00,
12 0x40, 0xb1, 0x00, 0x9c, 0x01, 0x80, 0x02, 0x00,
13 0x1c, 0x00, 0x00, 0xad, 0x02, 0x10, 0x00, 0x00,
14 0x08, 0x00, 0x00, 0x26, 0x00, 0x00, 0x00, 0x00,
15 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x03, 0x58,
16 0x00, 0x1c, 0x19, 0x81, 0x00, 0x0e, 0x00, 0x80,
17 0x1b, 0x7b, 0x21, 0x00, 0x00, 0x00, 0x05, 0x5f };
19 void inportb(struct sigcontext_struct *context)
21 fprintf(stderr, "IO: inb (%x)\n", EDX & 0xffff);
26 EAX = (EAX & 0xffffff00L) | cmosaddress;
29 EAX = (EAX & 0xffffff00L) | cmosimage[cmosaddress & 0x3f];
35 void inport(struct sigcontext_struct *context)
37 fprintf(stderr, "IO: in (%x)\n", EDX & 0xffff);
39 EAX = (EAX & 0xffff0000L) | 0xffff;
42 void outportb(struct sigcontext_struct *context)
44 fprintf(stderr, "IO: outb (%x), %x\n", EDX & 0xffff, EAX & 0xff);
49 cmosaddress = EAX & 0xff;
52 cmosimage[cmosaddress & 0x3f] = EAX & 0xff;
58 void outport(struct sigcontext_struct *context)
60 fprintf(stderr, "IO: out (%x), %x\n", EDX & 0xffff, EAX & 0xffff);