diff options
author | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2009-05-07 20:19:47 +0000 |
---|---|---|
committer | Ariane van der Steldt <ariane@cvs.openbsd.org> | 2009-05-07 20:19:47 +0000 |
commit | e72f273ca091b0adddcc4846a18e261d61274e03 (patch) | |
tree | 570e5c69ebd3cffd7327518a821397e43ba13ef6 /sys/dev | |
parent | e84f812f84cede9cda90f273e79b6d4ff4b2e35c (diff) |
Amas(4) on some machines has ranges with base > limit. Treat this as
an empty range.
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/amas.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <ariane@stack.nl> @@ -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; |