Author: arty Date: Mon May 14 10:29:19 2007 New Revision: 26777
URL: http://svn.reactos.org/svn/reactos?rev=26777&view=rev Log: Subtle bug.
Modified: branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c
Modified: branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c URL: http://svn.reactos.org/svn/reactos/branches/powerpc/reactos/boot/freeldr/fre... ============================================================================== --- branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c (original) +++ branches/powerpc/reactos/boot/freeldr/freeldr/arch/powerpc/mboot.c Mon May 14 10:29:19 2007 @@ -570,7 +570,7 @@
ModuleData->ModStart = (ULONG)KernelMemory; /* Increase the next Load Base */ - NextModuleBase = ROUND_UP((ULONG)KernelMemory + ImageSize, PAGE_SIZE); + NextModuleBase = ROUND_UP((ULONG)MemLoadAddr + ImageSize, PAGE_SIZE); ModuleData->ModEnd = NextModuleBase; ModuleData->String = (ULONG)MmAllocateMemory(strlen(ImageName)+1); strcpy((PCHAR)ModuleData->String, ImageName); @@ -622,6 +622,8 @@ LPSTR NameBuffer; LPSTR TempName;
+ printf("Load module %s at %x\n", ModuleName, (ULONG)NextModuleBase - (ULONG)KernelMemory + KernelBase); + /* Get current module data structure and module name string array */ ModuleData = &reactos_modules[LoaderBlock.ModsCount];