altos/flash-loader: Check memory addresses against flash space
authorKeith Packard <keithp@keithp.com>
Tue, 13 May 2014 06:18:41 +0000 (23:18 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 May 2014 06:18:41 +0000 (23:18 -0700)
commit8a114bac1145359f3953ce70f049a6be71df5300
treee93b795e3de4069ed3ed8720345d73962ef6e74b
parenta25c34ef0a92beaa0695e0d0020eda5e26b309e2
altos/flash-loader: Check memory addresses against flash space

This validates memory read/write requests to make sure they are within
the available flash memory space.

This also reports the flash base and bounds addresses in the 'version'
command so that the loader can validate the image before attempting to
write it.

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