]> git.gag.com Git - fw/altos/commit
altos: Validate boot chain start address
authorKeith Packard <keithp@keithp.com>
Sat, 23 Mar 2013 09:18:55 +0000 (02:18 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 23 Mar 2013 09:18:55 +0000 (02:18 -0700)
commit0ad757d63bc219d5332e5999e4e727601ac5c3c2
tree808450b71a8c8cb3f5723707bb9d5889e54a55fa
parent74975d1ff48c03140048d796f4276aebf4c29984
altos: Validate boot chain start address

If the first block of boot memory has been smashed, and the start
address is bogus, don't bother trying to jump to the
application. This makes the system more resiliant to flash failures,
presuming the loader erases the first block, programs the other blocks
and then finally comes back to program the first block.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/stm/ao_boot_chain.c