mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
zinger: fix check for is in RO
Fix check for whether or not we are running in RO. The previous code read the contents of the RW reset vector, but RW code may be corrupted causing us to think we are in RW when we are not. BUG=none BRANCH=none TEST=mostly just code inspection. verified this code running in RW correctly identifies we are in RW. Change-Id: I2c27af45a59b29f55fd24295f91d5c5f0e491dd4 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/203192 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-internal-fetch
parent
8c201b1e6c
commit
c388281b06
@@ -40,7 +40,7 @@ static void jump_to_rw(void)
|
||||
|
||||
int is_ro_mode(void)
|
||||
{
|
||||
return (uint32_t)&jump_to_rw < *rw_rst;
|
||||
return (uint32_t)&jump_to_rw < (uint32_t)rw_rst;
|
||||
}
|
||||
|
||||
static int check_rw_valid(void)
|
||||
|
||||
Reference in New Issue
Block a user