Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 429450
Collapse All | Expand All

(-)src/hd/hd.c.orig (-3 / +3 lines)
Lines 3147-3162 Link Here
3147
    "mov %%edx,8(%%esi)\n\t"
3147
    "mov %%edx,8(%%esi)\n\t"
3148
    "pop %%ebx"
3148
    "pop %%ebx"
3149
#else
3149
#else
3150
    "push %%rbx\n\t"
3150
	"mov %%ebx,%%edi\n\t"
3151
    "cpuid\n\t"
3151
    "cpuid\n\t"
3152
    "mov %%ebx,(%%rsi)\n\t"
3152
    "mov %%ebx,(%%rsi)\n\t"
3153
    "mov %%ecx,4(%%rsi)\n\t"
3153
    "mov %%ecx,4(%%rsi)\n\t"
3154
    "mov %%edx,8(%%rsi)\n\t"
3154
    "mov %%edx,8(%%rsi)\n\t"
3155
    "pop %%rbx"
3155
    "mov %%edi,%%ebx\n\t"
3156
#endif
3156
#endif
3157
    : "=a" (u), "=c" (foo)
3157
    : "=a" (u), "=c" (foo)
3158
    : "a" (0x40000000), "c" (0), "S" (signature)
3158
    : "a" (0x40000000), "c" (0), "S" (signature)
3159
    : "%edx"
3159
    : "%edx", "%edi"
3160
  );
3160
  );
3161
3161
3162
  signature[12] = 0;
3162
  signature[12] = 0;

Return to bug 429450