forked from len0rd/rockbox
Ignore the reset cookie when rockbox has been flashed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10466 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d2d55dae76
commit
3b4932a27b
1 changed files with 9 additions and 1 deletions
|
|
@ -594,6 +594,13 @@ irq_handler:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOTLOADER
|
#ifdef BOOTLOADER
|
||||||
|
/* Check if original firmware is still present */
|
||||||
|
lea 0x00001000,%a2
|
||||||
|
move.l (%a2),%d0
|
||||||
|
move.l #0xfbfbfbf1,%d1
|
||||||
|
cmp.l %d0,%d1
|
||||||
|
beq.b .ignorecookie
|
||||||
|
|
||||||
/* The cookie is not reset. This must mean that the boot loader
|
/* The cookie is not reset. This must mean that the boot loader
|
||||||
has crashed. Let's start the original firmware immediately. */
|
has crashed. Let's start the original firmware immediately. */
|
||||||
lea 0x10017ffc,%a2
|
lea 0x10017ffc,%a2
|
||||||
|
|
@ -608,6 +615,7 @@ irq_handler:
|
||||||
.nocookie:
|
.nocookie:
|
||||||
/* Set the cookie */
|
/* Set the cookie */
|
||||||
move.l %d1,(%a2)
|
move.l %d1,(%a2)
|
||||||
|
.ignorecookie:
|
||||||
|
|
||||||
/* Set up the DRAM controller. The refresh is based on the 11.2896MHz
|
/* Set up the DRAM controller. The refresh is based on the 11.2896MHz
|
||||||
clock (5.6448MHz bus frequency). We haven't yet started the PLL */
|
clock (5.6448MHz bus frequency). We haven't yet started the PLL */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue