projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LoongArch: Add STACKTRACE support
[linux-2.6-microblaze.git]
/
arch
/
loongarch
/
kernel
/
switch.S
diff --git
a/arch/loongarch/kernel/switch.S
b/arch/loongarch/kernel/switch.S
index
37e84ac
..
43ebbc3
100644
(file)
--- a/
arch/loongarch/kernel/switch.S
+++ b/
arch/loongarch/kernel/switch.S
@@
-21,6
+21,8
@@
SYM_FUNC_START(__switch_to)
cpu_save_nonscratch a0
stptr.d ra, a0, THREAD_REG01
+ stptr.d a3, a0, THREAD_SCHED_RA
+ stptr.d a4, a0, THREAD_SCHED_CFA
move tp, a2
cpu_restore_nonscratch a1