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:
Reto Buerki 2015-02-27 10:43:45 +01:00 committed by Christian Helmuth
parent 968ab15bbb
commit 69e820e4e3
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
};