From e72f273ca091b0adddcc4846a18e261d61274e03 Mon Sep 17 00:00:00 2001 From: Ariane van der Steldt Date: Thu, 7 May 2009 20:19:47 +0000 Subject: Amas(4) on some machines has ranges with base > limit. Treat this as an empty range. ok kettenis@ --- sys/dev/pci/amas.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/amas.c b/sys/dev/pci/amas.c index b4fcb018ff0..866ba661382 100644 --- a/sys/dev/pci/amas.c +++ b/sys/dev/pci/amas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: amas.c,v 1.1 2009/05/07 11:30:27 ariane Exp $ */ +/* $OpenBSD: amas.c,v 1.2 2009/05/07 20:19:46 ariane Exp $ */ /* * Copyright (c) 2009 Ariane van der Steldt @@ -268,7 +268,8 @@ amas_get_pagerange(struct amas_softc *amas, int node, } #endif /* 0 */ - if (base_addr == limit_addr && ebase_addr == elimit_addr) { + if (ebase_addr > elimit_addr || + (ebase_addr == elimit_addr && base_addr >= limit_addr)) { /* no memory present */ *start_pg_idx = 0; *end_pg_idx = 0; -- cgit v1.2.3