You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cpuid_amd64.s 244 B

12345678910111213
  1. // +build amd64,!noasm
  2. #include "textflag.h"
  3. TEXT ·cpuid(SB), NOSPLIT, $0-4
  4. MOVL eaxArg+0(FP), AX
  5. MOVL ecxArg+4(FP), CX
  6. CPUID
  7. MOVL AX, eax+8(FP)
  8. MOVL BX, ebx+12(FP)
  9. MOVL CX, ecx+16(FP)
  10. MOVL DX, edx+20(FP)
  11. RET