This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]