diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-25 11:27:45 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-25 11:32:16 -0700 |
commit | d7d50cc81f72d1275140d7a15c52b6f9e272896f (patch) | |
tree | 875b7ed438412c3fc09ff49b58391787813e3998 /include/arch/x86_64 | |
parent | c29e0323020e0f96932d0f9b09747d5b2e28e5a6 (diff) | |
download | stm32l4-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 'include/arch/x86_64')
-rw-r--r-- | include/arch/x86_64/arch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/arch/x86_64/arch.h b/include/arch/x86_64/arch.h index 62ef730..ab26d1e 100644 --- a/include/arch/x86_64/arch.h +++ b/include/arch/x86_64/arch.h @@ -5,8 +5,11 @@ #include "fake_env.h" #define ARCH_PC + #define enable_all_interrupts() do {} while(0) #define disable_all_interrupts() do {} while(0) +#define __isb() do {} while(0) +#define __dsb() do {} while(0) #define RCC_BASE (load_fake_rcc__()) @@ -30,6 +33,8 @@ #define SPI1_BASE (load_fake_spi1__()) #define SPI3_BASE (load_fake_spi3__()) +#define MPU_BASE (load_fake_mpu__()) + // Pretend there's a data segement at the start of SRAM1 for more accurate // testing. #define GHOST_DATA_SEGMENT_SIZE 1200 |