Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2019 23:09:22 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r354921 - stable/12/sys/mips/mips
Message-ID:  <201911202309.xAKN9Mha015462@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Wed Nov 20 23:09:21 2019
New Revision: 354921
URL: https://svnweb.freebsd.org/changeset/base/354921

Log:
  MFC r354688:
  
  Fix a typo in the PMAP_PTE_SET_CACHE_BITS macro.
  
  The second argument should have been "pa" not "ps".  It worked by
  accident because the argument was always "pa" which was an in-scope
  local variable.
  
  Submitted by:	sson
  Reviewed by:	jhb, kevans
  Obtained from:	CheriBSD
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D22338

Modified:
  stable/12/sys/mips/mips/pmap.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/mips/mips/pmap.c
==============================================================================
--- stable/12/sys/mips/mips/pmap.c	Wed Nov 20 22:25:49 2019	(r354920)
+++ stable/12/sys/mips/mips/pmap.c	Wed Nov 20 23:09:21 2019	(r354921)
@@ -323,7 +323,7 @@ pmap_pte_cache_bits(vm_paddr_t pa, vm_page_t m)
 		ma = VM_MEMATTR_UNCACHEABLE;
 	return PTE_C(ma);
 }
-#define PMAP_PTE_SET_CACHE_BITS(pte, ps, m) {	\
+#define PMAP_PTE_SET_CACHE_BITS(pte, pa, m) {	\
 	pte &= ~PTE_C_MASK;			\
 	pte |= pmap_pte_cache_bits(pa, m);	\
 }



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