mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
Everywhere: Make the codebase more architecture aware
This commit is contained in:
parent
6c4b5775e1
commit
97cc33ca47
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/cqundefine
Commit: 97cc33ca47
Pull-request: https://github.com/SerenityOS/serenity/pull/14651
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/linusg
22 changed files with 108 additions and 36 deletions
|
@ -96,11 +96,13 @@ Thread::Thread(NonnullRefPtr<Process> process, NonnullOwnPtr<Memory::Region> ker
|
|||
m_regs.ss = GDT_SELECTOR_DATA3 | 3;
|
||||
m_regs.gs = GDT_SELECTOR_TLS | 3;
|
||||
}
|
||||
#else
|
||||
#elif ARCH(X86_64)
|
||||
if (m_process->is_kernel_process())
|
||||
m_regs.cs = GDT_SELECTOR_CODE0;
|
||||
else
|
||||
m_regs.cs = GDT_SELECTOR_CODE3 | 3;
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
||||
m_regs.cr3 = m_process->address_space().page_directory().cr3();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue