diff options
author | 2002-09-11 22:29:47 +0000 | |
---|---|---|
committer | 2002-09-11 22:29:47 +0000 | |
commit | 48b589edacb45b4a68d8215c0b1882d97fbe1044 (patch) | |
tree | 49edec5912f3d1b465a39bb2730e45f1c0acb4ab | |
parent | Pass ld the -R flag to add directories to the list of places to (diff) | |
download | wireguard-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.c | 4 |
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", |