mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
Rework WindowServer to use select() in its main event loop.
The system can finally idle without burning CPU. :^) There are some issues with scheduling making the mouse cursor sloppy and unresponsive that need to be dealt with.
This commit is contained in:
@@ -537,7 +537,7 @@ bool MemoryManager::validate_user_read(const Process& process, LinearAddress lad
|
||||
auto pte = PageTableEntry(&pde.pageTableBase()[pageTableIndex]);
|
||||
if (!pte.is_present())
|
||||
return false;
|
||||
if (!pte.is_user_allowed())
|
||||
if (process.isRing3() && !pte.is_user_allowed())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
@@ -552,7 +552,7 @@ bool MemoryManager::validate_user_write(const Process& process, LinearAddress la
|
||||
auto pte = PageTableEntry(&pde.pageTableBase()[pageTableIndex]);
|
||||
if (!pte.is_present())
|
||||
return false;
|
||||
if (!pte.is_user_allowed())
|
||||
if (process.isRing3() && !pte.is_user_allowed())
|
||||
return false;
|
||||
if (!pte.is_writable())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user