aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/sys/cpu/cpu_x86.s
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
committerLibravatar Rutger Broekhoff2023-12-29 21:31:53 +0100
commit404aeae4545d2426c089a5f8d5e82dae56f5212b (patch)
tree2d84e00af272b39fc04f3795ae06bc48970e57b5 /vendor/golang.org/x/sys/cpu/cpu_x86.s
parent209d8b0187ed025dec9ac149ebcced3462877bff (diff)
downloadgitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.tar.gz
gitolfs3-404aeae4545d2426c089a5f8d5e82dae56f5212b.zip
Make Nix builds work
Diffstat (limited to 'vendor/golang.org/x/sys/cpu/cpu_x86.s')
-rw-r--r--vendor/golang.org/x/sys/cpu/cpu_x86.s26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/cpu/cpu_x86.s b/vendor/golang.org/x/sys/cpu/cpu_x86.s
new file mode 100644
index 0000000..7d7ba33
--- /dev/null
+++ b/vendor/golang.org/x/sys/cpu/cpu_x86.s
@@ -0,0 +1,26 @@
1// Copyright 2018 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 (386 || amd64 || amd64p32) && gc
6
7#include "textflag.h"
8
9// func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32)
10TEXT ·cpuid(SB), NOSPLIT, $0-24
11 MOVL eaxArg+0(FP), AX
12 MOVL ecxArg+4(FP), CX
13 CPUID
14 MOVL AX, eax+8(FP)
15 MOVL BX, ebx+12(FP)
16 MOVL CX, ecx+16(FP)
17 MOVL DX, edx+20(FP)
18 RET
19
20// func xgetbv() (eax, edx uint32)
21TEXT ·xgetbv(SB),NOSPLIT,$0-8
22 MOVL $0, CX
23 XGETBV
24 MOVL AX, eax+0(FP)
25 MOVL DX, edx+4(FP)
26 RET