Patch to fix reboot on a PC in 2.1.20

tenthumbs@cybernex.net
Thu, 02 Jan 1997 18:30:29 GMT


Rebooting a PC in 2.1.20 gives an oops. I may have had something to do
with this, so here's a patch to fix it.

================================================
--- arch/i386/kernel/process.c. Thu Jan 2 11:12:19 1997
+++ arch/i386/kernel/process.c.new Thu Jan 2 12:53:21 1997
@@ -283,9 +283,7 @@

if(!reboot_thru_bios) {
sti();
- /* rebooting needs to touch the page at absolute addr 0 */
- pg0[0] = 7;
- *((unsigned short *)0x472) = reboot_mode;
+ *((unsigned short *)__va(0x472)) = reboot_mode;
for (;;) {
int i;
for (i=0; i<100; i++) {

================================================