svn commit: r261274 - stable/10/sys/mips/beri
Brooks Davis
brooks at FreeBSD.org
Wed Jan 29 20:48:27 UTC 2014
Author: brooks
Date: Wed Jan 29 20:48:26 2014
New Revision: 261274
URL: http://svnweb.freebsd.org/changeset/base/261274
Log:
MFC r256745:
MFP4:
Change 227630 by bz at bz_zenith on 2013/04/12 08:50:27
Implement soft reset setting sr in sr and just in case loop
endlessly afterwards.
Sponsored by: DARPA/AFRL
Modified:
stable/10/sys/mips/beri/beri_machdep.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/mips/beri/beri_machdep.c
==============================================================================
--- stable/10/sys/mips/beri/beri_machdep.c Wed Jan 29 19:31:58 2014 (r261273)
+++ stable/10/sys/mips/beri/beri_machdep.c Wed Jan 29 20:48:26 2014 (r261274)
@@ -116,14 +116,19 @@ mips_init(void)
/*
* Perform a board-level soft-reset.
- *
- * XXXRW: BERI doesn't yet have a board-level soft-reset.
*/
void
platform_reset(void)
{
- panic("%s: not yet", __func__);
+ /* XXX SMP will likely require us to do more. */
+ __asm__ __volatile__(
+ "mfc0 $k0, $12\n\t"
+ "li $k1, 0x00100000\n\t"
+ "or $k0, $k0, $k1\n\t"
+ "mtc0 $k0, $12\n");
+ for( ; ; )
+ __asm__ __volatile("wait");
}
void
More information about the svn-src-stable-10
mailing list