summaryrefslogtreecommitdiff
path: root/sys/crypto
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-08 08:09:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-08 08:09:45 +0000
commit95da2243c76760307b218cb7f05645e68a73e8af (patch)
tree594a78dc6e16ba4f07e3c1bc9c44def6966cf19e /sys/crypto
parent0579d34f9bf07b4a6bfebb51a83de3ac8356c01f (diff)
Change the paddr_t pmap_extract(struct pmap *, vaddr_t) interface to
boolean_t pmap_extract(struct pmap *, vaddr_t, paddr_t *). Matches NetBSD. Tested by various people on various platforms.
Diffstat (limited to 'sys/crypto')
-rw-r--r--sys/crypto/criov.c8
-rw-r--r--sys/crypto/mbuf.c7
2 files changed, 7 insertions, 8 deletions
diff --git a/sys/crypto/criov.c b/sys/crypto/criov.c
index 200e64456ab..aac023840e6 100644
--- a/sys/crypto/criov.c
+++ b/sys/crypto/criov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: criov.c,v 1.2 2001/05/14 02:45:19 deraadt Exp $ */
+/* $OpenBSD: criov.c,v 1.3 2001/06/08 08:09:35 art Exp $ */
/*
* Copyright (c) 1999 Theo de Raadt
@@ -65,9 +65,9 @@ iov2pages(uio, np, pp, lp, maxp, nicep)
va -= off;
next_page:
- pa = pmap_extract(pmap_kernel(), va);
- if (pa == 0)
- panic("mbuf2pages: pa == 0");
+
+ if (pmap_extract(pmap_kernel(), va, &pa) == TRUE)
+ panic("mbuf2pages: unmapped pages");
pa += off;
diff --git a/sys/crypto/mbuf.c b/sys/crypto/mbuf.c
index 32a714786b6..c67e9bd6156 100644
--- a/sys/crypto/mbuf.c
+++ b/sys/crypto/mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mbuf.c,v 1.3 2000/04/24 04:54:19 deraadt Exp $ */
+/* $OpenBSD: mbuf.c,v 1.4 2001/06/08 08:09:35 art Exp $ */
/*
* Copyright (c) 1999 Theo de Raadt
@@ -64,9 +64,8 @@ mbuf2pages(m, np, pp, lp, maxp, nicep)
va -= off;
next_page:
- pa = pmap_extract(pmap_kernel(), va);
- if (pa == 0)
- panic("mbuf2pages: pa == 0");
+ if (pmap_extract(pmap_kernel(), va, &pa) == FALSE)
+ panic("mbuf2pages: unmapped page");
pa += off;