Mail Archives: djgpp/2000/09/25/21:02:18
| From: jbfraleigh AT my-deja DOT com
| Date: Mon, 25 Sep 2000 15:37:51 GMT
| DJ-Gateway: from newsgroup comp.os.msdos.djgpp
|
| I'm using GCC/DJGPP and I'd like to reboot the PC. I've tried the
| following methods:
|
| 1) int 0x19
This is not a good idea. Some programs hook this interrupt.
| 2) outportb(0xCF9, 4);
| outportb(0xCF9, 2);
Why would you want to write to the PCI bus?
|
| 3) void (*rebooter)();
| rebooter = (void *) (0x00000000);
| (*rebooter)();
Again, not a good idea for protected mode programs. In real mode, this
would be perfect.
You can try this one:
outportb (0x61, 0xfe);
It resets the CPU.
--
Prashant TR <tr AT midpec DOT com>
Web: http://www.midpec.com/
- Raw text -