Index: trunk/i386/libsaio/biosfn.c =================================================================== --- trunk/i386/libsaio/biosfn.c (revision 2645) +++ trunk/i386/libsaio/biosfn.c (revision 2646) @@ -1040,7 +1040,7 @@ bb.edx.rr = us & 0xFFFF; bios(&bb); } - +/* // reverted from commit 2602 void enableA20(void) { bzero(&bb, sizeof bb); // Note: may be called before BSS section is initialized @@ -1048,3 +1048,4 @@ bb.eax.rr = 0x2401; bios(&bb); } +*/ Index: trunk/i386/libsaio/misc.c =================================================================== --- trunk/i386/libsaio/misc.c (revision 2645) +++ trunk/i386/libsaio/misc.c (revision 2646) @@ -46,7 +46,7 @@ #include "libsaio.h" -#if UNUSED +//#if UNUSED /* * keyboard controller (8042) I/O port addresses */ @@ -108,7 +108,7 @@ /* wait until done */ flushKeyboardInputBuffer(); } -#endif /* UNUSED */ +//#endif /* UNUSED */ //========================================================================== // Return the platform name for this hardware. Index: trunk/i386/boot2/boot.c =================================================================== --- trunk/i386/boot2/boot.c (revision 2645) +++ trunk/i386/boot2/boot.c (revision 2646) @@ -409,9 +409,9 @@ // own things, and then calls common_boot. void boot(int biosdev) { + initialize_runtime(); // Enable A20 gate before accessing memory above 1Mb. enableA20(); - initialize_runtime(); common_boot(biosdev); } Index: trunk/i386/libsa/zalloc.c =================================================================== --- trunk/i386/libsa/zalloc.c (revision 2645) +++ trunk/i386/libsa/zalloc.c (revision 2646) @@ -75,7 +75,7 @@ zalloc_base = start ? start : (char *)ZALLOC_ADDR; totalNodes = nodes ? nodes : ZALLOC_NODES; zalloced = (zmem *) zalloc_base; - zavailable = (zmem *) (zalloc_base + sizeof(zmem) * totalNodes); + zavailable = (zmem *) zalloc_base + sizeof(zmem) * totalNodes; zavailable[0].start = (char *)zavailable + sizeof(zmem) * totalNodes; if (size == 0)