aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
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 00d88a063d..9bd6b90a74 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__ */