diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 2001-12-22 10:23:51 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 2001-12-22 10:23:51 +0000 |
commit | 249b4abccd246f617da9ef25d49ae789cf442e3e (patch) | |
tree | 9483969f393165802c2785b689113f0f631cdd2d | |
parent | cd752df9f62be150bd225e53d27897851769c4f9 (diff) |
correct badvaddr()
-rw-r--r-- | sys/arch/mvme88k/mvme88k/vm_machdep.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mvme88k/mvme88k/vm_machdep.c b/sys/arch/mvme88k/mvme88k/vm_machdep.c index 21fa28b166d..bd85e45d9e5 100644 --- a/sys/arch/mvme88k/mvme88k/vm_machdep.c +++ b/sys/arch/mvme88k/mvme88k/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.43 2001/12/16 23:49:47 miod Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.44 2001/12/22 10:23:50 smurph Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. @@ -434,7 +434,6 @@ int badvaddr(vm_offset_t va, int size) { register int x; - if (badaddr(va, size)) { return -1; } @@ -449,8 +448,10 @@ badvaddr(vm_offset_t va, int size) case 4: x = *(volatile unsigned long *)va; break; + default: + return -1; } - return(x); + return(0); } int |