This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: eCos ARM Context_Switch


> 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

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