Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2018 21:03:01 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342098 - head/sys/riscv/riscv
Message-ID:  <201812142103.wBEL31f3003082@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Dec 14 21:03:01 2018
New Revision: 342098
URL: https://svnweb.freebsd.org/changeset/base/342098

Log:
  Assume that pmap_l1() will return a PTE.
  
  pmaps on RISC-V always have an L1 page table page, so we don't need to
  check for this when performing lookups.
  
  Reviewed by:	jhb
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D18563

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

Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c	Fri Dec 14 21:00:41 2018	(r342097)
+++ head/sys/riscv/riscv/pmap.c	Fri Dec 14 21:03:01 2018	(r342098)
@@ -316,8 +316,6 @@ pmap_l2(pmap_t pmap, vm_offset_t va)
 	pd_entry_t *l1;
 
 	l1 = pmap_l1(pmap, va);
-	if (l1 == NULL)
-		return (NULL);
 	if ((pmap_load(l1) & PTE_V) == 0)
 		return (NULL);
 	if ((pmap_load(l1) & PTE_RX) != 0)



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