From 854d5a6e7fa47e44797891e6fad392a344003b46 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Tue, 22 Sep 2015 18:44:13 -0700 Subject: cleanup: Remove CONFIG_FW_IMAGE_SIZE Since CONFIG_RO_SIZE and CONFIG_RW_SIZE now exist (which may theoretically be different sizes), it is no longer useful to globally define the size of an image. BUG=chromium:535027 BRANCH=None TEST=`make buildall -j`. Also, verify glados / glados_pd continue to function as expected. Signed-off-by: Shawn Nematbakhsh Change-Id: Ie29959923bc5d02b4d7d6d507ff2191bcb7d24c8 Reviewed-on: https://chromium-review.googlesource.com/301743 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Bill Richardson --- core/cortex-m/mpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/cortex-m/mpu.c b/core/cortex-m/mpu.c index 8cdf4c9194..e49a8d533d 100644 --- a/core/cortex-m/mpu.c +++ b/core/cortex-m/mpu.c @@ -141,7 +141,7 @@ int mpu_protect_ram(void) int mpu_lock_ro_flash(void) { return mpu_lock_region(REGION_FLASH_MEMORY, CONFIG_RO_MEM_OFF, - CONFIG_FW_IMAGE_SIZE, MPU_ATTR_FLASH_MEMORY); + CONFIG_RO_SIZE, MPU_ATTR_FLASH_MEMORY); } int mpu_lock_rw_flash(void) -- cgit v1.2.1