summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/microblaze/include/asm/syscall.h')
-rw-r--r--arch/microblaze/include/asm/syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/syscall.h b/arch/microblaze/include/asm/syscall.h
index 5eb3f624cc59..b5b6b91fae3e 100644
--- a/arch/microblaze/include/asm/syscall.h
+++ b/arch/microblaze/include/asm/syscall.h
@@ -14,6 +14,13 @@ static inline long syscall_get_nr(struct task_struct *task,
return regs->r12;
}
+static inline void syscall_set_nr(struct task_struct *task,
+ struct pt_regs *regs,
+ int nr)
+{
+ regs->r12 = nr;
+}
+
static inline void syscall_rollback(struct task_struct *task,
struct pt_regs *regs)
{