[Zion] Return freed kernel stacks to pool.
This commit is contained in:
parent
8fb5b7c03c
commit
d1ace374b6
2 changed files with 11 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <glacier/container/linked_list.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// KernelStackManager doles out kernel stacks.
|
||||
|
|
@ -24,5 +25,6 @@ class KernelStackManager {
|
|||
|
||||
private:
|
||||
uint64_t next_stack_addr_;
|
||||
uint64_t freed_stack_cnt_ = 0;
|
||||
|
||||
glcr::LinkedList<uint64_t> free_stacks_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue