Hi, before you ask I have read the 'other' thread detailing how to reset the system.
I tried to implement the keyboard-write-to-bit-0 method, but all that does it cause qEmu to freeze totally. I'm going to test it on real hardware when I get home tonight but surely that isn't a good sign? Is this what qemu normally does when 'reset'?
Cheers,
James
Resetting the system
- ManOfSteel
- Member
- Posts: 60
- Joined: Tue Feb 01, 2005 12:00 am
I implemented this method years ago, and I can tell you it's the only way that always works on all computers. It also works well on Bochs (it resets the virtual computer). Did you try it on Bochs?
----
Correction: it doesn't reset Bochs (I was thinking about something else). But it definitely works on a real computer.
I'm sorry for the confusion I might have caused.
----
Correction: it doesn't reset Bochs (I was thinking about something else). But it definitely works on a real computer.
I'm sorry for the confusion I might have caused.
I wonder what this method (cold booting) can cause if it executed within a Windows program. Reboots system leaving Windows behind?frank wrote:When I am trying to reset the computer first I try the keyboard controller then after that you can try jumping to 0xFFFF:0000. You have to first put a zero at 0x40:0x72 before trying to reset though. That should restart the computer and it works in bochs and qemu.
Well you cannot access the keyboard controller from within windows (unless you happen to be a driver) and any attempt to jump to 0xFFFF:0000 would just cause a page fault so essentially all it would do is crash your program.iskra wrote:I wonder what this method (cold booting) can cause if it executed within a Windows program. Reboots system leaving Windows behind?frank wrote:When I am trying to reset the computer first I try the keyboard controller then after that you can try jumping to 0xFFFF:0000. You have to first put a zero at 0x40:0x72 before trying to reset though. That should restart the computer and it works in bochs and qemu.