svn commit: r362852 - head/sys/riscv/riscv
Kristof Provost
kp at FreeBSD.org
Wed Jul 1 19:12:48 UTC 2020
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 at 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 */
More information about the svn-src-all
mailing list