Processors
Processors (Intel® Core™, Intel® Xeon®, etc); processor utilities and programs (Intel® Processor Identification Utility, Intel® Extreme Tuning Utility, Intel® Easy Streaming Wizard, etc.)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
12354 Discussions

How to use the debug registers DR0-DR3 in Intel xeon

idata
Community Manager
1,252 Views

Hi,

Can anyone tell me how to use the debug registers "DR0-DR3" in Intel(R) Pentium(R) 4 CPU 3.40GHz. I have written the code like this to use this registers like.

case (DR0) :

 

p_dr->L1 = 0x01;

 

p_dr->RW1 = 0x01;

 

p_dr->LEN1 = 0x03;

asm volatile ("pushl %ebx");

 

asm volatile ("movl %0, %%ebx" : : "r" (memory_addr));

 

asm volatile ("movl %ebx, %dr0 ");

 

asm volatile ("movl %0, %%ebx" : : "r" (p_dr));

 

asm volatile ("movl %ebx, %dr7 ");

 

asm volatile ("popl %ebx")

break;

But the device is crashed at the Bolded text.. That means, unable to get the register. Whether the above registers used in Intel xeon. I unable to get the product manual for this processor. I written this code by gone through the manual Intel pentium manual 3. Please attach the product manual if u have.

Thanks,

Kesavaraj

0 Kudos
0 Replies
Reply