This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Cortex M3 interrupt handling & context switching
- From: "Remko TronÃon" <remko at el-tramo dot be>
- To: "simon dot kallweit at intefo dot ch" <simon dot kallweit at intefo dot ch>
- Cc: "eCos Disuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Fri, 31 Oct 2008 10:55:18 +0100
- Subject: Re: [ECOS] Cortex M3 interrupt handling & context switching
- References: <490ACEB5.1010601@intefo.ch>
Hi Simon,
> Any ideas why this could fail? I can give more details on the implementation if necessary.
I'm not sure if this is of help in any way, but I was playing around
with eCos 2.0 a few weeks ago on a (virtual) ARM7TDMI board. When
trying the unadapted application on a (virtual) Cortex R4, some
problems arose due to restartable instructions. An LDM instruction
that adapted the SP was interrupted, the interrupt handler modified
SP, and when restarting the LDM instruction, the adapted SP was used
again, which resulted in a bad stack frame pop. I should check if the
problem persists in eCos CVS, and maybe investigate a bit further.
cheers,
Remko
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss