Page 4 of 4
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sun Nov 10, 2024 8:12 pm
by RayanMargham
i dont have time either :nooo:
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sun Nov 10, 2024 8:14 pm
by RayanMargham
says the same thing for 0x0
Unhandled interrupt/exception number 0x0
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sun Nov 10, 2024 8:16 pm
by RayanMargham
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);
}
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sun Nov 10, 2024 9:55 pm
by MichaelPetch
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.
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sun Nov 10, 2024 11:25 pm
by RayanMargham
gotcha, accepting pr now
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Fri Nov 15, 2024 3:57 pm
by RayanMargham
you able to check out ksan now? i still cannot figure it out
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Fri Nov 15, 2024 11:14 pm
by RayanMargham
yea and im having smp issues too????
0xe ???
error code = 0x10
Re: switching to new pagemap causes 0xe and more exceptions
Posted: Sat Nov 16, 2024 5:12 pm
by RayanMargham
i fixed the smp issue cause i was returning i still cannot figure out ksan tho