Re: Can some other instructions just follow the IRET?
- From: Herbert Kleebauer <klee@xxxxxxxxx>
- Date: Tue, 28 Feb 2006 09:24:14 +0100
"zhangyue.zl@xxxxxxxxx" wrote:
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.
The difference between
start: iretd
; code for interrupt routine
;
;
jmp start
and
start:
; code for interrupt routine
;
;
iretd
jmp start
is, that in the first case the very first interrupt isn't serviced
(or you have to initialize the IP with the address of the first
instruction after the iretd).
.
- Follow-Ups:
- Re: Can some other instructions just follow the IRET?
- From: zhangyue.zl@xxxxxxxxx
- Re: Can some other instructions just follow the IRET?
- References:
- Can some other instructions just follow the IRET?
- From: zhangyue.zl@xxxxxxxxx
- Re: Can some other instructions just follow the IRET?
- From: Dave Turner
- Re: Can some other instructions just follow the IRET?
- From: zhangyue.zl@xxxxxxxxx
- Re: Can some other instructions just follow the IRET?
- From: zhangyue.zl@xxxxxxxxx
- Can some other instructions just follow the IRET?
- Prev by Date: Re: Ideal computer language from scratch?
- Next by Date: Re: Can some other instructions just follow the IRET?
- Previous by thread: Re: Can some other instructions just follow the IRET?
- Next by thread: Re: Can some other instructions just follow the IRET?
- Index(es):
Relevant Pages
|