aboutsummaryrefslogtreecommitdiff
path: root/src/mptable.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-08-17 11:03:24 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-08-17 11:03:24 -0400
commit6cb8ba9cb3f8a71ac8e561f477dc2a51a2ecdb7a (patch)
tree2d0fd5ad121a5f8711e1dbc4e1eaaa78482207c1 /src/mptable.c
parent484270d5ec465d1b5c02d8d60df9e46578e408e7 (diff)
downloadseabios-hppa-6cb8ba9cb3f8a71ac8e561f477dc2a51a2ecdb7a.zip
seabios-hppa-6cb8ba9cb3f8a71ac8e561f477dc2a51a2ecdb7a.tar.gz
seabios-hppa-6cb8ba9cb3f8a71ac8e561f477dc2a51a2ecdb7a.tar.bz2
Remove CONFIG_QEMU option - breakout into other options.
Define all the required app names in config.h directly. Control UUID detection via new option - CONFIG_UUID_BACKDOOR. Don't enable mptable on uniprocessor machines (check use to only be done for qemu, but it is needed everywhere). Also add new option CONFIG_SMBIOS.
Diffstat (limited to 'src/mptable.c')
-rw-r--r--src/mptable.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mptable.c b/src/mptable.c
index 5550fd2..7d85399 100644
--- a/src/mptable.c
+++ b/src/mptable.c
@@ -57,7 +57,8 @@ mptable_init(void)
int mp_config_table_size;
int smp_cpus = smp_probe();
- if (CONFIG_QEMU && smp_cpus <= 1)
+ if (smp_cpus <= 1)
+ // Building an mptable on uniprocessor machines confuses some OSes.
return;
bios_table_cur_addr = ALIGN(bios_table_cur_addr, 16);
@@ -67,10 +68,7 @@ mptable_init(void)
putle16(&q, 0); /* table length (patched later) */
putb(&q, 4); /* spec rev */
putb(&q, 0); /* checksum (patched later) */
- if (CONFIG_QEMU)
- putstr(&q, "QEMUCPU "); /* OEM id */
- else
- putstr(&q, "BOCHSCPU");
+ putstr(&q, CONFIG_CPUNAME8); /* OEM id */
putstr(&q, "0.1 "); /* vendor id */
putle32(&q, 0); /* OEM table ptr */
putle16(&q, 0); /* OEM table size */