aboutsummaryrefslogtreecommitdiff
path: root/test_harness
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-25 11:27:45 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-25 11:32:16 -0700
commitd7d50cc81f72d1275140d7a15c52b6f9e272896f (patch)
tree875b7ed438412c3fc09ff49b58391787813e3998 /test_harness
parentc29e0323020e0f96932d0f9b09747d5b2e28e5a6 (diff)
downloadstm32l4-d7d50cc81f72d1275140d7a15c52b6f9e272896f.tar.gz
stm32l4-d7d50cc81f72d1275140d7a15c52b6f9e272896f.tar.bz2
stm32l4-d7d50cc81f72d1275140d7a15c52b6f9e272896f.zip
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.
Diffstat (limited to 'test_harness')
-rw-r--r--test_harness/fake_env.c1
-rw-r--r--test_harness/fake_env.h1
2 files changed, 2 insertions, 0 deletions
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();