summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2002-09-11 22:29:47 +0000
committerdrahn <drahn@openbsd.org>2002-09-11 22:29:47 +0000
commit48b589edacb45b4a68d8215c0b1882d97fbe1044 (patch)
tree49edec5912f3d1b465a39bb2730e45f1c0acb4ab
parentPass ld the -R flag to add directories to the list of places to (diff)
downloadwireguard-openbsd-48b589edacb45b4a68d8215c0b1882d97fbe1044.tar.xz
wireguard-openbsd-48b589edacb45b4a68d8215c0b1882d97fbe1044.zip
When freeing the extent, include the page offset, not just the page
base. This is important when allocating/freeing sub page size mappings.
-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",