summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_i386.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-02 09:23:36 +0000
committerphk <phk@FreeBSD.org>1996-05-02 09:23:36 +0000
commite4ee69bc24265771337795e724a2f50a50cbc78b (patch)
tree0ab2a5d2226bef27060c3ded7c20cb486994334a /lib/libkvm/kvm_i386.c
parentd202e9c6fce977391605838842ec3119be4bd232 (diff)
downloadFreeBSD-src-e4ee69bc24265771337795e724a2f50a50cbc78b.zip
FreeBSD-src-e4ee69bc24265771337795e724a2f50a50cbc78b.tar.gz
NBPG -> PAGE_SIZE
Diffstat (limited to 'lib/libkvm/kvm_i386.c')
-rw-r--r--lib/libkvm/kvm_i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_i386.c b/lib/libkvm/kvm_i386.c
index e8e3cf3..764a2d1 100644
--- a/lib/libkvm/kvm_i386.c
+++ b/lib/libkvm/kvm_i386.c
@@ -108,7 +108,7 @@ _kvm_initvtop(kvm_t *kd) {
_kvm_err(kd, kd->program, "cannot read IdlePTD");
return (-1);
}
- if ((vm->PTD = _kvm_malloc(kd, NBPG /*sizeof(struct pde)*/)) != 0) {
+ if ((vm->PTD = _kvm_malloc(kd, PAGE_SIZE /*sizeof(struct pde)*/)) != 0) {
_kvm_err(kd, kd->program, "cannot allocate vm->PTD");
}
if (KREAD(kd, (u_long)nlist[1].n_value, &vm->PTD)) {
OpenPOWER on IntegriCloud