Updated StackGuard

This commit is contained in:
Alex
2022-12-15 03:06:55 +02:00
parent 83a5b2a4ee
commit a3664662f3
2 changed files with 10 additions and 2 deletions

View File

@ -603,8 +603,8 @@ namespace Memory
private:
void *StackBottom = nullptr;
void *StackTop = nullptr;
void *SGB = nullptr;
void *SGT = nullptr;
void *StackPhyiscalBottom = nullptr;
void *StackPhyiscalTop = nullptr;
uint64_t Size = 0;
bool UserMode = false;
PageTable4 *Table = nullptr;
@ -614,6 +614,10 @@ namespace Memory
void *GetStackBottom() { return StackBottom; }
/** @brief For RSP */
void *GetStackTop() { return StackTop; }
/** @brief For general info */
void *GetStackPhysicalBottom() { return StackPhyiscalBottom; }
/** @brief For general info */
void *GetStackPhysicalTop() { return StackPhyiscalTop; }
/** @brief Called by exception handler */
bool Expand(uint64_t FaultAddress);
/**