[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
|
|
@ -1,14 +1,12 @@
|
|||
#include "object/address_space.h"
|
||||
|
||||
#include "debug/debug.h"
|
||||
#include "memory/kernel_stack_manager.h"
|
||||
#include "memory/kernel_vmm.h"
|
||||
#include "memory/paging_util.h"
|
||||
#include "memory/physical_memory.h"
|
||||
|
||||
#define K_VMAS_DEBUG 0
|
||||
|
||||
extern KernelStackManager* gKernelStackManager;
|
||||
|
||||
glcr::RefPtr<AddressSpace> AddressSpace::ForRoot() {
|
||||
uint64_t cr3 = 0;
|
||||
asm volatile("mov %%cr3, %0;" : "=r"(cr3));
|
||||
|
|
@ -49,8 +47,8 @@ uint64_t AddressSpace::MapInMemoryObject(
|
|||
return vaddr;
|
||||
}
|
||||
|
||||
uint64_t* AddressSpace::AllocateKernelStack() {
|
||||
return gKernelStackManager->AllocateKernelStack();
|
||||
uint64_t AddressSpace::AllocateKernelStack() {
|
||||
return KernelVmm::AcquireKernelStack();
|
||||
}
|
||||
|
||||
bool AddressSpace::HandlePageFault(uint64_t vaddr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue