summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-10-01 18:58:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-10-01 18:58:10 +0000
commit1173b4bd409e7e437a50878107df575f66fd4aa2 (patch)
tree841da46c3154d15c3fbd445574cab0e35c32b3c1 /sys/arch/m88k
parent07f253751fdc947b9c4695a8e03c54642df44fea (diff)
Get rid of CHECK_PAGE_ALIGN debug macros.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/pmap.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c
index 32ed08aa3d5..f632d5a6d56 100644
--- a/sys/arch/m88k/m88k/pmap.c
+++ b/sys/arch/m88k/m88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.5 2004/09/30 21:48:56 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.6 2004/10/01 18:58:09 miod Exp $ */
/*
* Copyright (c) 2001-2004, Miodrag Vallat
* Copyright (c) 1998-2001 Steve Murphree, Jr.
@@ -107,18 +107,6 @@ extern vaddr_t last_addr;
int pmap_con_dbg = 0;
-/*
- * Alignment checks for pages (must lie on page boundaries).
- */
-#define PAGE_ALIGNED(ad) (((vaddr_t)(ad) & PAGE_MASK) == 0)
-#define CHECK_PAGE_ALIGN(ad, who) \
- if (!PAGE_ALIGNED(ad)) \
- printf("%s: addr %x not page aligned.\n", who, ad)
-
-#else /* DEBUG */
-
-#define CHECK_PAGE_ALIGN(ad, who)
-
#endif /* DEBUG */
struct pool pmappool, pvpool;
@@ -824,8 +812,6 @@ pmap_zero_page(struct vm_page *pg)
int cpu = cpu_number();
pt_entry_t *pte;
- CHECK_PAGE_ALIGN(pa, "pmap_zero_page");
-
va = (vaddr_t)(phys_map_vaddr + 2 * (cpu << PAGE_SHIFT));
pte = pmap_pte(kernel_pmap, va);
@@ -1401,7 +1387,6 @@ next:
*
* Calls:
* PMAP_LOCK, PMAP_UNLOCK
- * CHECK_PAGE_ALIGN
* pmap_pte
* PDT_VALID
*
@@ -1436,8 +1421,6 @@ pmap_protect(pmap_t pmap, vaddr_t s, vaddr_t e, vm_prot_t prot)
users = pmap->pm_cpus;
kflush = pmap == kernel_pmap;
- CHECK_PAGE_ALIGN(s, "pmap_protect");
-
/*
* Loop through the range in vm_page_size increments.
*/
@@ -1521,8 +1504,6 @@ pmap_expand(pmap_t pmap, vaddr_t v)
printf ("(pmap_expand: %x) map %x v %x\n", curproc, pmap, v);
#endif
- CHECK_PAGE_ALIGN(v, "pmap_expand");
-
/* XXX */
pdt_vaddr = uvm_km_zalloc(kernel_map, PAGE_SIZE);
if (pmap_extract(kernel_pmap, pdt_vaddr, &pdt_paddr) == FALSE)
@@ -1647,9 +1628,6 @@ pmap_enter(pmap_t pmap, vaddr_t va, paddr_t pa, vm_prot_t prot, int flags)
boolean_t wired = (flags & PMAP_WIRED) != 0;
struct vm_page *pg;
- CHECK_PAGE_ALIGN(va, "pmap_entry - va");
- CHECK_PAGE_ALIGN(pa, "pmap_entry - pa");
-
#ifdef DEBUG
if (pmap_con_dbg & CD_ENT) {
if (pmap == kernel_pmap)
@@ -2087,9 +2065,6 @@ pmap_copy_page(struct vm_page *srcpg, struct vm_page *dstpg)
pt_entry_t *dstpte, *srcpte;
int cpu = cpu_number();
- CHECK_PAGE_ALIGN(src, "pmap_copy_page - src");
- CHECK_PAGE_ALIGN(dst, "pmap_copy_page - dst");
-
dstva = (vaddr_t)(phys_map_vaddr + 2 * (cpu << PAGE_SHIFT));
srcva = dstva + PAGE_SIZE;
dstpte = pmap_pte(kernel_pmap, dstva);
@@ -2466,9 +2441,6 @@ pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot)
pt_entry_t template, *pte;
u_int users;
- CHECK_PAGE_ALIGN(va, "pmap_kenter_pa - VA");
- CHECK_PAGE_ALIGN(pa, "pmap_kenter_pa - PA");
-
#ifdef DEBUG
if (pmap_con_dbg & CD_ENT) {
printf ("(pmap_kenter_pa: %x) va %x pa %x\n", curproc, va, pa);
@@ -2519,9 +2491,6 @@ pmap_kremove(vaddr_t va, vsize_t len)
printf("(pmap_kremove: %x) va %x len %x\n", curproc, va, len);
#endif
- CHECK_PAGE_ALIGN(va, "pmap_kremove addr");
- CHECK_PAGE_ALIGN(len, "pmap_kremove len");
-
PMAP_LOCK(kernel_pmap, spl);
users = kernel_pmap->pm_cpus;