Page 1 of 1

Exception 0xf0?

Posted: Sun Oct 18, 2015 1:30 pm
by deleted
Hello,

I've been working on my OS again after a break, but after I setup syscalls, strange things started happening.

I initialise syscalls, switch to user mode, and then call a syscall version of puts. The result: "unhandled exception 0xf0". I didn't even know there was an exception that high, or is it a bug in the handler?

I could really use some help :lol: Thanks!

Here's a screen shot.

Re: Exception 0xf0?

Posted: Sun Oct 18, 2015 1:53 pm
by Octocontrabass
CPU exceptions only range from 0x00 to 0x1F. You must be receiving the interrupt for some other reason.

Re: Exception 0xf0?

Posted: Sun Oct 18, 2015 1:58 pm
by deleted
Problem solved. The interrupt handler pushed an invalid pointer each time an interrupt was called. Since I haven't built-in a sanity check on the interrupt number, I just took it for what it seemed. This led to this error.

Thanks anyways!