Resolved page faults from user stacks

This commit is contained in:
Drew Galbraith 2023-06-12 23:28:23 -07:00
parent 6c13fdc801
commit 72885190e9
3 changed files with 19 additions and 0 deletions

View file

@ -20,6 +20,9 @@ class UserStackManager {
uint64_t NewUserStack();
void FreeUserStack(uint64_t stack_ptr);
// Used to check if we should page in this address.
bool IsValidStack(uint64_t vaddr);
private:
const uint64_t kStackMax = 0x00008000'00000000;
const uint64_t kStackMin = 0x00007FF0'00000000;