Implement platform_reset. Also, make the code a tiny bit easier to
read with ninja-C magic coupled with an illuminating comment.
This commit is contained in:
parent
a54c4d8590
commit
2004aa74c3
@ -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 */
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user