mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:22:57 +00:00
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:
parent
70fbfefbe5
commit
7c1fea060f
2 changed files with 9 additions and 4 deletions
|
@ -374,18 +374,21 @@ ArmPrepareForReactOS(IN BOOLEAN Setup)
|
||||||
//
|
//
|
||||||
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupDpcStack);
|
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupDpcStack);
|
||||||
ArmLoaderBlock->u.Arm.InterruptStack = KSEG0_BASE | (ULONG)Base;
|
ArmLoaderBlock->u.Arm.InterruptStack = KSEG0_BASE | (ULONG)Base;
|
||||||
|
ArmLoaderBlock->u.Arm.InterruptStack += KERNEL_STACK_SIZE;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate the Kernel Boot stack
|
// Allocate the Kernel Boot stack
|
||||||
//
|
//
|
||||||
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupKernelStack);
|
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupKernelStack);
|
||||||
ArmLoaderBlock->KernelStack = KSEG0_BASE | (ULONG)Base;
|
ArmLoaderBlock->KernelStack = KSEG0_BASE | (ULONG)Base;
|
||||||
|
ArmLoaderBlock->KernelStack += KERNEL_STACK_SIZE;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Allocate the Abort stack
|
// Allocate the Abort stack
|
||||||
//
|
//
|
||||||
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupPanicStack);
|
Base = MmAllocateMemoryWithType(KERNEL_STACK_SIZE, LoaderStartupPanicStack);
|
||||||
ArmLoaderBlock->u.Arm.PanicStack = KSEG0_BASE | (ULONG)Base;
|
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)
|
// Allocate the PCR page -- align it to 1MB (we only need 4KB)
|
||||||
|
|
|
@ -13,9 +13,12 @@
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
/* GLOBALS ********************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
|
||||||
//
|
#undef UNIMPLEMENTED
|
||||||
// METAFIXME: We need to stop using 1MB Section Entry TTEs!
|
#define UNIMPLEMENTED \
|
||||||
//
|
{ \
|
||||||
|
DPRINT1("[ARM Mm Bringup]: %s is unimplemented!\n", __FUNCTION__); \
|
||||||
|
while (TRUE); \
|
||||||
|
}
|
||||||
|
|
||||||
/* FUNCTIONS ******************************************************************/
|
/* FUNCTIONS ******************************************************************/
|
||||||
|
|
||||||
|
@ -28,7 +31,6 @@ MmUpdatePageDir(IN PEPROCESS Process,
|
||||||
//
|
//
|
||||||
// Nothing to do
|
// Nothing to do
|
||||||
//
|
//
|
||||||
UNIMPLEMENTED;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue