summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-09-11 22:29:48 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-09-11 22:29:48 +0000
commit4fc8de0dfb7682660a206a23c43d6430fdd5b0c2 (patch)
treec8ec4e5802a491c57b69c6fc89c3ee9998cada83 /sys
parent607688a7df6f3a21c0b3f4463871586443ee3c00 (diff)
When freeing the extent, include the page offset, not just the page
base. This is important when allocating/freeing sub page size mappings.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/macppc/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c
index 2ba3ed28d77..0b55a10a21a 100644
--- a/sys/arch/macppc/macppc/machdep.c
+++ b/sys/arch/macppc/macppc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.39 2002/09/06 13:42:17 drahn Exp $ */
+/* $OpenBSD: machdep.c,v 1.40 2002/09/11 22:29:47 drahn Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -1177,7 +1177,7 @@ bus_space_unmap(t, bsh, size)
len = size+off;
if (pmap_extract(pmap_kernel(), sva, &bpa) == TRUE) {
- if (extent_free(devio_ex, bpa, size, EX_NOWAIT |
+ if (extent_free(devio_ex, bpa | (bsh & PAGE_MASK), size, EX_NOWAIT |
(ppc_malloc_ok ? EX_MALLOCOK : 0)))
{
printf("bus_space_map: pa 0x%x, size 0x%x\n",