Mirror of DTC
Find a file
David Gibson f7497dc6be dtc: Don't force alignment of cell list data
At present, defining a property as, say:
	foo = [abcd], <ffffffff>;

Will cause dtc to insert 2 bytes of zeros between the abcd and the
ffffffff, to align the cell form data.

Doing so seemed like a good idea at the time, but I don't believe
there are any users who actually rely on this behaviour.  Segher
claims that OF has some defined bindings which include properties an
unaligned subsection of which is interpreted as 32-bit ints (i.e. like
cell data).

Worse, this alignment will cause nothing but pain when we add
expression support to dtc (when celldata is included in a larger
bytestring expession, we won't know the size of the preceding chunk of
the expression until it's evaluated, so we would have to carry
alignment fixup information right through the expression evaluation
process).

Therefore, this patch kills off this alignment behaviour.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-11-05 08:42:10 -06:00
Documentation dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
libfdt libfdt: Handle v16 and re-ordered trees for r/w 2007-11-01 08:03:31 -05:00
scripts Add DTC release version information. 2007-07-07 13:52:25 -05:00
tests libfdt: Handle v16 and re-ordered trees for r/w 2007-11-01 08:03:31 -05:00
.gitignore Merge libfdt into dtc. 2007-06-14 15:05:55 +10:00
checks.c dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
comment-test.dts Initial label support. Also switch to glr-parser mode and get rid of 2005-06-16 14:36:37 +10:00
data.c dtc: data.c doesn't need to include dtc-parser.tab.h 2007-10-22 09:54:16 -05:00
dtc-lexer.l dtc: Improve support for string escapes 2007-10-16 08:10:15 -05:00
dtc-parser.y dtc: Don't force alignment of cell list data 2007-11-05 08:42:10 -06:00
dtc.c dtc: Disable semantic checks by default 2007-10-22 09:53:15 -05:00
dtc.h dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
flattree.c Quiet a bogus "May be used uninitialized" warning. 2007-10-23 10:13:00 -05:00
fstree.c dtc: Whitespace cleanup 2007-09-18 09:43:26 -05:00
ftdump.c dtc: Use libfdt/fdt.h instead of flat_dt.h 2007-09-27 08:21:18 -05:00
GPL dtc: Remove redundant copy of the GPL 2007-06-25 21:43:11 -05:00
livetree.c dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
Makefile dtc: Don't include libfdt in global LDFLAGS 2007-11-05 08:40:52 -06:00
Makefile.dtc dtc: Move tree checking code to checks.c 2007-11-01 08:03:37 -05:00
srcpos.c DTC: Add support for a C-like #include "file" mechanism. 2007-03-26 08:36:07 -05:00
srcpos.h dtc: move declaration of yyerror 2007-07-07 10:07:27 -05:00
TODO Update TODO 2005-10-19 16:29:52 +10:00
treesource.c dtc: Make -Idts -Odts preserve node/property labels 2007-11-05 08:41:23 -06:00