Commit 91aec2e1 authored by Tom Rini's avatar Tom Rini

Make sure that when we boot on 8xx/4xx/8260, our bootinfo is as close

to the link address as possible to make sure it's in a mapped area.
parent efe80e09
...@@ -44,6 +44,7 @@ SECTIONS ...@@ -44,6 +44,7 @@ SECTIONS
{ {
*(.data) *(.data)
*(.data1) *(.data1)
*(.data.boot)
*(.sdata) *(.sdata)
*(.sdata2) *(.sdata2)
*(.got.plt) *(.got) *(.got.plt) *(.got)
......
...@@ -59,7 +59,9 @@ char netroot_string[] = "root=/dev/nfs rw ip=auto"; ...@@ -59,7 +59,9 @@ char netroot_string[] = "root=/dev/nfs rw ip=auto";
/* Serial port to use. */ /* Serial port to use. */
unsigned long com_port; unsigned long com_port;
bd_t hold_resid_buf; /* We need to make sure that this is before the images to ensure
* that it's in a mapped location. - Tom */
bd_t hold_resid_buf __attribute__ ((__section__ (".data.boot")));
bd_t *hold_residual = &hold_resid_buf; bd_t *hold_residual = &hold_resid_buf;
extern unsigned long serial_init(int chan, bd_t *bp); extern unsigned long serial_init(int chan, bd_t *bp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment