Skip to content

Instantly share code, notes, and snippets.

@doug65536
Created June 29, 2021 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doug65536/136f28bc14eedc103f9799ee18acd226 to your computer and use it in GitHub Desktop.
Save doug65536/136f28bc14eedc103f9799ee18acd226 to your computer and use it in GitHub Desktop.
28 [1] {
0xffffffff800a78f4 48 8b 14 24 mov (%rsp),%rdx
31 [1] if (cpuid(&info, CPUID_HIGHESTFUNC, 0)) {
0xffffffff800a78f8 <+ 4> b8 00 00 00 00 mov $0x0,%eax
0xffffffff800a78fd <+ 9> b9 ff ff ff ff mov $0xffffffff,%ecx
0xffffffff800a7902 <+ 14> f0 0f b1 0a lock cmpxchg %ecx,(%rdx)
0xffffffff800a7906 <+ 18> 85 c0 test %eax,%eax
0xffffffff800a7908 <+ 20> 0f 94 c0 sete %al
0xffffffff800a790b <+ 23> eb 05 jmp 0xffffffff800a7912 <cpuid_init()+30>
0xffffffff800a790d <+ 25> b8 00 00 00 00 mov $0x0,%eax
0xffffffff800a7912 <+ 30> 48 83 c4 08 add $0x8,%rsp
0xffffffff800a7916 <+ 34> c3 ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment