[Zion] Introduce the Kernel VMM to centralize allocs.
This commit is contained in:
parent
0b47e3b7fc
commit
20d6d2aaaf
5 changed files with 55 additions and 15 deletions
17
zion/memory/kernel_vmm.h
Normal file
17
zion/memory/kernel_vmm.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "memory/constants.h"
|
||||
|
||||
class KernelVmm {
|
||||
public:
|
||||
KernelVmm();
|
||||
|
||||
static uint64_t AcquireSlabHeapRegion(uint64_t slab_size_bytes);
|
||||
|
||||
private:
|
||||
uint64_t next_slab_heap_page_ = kKernelSlabHeapStart;
|
||||
|
||||
uint64_t AcquireSlabHeapRegionInternal(uint64_t slab_size_bytes);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue