[ros-diffs] [ros-arm-bringup] 32351: Don't overwrite the stacks anymore -- set the right pointer in the ARM loader block (remember that stacks are top-down!). Make a specialized UNIMPLEMENTED for Mm code so we don't go too far into the boot with 100 failures hanging behind our backs, which makes it hard to debug progress.

ros-arm-bringup at svn.reactos.org ros-arm-bringup at svn.reactos.org
Thu Feb 14 03:33:42 CET 2008


Author: ros-arm-bringup
Date: Thu Feb 14 05:33:42 2008
New Revision: 32351

URL: http://svn.reactos.org/svn/reactos?rev=32351&view=rev
Log:
Don't overwrite the stacks anymore -- set the right pointer in the ARM loader block (remember that stacks are top-down!).
Make a specialized UNIMPLEMENTED for Mm code so we don't go too far into the boot with 100 failures hanging behind our backs, which makes it hard to debug progress.

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c
    trunk/reactos/ntoskrnl/mm/arm/stubs.c

Modified: trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c?rev=32351&r1=32350&r2=32351&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/arm/loader.c Thu Feb 14 05:33:42 2008
@@ -374,18 +374,21 @@
     //
     Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupDpcStack);
     ArmLoaderBlock->u.Arm.InterruptStack = KSEG0_BASE | (ULONG)Base;
+    ArmLoaderBlock->u.Arm.InterruptStack += KERNEL_STACK_SIZE;
     
     //
     // Allocate the Kernel Boot stack
     //
     Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupKernelStack);
     ArmLoaderBlock->KernelStack = KSEG0_BASE | (ULONG)Base;
+    ArmLoaderBlock->KernelStack += KERNEL_STACK_SIZE;
     
     //
     // Allocate the Abort stack
     //
     Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupPanicStack);
     ArmLoaderBlock->u.Arm.PanicStack = KSEG0_BASE | (ULONG)Base;
+    ArmLoaderBlock->u.Arm.PanicStack += KERNEL_STACK_SIZE;
 
     //
     // Allocate the PCR page -- align it to 1MB (we only need 4KB)

Modified: trunk/reactos/ntoskrnl/mm/arm/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/arm/stubs.c?rev=32351&r1=32350&r2=32351&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/arm/stubs.c (original)
+++ trunk/reactos/ntoskrnl/mm/arm/stubs.c Thu Feb 14 05:33:42 2008
@@ -13,9 +13,12 @@
 #include <debug.h>
 /* GLOBALS ********************************************************************/
 
-//
-// METAFIXME: We need to stop using 1MB Section Entry TTEs!
-//
+#undef UNIMPLEMENTED
+#define UNIMPLEMENTED \
+{ \
+    DPRINT1("[ARM Mm Bringup]: %s is unimplemented!\n", __FUNCTION__); \
+    while (TRUE); \
+}
 
 /* FUNCTIONS ******************************************************************/
 
@@ -28,7 +31,6 @@
     //
     // Nothing to do
     //
-    UNIMPLEMENTED;
     return;
 }
 




More information about the Ros-diffs mailing list