csky: Fixup kprobes handler couldn't change pc

The "Changing Execution Path" section in the Documentation/kprobes.txt
said:

Since kprobes can probe into a running kernel code, it can change the
register set, including instruction pointer.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Cc: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Guo Ren 2020-07-28 16:25:23 +00:00
Родитель f788bb2fb9
Коммит a5447fb9b3
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -55,7 +55,9 @@
.macro mcount_exit_regs .macro mcount_exit_regs
RESTORE_REGS_FTRACE RESTORE_REGS_FTRACE
ldw t1, (sp, 0) subi sp, 152
ldw t1, (sp, 4)
addi sp, 152
ldw r8, (sp, 4) ldw r8, (sp, 4)
ldw lr, (sp, 8) ldw lr, (sp, 8)
addi sp, 12 addi sp, 12