1
0
Fork 0
forked from len0rd/rockbox

Boot loader safety measures

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5791 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-02-04 18:24:58 +00:00
parent b143652572
commit f1530d8a82
2 changed files with 20 additions and 0 deletions

View file

@ -45,7 +45,9 @@ int usb_screen(void)
void start_iriver_fw(void)
{
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(" lea.l 8,%a0");
@ -110,6 +112,9 @@ int load_firmware(void)
void start_firmware(void)
{
asm(" move.w #0x2700,%sr");
/* Reset the cookie for the crt0 crash check */
asm(" move.l #0,%d0");
asm(" move.l %d0,0x10017ffc");
asm(" move.l #0x30000000,%d0");
asm(" movec.l %d0,%vbr");
asm(" move.l 0x30000000,%sp");