• Cherry Zhang's avatar
    cmd/asm: rename R18 to R18_PLATFORM on ARM64 · 35c05542
    Cherry Zhang authored
    In ARM64 ABI, R18 is the "platform register", the use of which is
    OS specific. The OS could choose to reserve this register. In
    practice, it seems fine to use R18 on Linux but not on darwin (iOS).
    
    Rename R18 to R18_PLATFORM to prevent accidental use. There is no
    R18 usage within the standard library (besides tests, which are
    updated).
    
    Fixes #26110
    
    Change-Id: Icef7b9549e2049db1df307a0180a3c90a12d7a84
    Reviewed-on: https://go-review.googlesource.com/c/147218
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    35c05542
Name
Last commit
Last update
..
arch.go Loading commit data...
arm.go Loading commit data...
arm64.go Loading commit data...
mips.go Loading commit data...
ppc64.go Loading commit data...
s390x.go Loading commit data...