diff options
Diffstat (limited to 'idt.cpp')
-rw-r--r-- | idt.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -62,10 +62,22 @@ struct StubEntry asm volatile(R"( pusha + mov %%ds, %%ax + push %%ax + mov $0x10, %%ax + mov %%ax, %%ds + mov %%ax, %%es + mov %%ax, %%fs + mov %%ax, %%gs push %0 cld call interruptGeneralHandler pop %%eax + pop %%ax + mov %%ax, %%ds + mov %%ax, %%es + mov %%ax, %%fs + mov %%ax, %%gs popa add $0x4, %%esp iret |