1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Provide correct implementation for cpu.FlushTLBEntry

The previous version worked under qemu (or qemu does not implement TLB
caching) but caused an unrecoverable page fault when running under
virtualbox.
This commit is contained in:
Achilleas Anagnostopoulos 2017-07-15 17:25:04 +01:00
parent a05c135355
commit 37e32d9960

View File

@ -14,7 +14,8 @@ TEXT ·Halt(SB),NOSPLIT,$0
RET
TEXT ·FlushTLBEntry(SB),NOSPLIT,$0
INVLPG virtAddr+0(FP)
MOVQ virtAddr+0(FP), AX
INVLPG (AX)
RET
TEXT ·SwitchPDT(SB),NOSPLIT,$0