aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm/kvm_minidump_mips.c
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2017-11-12 01:36:48 +0000
committerWill Andrews <will@FreeBSD.org>2017-11-12 01:36:48 +0000
commit8baaf913be7543273fb411228b26206440c21978 (patch)
treeba4bd20aa477b6d57ebfbab50a512e2acfbd9586 /lib/libkvm/kvm_minidump_mips.c
parent2aa6a4f3c8f0a2c90af82dc2cc79438778d9b405 (diff)
downloadsrc-8baaf913be7543273fb411228b26206440c21978.tar.gz
src-8baaf913be7543273fb411228b26206440c21978.zip
libkvm: fix build failures
Notes
Notes: svn path=/head/; revision=325732
Diffstat (limited to 'lib/libkvm/kvm_minidump_mips.c')
-rw-r--r--lib/libkvm/kvm_minidump_mips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_minidump_mips.c b/lib/libkvm/kvm_minidump_mips.c
index b0594490ff40..3b55202c0974 100644
--- a/lib/libkvm/kvm_minidump_mips.c
+++ b/lib/libkvm/kvm_minidump_mips.c
@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$");
*/
#include <sys/param.h>
+#include <vm/vm.h>
#include <kvm.h>
#include <limits.h>
#include <stdint.h>
@@ -296,6 +297,8 @@ _mips_iterator_next(struct mips_iter *it, u_long *pa, u_long *va, u_long *dva,
* pages are R|X at least.
*/
*prot = VM_PROT_READ | VM_PROT_EXECUTE;
+ *pa = 0;
+ *va = 0;
*dva = 0;
for (;it->pteindex < it->nptes && found == 0; it->pteindex++) {
if (vm->pte_size == 64) {