Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b01699beec746715af7d1eef5310212ae840809e
Ticket: 3601804fffffffffffffffffffffffffffffffff
platformCPUID segmentation fault on Darwin
User & Date: pooryorick on 2013-01-26 23:43:52
Changes

  1. 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));
    
    
    
  2. login: "pooryorick"
  3. mimetype: "text/plain"
  4. username: "pooryorick"