diff options
author | Andrew McRae <amcrae@google.com> | 2020-05-23 13:53:58 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-27 03:14:03 +0000 |
commit | 595c67985b07111cadc8ddc238ee1662870d7c0b (patch) | |
tree | 4428541b84d4c3508999f36b2f1c7b712076f0e5 /common/main.c | |
parent | d47f66468e4f84fbc3c56cd2f82611190e8dc093 (diff) | |
download | chrome-ec-595c67985b07111cadc8ddc238ee1662870d7c0b.tar.gz |
cortex-m: Init the MPU to check for correct operation
Disable all a MPU regions using the smallest supported size.
BUG=chromium:1085868
TEST=Boot successfully on Puff
TEST=Boot successfully on Volteer
BRANCH=none
Change-Id: Ie6924c3d9691ba6f4b218c9897b4e42b35b12bb7
Signed-off-by: Andrew McRae <amcrae@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2212010
Reviewed-by: Andrew McRae <amcrae@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c index 3c60216aa2..7f1cbc265d 100644 --- a/common/main.c +++ b/common/main.c @@ -137,8 +137,7 @@ test_mockable __keep int main(void) /* We wait to report the failure until here where we have console. */ if (mpu_pre_init_rv != EC_SUCCESS) - /* TODO: Need real fix (chromium:1085868) */ - CPRINTS("MPU init failed"); + panic("MPU init failed"); /* be less verbose if we boot for USB resume to meet spec timings */ if (!(system_get_reset_flags() & EC_RESET_FLAG_USB_RESUME)) { |