Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2020 14:15:05 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365750 - head/sys/arm64/arm64
Message-ID:  <202009151415.08FEF5Mr068754@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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