diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 19:39:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-12-07 19:39:58 +0000 |
commit | 92dfdcaaf2073eebc3dc9ffb39c08728aff2bc8d (patch) | |
tree | 961a51743c039da01ee9b9a3f031c17967a8cf2b /sys/arch/mips64 | |
parent | 1fcad186c1f4e3ac159ebcbeab04bcf7ee0656ac (diff) |
Correctly skip available memory regions without (kernel) page aligned
boundaries, entirely contained within a kernel page; issue raised by drahn@
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r-- | sys/arch/mips64/mips64/arcbios.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/arcbios.c b/sys/arch/mips64/mips64/arcbios.c index 437d38b2560..a477a157069 100644 --- a/sys/arch/mips64/mips64/arcbios.c +++ b/sys/arch/mips64/mips64/arcbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcbios.c,v 1.27 2009/12/07 18:56:29 miod Exp $ */ +/* $OpenBSD: arcbios.c,v 1.28 2009/12/07 19:39:57 miod Exp $ */ /*- * Copyright (c) 1996 M. Warner Losh. All rights reserved. * Copyright (c) 1996-2004 Opsycon AB. All rights reserved. @@ -362,8 +362,9 @@ bios_configure_memory() default: break; } - memrange_register(seg_start, seg_end, 0, - VM_FREELIST_DEFAULT); + if (seg_start < seg_end) + memrange_register(seg_start, seg_end, 0, + VM_FREELIST_DEFAULT); break; case ExceptionBlock: case SystemParameterBlock: |