github.com/mdempsky/go@v0.0.0-20151201204031-5dd372bd1e70/src/cmd/dist/cpuid_amd64.s (about)

     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  // +build !gccgo
     6  
     7  TEXT ·cpuid(SB),$0-12
     8  	MOVL ax+8(FP), AX
     9  	CPUID
    10  	MOVQ info+0(FP), DI
    11  	MOVL AX, 0(DI)
    12  	MOVL BX, 4(DI)
    13  	MOVL CX, 8(DI)
    14  	MOVL DX, 12(DI)
    15  	RET
    16