[ECOS] nested interrupt question

Eric de Jong list_ericdejong_10@gmx.net
Tue Jun 17 06:57:00 GMT 2003


Hello BRS/johnsonest,

>      here, switch to svc mode,so enable interrupt, if interrupt occur at
>this time, r0-r5 stored in _exception_stack was corrupted,new r0-r5 will be
>pushed into _exception_stack.so last interupt failed to restore.right?
>     my key question is that:
> 1) when interrupt can come again after cpsr updated? Is it immediately?

no, interrupt can not come again because the interrupt disable bit in cpsr is
not modified (and is set after handling an interrupt)

Further in the code the exeption stack is copied to the system stack, and thus
interrupts may get enabled again.

Eric.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list