cr5-6 registers on i386

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi everyone!
short question: if i include an assembler instruction like the following

__asm("movl %0, %%cr5" : : "r"(0x123));

or

__asm("movl %0, %%cr6" : : "r"(0x123));

in a c-program, i do not get any errors when compiling on a x86(i386) cpu. the 
binary codes of the generated statements also differ from

__asm("movl %0, %%cr3" : : "r"(0x123));

(their third hex-numbers are different - what makes sense)... the thing i 
don't understand is: are there registers cr5-cr20 (starting at cr-something 
near 20, i start getting errors that there is no such register).

Is that a bug caused by the multi-platform capability of gcc or are there such 
registers on i386 that i am not aware of (e.g. the intel manual does not name 
them!!)

The thing is: i am modifying a virtual machine and need new control 
registers... in case these control registers registers really don't exist but 
GCC generates useful binary-code, this would be just way cool :-)

hope someone can answer this for me - thanks and greetings,
  Clemens

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux