aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-12-10 21:27:36 -0500
committerDavid Gibson <david@gibson.dropbear.id.au>2020-12-16 16:52:05 +1100
commita7c40409934971ac1bd934ccc411bc6932b86564 (patch)
tree184bf3605132deef78e5d2cc46f2949a4cec1062 /data.c
parentbab85e48a6f4c32a9e8ab201cdaf4a0568c74da7 (diff)
downloaddtc-a7c40409934971ac1bd934ccc411bc6932b86564.zip
dtc-a7c40409934971ac1bd934ccc411bc6932b86564.tar.gz
dtc-a7c40409934971ac1bd934ccc411bc6932b86564.tar.bz2
libfdt: Internally perform potentially unaligned loads
Commits 6dcb8ba4 "libfdt: Add helpers for accessing unaligned words" introduced changes to support unaligned reads for ARM platforms and 11738cf01f15 "libfdt: Don't use memcpy to handle unaligned reads on ARM" improved the performance of these helpers. On further discussion, while there are potential cases where we could be used on platforms that do not fixup unaligned reads for us, making this choice the default is very expensive in terms of binary size and access time. To address this, introduce and use new fdt{32,64}_ld_ functions that call fdt{32,64}_to_cpu() as was done prior to the above mentioned commits. Leave the existing load functions as unaligned-safe and include comments in both cases. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Tom Rini <trini@konsulko.com> Message-Id: <20201211022736.31657-1-trini@konsulko.com> Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'data.c')
0 files changed, 0 insertions, 0 deletions