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.
and when i do not enable the ps/2 mouse it works fine... but if i enable the mouse and press ctrl-alt-del (which calls restart()) or invoke restart() another way, the screen just goes black, but then hangs, the cpu does not reset. is there anything else i should be doing to restart properly, and what (in enabling the ps/2 mouse) could cause this function to not work?
I added code to flush the keyboard controller before doing outportb(0x64, 0xFE) but it still does not restart. the weird thing is, i added code to triple fault the processor (calling a interrupt that doesn't exist like Perica), and the computer hangs when i have the mouse enabled. if i comment out the call to enable the mouse, the computer does restart when it triple faults. so i guess the problem is not just in the restart() function, but maybe i am enabling the mouse badly?? Why would the computer just hang with a black screen and not reboot i wonder?
i'm too curious ... i don't think i'll be able to provide more help after you responded, but still ... Do you have a LegacyPS2Mouse (yeah, the one with the small round plug) or an USB mouse with backward compatibility ?