diff options
author | Sughosh Ganu <sughosh.ganu@arm.com> | 2018-05-16 15:13:25 +0530 |
---|---|---|
committer | Sughosh Ganu <sughosh.ganu@arm.com> | 2018-07-26 22:00:26 +0530 |
commit | d9cc9372e12a9a814bb5ec18202f68748bb20fe3 (patch) | |
tree | 2c8699c4ee60154b551896702ea604965dc4187d | |
parent | 4576f73caa99c95029b3abe0c2893b83d635ebf6 (diff) |
SGI: Include arm_spm_def.h in platform_def.h
Include arm_spm_def.h in the platform_def.h file. Without this
inclusion, we get build errors like
In file included from services/std_svc/spm/sp_setup.c:12:0:
services/std_svc/spm/sp_setup.c: In function 'spm_sp_setup':
services/std_svc/spm/sp_setup.c:61:57: error: 'PLAT_SPM_BUF_BASE'
undeclared (first use in this function)
write_ctx_reg(get_gpregs_ctx(ctx), CTX_GPREG_X0, PLAT_SPM_BUF_BASE);
Now that the platform_def.h includes arm_spm_def.h, remove inclusion
of platform_def.h in arm_spm_def.h to remove the circular dependency.
Change-Id: I5225c8ca33fd8d288849524395e436c3d56daf17
Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com>
-rw-r--r-- | include/plat/arm/common/arm_spm_def.h | 1 | ||||
-rw-r--r-- | plat/arm/css/sgi/include/platform_def.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/plat/arm/common/arm_spm_def.h b/include/plat/arm/common/arm_spm_def.h index 83277a6c..3d7ded23 100644 --- a/include/plat/arm/common/arm_spm_def.h +++ b/include/plat/arm/common/arm_spm_def.h @@ -7,7 +7,6 @@ #define __ARM_SPM_DEF_H__ #include <arm_def.h> -#include <platform_def.h> #include <utils_def.h> #include <xlat_tables_defs.h> diff --git a/plat/arm/css/sgi/include/platform_def.h b/plat/arm/css/sgi/include/platform_def.h index 7a2a6bd8..3230ca8f 100644 --- a/plat/arm/css/sgi/include/platform_def.h +++ b/plat/arm/css/sgi/include/platform_def.h @@ -8,6 +8,7 @@ #define PLATFORM_DEF_H #include <arm_def.h> +#include <arm_spm_def.h> #include <board_arm_def.h> #include <board_css_def.h> #include <common_def.h> |