Re: Can some other instructions just follow the IRET?



I think I get it.
This Interrupt Service Program is a seperate Task,so when
returning,this Task's EIP will be saved into its TSS.But at this time
EIP points to the end of the Interrupt Service Program.So next time
when this Interrupt Service Program is trigered again,it will begin
executing and end immediately.So we have to use JMP to make the EIP
point to the begin of the Interrupt Service Program and then save EIP
into its TSS.Am I right? But if so,it looks we have to write JMP
before IRETD.

.



Relevant Pages

  • Re: Can some other instructions just follow the IRET?
    ... EIP points to the end of the Interrupt Service Program.So next time ... when this Interrupt Service Program is trigered again,it will begin ... But if so,it looks we have to write JMP ... before IRETD. ...
    (alt.lang.asm)
  • Re: Can some other instructions just follow the IRET?
    ... EIP points to the end of the Interrupt Service Program.So next time ... when this Interrupt Service Program is trigered again,it will begin ... Correct except the EIP value saved into TSS, it does not point to the begin of ISR, it points to the instruction next to the IRET. ... No, if JMP before IRETD, ISR will never return. ...
    (alt.lang.asm)
  • Re: Help pmode2realmode
    ... well as eip. ... I think just "jmp 0:flush_ipq" would do what you want here (assuming you want to reload cs with a RM value here - just "jmp flush_ipq", if you just want to flush the queue). ... earthquakes and hurricanes needs psychiatric help. ...
    (comp.lang.asm.x86)
  • Re: Help pmode2realmode
    ... as well as eip. ... I think just "jmp 0:flush_ipq" would do what you want here (assuming you want to reload cs with a RM value here - just "jmp flush_ipq", if you just want to flush the queue). ...
    (comp.lang.asm.x86)