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>
Wed, 8 May 2013 03:16:52 +0000 (20:16 -0700)
commit35ef1f17e3efaa6d586ab7bb301f8133d52023b6
tree031414fc3f9714a8e9dcdbd97e8db66b7a63ad03
parentdb7f17980c303e442f88c8a4168351dbc2c0b1a0
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