svn commit: r365750 - head/sys/arm64/arm64

Andrew Turner andrew at FreeBSD.org
Tue Sep 15 14:15:05 UTC 2020


Author: andrew
Date: Tue Sep 15 14:15:04 2020
New Revision: 365750
URL: https://svnweb.freebsd.org/changeset/base/365750

Log:
  Use ATTR_DEFAULT in the arm64 locore.S
  
  We can use ATTR_DEFAULT directly in locore.S as it fits within an orr
  instruction operand.
  
  Sponsored by:	Innovate UK

Modified:
  head/sys/arm64/arm64/locore.S

Modified: head/sys/arm64/arm64/locore.S
==============================================================================
--- head/sys/arm64/arm64/locore.S	Tue Sep 15 13:36:19 2020	(r365749)
+++ head/sys/arm64/arm64/locore.S	Tue Sep 15 14:15:04 2020	(r365750)
@@ -614,10 +614,7 @@ build_l1_block_pagetable:
 
 	/* Build the L1 block entry */
 	orr	x12, x7, #L1_BLOCK
-	orr	x12, x12, #(ATTR_AF)
-#ifdef SMP
-	orr	x12, x12, ATTR_SH(ATTR_SH_IS)
-#endif
+	orr	x12, x12, #(ATTR_DEFAULT)
 
 	/* Only use the output address bits */
 	lsr	x9, x9, #L1_SHIFT
@@ -655,11 +652,8 @@ build_l2_block_pagetable:
 	/* Build the L2 block entry */
 	lsl	x12, x7, #2
 	orr	x12, x12, #L2_BLOCK
-	orr	x12, x12, #(ATTR_AF)
+	orr	x12, x12, #(ATTR_DEFAULT)
 	orr	x12, x12, #(ATTR_S1_UXN)
-#ifdef SMP
-	orr	x12, x12, ATTR_SH(ATTR_SH_IS)
-#endif
 
 	/* Only use the output address bits */
 	lsr	x9, x9, #L2_SHIFT


More information about the svn-src-head mailing list