[Zion] Return freed kernel stacks to pool.

This commit is contained in:
Drew Galbraith 2023-11-24 16:04:40 -08:00
parent 8fb5b7c03c
commit d1ace374b6
2 changed files with 11 additions and 3 deletions

View file

@ -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_;
};