diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-10-23 07:20:43 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-10-23 07:20:43 +0000 |
commit | b20c19bc667aef513fa9f5449df2d4a833e42d3d (patch) | |
tree | 8fc37a55848ad367da0d0d422b2b9a90e107edc2 /sys/i386/include/xen | |
parent | ea4a9c958548a61ba7a299ab941ae4794e09faf0 (diff) | |
download | FreeBSD-src-b20c19bc667aef513fa9f5449df2d4a833e42d3d.zip FreeBSD-src-b20c19bc667aef513fa9f5449df2d4a833e42d3d.tar.gz |
Fix IPI support
Diffstat (limited to 'sys/i386/include/xen')
-rw-r--r-- | sys/i386/include/xen/xen-os.h | 5 | ||||
-rw-r--r-- | sys/i386/include/xen/xen_intr.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/sys/i386/include/xen/xen-os.h b/sys/i386/include/xen/xen-os.h index 3ea0556..98341b6 100644 --- a/sys/i386/include/xen/xen-os.h +++ b/sys/i386/include/xen/xen-os.h @@ -77,10 +77,7 @@ static inline void rep_nop(void) #define __builtin_expect(x, expected_value) (x) #endif -#define DEFINE_PER_CPU(type, name) \ - __typeof__(type) per_cpu__##name - -#define per_cpu(var, cpu) (*((void)cpu, &per_cpu__##var)) +#define per_cpu(var, cpu) (pcpu_find((cpu))->pc_ ## var) /* crude memory allocator for memory allocation early in * boot diff --git a/sys/i386/include/xen/xen_intr.h b/sys/i386/include/xen/xen_intr.h index 8ee4a45..a0e6c88 100644 --- a/sys/i386/include/xen/xen_intr.h +++ b/sys/i386/include/xen/xen_intr.h @@ -43,7 +43,7 @@ extern int bind_virq_to_irqhandler(unsigned int virq, unsigned int cpu, const ch extern int bind_ipi_to_irqhandler(unsigned int ipi, unsigned int cpu, const char *devname, - driver_intr_t handler, + driver_filter_t handler, unsigned long irqflags); extern int bind_interdomain_evtchn_to_irqhandler(unsigned int remote_domain, |