From 92dfdcaaf2073eebc3dc9ffb39c08728aff2bc8d Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 7 Dec 2009 19:39:58 +0000 Subject: Correctly skip available memory regions without (kernel) page aligned boundaries, entirely contained within a kernel page; issue raised by drahn@ --- sys/arch/mips64/mips64/arcbios.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch') 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: -- cgit v1.2.3