Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 19:12:47 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362852 - head/sys/riscv/riscv
Message-ID:  <202007011912.061JCl7g032863@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Wed Jul  1 19:12:47 2020
New Revision: 362852
URL: https://svnweb.freebsd.org/changeset/base/362852

Log:
  riscv locore.S: load constant prior to loop
  
  A very minor micro-optimization; t0 is not clobbered between the loop top and
  bottom and there appear to be no other branches to this label.
  
  Submitted by:	Nathaniel Filardo <nwf20@cl.cam.ac.uk>
  Reviewed by:	mhorne
  Differential Revision:	https://reviews.freebsd.org/D25524

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

Modified: head/sys/riscv/riscv/locore.S
==============================================================================
--- head/sys/riscv/riscv/locore.S	Wed Jul  1 19:11:02 2020	(r362851)
+++ head/sys/riscv/riscv/locore.S	Wed Jul  1 19:12:47 2020	(r362852)
@@ -139,8 +139,8 @@ pagetables:
 	li	t2, 512			/* Build 512 entries */
 	add	t3, t4, t2
 	li	t5, 0
-1:
 	li	t0, (PTE_KERN | PTE_X)
+1:
 	slli	t2, t4, PTE_PPN1_S	/* << PTE_PPN1_S */
 	or	t5, t0, t2
 	sd	t5, (s1)		/* Store PTE entry to position */



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