svn commit: r342692 - stable/12/sys/riscv/riscv
Mark Johnston
markj at FreeBSD.org
Wed Jan 2 16:33:18 UTC 2019
Author: markj
Date: Wed Jan 2 16:33:17 2019
New Revision: 342692
URL: https://svnweb.freebsd.org/changeset/base/342692
Log:
MFC r342098:
Assume that pmap_l1() will return a PTE.
Modified:
stable/12/sys/riscv/riscv/pmap.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/riscv/riscv/pmap.c
==============================================================================
--- stable/12/sys/riscv/riscv/pmap.c Wed Jan 2 16:28:56 2019 (r342691)
+++ stable/12/sys/riscv/riscv/pmap.c Wed Jan 2 16:33:17 2019 (r342692)
@@ -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)
More information about the svn-src-all
mailing list