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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to