diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-12 18:00:09 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-12 18:00:09 +0000 |
commit | 4170fe7c72c8945f354069bb969f919f0b6459ae (patch) | |
tree | 885549c7f0e50b368cae5a1e9f15cefca30fd817 /lib/libkvm/kvm_m68k.c | |
parent | 4359d4e2de2733beba950da49d8503f1f27ae6be (diff) |
Use the non-generic SEGSHIFT value in the 020/030 specific codepath.
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. |