Searched hist:"570 e3e236efdf5bb4a023ecc3601dad9273a011e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/microblaze/kernel/ |
H A D | entry.S | diff 570e3e236efdf5bb4a023ecc3601dad9273a011e Fri Jun 04 06:06:27 CDT 2010 Michal Simek <monstr@monstr.eu> microblaze: Fix sys_clone syscall
sys_clone syscall ignored args which this patch mapped to args which are passing from glibc.
Here is the origin problem description.
"I ran the static libgcc tests (very few of them are there, they are mostly dynamically linked) and some of them fail with an assertion in fork() system call (tid != pid), I looked at the microblaze/entry.S file and it looks suspicious (ignores arguments 3-5)"
Arg mapping should be: glibc ARCH_FORK(...) -> do_fork(...) r5 -> r5 (clone_flags) r6 -> r6 (stack_start, use parent->stack if NULL) pt_regs -> r7 (pt_regs) r7 -> r8 (stack_size) r8 -> r9 (parent_tidptr) r9 -> r10 (child_tidptr)
Signed-off-by: John Williams <john.williams@petalogix.com> Signed-off-by: Michal Simek <monstr@monstr.eu>
|