Processors
Intel® Processors, Tools, and Utilities
14503 Discussions

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

idata
Employee
1,807 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