Change 227630 by bz@bz_zenith on 2013/04/12 08:50:27

	Implement soft reset setting sr in sr and just in case loop
	endlessly afterwards.

MFC after:	3 days
Sponsored by:	DARPA/AFRL
This commit is contained in:
Brooks Davis 2013-10-18 15:40:37 +00:00
parent e908804339
commit 224d11f577

View File

@ -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