Re:Boot a linux kernel right inside your browser.
by jokermatt999 on Tuesday May 17, 2011 @10:02AM
(#2556374)
Crashed Firefox portable 4.0.1 for me. What's the intended result?
[ Parent
| on HN ]
Re:Boot a linux kernel right inside your browser.
by danvet on Tuesday May 17, 2011 @11:27AM
(#2556624)
Iirc the way to reboot an x86 machine is to triple-fault, i.e. execute an interrupt in an interrupt in an interrupt. Could be done by e.g. marking the pagefault handler's stack space as "not available" in the pagetables.
Now if the virtual cpu does not implement that reboot behaviour, the likely result is just an endless recursion of fault handlers. So the script runs an endless loop, hanging Firefox until it notices this and stops it.
Re:Boot a linux kernel right inside your browser.
by xilun0 on Tuesday May 17, 2011 @07:14PM
(#2558371)
argggggg
Might have been an interesting way to proceed because of various weird reasons 15 or 20 yeats ago, but current x86 plateforms are not that convoluted (for at least 10 years). Just outw (or is it outb? don't remember) the correct value to port 0cf9h (which btw has nothing to do with the legacy PCI conf addr register, which is 32 bits starting at io port 0cf8h for great confusion...) and your computer reboot.