| 1 |
// Code generated by command: go run asm.go -out vmcheck_386.s -arch 386. DO NOT EDIT. |
| 2 |
// +build gc |
| 3 |
|
| 4 |
#include "textflag.h" |
| 5 |
|
| 6 |
// func cpuid_low(arg1 uint32, arg2 uint32) (eax uint32, ebx uint32, ecx uint32, edx uint32) |
| 7 |
// Requires: CPUID |
| 8 |
TEXT ·cpuid_low(SB), NOSPLIT, $0-24 |
| 9 |
// From https://github.com/intel-go/cpuid/blob/master/cpuidlow_amd64.s |
| 10 |
MOVL arg1+0(FP), AX |
| 11 |
MOVL arg2+4(FP), CX |
| 12 |
CPUID |
| 13 |
MOVL AX, eax+8(FP) |
| 14 |
MOVL BX, ebx+12(FP) |
| 15 |
MOVL CX, ecx+16(FP) |
| 16 |
MOVL DX, edx+20(FP) |
| 17 |
RET |