mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
UserspaceEmulator: Use ring 3 segment selectors
We were using ring 0 selectors everywhere (the bottom 3 bits of a selector determines the ring.) This doesn't really make any practical difference since UE doesn't run code in other rings anyway, but let's have correct-looking segment selectors. :^)
This commit is contained in:
parent
2f1712cc29
commit
d55fb7b5e2
5 changed files with 25 additions and 25 deletions
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
ALWAYS_INLINE Region* find_region(X86::LogicalAddress address)
|
||||
{
|
||||
if (address.selector() == 0x28)
|
||||
if (address.selector() == 0x2b)
|
||||
return m_tls_region.ptr();
|
||||
|
||||
size_t page_index = (address.offset() & ~(PAGE_SIZE - 1)) / PAGE_SIZE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue