kernel/stack: Fix stack guard expansion

Kernel didn't mapped the pages correctly

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2024-12-24 03:54:13 +02:00
parent 1dbee4660e
commit cc6ec04814
2 changed files with 20 additions and 21 deletions

View File

@@ -39,7 +39,7 @@ namespace Memory
void *StackTop = nullptr;
void *StackPhysicalBottom = nullptr;
void *StackPhysicalTop = nullptr;
uint64_t Size = 0;
uint64_t CurrentSize = 0;
bool UserMode = false;
bool Expanded = false;
VirtualMemoryArea *vma = nullptr;
@@ -55,7 +55,7 @@ namespace Memory
void Fork(StackGuard *Parent);
/** For general info */
uint64_t GetSize() { return Size; }
uint64_t GetSize() { return CurrentSize; }
/** For general info */
bool GetUserMode() { return UserMode; }