From 2004aa74c30fd230d7c16446270f17a69e2c5aa3 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 17 Aug 2009 12:23:58 +0000 Subject: [PATCH] Implement platform_reset. Also, make the code a tiny bit easier to read with ninja-C magic coupled with an illuminating comment. --- sys/mips/octeon1/octeon_machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/mips/octeon1/octeon_machdep.c b/sys/mips/octeon1/octeon_machdep.c index 2bf9f3dec1df..e3e9e838463b 100644 --- a/sys/mips/octeon1/octeon_machdep.c +++ b/sys/mips/octeon1/octeon_machdep.c @@ -85,10 +85,10 @@ extern int *end; * Perform a board-level soft-reset. * Note that this is not emulated by gxemul. */ -void octeon_reset (void) +void +platform_reset(void) { - void (*reset_func)(void) = (void (*)(void) )0x1fc00000; - reset_func(); + ((void(*)(void))0x1fc00000)(); /* Jump to this hex address */ }