summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-06-28 18:38:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-06-28 18:38:18 +0000
commit570b9cd78f8a8e9bdf3f7c00c0fbdc239cfe2a2c (patch)
treee378dd9a5685d86f0c4498b2beb50813b3267a7d /sys/arch
parentdbda7e82bc91f76c91a4a840eb45dc52624a1c23 (diff)
Fix assembly in #ifdef MULTIPROCESSOR case.
ok jsing@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/riscv64/riscv64/cpuswitch.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/riscv64/riscv64/cpuswitch.S b/sys/arch/riscv64/riscv64/cpuswitch.S
index c396659aa73..d5cac6bc6f0 100644
--- a/sys/arch/riscv64/riscv64/cpuswitch.S
+++ b/sys/arch/riscv64/riscv64/cpuswitch.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpuswitch.S,v 1.3 2021/05/20 04:22:33 drahn Exp $ */
+/* $OpenBSD: cpuswitch.S,v 1.4 2021/06/28 18:38:17 kettenis Exp $ */
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
@@ -98,8 +98,8 @@ END(cpu_switch_asm)
ENTRY(proc_trampoline)
#ifdef MULTIPROCESSOR
- t0 _C_LABEL(proc_trampoline_mp)
- jr t0
+ la t0, _C_LABEL(proc_trampoline_mp)
+ jalr t0
#endif
// call it or just set the variable?
li a0, IPL_NONE