mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Fixed the stack for the first thread.
svn path=/trunk/; revision=20896
This commit is contained in:
@@ -64,14 +64,14 @@ PsInitializeIdleOrFirstThread(PEPROCESS Process,
|
||||
{
|
||||
PETHREAD Thread;
|
||||
ULONG_PTR KernelStack;
|
||||
extern unsigned int init_stack;
|
||||
extern unsigned int init_stack_top;
|
||||
|
||||
Thread = ExAllocatePool(NonPagedPool, sizeof(ETHREAD));
|
||||
RtlZeroMemory(Thread, sizeof(ETHREAD));
|
||||
Thread->ThreadsProcess = Process;
|
||||
if (First)
|
||||
{
|
||||
KernelStack = init_stack;
|
||||
KernelStack = init_stack_top;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user