mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-14 22:47:12 +00:00
hw_x86_64: Reload GDTR in Genode::Cpu::init_thread
The GDT reload must happen after the page tables mapping the mtc region is active, that's why it cannot be done in the Genode::Cpu ctor.
This commit is contained in:
parent
968ab15bbb
commit
69e820e4e3
@ -18,6 +18,7 @@
|
||||
#include <unmanaged_singleton.h>
|
||||
#include <kernel/interface_support.h>
|
||||
#include <cpu/cpu_state.h>
|
||||
#include <gdt.h>
|
||||
#include <idt.h>
|
||||
#include <tss.h>
|
||||
|
||||
@ -160,6 +161,8 @@ class Genode::Cpu
|
||||
{
|
||||
protection_domain(pd_id);
|
||||
translation_table(table);
|
||||
|
||||
Gdt::load(Cpu::exception_entry);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user