MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / InitCurrentCore

Method InitCurrentCore

src/memory/virtual_memory.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49auto VirtualMemory::InitCurrentCore() const -> void {
50 cpu_io::virtual_memory::SetPageDirectory(
51 reinterpret_cast<uint64_t>(kernel_page_dir_));
52 // 开启分页
53 cpu_io::virtual_memory::EnablePage();
54}
55
56auto VirtualMemory::MapMMIO(uint64_t phys_addr, size_t size, uint32_t flags)
57 -> Expected<void*> {

Callers 2

MemoryInitFunction · 0.45
MemoryInitSMPFunction · 0.45

Calls 2

SetPageDirectoryFunction · 0.85
EnablePageFunction · 0.85

Tested by

no test coverage detected