github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/internal/platform/cpuid_amd64.s (about)

     1  #include "textflag.h"
     2  
     3  // lifted from github.com/intel-go/cpuid and src/internal/cpu/cpu_x86.s
     4  // func cpuid(arg1, arg2 uint32) (eax, ebx, ecx, edx uint32)
     5  TEXT ·cpuid(SB), NOSPLIT, $0-24
     6  	MOVL arg1+0(FP), AX
     7  	MOVL arg2+4(FP), CX
     8  	CPUID
     9  	MOVL AX, eax+8(FP)
    10  	MOVL BX, ebx+12(FP)
    11  	MOVL CX, ecx+16(FP)
    12  	MOVL DX, edx+20(FP)
    13  	RET
    14