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 <unmanaged_singleton.h>
|
||||||
#include <kernel/interface_support.h>
|
#include <kernel/interface_support.h>
|
||||||
#include <cpu/cpu_state.h>
|
#include <cpu/cpu_state.h>
|
||||||
|
#include <gdt.h>
|
||||||
#include <idt.h>
|
#include <idt.h>
|
||||||
#include <tss.h>
|
#include <tss.h>
|
||||||
|
|
||||||
|
@ -160,6 +161,8 @@ class Genode::Cpu
|
||||||
{
|
{
|
||||||
protection_domain(pd_id);
|
protection_domain(pd_id);
|
||||||
translation_table(table);
|
translation_table(table);
|
||||||
|
|
||||||
|
Gdt::load(Cpu::exception_entry);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue