1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // func cpuid_low(arg1, arg2 uint32) (eax, ebx, ecx, edx uint32) 6 TEXT cpuid_low(SB), 4, $0-24 7 MOVL arg1+0(FP), AX 8 MOVL arg2+4(FP), CX 9 CPUID 10 MOVL AX, eax+8(FP) 11 MOVL BX, ebx+12(FP) 12 MOVL CX, ecx+16(FP) 13 MOVL DX, edx+20(FP) 14 RET 15 // func xgetbv_low(arg1 uint32) (eax, edx uint32) 16 TEXT xgetbv_low(SB), 4, $0-16 17 MOVL arg1+0(FP), CX 18 // XGETBV 19 BYTE $0x0F; BYTE $0x01; BYTE $0xD0 20 MOVL AX,eax+8(FP) 21 MOVL DX,edx+12(FP) 22 RET 23