mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 06:08:29 +00:00
- The bootloader must zero user shared data page before passing control to the kernel. This fixes the "invalid timer state", "assert(SharedUserData->NumberOfPages == 0" family of bugs after warm reboot.
See issue #3085 for more details. svn path=/trunk/; revision=32540
This commit is contained in:
parent
676473212e
commit
c5d9b2c282
1 changed files with 3 additions and 0 deletions
|
@ -202,5 +202,8 @@ FrLdrSetupPageDirectory(VOID)
|
||||||
PageDir->Pde[0x1FF].Valid = 1;
|
PageDir->Pde[0x1FF].Valid = 1;
|
||||||
PageDir->Pde[0x1FF].Write = 1;
|
PageDir->Pde[0x1FF].Write = 1;
|
||||||
PageDir->Pde[0x1FF].PageFrameNumber = 1;
|
PageDir->Pde[0x1FF].PageFrameNumber = 1;
|
||||||
|
|
||||||
|
/* Zero shared data */
|
||||||
|
RtlZeroMemory((PVOID)(2 << MM_PAGE_SHIFT), PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue