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:
parent
a05c135355
commit
37e32d9960
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user