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/github.com/klauspost/cpuid/v2/cpuid_arm64.s | |
| parent | 209d8b0187ed025dec9ac149ebcced3462877bff (diff) | |
| download | gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip | |
Make Nix builds work
Diffstat (limited to 'vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s')
| -rw-r--r-- | vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s b/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s new file mode 100644 index 0000000..b31d6ae --- /dev/null +++ b/vendor/github.com/klauspost/cpuid/v2/cpuid_arm64.s | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file. | ||
| 2 | |||
| 3 | //+build arm64,!gccgo,!noasm,!appengine | ||
| 4 | |||
| 5 | // See https://www.kernel.org/doc/Documentation/arm64/cpu-feature-registers.txt | ||
| 6 | |||
| 7 | // func getMidr | ||
| 8 | TEXT ·getMidr(SB), 7, $0 | ||
| 9 | WORD $0xd5380000 // mrs x0, midr_el1 /* Main ID Register */ | ||
| 10 | MOVD R0, midr+0(FP) | ||
| 11 | RET | ||
| 12 | |||
| 13 | // func getProcFeatures | ||
| 14 | TEXT ·getProcFeatures(SB), 7, $0 | ||
| 15 | WORD $0xd5380400 // mrs x0, id_aa64pfr0_el1 /* Processor Feature Register 0 */ | ||
| 16 | MOVD R0, procFeatures+0(FP) | ||
| 17 | RET | ||
| 18 | |||
| 19 | // func getInstAttributes | ||
| 20 | TEXT ·getInstAttributes(SB), 7, $0 | ||
| 21 | WORD $0xd5380600 // mrs x0, id_aa64isar0_el1 /* Instruction Set Attribute Register 0 */ | ||
| 22 | WORD $0xd5380621 // mrs x1, id_aa64isar1_el1 /* Instruction Set Attribute Register 1 */ | ||
| 23 | MOVD R0, instAttrReg0+0(FP) | ||
| 24 | MOVD R1, instAttrReg1+8(FP) | ||
| 25 | RET | ||
| 26 | |||