From 1a80e84bb25f9ddb0f1eec0905f662a370913da9 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Fri, 27 Aug 2004 10:25:46 +0000 Subject: [PATCH] - Establish the pde's for the callback stack if the stack was recycled from the list. svn path=/trunk/; revision=10705 --- reactos/ntoskrnl/ps/w32call.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ps/w32call.c b/reactos/ntoskrnl/ps/w32call.c index 29f47253063..b6bbe2c7800 100644 --- a/reactos/ntoskrnl/ps/w32call.c +++ b/reactos/ntoskrnl/ps/w32call.c @@ -1,4 +1,4 @@ -/* $Id: w32call.c,v 1.14 2004/08/15 16:39:10 chorns Exp $ +/* $Id: w32call.c,v 1.15 2004/08/27 10:25:46 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -277,6 +277,9 @@ NtW32Call (IN ULONG RoutineIndex, AssignedStack = CONTAINING_RECORD(StackEntry, NTW32CALL_CALLBACK_STACK, ListEntry); NewStack = AssignedStack->BaseAddress; + + MmUpdatePageDir(PsGetCurrentProcess(), NewStack, StackSize); + } /* FIXME: Need to check whether we were interrupted from v86 mode. */ memcpy((char*)NewStack + StackSize - sizeof(KTRAP_FRAME), Thread->Tcb.TrapFrame,