Commit 407ebf81 authored by Øyvind Rønningstad's avatar Øyvind Rønningstad Committed by Ioannis Glaropoulos
Browse files

cortex_m: secure_entry_functions.ld: Increase SAU alignment to 32



The spec requires SAU regions to be aligned on 32 bytes.

Signed-off-by: default avatarØyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
parent 81e7608c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -19,12 +19,13 @@
#if CONFIG_ARM_NSC_REGION_BASE_ADDRESS != 0
	#define NSC_ALIGN . = ABSOLUTE(CONFIG_ARM_NSC_REGION_BASE_ADDRESS)
#else
	#define NSC_ALIGN . = ALIGN(4)
	/* The ARM SAU requires regions to be 32-byte-aligned. */
	#define NSC_ALIGN . = ALIGN(32)
#endif /* CONFIG_ARM_NSC_REGION_BASE_ADDRESS */
#endif /* !NSC_ALIGN */

#ifndef NSC_ALIGN_END
	#define NSC_ALIGN_END . = ALIGN(4)
	#define NSC_ALIGN_END . = ALIGN(32)
#endif

SECTION_PROLOGUE(.gnu.sgstubs,,)