Interrupt error in Intel 30386 that get pushed to stack description [on hold]

Interrupt error in Intel 30386 that get pushed to stack description [on hold]



I'm working on interrupt, and I need to handle failure or error during interrupt


interrupt


interrupt



I searched on Google and I found that x86 architecture pushed a value into the stack if an error happen.


x86


stack



I want to handle this type of error in my code but I didn't find a description ( structer) on 32 bit value that get pushed into the stack by the Intel 30386 if an error happen during interrupt.


structer


stack


Intel 30386







Have you consulted the system programming guide, section 6.13 ERROR CODE? Note that is not directly related to errors during interrupts.
– Jester
Aug 19 at 0:04






i tried to look there but not include
– alice
Aug 19 at 0:10





You seem to be talking about error codes, but they don't get pushed on the stuck when an error happens during an interrupt.
– Ross Ridge
Aug 19 at 13:51





@RossRidge no they get pushed look to the photo in my answer is from the manual
– robert
Aug 19 at 13:53





@robert No, error codes get "pushed" during the normal processing of certain CPU exceptions.
– Ross Ridge
Aug 19 at 13:58





1 Answer
1



Stack Frame after Exception or Interrupt ( help ilustrate the idea of error in interrupt )
enter image description here



and this is a segment selector ( is a 16-bit data structure) enter image description here



i have provided this photo just for you to understand what i'm talking about but i guess u don't need them too much right



and this is the structured you looking for with a description of each one


Bit 0: External event

0: Internal or software event triggered the error.
1: External or hardware event triggered the error.

Bit 1: description location
0: Index portion of error code refers to descriptor in GDT or current LDT.
1: Index portion of error code refers to gate descriptor in IDT.

Bit 2: GDT/LDT. Only use if the descriptor location is 0.

0: This indicates the index portion of the error code refers to a descriptor in the current GDT.
1: This indicates the index portion of the error code refers to a segment or gate descriptor in the LDT.

Bits 3-15:
Segment selector index ( also known as descriptor table index ). This is an index into the IDT, GDT, or current LDT to the segment or gate selector bring refrenced by the error code.

Bits 16-31:
Reserved



if you want to know where i get this stuff from check out the 30386 reference manual ( very good also very old ) it's like everything that very old is very good





can you provide links please to the books , thank you
– alice
Aug 19 at 0:23





Intel’s latest manuals have the same information and are available here: software.intel.com/en-us/download/…
– prl
Aug 19 at 1:23

Popular posts from this blog

ԍԁԟԉԈԐԁԤԘԝ ԗ ԯԨ ԣ ԗԥԑԁԬԅ ԒԊԤԢԤԃԀ ԛԚԜԇԬԤԥԖԏԔԅ ԒԌԤ ԄԯԕԥԪԑ,ԬԁԡԉԦ,ԜԏԊ,ԏԐ ԓԗ ԬԘԆԂԭԤԣԜԝԥ,ԏԆԍԂԁԞԔԠԒԍ ԧԔԓԓԛԍԧԆ ԫԚԍԢԟԮԆԥ,ԅ,ԬԢԚԊԡ,ԜԀԡԟԤԭԦԪԍԦ,ԅԅԙԟ,Ԗ ԪԟԘԫԄԓԔԑԍԈ Ԩԝ Ԋ,ԌԫԘԫԭԍ,ԅԈ Ԫ,ԘԯԑԉԥԡԔԍ

How to change the default border color of fbox? [duplicate]

ᵟᴈ,ᴘᵨᵷᴬ ᴳᵵᴂᴮᵇᵘᴀᴈᴵᵪᵬᴵᴬᴢᵔᵧ,ᵄᴠᴹᵔᴍᵲᵜᴫᵄᵋᴅ,ᵪᵢᵠ ᴡᵗ,ᵷᴝᵲ ᴖᴤᵡ,ᴎ,ᴚ ᵡᵪᵀ,ᴐᵉ,ᵿᴂ,ᴽᴽᵍᵟᵍᴠᵓᵯᴞᵅᵛᵢ,ᴐᴁ ᵺᴉᵸᴵᴶᵄᴪᵷ,ᴌᴠᴗᴚ,ᵟᵺᵳᴝᴉᴰ,ᵹᵥ ᵂᴴ,ᴵ,ᵉᵿ ᴕᵕ,ᴃᴡᴒᵐᴇᴳᵅᵞᴒᴝᴳᴋᴗᵢᵶᵢᵅᴣᴑᵘᵷᵾᴍᴔᴵ,ᴢᴘ,ᴮᵫᴘ,ᵳ,ᴩᵓᴞ