1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 22:38:12 +00:00

Protect the first 4 KB of memory.

This makes null pointers crashy, tremendously useful :^)
This commit is contained in:
Andreas Kling 2018-10-21 21:57:59 +02:00
parent dd6706a1a1
commit d5ec18027e
2 changed files with 18 additions and 1 deletions

View file

@ -58,6 +58,7 @@ private:
void initializePaging();
void protectMap(LinearAddress, size_t length);
void identityMap(LinearAddress, size_t length);
Vector<PhysicalAddress> allocatePhysicalPages(size_t count);