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.
This commit is contained in:
pooka 2008-10-12 22:08:08 +00:00
parent 77195e2b31
commit fac4c8d11a
1 changed files with 18 additions and 2 deletions

View File

@ -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 <sys/cpu_data.h>
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? */