This is the mail archive of the ecos-patches@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]
Other format: [Raw text]

Re: Adding user mode support to Arm HAL


Mark Salter wrote:
> [...]
> >          // now save pre-exception r0-r7 on current stack
> >          ldmfd   r3,{r0-r5}
> >          stmfd   sp!,{r0-r7}
>            ^^^^^^^^^^^^^^^^^^^
> 
> Is this really saving user mode r0-r7? Looks like its saving svc mode
> regs.

As far as I know, there is only one instance of each r0-r7,r15 shared by
all Arm execution modes. Private ("banked") r8-r12 instances are
provided in FIQ mode only. Private r13-r14 instances are provided in all
non user modes.

Pierre
-- 
________________________________________________________________________
Pierre HABRAKEN - mailto:Pierre dot Habraken at imag dot fr
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________


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