This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Adding user mode support to Arm HAL
On Mon, 2003-04-07 at 15:35, Pierre Habraken wrote:
> 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.
Yes, you are right. However, I noticed another small thing: a few lines
above you have:
stmfd sp, {r8-r12, sp, lr}^ // get user mode regs
sub sp, sp, #4*7
The arm-arm says an stm instruction storing user-mode registers
shouldn't be followed by an instruction that accesses a banked register
(sp in this case). So you might add a nop between the stmfd and the sub
for safety.
--
rnf