patch-2.1.21 linux/arch/i386/kernel/process.c

Next file: linux/arch/m68k/amiga/Makefile
Previous file: linux/arch/i386/kernel/ksyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.20/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -284,8 +284,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++) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov