1 --- grub-0.97/stage2/asm.S.mactel-kbd 2006-06-12 17:00:10.000000000 -0400
2 +++ grub-0.97/stage2/asm.S 2006-06-12 17:03:38.000000000 -0400
7 -3: /* use keyboard controller */
9 + * try to switch gateA20 using PORT92, the "Fast A20 and Init"
14 + /* skip the port92 code if it's unimplemented (read returns 0xff) */
18 + /* set or clear bit1, the ALT_A20_GATE bit */
26 + /* clear the INIT_NOW bit; don't accidently reset the machine */
31 +6: /* use keyboard controller */
35 @@ -1661,9 +1684,12 @@
45 movb $KB_OUTPUT_MASK, %al
57 @@ -1994,8 +2022,25 @@
58 call EXT_C(prot_to_real)
62 + mov $0x11, %ah /* poll kbd */
67 +/* XXX handle serial here? -- pj */
80 movw %ax, %dx /* real_to_prot uses %eax */
81 call translate_keycode
84 DATA32 call EXT_C(real_to_prot)
93 call EXT_C(prot_to_real) /* enter real mode */