Index: trunk/i386/libsaio/bootstruct.c =================================================================== --- trunk/i386/libsaio/bootstruct.c (revision 1938) +++ trunk/i386/libsaio/bootstruct.c (revision 1939) @@ -110,7 +110,7 @@ reserveKernBootStruct(void) { if ((gMacOSVersion[0] == '1') && (gMacOSVersion[1] == '0') - && (gMacOSVersion[2] == '.') && (gMacOSVersion[3] == '7')) + && (gMacOSVersion[2] == '.') && (gMacOSVersion[3] == '7' || gMacOSVersion[3] == '8')) { void *oldAddr = bootArgs; bootArgs = (boot_args *)AllocateKernelMemory(sizeof(boot_args)); Index: trunk/i386/boot2/boot.c =================================================================== --- trunk/i386/boot2/boot.c (revision 1938) +++ trunk/i386/boot2/boot.c (revision 1939) @@ -196,7 +196,7 @@ finalizeBootStruct(); // Jump to kernel's entry point. There's no going back now. - if (checkOSVersion("10.7")) { + if ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))) { // Notify modules that the kernel is about to be started execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgs, NULL, NULL); @@ -238,8 +238,8 @@ if (cacheFile[0] != 0) strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile)); else { - // Lion prelink kernel cache file - if (checkOSVersion("10.7")) { + // Lion and Mountain Lion prelink kernel cache file + if ((checkOSVersion("10.7")) || (checkOSVersion("10.8"))) { sprintf(kernelCacheFile, "%skernelcache", kDefaultCachePathSnow); } // Snow Leopard prelink kernel cache file @@ -338,7 +338,7 @@ // Since the kernel cache file exists and is the most recent try to load it verbose("Loading kernel cache %s\n", kernelCachePath); - if (checkOSVersion("10.7")) { + if (checkOSVersion("10.7") || checkOSVersion("10.8")) { ret = LoadThinFatFile(kernelCachePath, binary); } else { ret = LoadFile(kernelCachePath); @@ -615,7 +615,7 @@ // If boot from boot helper partitions and OS is Lion use prelink kernel. // We need to find a solution to load extra mkext with a prelink kernel. - if (gBootVolume->flags & kBVFlagBooter && checkOSVersion("10.7")) + if (gBootVolume->flags & kBVFlagBooter && (checkOSVersion("10.7") || checkOSVersion("10.8"))) useKernelCache = true; else useKernelCache = false; // by default don't use prelink kernel cache