5 ms·
> The important point worth noting here is that the very first instruction the microprocessor executes after booting is the instruction at FFFF:0000. We can use
by saagarjha 4y ago
> The important point worth noting here is that the very first instruction the microprocessor executes after booting is the instruction at FFFF:0000. We can use this fact to create a tiny executable program that can be used to reboot the computer.
This isn’t necessarily guaranteed, because some setup routines generally expect the computer to be in a certain state when run and may not like being run again. Typically most things will be reset to a sane state and will mostly work, but it’s not a given.
- monocasa 4y agoIt isn't guaranteed, but I'd be shook if it didn't work I the cast majority of cases. Triple-faulting a CPU doesn't do much other than revert to real mode and jump to FFFF:0000, so I'd expect this to work too. It's one of those not technically documented things, but a downstream effect of documented pieces.