diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-12-29 19:43:21 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-01-08 15:24:16 +0100 |
commit | 0560efb93eeba9cf16dc837893a07430e638dcc5 (patch) | |
tree | f1b1e7e5d0384501e62ecbe3ecb2b3aadab941e6 /services | |
parent | c8719032600e9aade27b674c2d117563079e8e07 (diff) | |
download | trusted-firmware-a-0560efb93eeba9cf16dc837893a07430e638dcc5.tar.gz |
services/spm_deprecated: update ARM platform specific asserts
Update some asserts that refer to #defines that only occur in
ARM platforms, preventing this code to be used on other platforms.
Instead, use a platform agnostic name, and update all the existing
users.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'services')
-rw-r--r-- | services/std_svc/spm_deprecated/spm_setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/std_svc/spm_deprecated/spm_setup.c b/services/std_svc/spm_deprecated/spm_setup.c index d458f4a6a2..e78a42c72e 100644 --- a/services/std_svc/spm_deprecated/spm_setup.c +++ b/services/std_svc/spm_deprecated/spm_setup.c @@ -84,10 +84,10 @@ void spm_sp_setup(sp_context_t *sp_ctx) unsigned int max_granule_mask = max_granule - 1U; /* Base must be aligned to the max granularity */ - assert((ARM_SP_IMAGE_NS_BUF_BASE & max_granule_mask) == 0); + assert((PLAT_SP_IMAGE_NS_BUF_BASE & max_granule_mask) == 0); /* Size must be a multiple of the max granularity */ - assert((ARM_SP_IMAGE_NS_BUF_SIZE & max_granule_mask) == 0); + assert((PLAT_SP_IMAGE_NS_BUF_SIZE & max_granule_mask) == 0); #endif /* ENABLE_ASSERTIONS */ |