An error occur when I compile my inline assemble code with a alpha/linux cross compiler.
code:
Code:
#define CPU_ID(cpu_iid) \
__asm__ __volatile__ ( \
"mov $0, %%eax\n\t" \
"mov %%eax, %0\n\t" \
:"=m"(cpu_iid) \
: \
:"%eax" \
);
error:
Quote:
error: unknown register name '%eax' in 'asm'
|
does anyone know how to solve this problem? thanks for help.