PERFORCE change 101764 for review
Bruce M Simpson
bms at FreeBSD.org
Mon Jul 17 13:42:27 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=101764
Change 101764 by bms at bms_montagne on 2006/07/17 13:42:23
Add board-level reset routine malta_reset().
Not emulated in gxemul
Affected files ...
.. //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_machdep.c#2 integrate
Differences ...
==== //depot/projects/mips2/src/sys/mips/mips4k/malta/malta_machdep.c#2 (text+ko) ====
@@ -34,6 +34,7 @@
void lcd_init(void);
void lcd_puts(char *);
+void malta_reset(void);
/*
* Offsets to MALTA LCD characters.
@@ -92,3 +93,15 @@
malta_lcd_print(s);
}
+/*
+ * Perform a board-level soft-reset.
+ * Note that this is not emulated by gxemul.
+ */
+void
+malta_reset(void)
+{
+ char *c;
+
+ c = (char *)MIPS_PHYS_TO_KSEG0(MALTA_SOFTRES);
+ *c = MALTA_GORESET;
+}
More information about the p4-projects
mailing list