Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2013 14:56:10 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r258471 - head/sys/amd64/amd64
Message-ID:  <201311221456.rAMEuA9L025773@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Fri Nov 22 14:56:10 2013
New Revision: 258471
URL: http://svnweb.freebsd.org/changeset/base/258471

Log:
  Don't abort SMAP processing after an entry of length 0
  
  Length 0 is not special and should just be skipped.  This is the same
  behaviour as i386.
  
  Discussed with:	jhb@
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/amd64/amd64/machdep.c

Modified: head/sys/amd64/amd64/machdep.c
==============================================================================
--- head/sys/amd64/amd64/machdep.c	Fri Nov 22 12:51:55 2013	(r258470)
+++ head/sys/amd64/amd64/machdep.c	Fri Nov 22 14:56:10 2013	(r258471)
@@ -1336,7 +1336,7 @@ add_physmap_entry(uint64_t base, uint64_
 	physmap_idx = *physmap_idxp;
 
 	if (length == 0)
-		return (0);
+		return (1);
 
 	/*
 	 * Find insertion point while checking for overlap.  Start off by



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311221456.rAMEuA9L025773>