summaryrefslogtreecommitdiff
path: root/arch/hexagon/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/hexagon/include/asm/syscall.h')
-rw-r--r--arch/hexagon/include/asm/syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/hexagon/include/asm/syscall.h b/arch/hexagon/include/asm/syscall.h
index 1024a6548d78..70637261817a 100644
--- a/arch/hexagon/include/asm/syscall.h
+++ b/arch/hexagon/include/asm/syscall.h
@@ -26,6 +26,13 @@ static inline long syscall_get_nr(struct task_struct *task,
return regs->r06;
}
+static inline void syscall_set_nr(struct task_struct *task,
+ struct pt_regs *regs,
+ int nr)
+{
+ regs->r06 = nr;
+}
+
static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs,
unsigned long *args)