From 0e0e4d8dd802beaee68f787a22b0449f8e3f13f6 Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Sat, 3 Jan 2009 15:51:10 +0000 Subject: [PATCH] - Add hack-sync again (bug #3591). - Silence linker warning. svn path=/trunk/; revision=38535 --- reactos/ntoskrnl/ke/i386/boot.S | 1 + reactos/ntoskrnl/mm/mm.c | 1 + 2 files changed, 2 insertions(+) diff --git a/reactos/ntoskrnl/ke/i386/boot.S b/reactos/ntoskrnl/ke/i386/boot.S index 1cf68a52f36..0941d725976 100644 --- a/reactos/ntoskrnl/ke/i386/boot.S +++ b/reactos/ntoskrnl/ke/i386/boot.S @@ -29,6 +29,7 @@ _KiDoubleFaultStack: /* FUNCTIONS *****************************************************************/ .text +.globl _KiSystemStartup .func KiSystemStartup _KiSystemStartup: diff --git a/reactos/ntoskrnl/mm/mm.c b/reactos/ntoskrnl/mm/mm.c index ec0b2e67930..6828af1ea76 100644 --- a/reactos/ntoskrnl/mm/mm.c +++ b/reactos/ntoskrnl/mm/mm.c @@ -34,6 +34,7 @@ MiSyncForProcessAttach(IN PKTHREAD Thread, PETHREAD Ethread = CONTAINING_RECORD(Thread, ETHREAD, Tcb); /* Hack Sync because Mm is broken */ + MmUpdatePageDir(Process, Ethread, sizeof(ETHREAD)); MmUpdatePageDir(Process, Ethread->ThreadsProcess, sizeof(EPROCESS)); MmUpdatePageDir(Process, (PVOID)Thread->StackLimit,