This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: eCos ARM Context_Switch
- To: Shinest <shinest at citiz dot net>
- Subject: [ECOS] Re: eCos ARM Context_Switch
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Tue, 07 Nov 2000 06:50:06 +0000
- CC: eCos discussion <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <000c01c04880$15f20450$3f00000a@qiujia>
> Shinest wrote:
>
> Hi,
> When I read the eCos ARM Context Switch code, I never find any
> instruction as stmdf sp!, {sp, lr}^ . So I can't understand how the code
> save all of the user mode register under the privileged mode.
Um, hal_thread_switch_context? Or are you worried about the mode the
processor is in? eCos always runs in supervisor mode. Even when it takes an
interrupt, it switches to supervisor mode as soon as it can.
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault