From 5eede9cf2076852961aca14c18bbe8a2fe810e3e Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 14 Sep 2004 22:37:17 +0000 Subject: error out from btlb_insert() if there is none --- sys/arch/hppa/hppa/machdep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys') 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; -- cgit v1.2.3