[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
|
|
@ -14,14 +14,15 @@
|
|||
// class.
|
||||
class KernelStackManager {
|
||||
public:
|
||||
static void Init();
|
||||
KernelStackManager();
|
||||
|
||||
uint64_t* AllocateKernelStack();
|
||||
void SetupInterruptStack();
|
||||
|
||||
uint64_t AllocateKernelStack();
|
||||
|
||||
void FreeKernelStack(uint64_t stack_base);
|
||||
|
||||
private:
|
||||
KernelStackManager();
|
||||
uint64_t next_stack_addr_;
|
||||
uint64_t freed_stack_cnt_ = 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue