From d7d50cc81f72d1275140d7a15c52b6f9e272896f Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 25 Nov 2020 11:27:45 -0700 Subject: Add module for controlling the MPU. The MPU is a module in arm chips which allow for memory access protection. They are more primitive than full MMUs, but can still provide at least basic access control between different process controls. --- test_harness/fake_env.c | 1 + test_harness/fake_env.h | 1 + 2 files changed, 2 insertions(+) (limited to 'test_harness') diff --git a/test_harness/fake_env.c b/test_harness/fake_env.c index fbe85ce..261e9e2 100644 --- a/test_harness/fake_env.c +++ b/test_harness/fake_env.c @@ -57,6 +57,7 @@ DEFINE_MEMORY_SEGMENT(nvic, 0xE000E004, 0xE000E4F0) /* SRAM */ DEFINE_MEMORY_SEGMENT(sram1, 0x20000000, 0x2000C000) DEFINE_MEMORY_SEGMENT(sram2, 0x2000C000, 0x20018000) +DEFINE_MEMORY_SEGMENT(mpu, 0xE000ED90, 0xE000EDA4) /* Serial Peripheral Interface */ DEFINE_MEMORY_SEGMENT(spi1, 0x40013000, 0x400133FF) diff --git a/test_harness/fake_env.h b/test_harness/fake_env.h index 34056f4..b4451df 100644 --- a/test_harness/fake_env.h +++ b/test_harness/fake_env.h @@ -14,6 +14,7 @@ void* load_fake_nvic__(); void* load_fake_rcc__(); void* load_fake_spi1__(); void* load_fake_spi3__(); +void* load_fake_mpu__(); void wipeout_fake_env(); -- cgit