This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: [PATCH] Fix race in the ARM IRQ handler.
> Ah, you did understand the comment indeed ;)
Well, i got enought that i could work the rest out by reading the
assembly and the patch.
> // When handling an IRQ we must disable FIQ unless current mode in CPSR
> // is IRQ. If we were to get a FIQ while in another mode, the FIQ
> // handling code would transform the FIQ into an IRQ and call the
> // (non-reentrant) IRQ handler again. As a result, for example, the
> // stack pointer would be set to the beginning of the exception_stack
> // clobbering the registers we have just saved.
OK. I will use this comment.
Thanks
Andrew