patch-2.4.25 linux-2.4.25/arch/mips/momentum/ocelot_c/reset.c

Next file: linux-2.4.25/arch/mips/momentum/ocelot_c/setup.c
Previous file: linux-2.4.25/arch/mips/momentum/ocelot_c/prom.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/momentum/ocelot_c/reset.c linux-2.4.25/arch/mips/momentum/ocelot_c/reset.c
@@ -10,6 +10,9 @@
  *
  * Copyright (C) 2002 Momentum Computer Inc.
  * Author: Matthew Dharm <mdharm@momenco.com>
+ *
+ * Louis Hamilton, Red Hat, Inc.
+ * hamilton@redhat.com  [MIPS64 modifications]
  */
 #include <linux/sched.h>
 #include <linux/mm.h>
@@ -23,7 +26,12 @@
 void momenco_ocelot_restart(char *command)
 {
 	/* base address of timekeeper portion of part */
-	void *nvram = (void*) 0xfc807000;
+	void *nvram = (void *)
+#ifdef CONFIG_MIPS64
+		0xfffffffffc807000;
+#else
+		0xfc807000;
+#endif
 
  	/* Ask the NVRAM/RTC/watchdog chip to assert reset in 1/16 second */
 	writeb(0x84, nvram + 0xff7);

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