summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2009-03-12 17:42:20 +0000
committerStefan Reinauer <stepan@openbios.org>2009-03-12 17:42:20 +0000
commit47e42e5ebb8f912553cad57b4eebfccccfed511d (patch)
tree58e98effa31a8456815b8fd0519bf05ffc6b5614
parent30140a59f7c34b583b670401a205338e0c8e3311 (diff)
Fix HIGH_TABLES introduced error when compiling without MP table
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3998 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/arch/i386/boot/tables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/i386/boot/tables.c b/src/arch/i386/boot/tables.c
index 71459570f6..58c5ce896a 100644
--- a/src/arch/i386/boot/tables.c
+++ b/src/arch/i386/boot/tables.c
@@ -122,6 +122,8 @@ struct lb_memory *write_tables(void)
/* copy the smp block to address 0 */
post_code(0x96);
+#if HAVE_MP_TABLE == 1
+
/* The smp table must be in 0-1K, 639K-640K, or 960K-1M */
#if HAVE_LOW_TABLES == 1
new_low_table_end = write_smp_table(low_table_end); // low_table_end is 0x10 at this point
@@ -133,7 +135,6 @@ struct lb_memory *write_tables(void)
}
#endif
-#if HAVE_MP_TABLE == 1
/* Don't write anything in the traditional x86 BIOS data segment,
* for example the linux kernel smp need to use 0x467 to pass reset vector
* or use 0x40e/0x413 for EBDA finding...
@@ -160,7 +161,7 @@ struct lb_memory *write_tables(void)
smp_write_floating_table_physaddr(low_table_end - SMP_FLOATING_TABLE_LEN, mpc_start);
memset((unsigned char *)low_table_end, '\0', mptable_size);
}
-#endif
+#endif /* HAVE_MP_TABLE */
if (low_table_end < 0x500) {
low_table_end = 0x500;