mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
runtime: delete useless TPIDR macro on arm64
The TPIDR macro in tls_arm64.h is not used anywhere, so remove it to reduce confusion. Change-Id: I04aa5e64ee30753f28f43bc67b44559d81d093c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/373357 Trust: Eric Fang <eric.fang@arm.com> Run-TryBot: Eric Fang <eric.fang@arm.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
This commit is contained in:
parent
77680a0644
commit
817d6ea2b3
|
@ -10,7 +10,6 @@
|
|||
#define TLS_linux
|
||||
#endif
|
||||
#ifdef TLS_linux
|
||||
#define TPIDR TPIDR_EL0
|
||||
#define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
|
||||
#endif
|
||||
|
||||
|
@ -21,23 +20,19 @@
|
|||
#define TLS_darwin
|
||||
#endif
|
||||
#ifdef TLS_darwin
|
||||
#define TPIDR TPIDRRO_EL0
|
||||
#define TLSG_IS_VARIABLE
|
||||
#define MRS_TPIDR_R0 WORD $0xd53bd060 // MRS TPIDRRO_EL0, R0
|
||||
#endif
|
||||
|
||||
#ifdef GOOS_freebsd
|
||||
#define TPIDR TPIDR_EL0
|
||||
#define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
|
||||
#endif
|
||||
|
||||
#ifdef GOOS_netbsd
|
||||
#define TPIDR TPIDRRO_EL0
|
||||
#define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDRRO_EL0, R0
|
||||
#endif
|
||||
|
||||
#ifdef GOOS_openbsd
|
||||
#define TPIDR TPIDR_EL0
|
||||
#define MRS_TPIDR_R0 WORD $0xd53bd040 // MRS TPIDR_EL0, R0
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue