Intermediate register for LIDT so that it compiles with the new memory model.

alentours-dev
q3k 2012-07-21 00:41:03 +02:00
parent b19b999489
commit b7f0c48873
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ struct {
void interrupts_lidt(void)
{
__asm__ __volatile__("lidt (%0)" : : "p"(&g_Interrupts.IDTPointer));
__asm__ __volatile__("movq %0, %%rax; lidt (%%rax)" : : "p"(&g_Interrupts.IDTPointer));
}
u8 interrupts_init_idt(void)