1
0
Fork 0
forked from len0rd/rockbox

Added system_reboot() for iRiver

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6491 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-05-20 18:15:14 +00:00
parent 1b9ea4e19c
commit 3beafe4c44

View file

@ -1065,8 +1065,20 @@ int system_memory_guard(int newmode)
(void)newmode;
return 0;
}
void system_reboot (void)
{
/* dummy */
#if CONFIG_CPU == MCF5249
set_cpu_frequency(0);
asm(" move.w #0x2700,%sr");
/* Reset the cookie for the crt0 crash check */
asm(" move.l #0,%d0");
asm(" move.l %d0,0x10017ffc");
asm(" movec.l %d0,%vbr");
asm(" move.l 0,%sp");
asm(" move.l 4,%a0");
asm(" jmp (%a0)");
#endif
}
#endif