summaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2019-01-16 16:01:42 +0000
committerGitHub <noreply@github.com>2019-01-16 16:01:42 +0000
commitcd1f39b48ab4a0596ace57cc920e4d4ba6e92784 (patch)
tree3ae36f3a08f4e390048d9203748b8d178fafeb09 /bl31
parentedcb50abe7b4a4e168a36e12168bf5e7a8b28700 (diff)
parent434454a2710eea3f49ebfca951019d7b6c783fb5 (diff)
Merge pull request #1738 from ardbiesheuvel/synquacer-spm
synquacer: add SPM support
Diffstat (limited to 'bl31')
-rw-r--r--bl31/bl31.ld.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/bl31/bl31.ld.S b/bl31/bl31.ld.S
index 777115a6..1af19620 100644
--- a/bl31/bl31.ld.S
+++ b/bl31/bl31.ld.S
@@ -143,6 +143,10 @@ SECTIONS
"cpu_ops not defined for this platform.")
#if ENABLE_SPM
+#ifndef SPM_SHIM_EXCEPTIONS_VMA
+#define SPM_SHIM_EXCEPTIONS_VMA RAM
+#endif
+
/*
* Exception vectors of the SPM shim layer. They must be aligned to a 2K
* address, but we need to place them in a separate page so that we can set
@@ -156,7 +160,10 @@ SECTIONS
*(.spm_shim_exceptions)
. = ALIGN(PAGE_SIZE);
__SPM_SHIM_EXCEPTIONS_END__ = .;
- } >RAM
+ } >SPM_SHIM_EXCEPTIONS_VMA AT>RAM
+
+ PROVIDE(__SPM_SHIM_EXCEPTIONS_LMA__ = LOADADDR(spm_shim_exceptions));
+ . = LOADADDR(spm_shim_exceptions) + SIZEOF(spm_shim_exceptions);
#endif
/*