If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Exception handler for PII
Hi,
I am writing a code for the software instruction breakpoints. I want to set the RF flags in EFLAGS register in the exception handler. Below is my code. But somehow looks like the flag was not getting set.(because the excp handler gets called continously) Can anyone see programming defect here.. pushl eax movl eax, 4*4(esp) orl eax,$0x00010000 movl 4*4(esp),eax popl eax iret In the above code, my exception handler gets called without change in the privilege level. Info: Because the debug exception for an instruction breakpoint is generated before the instruction is executed, if the instruction breakpoint is not removed by the exception handler, the processor will detect the instruction breakpoint again when the instruction is restarted and generate another debug exception. To prevent looping on an instruction breakpoint, the Intel Architecture provides the RF flag (resume flag) in the EFLAGS register When the RF flag is set, the processor ignores instruction breakpoints. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newbie: OC Advice: AMDXP2200 CPU | Donald Bock | Overclocking AMD Processors | 2 | March 12th 05 12:14 AM |
ASUS Probe "Exception EZeroDivide" Error | John Blaustein | Asus Motherboards | 13 | July 6th 04 07:21 PM |
Windows Explorer Fatal Exception with Second Hard Drive on G6-266 w/ Ultra66 | Flippy | Gateway Computers | 4 | February 18th 04 10:45 PM |
Windows Explorer Fatal Exception with 2nd Hard Drive and Ultra66 | Flippy | Storage (alternative) | 0 | February 17th 04 10:51 PM |
Unexpected Exception Error in Nero 5.5.9.17 | [email protected] | Cdr | 0 | August 27th 03 08:10 AM |