diff options
| author | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
|---|---|---|
| committer | Rutger Broekhoff | 2023-12-29 21:31:53 +0100 |
| commit | 404aeae4545d2426c089a5f8d5e82dae56f5212b (patch) | |
| tree | 2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/cpu/cpu_arm64.s | |
| parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
| download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip | |
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/cpu/cpu_arm64.s')
| -rw-r--r-- | vendor/golang.org/x/sys/cpu/cpu_arm64.s | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/cpu/cpu_arm64.s b/vendor/golang.org/x/sys/cpu/cpu_arm64.s new file mode 100644 index 0000000..fcb9a38 --- /dev/null +++ b/vendor/golang.org/x/sys/cpu/cpu_arm64.s | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | // Copyright 2019 The Go Authors. All rights reserved. | ||
| 2 | // Use of this source code is governed by a BSD-style | ||
| 3 | // license that can be found in the LICENSE file. | ||
| 4 | |||
| 5 | //go:build gc | ||
| 6 | |||
| 7 | #include "textflag.h" | ||
| 8 | |||
| 9 | // func getisar0() uint64 | ||
| 10 | TEXT ·getisar0(SB),NOSPLIT,$0-8 | ||
| 11 | // get Instruction Set Attributes 0 into x0 | ||
| 12 | // mrs x0, ID_AA64ISAR0_EL1 = d5380600 | ||
| 13 | WORD $0xd5380600 | ||
| 14 | MOVD R0, ret+0(FP) | ||
| 15 | RET | ||
| 16 | |||
| 17 | // func getisar1() uint64 | ||
| 18 | TEXT ·getisar1(SB),NOSPLIT,$0-8 | ||
| 19 | // get Instruction Set Attributes 1 into x0 | ||
| 20 | // mrs x0, ID_AA64ISAR1_EL1 = d5380620 | ||
| 21 | WORD $0xd5380620 | ||
| 22 | MOVD R0, ret+0(FP) | ||
| 23 | RET | ||
| 24 | |||
| 25 | // func getpfr0() uint64 | ||
| 26 | TEXT ·getpfr0(SB),NOSPLIT,$0-8 | ||
| 27 | // get Processor Feature Register 0 into x0 | ||
| 28 | // mrs x0, ID_AA64PFR0_EL1 = d5380400 | ||
| 29 | WORD $0xd5380400 | ||
| 30 | MOVD R0, ret+0(FP) | ||
| 31 | RET | ||