diff options
Diffstat (limited to 'lib/libkvm/kvm_m68k.c')
-rw-r--r-- | lib/libkvm/kvm_m68k.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_m68k.c b/lib/libkvm/kvm_m68k.c index 510debab449..0f774dbbbce 100644 --- a/lib/libkvm/kvm_m68k.c +++ b/lib/libkvm/kvm_m68k.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_m68k.c,v 1.16 2006/03/20 15:11:48 mickey Exp $ */ +/* $OpenBSD: kvm_m68k.c,v 1.17 2006/06/12 18:00:08 miod Exp $ */ /* $NetBSD: kvm_m68k.c,v 1.9 1996/05/07 06:09:11 leo Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.16 2006/03/20 15:11:48 mickey Exp $"; +static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.17 2006/06/12 18:00:08 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -154,7 +154,7 @@ _kvm_vatop(kvm_t *kd, st_entry_t *sta, u_long va, u_long *pa) sta2 = (st_entry_t *)(ste & SG4_ADDR2); addr = (u_long)&sta2[(va & SG4_MASK3) >> SG4_SHIFT3]; } else { - addr = (u_long)&sta[va >> SEGSHIFT]; + addr = (u_long)&sta[va >> SEGSHIFT020]; /* * Can't use KREAD to read kernel segment table entries. * Fortunately it is 1-to-1 mapped so we don't have to. |