From fac4c8d11af6e201e08d214a2d746c6a56d0bce4 Mon Sep 17 00:00:00 2001 From: pooka Date: Sun, 12 Oct 2008 22:08:08 +0000 Subject: [PATCH] Add some shameful kludges for the vax build. Eventually I'd like to use the native kernel machine directory, so don't waste too much effort fighting this now. --- sys/rump/include/machine/cpu.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/sys/rump/include/machine/cpu.h b/sys/rump/include/machine/cpu.h index 152f2cedaf5f..b60c7d7a20ee 100644 --- a/sys/rump/include/machine/cpu.h +++ b/sys/rump/include/machine/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.3 2007/10/31 15:57:20 pooka Exp $ */ +/* $NetBSD: cpu.h,v 1.4 2008/10/12 22:08:08 pooka Exp $ */ /* * Copyright (c) 2007 Antti Kantee. All Rights Reserved. @@ -33,10 +33,26 @@ #include struct cpu_info { - struct cpu_data ci_data; + struct cpu_data ci_data; cpuid_t ci_cpuid; + +/* + * XXX: horrible workaround for vax lock.h. + * I eventually want to nuke rump include/machine, so don't waste + * energy fighting with this. + */ +#ifdef __vax__ + int ci_ipimsgs; +#define IPI_SEND_CNCHAR 0 +#define IPI_DDB 0 +#endif /* __vax__ */ }; +/* more dirty rotten vax kludges */ +#ifdef __vax__ +static __inline void cpu_handle_ipi(void) {} +#endif /* __vax__ */ + extern struct cpu_info rump_cpu; #define curcpu() (&rump_cpu) #define cpu_number() 0 /* XXX: good enuf? */