switching to new pagemap causes 0xe and more exceptions
-
- Member
- Posts: 40
- Joined: Tue Jul 05, 2022 12:37 pm
Re: switching to new pagemap causes 0xe and more exceptions
i dont have time either :nooo:
-
- Member
- Posts: 40
- Joined: Tue Jul 05, 2022 12:37 pm
Re: switching to new pagemap causes 0xe and more exceptions
says the same thing for 0x0
Unhandled interrupt/exception number 0x0
Unhandled interrupt/exception number 0x0
-
- Member
- Posts: 40
- Joined: Tue Jul 05, 2022 12:37 pm
Re: switching to new pagemap causes 0xe and more exceptions
not even a switch case statement fixed it..
Code: Select all
void init_idt() {
for (int i = 0; i < 256; i++) {
// Register a default handler
switch (i) {
case 0xe:
RegisterHandler(0xe, page_fault_handler);
break;
case 0x0:
RegisterHandler(0, division_by_zero);
break;
default:
RegisterHandler(i, default_handler);
break;
}
// Setup an IDT entry for all the interrupt stubs
kernel_interrupt_gate(i, stubs[i]);
};
idr.offset = (uint64_t)&IDT;
idr.size = sizeof(IDT) - 1;
idt_flush(&idr);
}
-
- Member
- Posts: 774
- Joined: Fri Aug 26, 2016 1:41 pm
- Libera.chat IRC: mpetch
Re: switching to new pagemap causes 0xe and more exceptions
I made a pull request with the a fix to this bug. It was actually a small bug in the isr_stub handler themselves where the index into the idt_handlers table wasn't initialized properly so it would run the incorrect handlers.
-
- Member
- Posts: 40
- Joined: Tue Jul 05, 2022 12:37 pm
Re: switching to new pagemap causes 0xe and more exceptions
gotcha, accepting pr now