svn commit: r354921 - stable/12/sys/mips/mips

Brooks Davis brooks at FreeBSD.org
Wed Nov 20 23:09:22 UTC 2019


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);	\
 }


More information about the svn-src-stable mailing list