Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2013 05:15:31 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253186 - head/sys/i386/i386
Message-ID:  <201307110515.r6B5FVlX033846@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jul 11 05:15:30 2013
New Revision: 253186
URL: http://svnweb.freebsd.org/changeset/base/253186

Log:
  Explicitely panic instead of possibly doing undefined things when
  ptelist KVA is exhausted.  Currently this cannot happen, the added
  panic serves as assert.
  
  Discussed with:	alc
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/i386/i386/pmap.c

Modified: head/sys/i386/i386/pmap.c
==============================================================================
--- head/sys/i386/i386/pmap.c	Thu Jul 11 05:10:36 2013	(r253185)
+++ head/sys/i386/i386/pmap.c	Thu Jul 11 05:15:30 2013	(r253186)
@@ -680,7 +680,7 @@ pmap_ptelist_alloc(vm_offset_t *head)
 
 	va = *head;
 	if (va == 0)
-		return (va);	/* Out of memory */
+		panic("pmap_ptelist_alloc: exhausted ptelist KVA");
 	pte = vtopte(va);
 	*head = *pte;
 	if (*head & PG_V)



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