diff options
author | Milton Miller <miltonm@bga.com> | 2007-07-07 01:18:54 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-07-07 10:14:42 -0500 |
commit | 445d55d2cc82097dea0feb564cc479c40291fffe (patch) | |
tree | a02807b9d3839c2e44e8892e711f73e142fdce32 | |
parent | 7f45666273f18f2aa9546ba42a083bded463459b (diff) | |
download | dtc-445d55d2cc82097dea0feb564cc479c40291fffe.zip dtc-445d55d2cc82097dea0feb564cc479c40291fffe.tar.gz dtc-445d55d2cc82097dea0feb564cc479c40291fffe.tar.bz2 |
dtc: format memory reserve as pairs on two lines
When writing the memory reserve table in assembly output,
emit both halves of each 64 bit number on a single .long
statement. This results in two lines per memory reserve
slot instead of four, each line contains one field (start
or size).
Signed-off-by: Milton Miller <miltonm@bga.com>
-rw-r--r-- | flattree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -514,10 +514,10 @@ void dt_to_asm(FILE *f, struct boot_info *bi, int version, int boot_cpuid_phys) fprintf(f, "\t.globl\t%s\n", re->label); fprintf(f, "%s:\n", re->label); } - fprintf(f, "\t.long\t0x%08x\n\t.long\t0x%08x\n", + fprintf(f, "\t.long\t0x%08x, 0x%08x\n", (unsigned int)(re->re.address >> 32), (unsigned int)(re->re.address & 0xffffffff)); - fprintf(f, "\t.long\t0x%08x\n\t.long\t0x%08x\n", + fprintf(f, "\t.long\t0x%08x, 0x%08x\n", (unsigned int)(re->re.size >> 32), (unsigned int)(re->re.size & 0xffffffff)); } |