Index: branches/azimutz/trunkGraphicsEnablerModules/i386/libsaio/xml.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/libsaio/xml.c (revision 1113) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/libsaio/xml.c (revision 1114) @@ -1113,7 +1113,7 @@ { if(!dict) { - printf("XMLCastInteger: null dict\n"); + //printf("XMLCastInteger: null dict\n"); return 0; } if(dict->type == kTagTypeInteger) return (int)(dict->string); Index: branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/drivers.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/drivers.c (revision 1113) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/drivers.c (revision 1114) @@ -816,24 +816,24 @@ return -1; } } - - // Notify modules that the kernel has been decompressed, is about to be decoded + + ret = ThinFatFile(&binary, &len); + if (ret == 0 && len == 0 && archCpuType==CPU_TYPE_X86_64) + { + archCpuType=CPU_TYPE_I386; + ret = ThinFatFile(&binary, &len); + } + + // Notify modules that the kernel has been decompressed and thinned, is about to be decoded execute_hook("DecodeKernel", (void*)binary, NULL, NULL, NULL); - - ret = ThinFatFile(&binary, &len); - if (ret == 0 && len == 0 && archCpuType==CPU_TYPE_X86_64) - { - archCpuType=CPU_TYPE_I386; - ret = ThinFatFile(&binary, &len); - } - - ret = DecodeMachO(binary, rentry, raddr, rsize); - - if (ret<0 && archCpuType==CPU_TYPE_X86_64) - { - archCpuType=CPU_TYPE_I386; - ret = DecodeMachO(binary, rentry, raddr, rsize); - } - - return ret; + + + ret = DecodeMachO(binary, rentry, raddr, rsize); + if (ret<0 && archCpuType==CPU_TYPE_X86_64) + { + archCpuType=CPU_TYPE_I386; + ret = DecodeMachO(binary, rentry, raddr, rsize); + } + + return ret; } Index: branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c (revision 1113) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c (revision 1114) @@ -376,7 +376,7 @@ bool tryresume; bool tryresumedefault; bool forceresume; - bool usecache; + bool usecache = false; //true; // additional variable for testing alternate kernel image locations on boot helper partitions. char bootFileSpec[512]; @@ -485,10 +485,13 @@ HibernateBoot((char *)val); break; } - - if(getBoolForKey(kUseKernelCache, &usecache, &bootInfo->bootConfig) && usecache) { + + getBoolForKey(kUseKernelCache, &usecache, &bootInfo->bootConfig); + if(usecache) { if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { - strlcpy(gBootKernelCacheFile, val, len+1); + //ugly hack. FIX THIS + if(strcmp(val, "\\kernelcache") == 0) strlcpy(gBootKernelCacheFile, "kernelcache", sizeof("kernelcache")); + else strlcpy(gBootKernelCacheFile, val, len+1); } else { //Lion @@ -566,10 +569,10 @@ trycache = 0; break; } - if (kerneltime > exttime) { + if (ret == 0 && kerneltime > exttime) { exttime = kerneltime; } - if (cachetime != (exttime + 1)) { + if (ret == 0 && cachetime != (exttime + 1)) { trycache = 0; break; } Index: branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/modules.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/modules.c (revision 1113) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/modules.c (revision 1114) @@ -210,8 +210,6 @@ */ long long add_symbol(char* symbol, long long addr, char is64) { - if(is64) return 0xFFFFFFFF; // Fixme - // This only can handle 32bit symbols symbolList_t* entry; //DBG("Adding symbol %s at 0x%X\n", symbol, addr); @@ -223,7 +221,7 @@ entry->addr = (UInt32)addr; entry->symbol = symbol; - if(strcmp(symbol, "start") == 0) + if(!is64 && strcmp(symbol, "start") == 0) { return addr; } Index: branches/azimutz/trunkGraphicsEnablerModules/i386/libsa/zalloc.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/libsa/zalloc.c (revision 1113) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/libsa/zalloc.c (revision 1114) @@ -46,7 +46,7 @@ static zmem * zalloced; static zmem * zavailable; -static short availableNodes, allocedNodes, totalNodes; +static unsigned short availableNodes, allocedNodes, totalNodes; static char * zalloc_base; static char * zalloc_end; static void (*zerror)(char *, size_t, const char *, int); @@ -60,7 +60,7 @@ size_t zalloced_size; #endif -#define ZALLOC_NODES 16384 +#define ZALLOC_NODES 32768 /* was 16384 */ static void malloc_error(char *addr, size_t size, const char *file, int line) { Property changes on: branches/azimutz/trunkGraphicsEnablerModules ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r1097-1102