- Fix accidental build breakage.

svn path=/trunk/; revision=20781
This commit is contained in:
Alex Ionescu 2006-01-11 06:01:54 +00:00
parent d86450eb7b
commit 4051678e2f
4 changed files with 8 additions and 8 deletions

View file

@ -580,7 +580,7 @@ ExpInitializeExecutive(VOID)
KeCreateApplicationProcessorIdleThread(KeNumberProcessors);
/* Allocate a stack for use when booting the processor */
ProcessorStack = RVA(Ki386InitialStackArray[((int)KeNumberProcessors)], MM_STACK_SIZE);
ProcessorStack = RVA(Ki386InitialStackArray[((int)KeNumberProcessors)], KERNEL_STACK_SIZE);
/* Tell HAL a new CPU is being started */
HalStartNextProcessor(0, (ULONG)ProcessorStack - 2*sizeof(FX_SAVE_AREA));

View file

@ -119,7 +119,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
Tss = ExAllocatePool(NonPagedPool, sizeof(KTSS));
TrapTss = ExAllocatePool(NonPagedPool, sizeof(KTSSNOIOPM));
TrapStack = ExAllocatePool(NonPagedPool, MM_STACK_SIZE);
TrapStack = ExAllocatePool(NonPagedPool, KERNEL_STACK_SIZE);
Ki386TssArray[Id] = Tss;
Ki386TrapTssArray[Id] = (KTSSNOIOPM*)TrapTss;
@ -127,7 +127,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
KeGetCurrentKPCR()->TSS = Tss;
/* Initialize the boot TSS. */
Tss->Esp0 = (ULONG)Ki386InitialStackArray[Id] + MM_STACK_SIZE; /* FIXME: - sizeof(FX_SAVE_AREA)? */
Tss->Esp0 = (ULONG)Ki386InitialStackArray[Id] + KERNEL_STACK_SIZE; /* FIXME: - sizeof(FX_SAVE_AREA)? */
Tss->Ss0 = KGDT_R0_DATA;
Tss->IoMapBase = 0xFFFF; /* No i/o bitmap */
Tss->LDT = 0;
@ -146,7 +146,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
/* Initialize the TSS used for handling double faults. */
TrapTss->Flags = 0;
TrapTss->Esp0 = ((ULONG)TrapStack + MM_STACK_SIZE); /* FIXME: - sizeof(FX_SAVE_AREA)? */
TrapTss->Esp0 = ((ULONG)TrapStack + KERNEL_STACK_SIZE); /* FIXME: - sizeof(FX_SAVE_AREA)? */
TrapTss->Ss0 = KGDT_R0_DATA;
TrapTss->Cs = KGDT_R0_CODE;
TrapTss->Eip = (ULONG)KiTrap8;

View file

@ -853,8 +853,8 @@ KeInitializeThread(PKPROCESS Process,
Thread->Teb = Teb;
/* Set the Thread Stacks */
Thread->InitialStack = (PCHAR)KernelStack + MM_STACK_SIZE;
Thread->StackBase = (PCHAR)KernelStack + MM_STACK_SIZE;
Thread->InitialStack = (PCHAR)KernelStack + KERNEL_STACK_SIZE;
Thread->StackBase = (PCHAR)KernelStack + KERNEL_STACK_SIZE;
Thread->StackLimit = (ULONG_PTR)KernelStack;
Thread->KernelStackResident = TRUE;
@ -864,7 +864,7 @@ KeInitializeThread(PKPROCESS Process,
* while handling page faults. At this point it isn't possible to call the
* page fault handler for the missing pde's.
*/
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread->StackLimit, MM_STACK_SIZE);
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread->StackLimit, KERNEL_STACK_SIZE);
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread, sizeof(ETHREAD));
/* Initalize the Thread Context */

View file

@ -60,7 +60,7 @@ UpdatePageDirs(IN PKTHREAD Thread,
* To prevent this, make sure the page directory of the process we're
* attaching to is up-to-date.
*/
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread->StackLimit, MM_STACK_SIZE);
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread->StackLimit, KERNEL_STACK_SIZE);
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread, sizeof(ETHREAD));
}