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.

svn path=/trunk/; revision=32351
This commit is contained in:
ReactOS Portable Systems Group 2008-02-14 02:33:42 +00:00
parent 70fbfefbe5
commit 7c1fea060f
2 changed files with 9 additions and 4 deletions

View file

@ -374,18 +374,21 @@ ArmPrepareForReactOS(IN BOOLEAN Setup)
//
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)

View file

@ -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 @@ MmUpdatePageDir(IN PEPROCESS Process,
//
// Nothing to do
//
UNIMPLEMENTED;
return;
}