-/* $OpenBSD: cpuswitch.S,v 1.8 2023/10/24 13:20:10 claudio Exp $ */
+/* $OpenBSD: cpuswitch.S,v 1.9 2023/11/24 07:57:39 miod Exp $ */
/*
* Copyright (c) 2015 Dale Rahn <drahn@dalerahn.com>
ld s1, PCB_SP(a5) // load new stack pointer
mv a0, a1
- la t0, pmap_set_satp
- jalr t0
+ call pmap_set_satp
mv a7, s0 // move retguard random
mv sp, s1 // restore stack pointer
END(cpu_switch_asm)
ENTRY(proc_trampoline)
- la t0, proc_trampoline_mi
- jalr t0
+ call proc_trampoline_mi
mv a0, s2
jalr s1
la t0, syscall_return
-/* $OpenBSD: exception.S,v 1.7 2023/11/20 16:10:37 miod Exp $ */
+/* $OpenBSD: exception.S,v 1.8 2023/11/24 07:57:39 miod Exp $ */
/*-
* Copyright (c) 2015-2018 Ruslan Bukin <br@bsdpad.com>
/* handle the ast */
mv a0, sp
- la t0, ast
- jalr t0
+ call ast
j 1b
2:
.endm