hw_x86_64: Use _virt_idt_addr member in Idt::load

Load the virtual address in the mode transition pages into Interrupt
Descriptor Table Register (IDTR).
This commit is contained in:
Reto Buerki 2015-02-26 14:02:00 +01:00 committed by Christian Helmuth
parent 9c2d071654
commit b8e2249f51
1 changed files with 1 additions and 1 deletions

View File

@ -47,5 +47,5 @@ void Idt::setup()
void Idt::load(addr_t const virt_base)
{
asm volatile ("lidt %0" : : "m" (Descriptor (sizeof(_table) - 1,
reinterpret_cast<uint64_t>(_table))));
_virt_idt_addr(virt_base))));
}