summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-01-20 18:14:40 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-01-20 18:14:40 +0000
commite5cbaf59fed6dd86eeb12180a73fc7e5af961aa8 (patch)
tree49393d8a4c1f92fa98ad715018aeda20864a9528 /sys/arch
parenta51bc804544ef1f0b2c7709e0578cd7d13e7afe5 (diff)
Nothing in this file requires <sys/queue.h>. While here remove old and
unused typedef & external definitions.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/powerpc/include/pte.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/arch/powerpc/include/pte.h b/sys/arch/powerpc/include/pte.h
index 652a66471bd..62ded11f9d1 100644
--- a/sys/arch/powerpc/include/pte.h
+++ b/sys/arch/powerpc/include/pte.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pte.h,v 1.9 2005/12/17 07:31:26 miod Exp $ */
+/* $OpenBSD: pte.h,v 1.10 2015/01/20 18:14:39 mpi Exp $ */
/* $NetBSD: pte.h,v 1.1 1996/09/30 16:34:32 ws Exp $ */
/*-
@@ -35,8 +35,6 @@
#ifndef _POWERPC_PTE_H_
#define _POWERPC_PTE_H_
-#include <sys/queue.h>
-
/*
* Page Table Entries
*/
@@ -97,11 +95,6 @@ struct pte_64 {
#define PTE_RO_64 0x0000000000000003ULL
#define PTE_RW_64 0x0000000000000002ULL
-#ifndef _LOCORE
-typedef struct pte_32 pte32_t;
-typedef struct pte_64 pte64_t;
-#endif /* _LOCORE */
-
/*
* Extract bits from address
*/
@@ -112,13 +105,6 @@ typedef struct pte_64 pte64_t;
#define ADDR_API_SHIFT_64 16
#define ADDR_POFF 0x00000fff
-#ifndef _LOCORE
-#ifdef _KERNEL
-extern struct pte *ptable;
-extern int ptab_cnt;
-#endif /* _KERNEL */
-#endif /* _LOCORE */
-
/*
* Bits in DSISR:
*/
@@ -139,10 +125,4 @@ extern int ptab_cnt;
#define ISSRR1_PROTECT 0x08000000
#define ISSRR1_SEGMENT 0x00200000
-#ifdef _KERNEL
-#ifndef _LOCORE
-extern u_int dsisr(void);
-extern vaddr_t dar(void);
-#endif /* _KERNEL */
-#endif /* _LOCORE */
#endif /* _POWERPC_PTE_H_ */