summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-07-31 00:42:07 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2010-07-31 00:42:07 +0200
commit811976dcd36e87adab53bb3eb0efb0fe8a4f41ba (patch)
tree528b09a96c4f21585394078f1d911ec6131f6624
parent708f2ada7dccbc942fd5e188c4246be8a0c0394f (diff)
xilinx-s3adsp: Fix loading of raw binaries.
Set high to a word aligned address beyond loaded image. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
-rw-r--r--hw/petalogix_s3adsp1800_mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c
index 70b6a36e1..cd043d371 100644
--- a/hw/petalogix_s3adsp1800_mmu.c
+++ b/hw/petalogix_s3adsp1800_mmu.c
@@ -184,6 +184,7 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size,
kernel_size = load_image_targphys(kernel_filename, ddr_base,
ram_size);
boot_info.bootstrap_pc = ddr_base;
+ high = (ddr_base + kernel_size + 3) & ~3;
}
boot_info.cmdline = high + 4096;