diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 22:19:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 22:19:58 +0000 |
commit | 241a39691be0fa00618cad88a10514ff509ff593 (patch) | |
tree | 08261f0c72647d6aebbede5fa0f9a41cde5e83ae /sys | |
parent | b39f9b52a5d038474664a377871f4312657dbef8 (diff) |
Remove unused defines and macros.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m68k/include/pte_motorola.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/sys/arch/m68k/include/pte_motorola.h b/sys/arch/m68k/include/pte_motorola.h index dcf9f5a490d..79e69583577 100644 --- a/sys/arch/m68k/include/pte_motorola.h +++ b/sys/arch/m68k/include/pte_motorola.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte_motorola.h,v 1.4 2003/06/02 23:27:48 millert Exp $ */ +/* $OpenBSD: pte_motorola.h,v 1.5 2005/09/25 22:19:57 miod Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -45,37 +45,6 @@ * m68k hardware with motorola MMU segment/page table entries */ -#if 0 -struct ste { - unsigned int sg_pfnum:20; /* page table frame number */ - unsigned int :8; /* reserved at 0 */ - unsigned int :1; /* reserved at 1 */ - unsigned int sg_prot:1; /* write protect bit */ - unsigned int sg_v:2; /* valid bits */ -}; - -struct ste40 { - unsigned int sg_ptaddr:24; /* page table page addr */ - unsigned int :4; /* reserved at 0 */ - unsigned int sg_u; /* hardware modified (dirty) bit */ - unsigned int sg_prot:1; /* write protect bit */ - unsigned int sg_v:2; /* valid bits */ -}; - -struct pte { - unsigned int pg_pfnum:20; /* page frame number or 0 */ - unsigned int :3; - unsigned int pg_w:1; /* is wired */ - unsigned int :1; /* reserved at zero */ - unsigned int pg_ci:1; /* cache inhibit bit */ - unsigned int :1; /* reserved at zero */ - unsigned int pg_m:1; /* hardware modified (dirty) bit */ - unsigned int pg_u:1; /* hardware used (reference) bit */ - unsigned int pg_prot:1; /* write protect bit */ - unsigned int pg_v:2; /* valid bit */ -}; -#endif - typedef int st_entry_t; /* segment table entry */ typedef int pt_entry_t; /* Mach page table entry */ @@ -140,9 +109,5 @@ typedef int pt_entry_t; /* Mach page table entry */ */ #define kvtopte(va) \ (&Sysmap[((unsigned)(va) - VM_MIN_KERNEL_ADDRESS) >> PGSHIFT]) -#define ptetokv(pt) \ - ((((pt_entry_t *)(pt) - Sysmap) << PGSHIFT) + VM_MIN_KERNEL_ADDRESS) -#define kvtophys(va) \ - ((kvtopte(va)->pg_pfnum << PGSHIFT) | ((int)(va) & PGOFSET)) #endif /* !_PTE_MOTOROLA_H_ */ |