Commit e86c53b4 authored by Tomasz Gorochowik's avatar Tomasz Gorochowik Committed by Andrew Boie
Browse files

arch: arm: atmel_sam: Map the whole RAM in MPU



The extra region is wrapped in an "ifdef" as two MPU regions are used
only if the total memory size is not a power of two.

Signed-off-by: default avatarTomasz Gorochowik <tgorochowik@antmicro.com>
parent 31aa9b9a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -17,8 +17,13 @@ static struct arm_mpu_region mpu_regions[] = {

	MPU_REGION_ENTRY("SRAM_0",
			 CONFIG_SRAM_BASE_ADDRESS,
			 REGION_RAM_ATTR(REGION_SRAM_0_SIZE))
			 REGION_RAM_ATTR(REGION_SRAM_0_SIZE)),

#ifdef REGION_SRAM_1_SIZE
	MPU_REGION_ENTRY("SRAM_1",
			 CONFIG_SRAM_BASE_ADDRESS + REGION_SRAM_1_START,
			 REGION_RAM_ATTR(REGION_SRAM_1_SIZE)),
#endif
};

struct arm_mpu_config mpu_config = {