Date: Tue, 28 Jul 1998 20:30:23 -0600 From: Warner Losh <imp@village.org> To: asami@cs.berkeley.edu (Satoshi Asami) Cc: committers@freebsd.org Subject: Re: very quick reboot Message-ID: <199807290230.UAA27961@harmony.village.org> In-Reply-To: Your message of "Tue, 28 Jul 1998 18:46:04 PDT." <199807290146.SAA00693@silvia.HIP.Berkeley.EDU> References: <199807290146.SAA00693@silvia.HIP.Berkeley.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199807290146.SAA00693@silvia.HIP.Berkeley.EDU> Satoshi Asami writes: : I'm wondering if it is possible to reboot a computer without actually : resetting the hardware. Assuming I want to reboot with the same : kernel (rebooting with different kernels obviously present more : challenges), can't I just re-load the initialized data and jump to the : address where the kernel starts executing? Unless the hardware is in a weird state, that should almost work. You'd also have to bzero the bss section of the kernel as well as recreate the boot information that was passed to the kernel from the boot blocks. The only thing that I'd worry about would be hardware that is set to a known state by the bios that FreeBSD then sets to a different known state which would be FUBAR'd if FreeBSD were to set that state again. Video might also be a problem, but since we can now make 16-bit BIOS calls, it should be less of a problem. There are likely other things that I've forgotten... I'm curious... why do you want to do this? Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807290230.UAA27961>