diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-08 08:09:45 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-08 08:09:45 +0000 |
commit | 95da2243c76760307b218cb7f05645e68a73e8af (patch) | |
tree | 594a78dc6e16ba4f07e3c1bc9c44def6966cf19e /sys/dev/ksyms.c | |
parent | 0579d34f9bf07b4a6bfebb51a83de3ac8356c01f (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/dev/ksyms.c')
-rw-r--r-- | sys/dev/ksyms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ksyms.c b/sys/dev/ksyms.c index f24b1edc708..86cd4c8d3b0 100644 --- a/sys/dev/ksyms.c +++ b/sys/dev/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.7 2001/02/12 13:28:04 art Exp $ */ +/* $OpenBSD: ksyms.c,v 1.8 2001/06/08 08:09:36 art Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> * Copyright (c) 2001 Artur Grabowski <art@openbsd.org> @@ -228,8 +228,8 @@ ksymsmmap(dev, off, prot) va = (vaddr_t)ksym_syms + off; } - if ((pa = pmap_extract(pmap_kernel, va)) == 0) - panic("ksymsmmap: null pa"); + if (pmap_extract(pmap_kernel, va, &pa) == FALSE) + panic("ksymsmmap: unmapped page"); return atop(pa); } |