summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-01-01 01:12:55 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-01-01 01:12:55 +0000
commit1ffe295bd1669d45075f419893cfe887ccc6f9d4 (patch)
tree0e2f9ca2fc4fb38fa3b474ea89461e9b2ce06dd7 /sys/arch/m68k
parenta2c29846973e1c2558a519a4313be7108a23181d (diff)
Inline pmap_copy() and pmap_phys_address().
Also get rid of a spurious local initialization in pmap_remove_mapping().
Diffstat (limited to 'sys/arch/m68k')
-rw-r--r--sys/arch/m68k/include/pmap_motorola.h6
-rw-r--r--sys/arch/m68k/m68k/pmap_motorola.c46
2 files changed, 7 insertions, 45 deletions
diff --git a/sys/arch/m68k/include/pmap_motorola.h b/sys/arch/m68k/include/pmap_motorola.h
index 8caf59a8a0e..b5092be61f3 100644
--- a/sys/arch/m68k/include/pmap_motorola.h
+++ b/sys/arch/m68k/include/pmap_motorola.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_motorola.h,v 1.9 2003/06/02 23:27:48 millert Exp $ */
+/* $OpenBSD: pmap_motorola.h,v 1.10 2004/01/01 01:12:52 miod Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@@ -124,8 +124,10 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
+#define pmap_phys_address(frame) ((paddr_t)m68k_ptob(frame))
-#define pmap_update(pmap) /* nothing (yet) */
+#define pmap_copy(dp,sp,d,l,s) do { /* nothing */ } while (0)
+#define pmap_update(pmap) do { /* nothing (yet) */ } while (0)
extern pt_entry_t *Sysmap;
extern char *vmmap; /* map for mem, dumps, etc. */
diff --git a/sys/arch/m68k/m68k/pmap_motorola.c b/sys/arch/m68k/m68k/pmap_motorola.c
index f8f5f79ba23..5c2262639e5 100644
--- a/sys/arch/m68k/m68k/pmap_motorola.c
+++ b/sys/arch/m68k/m68k/pmap_motorola.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_motorola.c,v 1.32 2003/12/26 18:54:24 miod Exp $ */
+/* $OpenBSD: pmap_motorola.c,v 1.33 2004/01/01 01:12:54 miod Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -1537,29 +1537,6 @@ pmap_extract(pmap, va, pap)
}
/*
- * pmap_copy: [ INTERFACE ]
- *
- * Copy the mapping range specified by src_addr/len
- * from the source map to the range dst_addr/len
- * in the destination map.
- *
- * This routine is only advisory and need not do anything.
- */
-void
-pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr)
- pmap_t dst_pmap;
- pmap_t src_pmap;
- vaddr_t dst_addr;
- vsize_t len;
- vaddr_t src_addr;
-{
-
- PMAP_DPRINTF(PDB_FOLLOW,
- ("pmap_copy(%p, %p, %lx, %lx, %lx)\n",
- dst_pmap, src_pmap, dst_addr, len, src_addr));
-}
-
-/*
* pmap_collect: [ INTERFACE ]
*
* Garbage collects the physical map system for pages which are no
@@ -1896,22 +1873,6 @@ pmap_is_modified(pg)
return(pmap_testbit(pg, PG_M));
}
-/*
- * pmap_phys_address: [ INTERFACE ]
- *
- * Return the physical address corresponding to the specified
- * cookie. Used by the device pager to decode a device driver's
- * mmap entry point return value.
- *
- * Note: no locking is necessary in this function.
- */
-paddr_t
-pmap_phys_address(ppn)
- int ppn;
-{
- return(m68k_ptob(ppn));
-}
-
#ifdef M68K_MMU_HP
/*
* pmap_prefer: [ INTERFACE ]
@@ -2138,7 +2099,6 @@ pmap_remove_mapping(pmap, va, pte, flags)
*/
pv = pg_to_pvh(pg);
- ste = ST_ENTRY_NULL;
s = splvm();
/*
@@ -2300,8 +2260,8 @@ pmap_testbit(pg, bit)
pt_entry_t *pte;
int s;
- pv = pg_to_pvh(pg);
s = splvm();
+ pv = pg_to_pvh(pg);
/*
* Check saved info first
@@ -2361,8 +2321,8 @@ pmap_changebit(pg, set, mask)
PMAP_DPRINTF(PDB_BITS,
("pmap_changebit(%lx, %x, %x)\n", pg, set, mask));
- pv = pg_to_pvh(pg);
s = splvm();
+ pv = pg_to_pvh(pg);
/*
* Clear saved attributes (modify, reference)