Jon Loeliger
05ae3d8eeb
Use .long on high and low halfs of u64s to avoid .quad
...
as it appears .quad isn't available in some assemblers.
19 years ago
Jon Loeliger
f7374f60eb
Don't generate the mem-reserve entry for the blob itself,
...
even for ASM output. It was inconsistent with the binary
output form, and kernel folks decided to have the early
kernel perform the reservation itself.
19 years ago
Mark A. Greer
7a9f663ac7
The problem is that asm_emit_cell() was swapping its asm output when
...
it shouldn't be (because the assembler will do the necessary swapping).
The cell values (asm_emit_cell()) are different from the data values
(asm_emit_data()) because the cell values are generated within the
program and don't get swapped like the data values read from the dts file.
They should be left as they are so that the assembler will swap them,
if necessary. For example, when the property length field was 4,
the asm output contained ".long 0x4000000" and sent the kernel prom.c
dt parsing code into the weeds.
Pointed out by Mark Greer.
19 years ago
David Gibson
712e52e438
Use names for output functions in the form dt_to_*() instead of
...
write_dt_*() for consistency with the dt_from_*() input functions.
19 years ago
David Gibson
f040d95b84
Rework tracking of reserve entries during processing. This is initial work
...
to allow more powerful handling of reserve entries.
19 years ago
David Gibson
6c0f36769a
Fix endian problems with handling of memreserve entries (bug pointed out
...
by Pantelis Antoniou). The rule is that the memreserve data in struct
boot_info is always stored big-endian.
20 years ago
David Gibson
230f253e9b
Remove an unused function, mark a bunch of other functions and variables
...
as static. Mostly found by sparse.
20 years ago
David Gibson
41916138dd
Forgot to realign after emitting auto-generated "name" properties. Oops.
20 years ago
David Gibson
dffc2a8972
Add a couple of missing cpu_to_be32() writing the version numbers out.
20 years ago
David Gibson
4ddf7c020c
In flat tree reading, check for (negative) string offsets which underrun
...
the input blob. (Patch from Michael Ellerman).
20 years ago
David Gibson
f0517db250
Support for specifying memreserve ranges in the source format, based on
...
a patch by Jon Loeliger <jdl AT freescale.com>, although tweaked
substantially.
20 years ago
David Gibson
586606e35d
Oops, fix stupid bug where we emitted padding before, rather than after
...
the blob header.
20 years ago
David Gibson
47f23dee09
Ensure that the reserve map is doubleword aligned in blob and asm output.
20 years ago
David Gibson
a6c69572a3
Remove inaccurate comment.
20 years ago
David Gibson
7ee3ffd43f
Fix bug in error message.
20 years ago
David Gibson
ab870cadb4
First cut at a "libdt" set of routines for extracting things from the
...
flattened tree. Could be used in firmware.
20 years ago
David Gibson
81f2e89c75
Rudimentary phandle reference support.
20 years ago
David Gibson
4102d840d9
Initial label support. Also switch to glr-parser mode and get rid of
...
hacks that were necessary without it.
20 years ago
David Gibson
fc14dad769
Initial commit
20 years ago