[PATCH] microblaze: implement syscall_rollback

From: Dongjun Kim

Date: Fri Apr 17 2026 - 08:09:06 EST


Added the implementation of syscall_rollback() in
arch/microblaze/include/asm/syscall.h, which was previously a TODO
stub. This implementation makes seccomp and syscall user dispatch
rollback paths report the original syscall number consistently.

Signed-off-by: Dongjun Kim <aurorasphere@xxxxxxxxxxx>
---
arch/microblaze/include/asm/syscall.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/microblaze/include/asm/syscall.h b/arch/microblaze/include/asm/syscall.h
index b5b6b91fae3e..b9143b5e01f2 100644
--- a/arch/microblaze/include/asm/syscall.h
+++ b/arch/microblaze/include/asm/syscall.h
@@ -24,7 +24,7 @@ static inline void syscall_set_nr(struct task_struct *task,
static inline void syscall_rollback(struct task_struct *task,
struct pt_regs *regs)
{
- /* TODO. */
+ regs->r12 = regs->r0;
}

static inline long syscall_get_error(struct task_struct *task,
--
2.53.0