Compile msi.cpp for x86_64.

Needed to link the PCI module, not enabling it yet though, I'm not
sure whether everything needed for it is in place yet.
This commit is contained in:
Alex Smith
2012-07-20 11:53:46 +01:00
parent 385d69fc01
commit 2865db34c8
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,6 @@ if $(TARGET_ARCH) = x86_64 {
arch_user_debugger.cpp arch_user_debugger.cpp
ioapic.cpp ioapic.cpp
irq_routing_table.cpp irq_routing_table.cpp
msi.cpp
syscall.S syscall.S
x86_signals.cpp x86_signals.cpp
x86_signals_asm.S x86_signals_asm.S
@@ -90,6 +89,7 @@ local archGenericSources =
arch_vm.cpp arch_vm.cpp
arch_vm_translation_map.cpp arch_vm_translation_map.cpp
apic.cpp apic.cpp
msi.cpp
pic.cpp pic.cpp
# paging # paging
+1 -1
View File
@@ -237,8 +237,8 @@ arch_int_init_io(kernel_args* args)
// TODO x86_64 // TODO x86_64
#ifndef __x86_64__ #ifndef __x86_64__
ioapic_init(args); ioapic_init(args);
msi_init();
#endif #endif
msi_init();
return B_OK; return B_OK;
} }
+4
View File
@@ -17,6 +17,10 @@ static bool sMSISupported = false;
void void
msi_init() msi_init()
{ {
#ifdef __x86_64__
// TODO x86_64.
return;
#endif
if (!apic_available()) { if (!apic_available()) {
dprintf("disabling msi due to missing apic\n"); dprintf("disabling msi due to missing apic\n");
return; return;