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. --- include/arch/arm/arch.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/arch/arm/arch.h') diff --git a/include/arch/arm/arch.h b/include/arch/arm/arch.h index bf96fae..e4ebb8d 100644 --- a/include/arch/arm/arch.h +++ b/include/arch/arm/arch.h @@ -13,6 +13,12 @@ #define disable_all_interrupts() \ asm volatile(" cpsid i ") +#define __isb() \ + asm volatile(" isb ") + +#define __dsb() \ + asm volatile(" dsb ") + #define DMA1_BASE (0x40020000) #define DMA2_BASE (0x40020400) @@ -36,6 +42,7 @@ #define SPI3_BASE (0x40003C00) #define STACK_TOP (0x2000c000) +#define MPU_BASE (0xE000ED90) #include #ifndef DRY_RUN -- cgit