[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Interrupt in kernel functions
Miro Kropáček <miro.kropacek@gmail.com> writes:
> just verifying -- do I understand it right that if CPU is in a kernel
> function (most likely because an user program used trap #n), all interrupts
> (autovectors -- MFP, VBL etc) are ignored as they got lower priority than
> trap #n exception?
Interrupts are blocked by the setting the interrupt mask field in the SP
register. Non-interrupt exceptions don't modify the interrupt mask.
Interrupts are served on any instruction boundary, given their level is
above the current interrupt mask. In the example of a trap insn, this
boundary is just after the CPU has set up to begin processing the
execption handler.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."