Re: what's the meaning of plain text file's executable attribute
- From: Giovanni <lsodgf0@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 15:38:23 +0100
DaVinci wrote:
Q2:
what's the difference between interrupt and trap.
what I know is that interrupt include software interrupt and hardware
interrupt.
handware interrupt : I/O ,NMI...
software interrupt : divisor is zero...
divisor is zero is a trap.
but,what's more about the difference?
Thought they are mostly named in this way, hardware or software interrupts are not the correct way of naming events.
According to the Intel manual for 486 _interrupts_ are those received on the INTR (maskable) and NMI (non maskable) inputs of the processor.
These are hardware generated events.
_Exceptions_ are those detected by the processor. These are further classified as faults, traps and aborts.
These are software generated events.
Faults are detected *before* instruction execution so the same instruction can be restarted (as page faults).
Traps are detected *after* instruction execution (as general protection or divide by zero faults).
Aborts are severe errors for which the processor can't identify the cause.
Intel defines also trap gates and interrupt gates (no reference to previous definitions). These gates are the pointers to the procedure to handle the interrupt or the exception. The difference between the two types of gates is that the latter resets the IF (interrupt flag) preventing further maskable interrupts till the IRET terminates the procedure (or the procedure itself sets IF). This prevents interrupt nesting.
Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 <http://counter.li.org/>
.
- References:
- Prev by Date: Re: Random ip problem when login Debian via putty
- Next by Date: Re: recover WinXP ntfs hd from Linux
- Previous by thread: Re: what's the meaning of plain text file's executable attribute
- Next by thread: Re: what's the meaning of plain text file's executable attribute
- Index(es):
Relevant Pages
|