github.com/muyo/sno@v1.2.1/internal/cpu_amd64.s (about) 1 #include "textflag.h" 2 #include "funcdata.h" 3 4 // func cpuidReal(op uint32) (eax, ebx, ecx, edx uint32) 5 TEXT ·cpuidReal(SB), NOSPLIT, $0-24 6 MOVL op+0(FP), AX 7 XORQ CX, 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