[PATCH] [sanitizer][MIPS] Implement clone for MIPS
Sergey Matveev
earthdok at google.com
Fri Apr 17 07:24:32 PDT 2015
In http://reviews.llvm.org/D8318#154546, @sagar wrote:
> Hi @earthdok,
>
> > Note also that the glibc implementation appears to have a few differences between 32 and 64 bit mips, so please double check those to make sure they don't affect us.
>
>
> The only difference between 32-bit and 64-bit in glibc implementation I can see is argument passing to clone syscall. This patch was written according to n64 abi of mips. In case of n64 abi we have argument registers a0 to a5 for syscalls. Therefore this patch will work fine for LSan 64-bit on Mips.
If this code is correct only on MIPS64, then please put it under an appropriate #ifdef such as __mips64.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8318
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list