http://stackoverflow.com/questions/3962950/how-to-set-control-register-0-cr0-bits-in-x86-64-using-gcc-assembly-on-linux
--
Regards,
Peter Teoh
On Mon, Jul 23, 2012 at 12:00 PM, Fan Yang <lljyangfan@xxxxxxxxx> wrote:
hi all:when I change the cr0 register I get a "Segmentation fault (core dumped)".my code is :.data.text.global _start_start:movl %eax, %cr0this code can work well in ubuntu system when I use root to run it. So what can I do to work it in redhat system?thanks
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Regards,
Peter Teoh
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies