[Zion] Access the KernelStackManager through the VMM.
This commit is contained in:
parent
c5b9d20c7e
commit
07e6e3028d
11 changed files with 46 additions and 38 deletions
|
|
@ -13,12 +13,18 @@ KernelVmm::KernelVmm() {
|
|||
panic("KernelVmm double init.");
|
||||
}
|
||||
gKernelVmm = this;
|
||||
stack_manager_ = glcr::MakeUnique<KernelStackManager>();
|
||||
stack_manager_->SetupInterruptStack();
|
||||
}
|
||||
|
||||
uint64_t KernelVmm::AcquireSlabHeapRegion(uint64_t slab_size_bytes) {
|
||||
return gKernelVmm->AcquireSlabHeapRegionInternal(slab_size_bytes);
|
||||
}
|
||||
|
||||
uint64_t KernelVmm::AcquireKernelStack() {
|
||||
return gKernelVmm->stack_manager_->AllocateKernelStack();
|
||||
}
|
||||
|
||||
uint64_t KernelVmm::AcquireSlabHeapRegionInternal(uint64_t slab_size_bytes) {
|
||||
uint64_t next_slab = next_slab_heap_page_;
|
||||
if (next_slab >= kKernelBuddyHeapEnd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue