Date: Mon, 17 Jul 2006 13:42:24 GMT From: Bruce M Simpson <bms@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 101764 for review Message-ID: <200607171342.k6HDgOTA096072@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=101764 Change 101764 by bms@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; +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607171342.k6HDgOTA096072>