aboutsummaryrefslogtreecommitdiff
path: root/src/stream
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2005-09-23 17:08:58 +0000
committerRonald G. Minnich <rminnich@gmail.com>2005-09-23 17:08:58 +0000
commit87888630b27ae64218abc1abcf06a213eb342d97 (patch)
treedacc71f2b82b9619f81995cd1c2871d6096a6c38 /src/stream
parenta25120a30fd1738fada2df0d5528430f9f9070c1 (diff)
sc520 support -- ethernet works
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2047 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/stream')
-rw-r--r--src/stream/rom_stream.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/stream/rom_stream.c b/src/stream/rom_stream.c
index 5ac4cd9dbe..7a662d019e 100644
--- a/src/stream/rom_stream.c
+++ b/src/stream/rom_stream.c
@@ -9,8 +9,18 @@
#define CONFIG_ROM_STREAM_START 0xffff0000UL
#endif
-static const unsigned char *rom_start = (void *)CONFIG_ROM_STREAM_START;
-static const unsigned char *rom_end = (void *)(CONFIG_ROM_STREAM_START + PAYLOAD_SIZE - 1);
+/* well, this is a mess, and it will get fixed, but not right away.
+ * until we stop using 'ld' for building the rom image, that is.
+ * problem is, that on the sc520, ROM_STREAM_START has to be at 0x2000000.
+ * but if you set CONFIG_ROM_STREAM_START to that, then ld will try to
+ * build a giant image: 0x0-0x2000000, i.e. almost 4 GB.
+ * so make this non-static, non-const for now.
+ */
+
+/*XXXXXXXXXXXXXX */
+/*static const */unsigned char *rom_start = (void *)CONFIG_ROM_STREAM_START;
+/*static const */unsigned char *rom_end = (void *)(CONFIG_ROM_STREAM_START + PAYLOAD_SIZE - 1);
+/*XXXXXXXXXXXXXX */
static const unsigned char *rom;
int stream_init(void)