Rockbox mail archiveSubject: Re: PPs running in supervisor mode
Re: PPs running in supervisor mode
From: Antonius Hellmann <antonius.hellmann_at_gmx.de>
Date: Wed, 9 May 2007 18:18:26 +0200
Yes, this is correct: "In User mode, the control bits of the CPSR are protected from change, so only the condition code flags of the CPSR can be changed. In other (privileged) modes the entire CPSR can be changed." If the supervisor mode is the reason for the troubles, then I think it is worth, to modify the software.
Wouldn't software interrupts be needed to call code to switch to a supervisor mode when needed? I _am_ rather new to ARM and such but it's my educated guess atm based on our other big CPU. I fear major complication from it.
One idea, why we have these troubles with interrupt handling on the PP devices is, that probably the supervisor mode has some issues with interrupt switching? I understand, that the supervisor mode makes it easy to do register manipulations. But it might be more safe to run the rockbox application code in user mode.
Page was last modified "Jan 10 2012" The Rockbox Crew