Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include/arm32 Define boolean predicates pmap_pd...
details: https://anonhg.NetBSD.org/src/rev/714db2309caf
branches: trunk
changeset: 516953:714db2309caf
user: rearnsha <rearnsha%NetBSD.org@localhost>
date: Sat Nov 03 00:01:23 2001 +0000
description:
Define boolean predicates pmap_pde_page, pmap_pde_section & pmap_pde_fpage,
which return true if their pde argument is a coarse page, section or
fine page respectively.
diffstat:
sys/arch/arm/include/arm32/pmap.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 5c2bd2fd12ca -r 714db2309caf sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Fri Nov 02 23:58:46 2001 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Sat Nov 03 00:01:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.15 2001/09/13 23:56:01 chris Exp $ */
+/* $NetBSD: pmap.h,v 1.16 2001/11/03 00:01:23 rearnsha Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -200,6 +200,10 @@
#define pmap_pde(m, v) (&((m)->pm_pdir[((vaddr_t)(v) >> PDSHIFT)&4095]))
#define pmap_pte_pa(pte) (*(pte) & PG_FRAME)
#define pmap_pde_v(pde) (*(pde) != 0)
+#define pmap_pde_section(pde) ((*(pde) & L1_MASK) == L1_SECTION)
+#define pmap_pde_page(pde) ((*(pde) & L1_MASK) == L1_PAGE)
+#define pmap_pde_fpage(pde) ((*(pde) & L1_MASK) == L1_FPAGE)
+
#define pmap_pte_v(pte) (*(pte) != 0)
/* Size of the kernel part of the L1 page table */
Home |
Main Index |
Thread Index |
Old Index