Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm Sprinkle some static and inline into a couple o...
details: https://anonhg.NetBSD.org/src/rev/da64d8c5c59f
branches: trunk
changeset: 514931:da64d8c5c59f
user: chris <chris%NetBSD.org@localhost>
date: Thu Sep 13 23:56:01 2001 +0000
description:
Sprinkle some static and inline into a couple of functions. Remove dead entries from pmap.h.
diffstat:
sys/arch/arm/arm32/pmap.c | 16 +++++++++-------
sys/arch/arm/include/arm32/pmap.h | 4 +---
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (80 lines):
diff -r dc9d5e9d70d8 -r da64d8c5c59f sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Thu Sep 13 23:51:39 2001 +0000
+++ b/sys/arch/arm/arm32/pmap.c Thu Sep 13 23:56:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.21 2001/09/13 22:45:23 chris Exp $ */
+/* $NetBSD: pmap.c,v 1.22 2001/09/13 23:56:01 chris Exp $ */
/*
* Copyright (c) 2001 Richard Earnshaw
@@ -142,7 +142,7 @@
#include <machine/param.h>
#include <machine/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.21 2001/09/13 22:45:23 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.22 2001/09/13 23:56:01 chris Exp $");
#ifdef PMAP_DEBUG
#define PDEBUG(_lev_,_stat_) \
if (pmap_debug_level >= (_lev_)) \
@@ -258,6 +258,8 @@
static struct vm_page *pmap_alloc_ptp __P((struct pmap *, vaddr_t, boolean_t));
static struct vm_page *pmap_get_ptp __P((struct pmap *, vaddr_t, boolean_t));
+__inline static void pmap_clearbit __P((paddr_t, unsigned int));
+__inline static boolean_t pmap_testbit __P((paddr_t, unsigned int));
extern paddr_t physical_start;
extern paddr_t physical_freestart;
@@ -369,7 +371,7 @@
}
#endif /* PMAP_DEBUG */
-__inline boolean_t
+__inline static boolean_t
pmap_is_curpmap(struct pmap *pmap)
{
if ((curproc && curproc->p_vmspace->vm_map.pmap == pmap)
@@ -3069,10 +3071,10 @@
#endif /* PMAP_DEBUG */
-boolean_t
+__inline static boolean_t
pmap_testbit(pa, setbits)
paddr_t pa;
- int setbits;
+ unsigned int setbits;
{
int bank, off;
@@ -3153,10 +3155,10 @@
* constants and the latter would require an extra inversion at run-time.
*/
-void
+static void
pmap_clearbit(pa, maskbits)
paddr_t pa;
- int maskbits;
+ unsigned int maskbits;
{
struct pv_entry *pv;
struct pv_head *pvh;
diff -r dc9d5e9d70d8 -r da64d8c5c59f sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Thu Sep 13 23:51:39 2001 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Thu Sep 13 23:56:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.14 2001/09/10 21:19:35 chris Exp $ */
+/* $NetBSD: pmap.h,v 1.15 2001/09/13 23:56:01 chris Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -161,8 +161,6 @@
/*
* Functions that we need to export
*/
-extern boolean_t pmap_testbit __P((paddr_t, int));
-extern void pmap_changebit __P((paddr_t, int, int));
extern vaddr_t pmap_map __P((vaddr_t, vaddr_t, vaddr_t, int));
extern void pmap_procwr __P((struct proc *, vaddr_t, int));
#define PMAP_NEED_PROCWR
Home |
Main Index |
Thread Index |
Old Index