Fixes to VM8086 handler to remove operand size errors.
[tpg/acess2.git] / Kernel / arch / x86 / mm_virt.c
index db89cc1..f2be750 100644 (file)
@@ -1013,7 +1013,7 @@ void MM_UnmapHWPages(tVAddr VAddr, Uint Number)
        
        for( j = 0; j < Number; j++ )
        {
-               MM_DerefPhys( gaPageTable[ (HW_MAP_ADDR >> 12) + i + j ] );
+               MM_DerefPhys( gaPageTable[ (HW_MAP_ADDR >> 12) + i + j ] & ~0xFFF );
                gaPageTable[ (HW_MAP_ADDR >> 12) + i + j ] = 0;
        }
        

UCC git Repository :: git.ucc.asn.au