HomeFreeBSD

Fix arm64 linuxulator clone() argument order

Description

Fix arm64 linuxulator clone() argument order

Linux/arm64 is CLONE_BACKWARDS - i.e., "Architecture has tls passed as
the 4th argument of clone(2), not the 5th one."

The linux clone() syscall has four different permutations of argument
order, depending on architecture - see the #ifdef CONFIG_CLONE_BACKWARDS
maze in Linux's kernel/fork.c.

Sponsored by: Turing Robotic Industries

Details

Provenance
emasteAuthored on
Parents
rS336042: cxgbe(4): Assume that any unknown flash on the card is 4MB and has 64KB
Branches
Unknown
Tags
Unknown