From f326ab05c0bc13af6cf30088ece57524c6890c3f Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 28 Jun 2021 18:38:17 +0000 Subject: [PATCH] Fix assembly in #ifdef MULTIPROCESSOR case. ok jsing@ --- sys/arch/riscv64/riscv64/cpuswitch.S | 6 +++--- 1 file 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 @@ -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 -- 2.20.1