- Add hack-sync again (bug #3591).

- Silence linker warning.

svn path=/trunk/; revision=38535
This commit is contained in:
Dmitry Gorbachev 2009-01-03 15:51:10 +00:00
parent fc04035227
commit 0e0e4d8dd8
2 changed files with 2 additions and 0 deletions

View file

@ -29,6 +29,7 @@ _KiDoubleFaultStack:
/* FUNCTIONS *****************************************************************/
.text
.globl _KiSystemStartup
.func KiSystemStartup
_KiSystemStartup:

View file

@ -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,