svn commit: r360252 - stable/12/sys/riscv/riscv
Mark Johnston
markj at FreeBSD.org
Fri Apr 24 13:20:38 UTC 2020
Author: markj
Date: Fri Apr 24 13:20:37 2020
New Revision: 360252
URL: https://svnweb.freebsd.org/changeset/base/360252
Log:
MFC r356675 (by mhorne):
RISC-V: fix global symbol lookups for mpentry with lld
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 Fri Apr 24 12:57:03 2020 (r360251)
+++ stable/12/sys/riscv/riscv/locore.S Fri Apr 24 13:20:37 2020 (r360252)
@@ -287,7 +287,7 @@ ENTRY(mpentry)
li t1, 4
mulw t1, t1, a0
/* Get the pointer */
- la t0, __riscv_boot_ap
+ lla t0, __riscv_boot_ap
add t0, t0, t1
1:
@@ -296,7 +296,7 @@ ENTRY(mpentry)
beqz t1, 1b
/* Setup stack pointer */
- la t0, secondary_stacks
+ lla t0, secondary_stacks
li t1, (PAGE_SIZE * KSTACK_PAGES)
mulw t2, t1, a0
add t0, t0, t2
@@ -306,14 +306,14 @@ ENTRY(mpentry)
add sp, t0, t1
/* Setup supervisor trap vector */
- la t0, mpva
+ lla t0, mpva
sub t0, t0, s9
li t1, KERNBASE
add t0, t0, t1
csrw stvec, t0
/* Set page tables base register */
- la s2, pagetable_l1
+ lla s2, pagetable_l1
srli s2, s2, PAGE_SHIFT
li t0, SATP_MODE_SV39
or s2, s2, t0
More information about the svn-src-stable
mailing list