diff options
| author | Joel Sing <joel@sing.id.au> | 2019-04-27 03:02:25 +1000 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-04-26 17:34:45 +0000 |
| commit | 3d94dd78d464e4e802fdc9db345daea35f230ba2 (patch) | |
| tree | 9412cc93ac5c4408efcc3f6b6e83844494cac6e9 /src/runtime/tls_arm64.h | |
| parent | 80704ec3fa79e6efb50124e8063b31a4c032a1ff (diff) | |
| download | go-3d94dd78d464e4e802fdc9db345daea35f230ba2.tar.xz | |
runtime: add support for openbsd/arm64
Updates #31656
Change-Id: I0b7486f7381fd8bd16a76278c0e9ec9763671fcc
Reviewed-on: https://go-review.googlesource.com/c/go/+/174119
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/tls_arm64.h')
| -rw-r--r-- | src/runtime/tls_arm64.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/tls_arm64.h b/src/runtime/tls_arm64.h index fcd111f448..27f517c155 100644 --- a/src/runtime/tls_arm64.h +++ b/src/runtime/tls_arm64.h @@ -25,6 +25,11 @@ #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 + // Define something that will break the build if // the GOOS is unknown. #ifndef TPIDR |
