From d3817027657e9958371328fe59d92fe3ff265c14 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 12 Jul 2008 12:46:07 -0400 Subject: [PATCH] Add option to disable mptable generation. --- src/config.h | 13 +++++++++---- src/mptable.c | 3 +++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/config.h b/src/config.h index 649aa61..596df24 100644 --- a/src/config.h +++ b/src/config.h @@ -26,17 +26,22 @@ #define CONFIG_PS2_MOUSE 1 #define CONFIG_ATA 1 #define CONFIG_KBD_CALL_INT15_4F 1 +// Support for booting from a CD #define CONFIG_CDROM_BOOT 1 +// Support for emulating a boot CD as a floppy/harddrive #define CONFIG_CDROM_EMU 1 -// Support generation of a PIR table in 0xf000 segment (for emulators) -#define CONFIG_PIRTABLE 1 -// Support generation of ACPI PIR tables (for emulators) -#define CONFIG_ACPI 1 // Support int 1a/b1 PCI BIOS calls #define CONFIG_PCIBIOS 1 // Support int 15/53 APM BIOS calls #define CONFIG_APMBIOS 1 +// Support generation of a PIR table in 0xf000 segment (for emulators) +#define CONFIG_PIRTABLE 1 +// Support generation of MPTable (for emulators) +#define CONFIG_MPTABLE 1 +// Support generation of ACPI tables (for emulators) +#define CONFIG_ACPI 1 + /* define it if the (emulated) hardware supports SMM mode */ #define CONFIG_USE_SMM 1 diff --git a/src/mptable.c b/src/mptable.c index 90b8d2f..5550fd2 100644 --- a/src/mptable.c +++ b/src/mptable.c @@ -49,6 +49,9 @@ static void putle32(u8 **pp, int val) void mptable_init(void) { + if (! CONFIG_MPTABLE) + return; + u8 *mp_config_table, *q, *float_pointer_struct; int ioapic_id, i, len; int mp_config_table_size; -- 2.25.1