Exception 0xf0?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
deleted
Member
Member
Posts: 82
Joined: Mon Jul 21, 2014 7:23 pm

Exception 0xf0?

Post 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.
Attachments
Screenshot 2015-10-18 at 3.20.00 PM.png
Octocontrabass
Member
Member
Posts: 6298
Joined: Mon Mar 25, 2013 7:01 pm

Re: Exception 0xf0?

Post by Octocontrabass »

CPU exceptions only range from 0x00 to 0x1F. You must be receiving the interrupt for some other reason.
User avatar
deleted
Member
Member
Posts: 82
Joined: Mon Jul 21, 2014 7:23 pm

Re: Exception 0xf0?

Post 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!
Post Reply