Hello again, Will someone please glance at the bottom of this page. https://web.archive.org/web/20131223125438/http://www.ethoberon.ethz.ch/irqs... What is the signifiicance of the apostrophes as in EFLAGS'' and EIP'? I've checked a few pages including this. https://en.wikipedia.org/wiki/FLAGS_register#Example Nothing helpful. Thanks, ... Lyall E. -- https://en.wikibooks.org/wiki/Medical_Machines https://en.wikibooks.org/wiki/Oberon Tel: +1 604 670 0140 Bcc: peter at easthope. ca
Hi Lyall I had a quick look. I don't know exactly but I have an idea: In Native Oberon HW interrupts are handled as follows: 1) HW generates an interrupt and the Intel CPU reacts 2) the Oberon OS gets the interrupt and dispatches it to your interrupt handler 3) your interrupt routine does the thing you want it to be done to handle the interrupt and returns normally to the Oberon OS. 4) The Oberon OS does some clean up and returns from the interrupt The shown stack layout is the stack layout as seen by your interrupt handler, so 1) after the HW interrupt occurred and 2) after the OS dispatched it to you. The values marked with '' (48..56) are pushed on the stack by the CPU before the Oberon OS interrupt handler is called. All other values (0..44) are pushed on the stack by the OS before your handler is called. They represent the exact state of all registers at the time the interrupt occurred. To call your handler, the OS needs to overwrite the stack pointer ESP, the instruction pointer EIP and the base pointer EBP. These three vital registers are marked with ' to tell you, that in your interrupt handler the ESP, EIP and EBP are NOT as they were when the interrupt occurred. In case your interrupt handler needs the originals, you can find them on the stack. br Jörg Am 03.05.20, 18:53 schrieb "oberon-bounces@lists.inf.ethz.ch im Auftrag von peter@easthope.ca" <oberon-bounces@lists.inf.ethz.ch im Auftrag von peter@easthope.ca>: Hello again, Will someone please glance at the bottom of this page. https://web.archive.org/web/20131223125438/http://www.ethoberon.ethz.ch/irqs... What is the signifiicance of the apostrophes as in EFLAGS'' and EIP'? I've checked a few pages including this. https://en.wikipedia.org/wiki/FLAGS_register#Example Nothing helpful. Thanks, ... Lyall E. -- https://en.wikibooks.org/wiki/Medical_Machines https://en.wikibooks.org/wiki/Oberon Tel: +1 604 670 0140 Bcc: peter at easthope. ca -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Joerg,
The shown stack layout is the stack layout as seen by your interrupt handler
Thanks, this was really bothering me until I read your clear explanation - what threw me was the comments about IRETD and RET, but I now see that probably, in the mind's eye of the programmer, he or she was thinking about what *would* happen when the routine ended, whereas I was wondering about how stuff on the stack might be the result of an IRETD... ;-) Cheers! Paul
participants (3)
-
Jörg -
Paul Reed -
peter@easthope.ca