diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hp300/include/cpu.h | 6 | ||||
-rw-r--r-- | sys/arch/mac68k/include/cpu.h | 12 | ||||
-rw-r--r-- | sys/arch/mvme68k/include/cpu.h | 8 |
3 files changed, 18 insertions, 8 deletions
diff --git a/sys/arch/hp300/include/cpu.h b/sys/arch/hp300/include/cpu.h index 56d22c6a43e..8df6120d17b 100644 --- a/sys/arch/hp300/include/cpu.h +++ b/sys/arch/hp300/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.33 2007/03/15 10:22:29 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.34 2007/05/30 17:10:42 miod Exp $ */ /* $NetBSD: cpu.h,v 1.28 1998/02/13 07:41:51 scottr Exp $ */ /* @@ -51,6 +51,8 @@ */ #include <m68k/cpu.h> +#ifdef _KERNEL + /* * Get interrupt glue. */ @@ -107,6 +109,8 @@ extern int want_resched; /* resched() was called */ extern int astpending; /* need to trap before returning to user mode */ #define aston() (astpending = 1) +#endif /* _KERNEL */ + /* * CTL_MACHDEP definitions. */ diff --git a/sys/arch/mac68k/include/cpu.h b/sys/arch/mac68k/include/cpu.h index dec5f7811e2..f44002158bc 100644 --- a/sys/arch/mac68k/include/cpu.h +++ b/sys/arch/mac68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.43 2007/03/15 10:22:29 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.44 2007/05/30 17:10:44 miod Exp $ */ /* $NetBSD: cpu.h,v 1.45 1997/02/10 22:13:40 scottr Exp $ */ /* @@ -71,6 +71,8 @@ #include <m68k/cpu.h> #define M68K_MMU_MOTOROLA +#ifdef _KERNEL + /* * Get interrupt glue. */ @@ -120,6 +122,8 @@ extern int want_resched; /* resched() was called */ extern int astpending; /* need to trap before returning to user mode */ #define aston() (astpending = 1) +#endif /* _KERNEL */ + #define CPU_CONSDEV 1 #define CPU_MAXID 2 @@ -128,6 +132,8 @@ extern int astpending; /* need to trap before returning to user mode */ { "console_device", CTLTYPE_STRUCT }, \ } +#ifdef _KERNEL + /* values for machineid -- * These are equivalent to the MacOS Gestalt values. */ #define MACH_MACII 6 @@ -202,7 +208,6 @@ extern int astpending; /* need to trap before returning to user mode */ #define MACH_CLASSAV 10 /* A/V Centris/Quadras. */ #define MACH_CLASSQ2 11 /* More Centris/Quadras, different sccA. */ -#ifdef _KERNEL struct mac68k_machine_S { int cpu_model_index; /* @@ -252,7 +257,6 @@ extern unsigned long NuBusBase; /* Base address of NuBus */ extern struct mac68k_machine_S mac68k_machine; extern unsigned long load_addr; -#endif /* _KERNEL */ #define IIOMAPSIZE (0x040000 / PAGE_SIZE) @@ -270,8 +274,6 @@ extern unsigned long load_addr; #define NBMEMSIZE 0x01000000 /* 16 megs per card */ #define NBROMOFFSET 0x00FF0000 /* Last 64K == ROM */ -#ifdef _KERNEL - /* locore.s */ void PCIA(void); diff --git a/sys/arch/mvme68k/include/cpu.h b/sys/arch/mvme68k/include/cpu.h index a7caae93d53..99f07c83839 100644 --- a/sys/arch/mvme68k/include/cpu.h +++ b/sys/arch/mvme68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.26 2007/03/15 10:22:29 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.27 2007/05/30 17:10:44 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -74,7 +74,7 @@ #define M68K_MMU_MOTOROLA #include <m68k/cpu.h> -#ifdef _KERNEL +#ifdef _KERNEL /* * Get interrupt glue. @@ -132,6 +132,8 @@ extern int want_resched; extern int astpending; #define aston() (astpending = 1) +#endif /* _KERNEL */ + /* * CTL_MACHDEP definitions. */ @@ -143,6 +145,8 @@ extern int astpending; { "console_device", CTLTYPE_STRUCT }, \ } +#ifdef _KERNEL + extern vaddr_t intiobase, intiolimit; extern vaddr_t iiomapbase; extern int iiomapsize; |