File: vmcheck_amd64.s

package info (click to toggle)
golang-github-vmware-vmw-guestinfo 0.0~git20220317.510905f-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 220 kB
  • sloc: asm: 164; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by command: go run asm.go -out vmcheck_amd64.s -arch amd64. DO NOT EDIT.

// +build gc

#include "textflag.h"

// func cpuid_low(arg1 uint32, arg2 uint32) (eax uint32, ebx uint32, ecx uint32, edx uint32)
// Requires: CPUID
TEXT ·cpuid_low(SB), NOSPLIT, $0-24
	// From https://github.com/intel-go/cpuid/blob/master/cpuidlow_amd64.s
	MOVL arg1+0(FP), AX
	MOVL arg2+4(FP), CX
	CPUID
	MOVL AX, eax+8(FP)
	MOVL BX, ebx+12(FP)
	MOVL CX, ecx+16(FP)
	MOVL DX, edx+20(FP)
	RET