u-boot/scripts/dtc
Matthias Brugger 8076fc298e libfdt: Allow #size-cells of 0
The commit "libfdt: fdt_address_cells() and fdt_size_cells()" introduced
a bug as it consolidated code between the helpers for getting
be 0, and is frequently found so in practice for /cpus.  IEEE1275 only
requires implementations to handle 1..4 for #address-cells, although one
could make a case for #address-cells == #size-cells == 0 being used to
represent a bridge with a single port.

While we're there, it's not totally obvious that the existing implicit
cast of a u32 to int will give the correct results according to strict C,
although it does work in practice.  Straighten that up to cast only after
we've made our range checks.

This is based on upstream commit:
b8d6eca ("libfdt: Allow #size-cells of 0")
but misses the test cases,as we don't implement them in U-Boot.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
2019-10-15 08:40:02 -06:00
..
libfdt libfdt: Allow #size-cells of 0 2019-10-15 08:40:02 -06:00
pylibfdt pylibfdt: Use Python 2 in Makefile 2019-01-15 15:28:45 -05:00
.gitignore scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
checks.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
data.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
dtc-lexer.l scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
dtc-parser.y scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
dtc.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
dtc.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
flattree.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fstree.c scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00
livetree.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
Makefile scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
Makefile.dtc scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00
srcpos.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
srcpos.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
treesource.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
update-dtc-source.sh scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
util.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
util.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
version_gen.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00