summaryrefslogtreecommitdiffstats
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-22 15:14:56 +0000
committerpeter <peter@FreeBSD.org>1999-11-22 15:14:56 +0000
commitbaa766d3eefec1e8e8d5dcace34c938c59c407d3 (patch)
treea976f6d26fe4c2646cb58d0981b6dd6c09520541 /sys/alpha/include
parent357fe49e4fa547c9d7b1c7c821b9c7709ea0cd14 (diff)
downloadFreeBSD-src-baa766d3eefec1e8e8d5dcace34c938c59c407d3.zip
FreeBSD-src-baa766d3eefec1e8e8d5dcace34c938c59c407d3.tar.gz
Zap some latent problems hidden by differences between KERNEL and _KERNEL.
The KAME code intruduces _KERNEL, which exposes some of them.
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/asm.h2
-rw-r--r--sys/alpha/include/cpu.h2
-rw-r--r--sys/alpha/include/param.h17
-rw-r--r--sys/alpha/include/prom.h2
-rw-r--r--sys/alpha/include/pte.h13
-rw-r--r--sys/alpha/include/rpb.h5
6 files changed, 4 insertions, 37 deletions
diff --git a/sys/alpha/include/asm.h b/sys/alpha/include/asm.h
index d003ca9..47b2a2c 100644
--- a/sys/alpha/include/asm.h
+++ b/sys/alpha/include/asm.h
@@ -635,4 +635,4 @@ label: ASCIZ msg; \
#define __KERNEL_RCSID(_n, _s) /* nothing */
#endif
-#endif /* _KERNEL */
+#endif /* KERNEL */
diff --git a/sys/alpha/include/cpu.h b/sys/alpha/include/cpu.h
index 12436a1..d3f24c2 100644
--- a/sys/alpha/include/cpu.h
+++ b/sys/alpha/include/cpu.h
@@ -176,6 +176,6 @@ void syscall __P((u_int64_t, struct trapframe *));
void trap __P((unsigned long, unsigned long, unsigned long, unsigned long,
struct trapframe *));
-#endif /* _KERNEL */
+#endif /* KERNEL */
#endif /* _ALPHA_CPU_H_ */
diff --git a/sys/alpha/include/param.h b/sys/alpha/include/param.h
index 41d0509..53a610a 100644
--- a/sys/alpha/include/param.h
+++ b/sys/alpha/include/param.h
@@ -165,20 +165,3 @@
#define alpha_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
-
-#ifdef _KERNEL
-#ifndef _LOCORE
-
-void delay __P((unsigned long));
-#define DELAY(n) delay(n)
-
-/* XXX THE FOLLOWING PROTOTYPE BELONGS IN INTR.H */
-int spl0 __P((void)); /* drop ipl to zero */
-/* XXX END INTR.H */
-
-/* XXX THE FOLLOWING PROTOTYPE SHOULD BE A BUS.H INTERFACE */
-vm_offset_t alpha_XXX_dmamap __P((vm_offset_t));
-/* XXX END BUS.H */
-
-#endif
-#endif /* !_KERNEL */
diff --git a/sys/alpha/include/prom.h b/sys/alpha/include/prom.h
index 63763e4..5c48e64 100644
--- a/sys/alpha/include/prom.h
+++ b/sys/alpha/include/prom.h
@@ -102,5 +102,5 @@ int promcncheckc __P((dev_t));
u_int64_t prom_dispatch __P((u_int64_t, u_int64_t, u_int64_t, u_int64_t,
u_int64_t));
void init_bootstrap_console __P((void));
-#endif /* _KERNEL */
+#endif /* KERNEL */
#endif /* ASSEMBLER */
diff --git a/sys/alpha/include/pte.h b/sys/alpha/include/pte.h
index 8ceb6a5..6899dde 100644
--- a/sys/alpha/include/pte.h
+++ b/sys/alpha/include/pte.h
@@ -94,17 +94,4 @@ typedef alpha_pt_entry_t pt_entry_t;
#define ALPHA_STSIZE ((u_long)PAGE_SIZE) /* 8k */
#define ALPHA_MAX_PTSIZE ((u_long)(NPTEPG * NBPG)) /* 8M */
-#ifdef _KERNEL
-/*
- * Kernel virtual address to Sysmap entry and visa versa.
- */
-#define kvtopte(va) \
- (Sysmap + (((vm_offset_t)(va) - VM_MIN_KERNEL_ADDRESS) >> PGSHIFT))
-#define ptetokv(pte) \
- ((((pt_entry_t *)(pte) - Sysmap) << PGSHIFT) + VM_MIN_KERNEL_ADDRESS)
-
-extern pt_entry_t *Lev1map; /* Alpha Level One page table */
-extern pt_entry_t *Sysmap; /* kernel pte table */
-extern vm_size_t Sysmapsize; /* number of pte's in Sysmap */
-#endif
#endif
diff --git a/sys/alpha/include/rpb.h b/sys/alpha/include/rpb.h
index 33846e7..75c0c5b 100644
--- a/sys/alpha/include/rpb.h
+++ b/sys/alpha/include/rpb.h
@@ -1,4 +1,5 @@
/* $NetBSD: rpb.h,v 1.20 1998/04/15 00:47:33 mjacob Exp $ */
+/* $FreeBSD$ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -429,8 +430,4 @@ struct dsrdb {
*/
#define HWRPB_DSRDB_MINVERS 5
-#ifdef _KERNEL
-int cputype;
-#endif
-
#endif /* ASSEMBLER */
OpenPOWER on IntegriCloud