I am trying to read debug registers on Linux, but I get an unsupported instruction mov error, when compiling my inline assembler code with gcc. My code is:
asm __volatile__ (
"movl %eax, %dr0\n"
);
Reading other registers such as esp works fine.