Skip to contentSkip to conversation

Arm syscall bug

PATCH New Paul Brook 1 participant 1 message Apr 23, 2005

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

PATCH 1/1 Arm syscall bug

The arm-user syscall emulation always passes zero for the 6th syscall argument. This breaks the mmap2 syscall, and possibly others.

Patch below fixes this.

Paul

Index: linux-user/main.c
===================================================================
RCS file: /cvsroot/qemu/qemu/linux-user/main.c,v
retrieving revision 1.63

main.c +1 -1
diff -u -p -r1.63 main.c
@@ -373,7 +376,7 @@ void cpu_loop(CPUARMState *env)
                                               env->regs[2],
                                               env->regs[3],
                                               env->regs[4],
-                                              0);
+                                              env->regs[5]);
                 } else {
                     goto error;
                 }