diff options
| author | Utkarsh Gupta <[email protected]> | 2023-06-15 18:09:27 +0800 |
|---|---|---|
| committer | Stefano Babic <[email protected]> | 2023-07-13 11:29:40 +0200 |
| commit | 77b5ad0ea3d132412f21daaa997b6249266ff71c (patch) | |
| tree | c7bc2a682fda04bf8c160d3581a9b92defaf1486 /scripts/env2string.awk | |
| parent | 2159f7d9b6f191e74c3d2004867e138bb5a0533c (diff) | |
imx: fsl_sec: preprocessor casting issue with addresses involving math
The sec_in32 preprocessor is defined as follows in include/fsl_sec.h file:
When address "a" is calculated using math for ex: addition of base address and
an offset, then casting is applied only to the first address which in this
example is base address.
caam_ccbvid_reg = sec_in32(CONFIG_SYS_FSL_SEC_ADDR + CAAM_CCBVID_OFFSET)
resolves to:
caam_ccbvid_reg = in_le32((ulong *)(ulong)CONFIG_SYS_FSL_SEC_ADDR +
CAAM_CCBVID_OFFSET)
instead it should resolve to:
caam_ccbvid_reg = in_le32((ulong *)(ulong)(CONFIG_SYS_FSL_SEC_ADDR +
CAAM_CCBVID_OFFSET))
Thus add parenthesis around the address "a" so that however the address is
calculated, the casting is applied to the final calculated address.
Reviewed-by: Horia Geanta <[email protected]>
Reviewed-by: Ye Li <[email protected]>
Signed-off-by: Utkarsh Gupta <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'scripts/env2string.awk')
0 files changed, 0 insertions, 0 deletions
