]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64/i386: switch IPI handlers to C code.
authorroyger <royger@FreeBSD.org>
Tue, 11 Mar 2014 10:03:29 +0000 (10:03 +0000)
committerroyger <royger@FreeBSD.org>
Tue, 11 Mar 2014 10:03:29 +0000 (10:03 +0000)
commit27026f4f2afc8cf9ffb8d965b2b70a91fd318239
treede7c70fd26a74d2aeb30a2eb1463f50c404b1099
parent585518d12d0c7c0024e23e14768a134803a83b2d
amd64/i386: switch IPI handlers to C code.

Move asm IPIs handlers to C code, so both Xen and native IPI handlers
share the same code.

Reviewed by: jhb
Approved by: gibbs
Sponsored by: Citrix Systems R&D

amd64/amd64/apic_vector.S:
i386/i386/apic_vector.s:
 - Remove asm coded IPI handlers and instead call the newly introduced
   C variants.

amd64/amd64/mp_machdep.c:
i386/i386/mp_machdep.c:
 - Add C coded clones to the asm IPI handlers (moved from
   x86/xen/hvm.c).

i386/include/smp.h:
amd64/include/smp.h:
 - Add prototypes for the C IPI handlers.

x86/xen/hvm.c:
 - Move the C IPI handlers to mp_machdep and call those in the Xen IPI
   handlers.

i386/xen/mp_machdep.c:
 - Add dummy IPI handlers to the i386 Xen PV port (this port doesn't
   support SMP).
sys/amd64/amd64/apic_vector.S
sys/amd64/amd64/mp_machdep.c
sys/amd64/include/smp.h
sys/i386/i386/apic_vector.s
sys/i386/i386/mp_machdep.c
sys/i386/include/smp.h
sys/i386/xen/mp_machdep.c
sys/x86/xen/hvm.c