I was trying to enable interrupts in my kernel recently, I initialized my GDT and IDT using Bran's tutorial.
Now, after I created some test ISRes and attempted to do
Code: Select all
asm volatile ("int $0x0");
Code: Select all
00033660559e[CPU0 ] interrupt(): not accessible or not code segment cs=0x0008
00033660559e[CPU0 ] interrupt(): not accessible or not code segment cs=0x0008
00033660559e[CPU0 ] interrupt(): not accessible or not code segment cs=0x0008
(This was code I used to initialize the GDT)
Code: Select all
jmp 0x08:flush
flush:
ret