diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-14 22:37:17 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-09-14 22:37:17 +0000 |
commit | 5eede9cf2076852961aca14c18bbe8a2fe810e3e (patch) | |
tree | cc32c094ae27343147e30b788e3db86ebc546a5e | |
parent | df60555613bdd9877851c83febe5b5eaf4820017 (diff) |
error out from btlb_insert() if there is none
-rw-r--r-- | sys/arch/hppa/hppa/machdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c index 99a6c8bbeb1..822ecb5e8f7 100644 --- a/sys/arch/hppa/hppa/machdep.c +++ b/sys/arch/hppa/hppa/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.132 2004/07/01 21:03:32 mickey Exp $ */ +/* $OpenBSD: machdep.c,v 1.133 2004/09/14 22:37:16 mickey Exp $ */ /* * Copyright (c) 1999-2003 Michael Shalayeff @@ -895,6 +895,9 @@ btlb_insert(space, va, pa, lenp, prot) register vsize_t len; register int error, i; + if (!pdc_btlb.min_size && !pdc_btlb.max_size) + return -(ENXIO); + /* align size */ for (len = pdc_btlb.min_size << PGSHIFT; len < *lenp; len <<= 1); len >>= PGSHIFT; |