svn commit: r352641 - stable/12/sys/riscv/riscv
Mitchell Horne
mhorne at FreeBSD.org
Tue Sep 24 02:38:09 UTC 2019
Author: mhorne
Date: Tue Sep 24 02:38:08 2019
New Revision: 352641
URL: https://svnweb.freebsd.org/changeset/base/352641
Log:
MFC r352036:
Fix compilation of locore.S with clang
Modified:
stable/12/sys/riscv/riscv/locore.S
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/riscv/riscv/locore.S
==============================================================================
--- stable/12/sys/riscv/riscv/locore.S Tue Sep 24 02:36:09 2019 (r352640)
+++ stable/12/sys/riscv/riscv/locore.S Tue Sep 24 02:38:08 2019 (r352641)
@@ -69,12 +69,18 @@ _start:
la t0, hart_lottery
li t1, 1
amoadd.w t0, t1, 0(t0)
- bnez t0, mpentry
/*
- * Page tables
+ * We must jump to mpentry in the non-BSP case because the offset is
+ * too large to fit in a 12-bit branch immediate.
*/
+ beqz t0, 1f
+ j mpentry
+ /*
+ * Page tables
+ */
+1:
/* Add L1 entry for kernel */
la s1, pagetable_l1
la s2, pagetable_l2 /* Link to next level PN */
More information about the svn-src-stable-12
mailing list