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: Keith Ross <kross at elands dot co dot nz>
- To: Simon Kallweit <simon dot kallweit at intefo dot ch>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 07 Oct 2008 23:27:56 +1300
- Subject: [ECOS] Re: Cortex-M3 interrupt handling & context switching
- References: <1223329271.1446.ezmlm@ecos.sourceware.org> <48EB21CC.9030402@elands.co.nz> <48EB23D9.3000807@intefo.ch>
- Reply-to: kross at elands dot co dot nz
Hi Simon,
Reading the Cortex-M3 Technical Reference Manual (DDI0337E) it certainly
would be good idea to use the SVC instruction to cause a context switch.
For those interested SVC is similar to SWI in other micros. The manual
has a suggested method for context switch which we should follow. The
eCos scheduler determines which thread to run and the ARM example code
would switch it.
Keith
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss