[ros-diffs] [arty] 26777: Subtle bug.
arty at svn.reactos.org
arty at svn.reactos.org
Mon May 14 08:29:20 CEST 2007
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/freeldr/arch/powerpc/mboot.c?rev=26777&r1=26776&r2=26777&view=diff
==============================================================================
--- 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];
More information about the Ros-diffs
mailing list