cpuid_amd64.s 213 B

1234567891011
  1. // func cpuidAMD64(cpuidParams *uint32)
  2. TEXT ·cpuidAMD64(SB),4,$0-8
  3. MOVQ cpuidParams+0(FP), R15
  4. MOVL 0(R15), AX
  5. MOVL 8(R15), CX
  6. CPUID
  7. MOVL AX, 0(R15)
  8. MOVL BX, 4(R15)
  9. MOVL CX, 8(R15)
  10. MOVL DX, 12(R15)
  11. RET