reactos/ntoskrnl/ke/i386
diff -u -r1.15 -r1.16
--- tskswitch.S 19 Aug 2003 23:59:08 -0000 1.15
+++ tskswitch.S 19 Aug 2004 21:51:06 -0000 1.16
@@ -146,23 +146,6 @@
movl %eax, %cr3
/*
- * Set up the PDE for the top of the new stack.
- */
- movl $0, %ebx
-.L2: movl %edi, %esi
- shr $22, %esi
- movl 0xF03C0000(,%esi, 4), %eax
- cmpl $0, %eax
- jne .L1
- movl _MmGlobalKernelPageDirectory(,%esi, 4), %eax
- movl %eax, 0xF03C0000(,%esi, 4)
-.L1:
- addl $4096, %edi
- incl %ebx
- cmp $(MM_STACK_SIZE / 4096), %ebx
- jl .L2
-
- /*
* FIXME: Restore floating point state
*/
reactos/ntoskrnl/ke
diff -u -r1.49 -r1.50
--- kthread.c 15 Aug 2004 16:39:05 -0000 1.49
+++ kthread.c 19 Aug 2004 21:51:06 -0000 1.50
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: kthread.c,v 1.49 2004/08/15 16:39:05 chorns Exp $
+/* $Id: kthread.c,v 1.50 2004/08/19 21:51:06 hbirr Exp $
*
* FILE: ntoskrnl/ke/kthread.c
* PURPOSE: Microkernel thread support
@@ -189,6 +189,8 @@
Thread->KernelStack = (PVOID)&init_stack_top;
}
+ MmUpdatePageDir((PEPROCESS)Process, (PVOID)Thread->StackLimit, MM_STACK_SIZE);
+
/*
* The Native API function will initialize the TEB field later
*/