lkml.org 
[lkml]   [1997]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectPatch to fix reboot on a PC in 2.1.20
Date
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++) {
================================================

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.018 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site