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:
parent
f76fcd1e62
commit
0f70b9105f
5 changed files with 82 additions and 34 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue