aboutsummaryrefslogtreecommitdiffstats
path: root/arch/loongarch/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/include/asm/syscall.h')
-rw-r--r--arch/loongarch/include/asm/syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/syscall.h b/arch/loongarch/include/asm/syscall.h
index ff415b3c0a8e..81d2733f7b94 100644
--- a/arch/loongarch/include/asm/syscall.h
+++ b/arch/loongarch/include/asm/syscall.h
@@ -26,6 +26,13 @@ static inline long syscall_get_nr(struct task_struct *task,
return regs->regs[11];
}
+static inline void syscall_set_nr(struct task_struct *task,
+ struct pt_regs *regs,
+ int nr)
+{
+ regs->regs[11] = nr;
+}
+
static inline void syscall_rollback(struct task_struct *task,
struct pt_regs *regs)
{