Overview
| Artifact ID: | b01699beec746715af7d1eef5310212ae840809e |
|---|---|
| Ticket: | 3601804fffffffffffffffffffffffffffffffff
platformCPUID segmentation fault on Darwin |
| User & Date: | pooryorick on 2013-01-26 23:43:52 |
Changes
- icomment:
Here is an option that specifies fewer registers: __asm__ __volatile__( "pushq %%rbx \n\t" /* save %rbx */ "cpuid \n\t" "movl %%ebx ,%[rbx] \n\t" /* write the result into output var */ "popq %%rbx \n\t" : "=a"(regs[0]), [rbx] "=r"(regs[1]), "=c"(regs[2]), "=d"(regs[3]) : "a"(index)); - login: "pooryorick"
- mimetype: "text/plain"
- username: "pooryorick"