mirror of
https://github.com/reactos/reactos.git
synced 2024-10-19 15:41:31 +00:00
- Fix an assertion by casting to internal structures correctly
svn path=/trunk/; revision=36893
This commit is contained in:
parent
e2192f9e89
commit
f9eb539194
|
@ -86,8 +86,8 @@ Ke386CallBios(IN ULONG Int,
|
||||||
KeSetSystemAffinityThread(1);
|
KeSetSystemAffinityThread(1);
|
||||||
|
|
||||||
/* Make sure there's space for two IOPMs, then copy & clear the current */
|
/* Make sure there's space for two IOPMs, then copy & clear the current */
|
||||||
//ASSERT(((PKGDTENTRY)&KeGetPcr()->GDT[KGDT_TSS / 8])->LimitLow >=
|
ASSERT(((PKIPCR)KeGetPcr())->GDT[KGDT_TSS / 8].LimitLow >=
|
||||||
// (0x2000 + IOPM_OFFSET - 1));
|
(0x2000 + IOPM_OFFSET - 1));
|
||||||
RtlCopyMemory(Ki386IopmSaveArea, &Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);
|
RtlCopyMemory(Ki386IopmSaveArea, &Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);
|
||||||
RtlZeroMemory(&Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);
|
RtlZeroMemory(&Tss->IoMaps[0].IoMap, PAGE_SIZE * 2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue