aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMingyang Sun <mingyang.sun@arm.com>2021-04-15 15:46:08 +0800
committerMingyang Sun <mingyang.sun@arm.com>2021-05-08 15:41:41 +0800
commit00df2357ff73936a6da5e94c41ccf7f9e7f11041 (patch)
tree64652bc254e924f7b81e52cec32bc529ea10af20 /platform
parent77ad9f8777328faac28a1572b255af5b49b21f5b (diff)
downloadtrusted-firmware-m-00df2357ff73936a6da5e94c41ccf7f9e7f11041.tar.gz
SPM: Add header files for partition static load
- Create two new header files that define the partition and service static data type. - Create a header file for partition static loading definitions. Change-Id: I73dafef7b587d3cad6fa35ff4788365a9936c062 Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/include/region.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/include/region.h b/platform/include/region.h
index 00d88a063..9bd6b90a7 100644
--- a/platform/include/region.h
+++ b/platform/include/region.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2020-2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -8,6 +8,8 @@
#ifndef __REGION_H__
#define __REGION_H__
+#include <stdint.h>
+
/* Macros to pick linker symbols */
#define REGION(a, b, c) a##b##c
#define REGION_NAME(a, b, c) REGION(a, b, c)
@@ -35,4 +37,7 @@
#endif /* __ICCARM__ */
+#define PART_REGION_ADDR(partition, region) \
+ (uintptr_t)&REGION_NAME(Image$$, partition, region)
+
#endif /* __REGION_H__ */