mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:05:45 +00:00
- Fix accidental build breakage.
svn path=/trunk/; revision=20781
This commit is contained in:
parent
d86450eb7b
commit
4051678e2f
4 changed files with 8 additions and 8 deletions
|
@ -580,7 +580,7 @@ ExpInitializeExecutive(VOID)
|
||||||
KeCreateApplicationProcessorIdleThread(KeNumberProcessors);
|
KeCreateApplicationProcessorIdleThread(KeNumberProcessors);
|
||||||
|
|
||||||
/* Allocate a stack for use when booting the processor */
|
/* 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 */
|
/* Tell HAL a new CPU is being started */
|
||||||
HalStartNextProcessor(0, (ULONG)ProcessorStack - 2*sizeof(FX_SAVE_AREA));
|
HalStartNextProcessor(0, (ULONG)ProcessorStack - 2*sizeof(FX_SAVE_AREA));
|
||||||
|
|
|
@ -119,7 +119,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
|
||||||
|
|
||||||
Tss = ExAllocatePool(NonPagedPool, sizeof(KTSS));
|
Tss = ExAllocatePool(NonPagedPool, sizeof(KTSS));
|
||||||
TrapTss = ExAllocatePool(NonPagedPool, sizeof(KTSSNOIOPM));
|
TrapTss = ExAllocatePool(NonPagedPool, sizeof(KTSSNOIOPM));
|
||||||
TrapStack = ExAllocatePool(NonPagedPool, MM_STACK_SIZE);
|
TrapStack = ExAllocatePool(NonPagedPool, KERNEL_STACK_SIZE);
|
||||||
|
|
||||||
Ki386TssArray[Id] = Tss;
|
Ki386TssArray[Id] = Tss;
|
||||||
Ki386TrapTssArray[Id] = (KTSSNOIOPM*)TrapTss;
|
Ki386TrapTssArray[Id] = (KTSSNOIOPM*)TrapTss;
|
||||||
|
@ -127,7 +127,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
|
||||||
KeGetCurrentKPCR()->TSS = Tss;
|
KeGetCurrentKPCR()->TSS = Tss;
|
||||||
|
|
||||||
/* Initialize the boot 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->Ss0 = KGDT_R0_DATA;
|
||||||
Tss->IoMapBase = 0xFFFF; /* No i/o bitmap */
|
Tss->IoMapBase = 0xFFFF; /* No i/o bitmap */
|
||||||
Tss->LDT = 0;
|
Tss->LDT = 0;
|
||||||
|
@ -146,7 +146,7 @@ Ki386ApplicationProcessorInitializeTSS(VOID)
|
||||||
|
|
||||||
/* Initialize the TSS used for handling double faults. */
|
/* Initialize the TSS used for handling double faults. */
|
||||||
TrapTss->Flags = 0;
|
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->Ss0 = KGDT_R0_DATA;
|
||||||
TrapTss->Cs = KGDT_R0_CODE;
|
TrapTss->Cs = KGDT_R0_CODE;
|
||||||
TrapTss->Eip = (ULONG)KiTrap8;
|
TrapTss->Eip = (ULONG)KiTrap8;
|
||||||
|
|
|
@ -853,8 +853,8 @@ KeInitializeThread(PKPROCESS Process,
|
||||||
Thread->Teb = Teb;
|
Thread->Teb = Teb;
|
||||||
|
|
||||||
/* Set the Thread Stacks */
|
/* Set the Thread Stacks */
|
||||||
Thread->InitialStack = (PCHAR)KernelStack + MM_STACK_SIZE;
|
Thread->InitialStack = (PCHAR)KernelStack + KERNEL_STACK_SIZE;
|
||||||
Thread->StackBase = (PCHAR)KernelStack + MM_STACK_SIZE;
|
Thread->StackBase = (PCHAR)KernelStack + KERNEL_STACK_SIZE;
|
||||||
Thread->StackLimit = (ULONG_PTR)KernelStack;
|
Thread->StackLimit = (ULONG_PTR)KernelStack;
|
||||||
Thread->KernelStackResident = TRUE;
|
Thread->KernelStackResident = TRUE;
|
||||||
|
|
||||||
|
@ -864,7 +864,7 @@ KeInitializeThread(PKPROCESS Process,
|
||||||
* while handling page faults. At this point it isn't possible to call the
|
* while handling page faults. At this point it isn't possible to call the
|
||||||
* page fault handler for the missing pde's.
|
* 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));
|
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread, sizeof(ETHREAD));
|
||||||
|
|
||||||
/* Initalize the Thread Context */
|
/* Initalize the Thread Context */
|
||||||
|
|
|
@ -60,7 +60,7 @@ UpdatePageDirs(IN PKTHREAD Thread,
|
||||||
* To prevent this, make sure the page directory of the process we're
|
* To prevent this, make sure the page directory of the process we're
|
||||||
* attaching to is up-to-date.
|
* 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));
|
MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread, sizeof(ETHREAD));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue