Enable IO-APICs by default. It's been tested on a broad spectrum of hardware and
all reports so far have been positive. We fall back to legacy mode in the cases where we can't figure out the correct routing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e49d783eb9
commit
9c1714ec1a
@ -21,7 +21,4 @@
|
||||
# define B_SAFEMODE_DISABLE_LATENCY_CHECK "disable_latency_check"
|
||||
#endif
|
||||
|
||||
#define B_SAFEMODE_ENABLE_IOAPIC "enable_ioapic"
|
||||
// TODO: temprary opt-in, can be removed once IO-APIC code is broadly tested
|
||||
|
||||
#endif /* _SYSTEM_SAFEMODE_DEFS_H */
|
||||
|
@ -578,19 +578,11 @@ smp_add_safemode_menus(Menu *menu)
|
||||
MenuItem *item;
|
||||
|
||||
if (gKernelArgs.arch_args.ioapic_phys != 0) {
|
||||
#if 0
|
||||
menu->AddItem(item = new(nothrow) MenuItem("Disable IO-APIC"));
|
||||
item->SetType(MENU_ITEM_MARKABLE);
|
||||
item->SetData(B_SAFEMODE_DISABLE_IOAPIC);
|
||||
item->SetHelpText("Disables using the IO APIC for interrupt routing, "
|
||||
"forcing the use of the legacy PIC instead.");
|
||||
#else
|
||||
// TODO: This can be removed once IO-APIC code is broadly tested
|
||||
menu->AddItem(item = new(nothrow) MenuItem("Enable IO-APIC"));
|
||||
item->SetType(MENU_ITEM_MARKABLE);
|
||||
item->SetData(B_SAFEMODE_ENABLE_IOAPIC);
|
||||
item->SetHelpText("Enables using the IO APIC for interrupt routing.");
|
||||
#endif
|
||||
}
|
||||
|
||||
if (gKernelArgs.arch_args.apic_phys != 0) {
|
||||
|
@ -538,20 +538,11 @@ ioapic_init(kernel_args* args)
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (get_safemode_boolean(B_SAFEMODE_DISABLE_IOAPIC, false)) {
|
||||
dprintf("io-apics explicitly disabled, not using io-apics for "
|
||||
"interrupt routing\n");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
// TODO: This can be removed once IO-APIC code is broadly tested
|
||||
if (!get_safemode_boolean(B_SAFEMODE_ENABLE_IOAPIC, false)) {
|
||||
dprintf("io-apics not enabled, not using io-apics for interrupt "
|
||||
"routing\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
// load acpi module
|
||||
status_t status;
|
||||
|
Loading…
Reference in New Issue
Block a user