aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/cpu.h
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2014-06-16 08:43:03 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2014-06-16 08:43:03 +0000
commitef409ede7b508caa95133fe086c0b4a6684b2c3c (patch)
treebad88a87c2bb4d2feaa6b0de59821f5c2a2f1465 /sys/amd64/include/cpu.h
parent5f35f84fa0f720d1ee29b6bfb62c8a0ec6d3d7b1 (diff)
downloadsrc-ef409ede7b508caa95133fe086c0b4a6684b2c3c.tar.gz
src-ef409ede7b508caa95133fe086c0b4a6684b2c3c.zip
amd64/i386: introduce APIC hooks for different APIC implementations.
This is needed for Xen PV(H) guests, since there's no hardware lapic available on this kind of domains. This commit should not change functionality. Sponsored by: Citrix Systems R&D Reviewed by: jhb Approved by: gibbs amd64/include/cpu.h: amd64/amd64/mp_machdep.c: i386/include/cpu.h: i386/i386/mp_machdep.c: - Remove lapic_ipi_vectored hook from cpu_ops, since it's now implemented in the lapic hooks. amd64/amd64/mp_machdep.c: i386/i386/mp_machdep.c: - Use lapic_ipi_vectored directly, since it's now an inline function that will call the appropiate hook. x86/x86/local_apic.c: - Prefix bare metal public lapic functions with native_ and mark them as static. - Define default implementation of apic_ops. x86/include/apicvar.h: - Declare the apic_ops structure and create inline functions to access the hooks, so the change is transparent to existing users of the lapic_ functions. x86/xen/hvm.c: - Switch to use the new apic_ops.
Notes
Notes: svn path=/head/; revision=267526
Diffstat (limited to 'sys/amd64/include/cpu.h')
-rw-r--r--sys/amd64/include/cpu.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h
index 3c5d5df86fcf..eb9bef8f2e72 100644
--- a/sys/amd64/include/cpu.h
+++ b/sys/amd64/include/cpu.h
@@ -63,7 +63,6 @@
struct cpu_ops {
void (*cpu_init)(void);
void (*cpu_resume)(void);
- void (*ipi_vectored)(u_int, int);
};
extern struct cpu_ops cpu_ops;