patch-2.4.22 linux-2.4.22/arch/mips/dec/reset.c

Next file: linux-2.4.22/arch/mips/dec/rtc-dec.c
Previous file: linux-2.4.22/arch/mips/dec/promcon.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/mips/dec/reset.c linux-2.4.22/arch/mips/dec/reset.c
@@ -1,8 +1,14 @@
 /*
  * Reset a DECstation machine.
+ *
+ * Copyright (C) 199x  the Anonymous
+ * Copyright (C) 2001, 2002, 2003  Maciej W. Rozycki
  */
 
-void (*back_to_prom)(void) = (void (*)(void))0xBFC00000;
+#include <asm/addrspace.h>
+#include <asm/ptrace.h>
+
+#define back_to_prom()	(((void (*)(void))KSEG1ADDR(0x1fc00000))())
 
 void dec_machine_restart(char *command)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)