haiku/src/system
Michael Lotz 8908aef9c2 * Don't map the IO-APIC within the bootloader. We don't need it to set up SMP
at all and, since there can be multiple IO-APICs, we need to do the
  enumeration again in the kernel anyway. Also only set ioapic_phys the first
  time we encounter an IO-APIC object as it looks cleaner when we arrive at the
  first IO-APIC default address.
* Therefore we don't have to worry about already mapped IO-APICs when
  enumerating them in the kernel.
* Also remove the mapping function that is now not used anymore.
* We still use the ioapic_phys field of the kernel args to determine whether
  there is an IO-APIC at all to avoid needlessly doing the enumeration again.

This fixes multi IO-APIC configurations, because before we would indeed map
the last IO-APIC listed in the MADT, but then in the kernel assumed we mapped
the first one. We'd end up with mapping the last listed IO-APIC twice and the
first IO-APIC never, always programming the last one when we actually targetted
the first one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-13 16:31:31 +00:00
..
boot * Don't map the IO-APIC within the bootloader. We don't need it to set up SMP 2011-05-13 16:31:31 +00:00
glue * Merged weak-symbols branch. 2010-11-22 13:06:36 +00:00
kernel * Don't map the IO-APIC within the bootloader. We don't need it to set up SMP 2011-05-13 16:31:31 +00:00
ldscripts Fix aligment of data segment, by moving our ARM ldscript closer to the X86 one. This restores 2011-03-13 23:17:29 +00:00
libroot Fix the larger problem that was hiding behind the build problem of set_haiku_revsion on FreeBSD: 2011-05-10 15:35:04 +00:00
runtime_loader find_undefined_symbol_add_on(): Resolve non-weak symbols defined in the add-on 2011-01-19 11:59:03 +00:00
Jamfile Reorganized building of kernel, boot loader, and libroot. 2005-11-27 00:27:19 +00:00