FS#12322 - Switch to SYS mode on arm

Attached to Project: Rockbox
Opened by Marcin Bukat (MarcinBukat) - Friday, 07 October 2011, 19:27 GMT
Last edited by Marcin Bukat (MarcinBukat) - Tuesday, 11 October 2011, 16:18 GMT
Task Type Bugs
Category Battery/Charging
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Currently our code runs in SVC mode most of the time. This isn't very wise since a) this prevents us from using SWI because b) entering SWI would corrupt LR. Moreover our current SWI handler simply returns and this may potentially produce errors hard to track down. This patch do two things a) setups SYS mode as default b) explicitly calls UIE on SWI.
This task depends upon

Closed by  Marcin Bukat (MarcinBukat)
Tuesday, 11 October 2011, 16:18 GMT
Reason for closing:  Accepted
Additional comments about closing:  commited as r30741
Comment by Bertrik Sikken (bertrik) - Friday, 07 October 2011, 20:49 GMT
All of my players I tested so far still boot and play music:
* Sansa c200 (PP5022)
* Sansa e200 (PP5024)
* Clipv1 (AMSv1)
* Clipv2 (AMSv2)
Comment by amaury pouly (pamaury) - Saturday, 08 October 2011, 12:55 GMT
It works on the fuze+ (i.MX233) for both bootloader and firmware. I've just checked that it boots.