A computer components & hardware forum. HardwareBanter

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.

Go Back   Home » HardwareBanter forum » Processors » Intel
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Exception handler for PII



 
 
Thread Tools Display Modes
  #1  
Old July 7th 04, 04:12 PM
Uday Mullangi
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.