hw_x86_64: Setup and load Task State Segment

This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-21 01:06:33 +01:00 committed by Christian Helmuth
parent 2af5aaa54d
commit 9f825ffb17

View File

@ -18,6 +18,7 @@
#include <kernel/interface_support.h>
#include <cpu/cpu_state.h>
#include <idt.h>
#include <tss.h>
namespace Genode
{
@ -43,9 +44,11 @@ class Genode::Cpu
/* Setup IDT only once */
if (primary_id() == executing_id()) {
Idt::setup();
Tss::setup();
}
Idt::load();
Tss::load();
}
static constexpr addr_t exception_entry = 0x0; /* XXX */