What would be an example of how the 32-bit debug or control registers could be used in x86? Can these be written to directly, and if so how? For example, I tried:
mov $1, %DR0
mov %eax, %cr0
But does not assemble. How can one write to or examine these registers? Or are these 'kernel-related' things and not available for normal assembly instructions? (and if so, what would be an example of why it would be used?)