arm-trusted-firmware/include/common
Andre Przywara 49b268ce30 refactor(fdt): introduce common fdt_node_is_enabled()
There are several users in the tree which want to check whether a given
FDT node is enabled or not: the "status" property holds that
information. So far all those users provide private implementations,
some of them having issues.

Export a generic implementation of that function in fdt_wrappers.h, as
a "static inline" function to not increase code size.
Also replace the existing implementation in Arm's fconf code, which had
a tiny bug in needlessly using the property length:
"status = [6f 6b 61 79 20];" would pass the check, where it should not.
The proper solution is also simpler: status must be a string, and
strings must be NUL-terminated in a DT. strcmp() would terminate on the
first NUL in *either* of the two strings it compares, so it would never
walk beyond the property boundary in the DTB.

Change-Id: I9d89093432f127c09add6cf5c93a725bc534e5de
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2023-02-03 13:31:22 +00:00
..
tbbr feat(tbbr): increase PK_DER_LEN size 2022-11-14 11:25:01 +01:00
asm_macros_common.S Add support for Branch Target Identification 2019-05-24 14:44:45 +01:00
bl_common.h feat(bl): add interface to query TF-A semantic ver 2022-08-02 16:04:23 -05:00
bl_common.ld.h feat(spmc/lsp): add logical partition framework 2022-05-04 12:07:33 +01:00
debug.h fix(debug): decouple "get_el_str()" from backtrace 2022-11-08 10:10:19 +00:00
desc_image_load.h Add helper to parse BL31 parameters (both versions) 2019-07-23 20:25:34 -07:00
ep_info.h feat(rme): add Realm security state definition 2021-10-01 16:54:44 -05:00
fdt_fixup.h Merge "feat(libfdt): add function to set MAC addresses" into integration 2022-07-08 13:29:58 +02:00
fdt_wrappers.h refactor(fdt): introduce common fdt_node_is_enabled() 2023-02-03 13:31:22 +00:00
feat_detect.h refactor(cpufeat): move helpers into .c file, rename FEAT_STATE_ 2023-01-11 16:02:58 +00:00
image_decompress.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
interrupt_props.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
nv_cntr_ids.h dtsi: Update the nv-counter node in the device tree 2020-08-28 09:50:25 +00:00
param_header.h Replace __ASSEMBLY__ with compiler-builtin __ASSEMBLER__ 2019-08-01 13:14:12 -07:00
romlib.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
runtime_svc.h Switch AARCH32/AARCH64 to __aarch64__ 2019-08-01 13:45:03 -07:00
tf_crc32.h refactor(hw_crc32): renamed hw_crc32 to tf_crc32 2021-08-02 17:15:41 +01:00
uuid.h feat(spmc): add FFA_PARTITION_INFO_GET handler 2022-05-13 15:51:23 +01:00