-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: function asmCpuid missing Go declaration #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your report and proposed fix! I hit this internally and thought it was a difference in build system quirks.
abi/cpuid_amd64.s
Outdated
@@ -14,8 +14,8 @@ | |||
|
|||
//+build amd64,!gccgo | |||
|
|||
// func asmCpuid(op uint32) (eax, ebx, ecx, edx uint32) | |||
TEXT ·asmCpuid(SB), 7, $0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert name change.
@deeglaze Thank you for your detailed guidance. I have made another revision, please take a look. |
- Added new files `abi/cpuid_amd64.go` and `abi/cpuid.go` - Implemented the `asmCpuid` function in the `abi` package - Added tests for the `cpuid` function in `abi/abi_test.go`
@deeglaze done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Thank you for your patient guidance 😁 |
I got this error, maybe misspell the function's name?
Append: also add a
cpuid.go
file to compatable with non-amd64 machine that could also import this package