1
0
mirror of https://github.com/taigrr/gopher-os synced 2026-04-01 01:18:42 -07:00

Move TLB-handling code to the cpu pkg

This commit is contained in:
Achilleas Anagnostopoulos
2017-06-21 07:57:05 +01:00
parent 3923e09aac
commit d793300279
5 changed files with 22 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ import (
"unsafe"
"github.com/achilleasa/gopher-os/kernel"
"github.com/achilleasa/gopher-os/kernel/cpu"
"github.com/achilleasa/gopher-os/kernel/mem"
"github.com/achilleasa/gopher-os/kernel/mem/pmm"
)
@@ -18,7 +19,7 @@ var (
// flushTLBEntryFn is used by tests to override calls to flushTLBEntry
// which will cause a fault if called in user-mode.
flushTLBEntryFn = flushTLBEntry
flushTLBEntryFn = cpu.FlushTLBEntry
errNoHugePageSupport = &kernel.Error{Module: "vmm", Message: "huge pages are not supported"}
)