mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:22:57 +00:00
[HAL]
- Correctly prepare the I/O port map for V86 mode by making HalpSavedIoMap actually point to it instead of to the parent structure. Fixes boot with video BIOS code that relies on I/O ports FF00 through FFFF. CORE-13306 #resolve svn path=/trunk/; revision=74623
This commit is contained in:
parent
7fe1fd0766
commit
945dd20eae
1 changed files with 6 additions and 3 deletions
|
@ -390,7 +390,7 @@ HalpStoreAndClearIopm(VOID)
|
||||||
//
|
//
|
||||||
// Loop the I/O Map
|
// Loop the I/O Map
|
||||||
//
|
//
|
||||||
for (i = j = 0; i < (IOPM_SIZE) / 2; i++)
|
for (i = j = 0; i < IOPM_SIZE / sizeof(USHORT); i++)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// Check for non-FFFF entry
|
// Check for non-FFFF entry
|
||||||
|
@ -415,7 +415,10 @@ HalpStoreAndClearIopm(VOID)
|
||||||
//
|
//
|
||||||
// Terminate it
|
// Terminate it
|
||||||
//
|
//
|
||||||
while (i++ < (IOPM_FULL_SIZE / 2)) *Entry++ = 0xFFFF;
|
while (i++ < IOPM_FULL_SIZE / sizeof(USHORT))
|
||||||
|
{
|
||||||
|
*Entry++ = 0xFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Return the entries we saved
|
// Return the entries we saved
|
||||||
|
@ -542,7 +545,7 @@ HalpSetupRealModeIoPermissionsAndTask(VOID)
|
||||||
//
|
//
|
||||||
// Save a copy of the I/O Map and delete it
|
// Save a copy of the I/O Map and delete it
|
||||||
//
|
//
|
||||||
HalpSavedIoMap = (PUSHORT)&(KeGetPcr()->TSS->IoMaps[0]);
|
HalpSavedIoMap = (PUSHORT)KeGetPcr()->TSS->IoMaps[0].IoMap;
|
||||||
HalpStoreAndClearIopm();
|
HalpStoreAndClearIopm();
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue