mirror of
https://github.com/fumiama/go-base16384.git
synced 2026-06-23 04:30:27 +08:00
fix generic panic, add movbe check
This commit is contained in:
15
cpuid_amd64.s
Normal file
15
cpuid_amd64.s
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build amd64
|
||||
// +build amd64
|
||||
|
||||
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
|
||||
|
||||
// func cpuid(op uint32) (eax, ebx, ecx, edx uint32)
|
||||
TEXT ·cpuid(SB), 7, $0
|
||||
XORQ CX, CX
|
||||
MOVL op+0(FP), AX
|
||||
CPUID
|
||||
MOVL AX, eax+8(FP)
|
||||
MOVL BX, ebx+12(FP)
|
||||
MOVL CX, ecx+16(FP)
|
||||
MOVL DX, edx+20(FP)
|
||||
RET
|
||||
Reference in New Issue
Block a user