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.
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?
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.