|
@@ -79,6 +79,10 @@ FEXPORT(ret_from_fork)
|
|
|
jal schedule_tail # a0 = struct task_struct *prev
|
|
|
|
|
|
FEXPORT(syscall_exit)
|
|
|
+#ifdef CONFIG_DEBUG_RSEQ
|
|
|
+ move a0, sp
|
|
|
+ jal rseq_syscall
|
|
|
+#endif
|
|
|
local_irq_disable # make sure need_resched and
|
|
|
# signals dont change between
|
|
|
# sampling and return
|
|
@@ -141,6 +145,10 @@ work_notifysig: # deal with pending signals and
|
|
|
j resume_userspace_check
|
|
|
|
|
|
FEXPORT(syscall_exit_partial)
|
|
|
+#ifdef CONFIG_DEBUG_RSEQ
|
|
|
+ move a0, sp
|
|
|
+ jal rseq_syscall
|
|
|
+#endif
|
|
|
local_irq_disable # make sure need_resched doesn't
|
|
|
# change between and return
|
|
|
LONG_L a2, TI_FLAGS($28) # current->work
|