flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > CR8 (and CR9-CR15, DR8-DR15)

Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20563
Location: In your JS exploiting you and your system
revolution 02 Sep 2005, 09:29
Code:
use64
mov rax,cr8 ;<----Error: Undefined Symbol    
I can't program the Task Priority Register in my OS Sad

Also I see mentioned in the Intel docs that CR9 thru CR15 and DR8 thru DR15 are defined (using REX.R) but as yet unimplemented.
Quote:
In 64-bit mode, more encodings for control and debug registers are available. The REX.R bit is used to modify the ModR/M reg field when that field encodes a control or debug register (see Table 2-4). These encodings enable the processor to address CR8-CR15 and DR8- DR15. An additional control register (CR8) is defined in 64-bit mode. CR8 becomes the Task Priority Register (TPR).

In the first implementation of IA-32e mode, CR9-CR15 and DR8-DR15 are not implemented. Any attempt to access unimplemented registers results in an invalid-opcode exception (#UD).
Post 02 Sep 2005, 09:29
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8376
Location: Kraków, Poland
Tomasz Grysztar 02 Sep 2005, 15:13
I just forgot to add those registers to table. I'm fixing it now.
Post 02 Sep 2005, 15:13
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.