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

Implement address validation by querying the task's page directory.

This is way better than walking the region lists. I suppose we could
even let the hardware trigger a page fault and handle that. That'll
be the next step in the evolution here I guess.
This commit is contained in:
Andreas Kling 2018-11-01 12:45:51 +01:00
parent f76fcd1e62
commit 0f70b9105f
5 changed files with 82 additions and 34 deletions

View file

@ -70,6 +70,9 @@ public:
void enter_kernel_paging_scope();
void enter_task_paging_scope(Task&);
bool validate_user_read(const Task&, LinearAddress) const;
bool validate_user_write(const Task&, LinearAddress) const;
private:
MemoryManager();
~MemoryManager();