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
- Lines: 24
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/mips/momentum/ocelot_c/reset.c
- Orig date:
2003-08-25 04:44:40.000000000 -0700
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)