diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2017-04-12 10:46:36 +0200 |
---|---|---|
committer | Etienne Carriere <etienne.carriere@linaro.org> | 2017-04-12 11:30:21 +0200 |
commit | 73595e4cc3e5b637d55ae1781d118a2120008ba8 (patch) | |
tree | 0b96c7e0b9a8d97109568b48d5831d1c1407f900 /core/arch/arm/plat-zynqmp | |
parent | 13301e1273fea026e885c115848e83efe7f93e61 (diff) |
core: fix register_XXX_mem() against physical address
Use __COUNTER__ instead of the registered physical address to
generate the label of the structure defined by the macros
__register_phys_mem() and __register_sdp_mem().
Before this change, when argument "addr" is used, one cannot use these
macros providing an address that is the result of a local operation.
I.e This implementation was not possible:
__register_phys_mem(<any-id>, ROUNDUP(<addr>, <value>), <size>);
and one needed to use a temporary macro for the address computation:
#define MY_BASE_ADDRESS ROUNDUP(<addr>, <value>)
__register_phys_mem(<any-id>, MY_BASE_ADDRESS, <size>);
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/arch/arm/plat-zynqmp')
0 files changed, 0 insertions, 0 deletions