mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
set PWRON bit to 1 so the player doesn't turn off immediately (should work on M6SL and M3, not sure about the others)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18386 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
95c62a28f9
commit
d88094daa4
1 changed files with 12 additions and 0 deletions
|
@ -39,6 +39,18 @@ start:
|
||||||
newstart:
|
newstart:
|
||||||
msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */
|
msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */
|
||||||
|
|
||||||
|
/* set PWRON to 1 */
|
||||||
|
ldr r1, =0x3CF00014
|
||||||
|
ldr r2, [r1]
|
||||||
|
orr r2, r2, #0x8
|
||||||
|
str r2, [r1]
|
||||||
|
|
||||||
|
ldr r1, =0x3CF00010
|
||||||
|
ldr r2, [r1]
|
||||||
|
bic r2, r2, #0xf000
|
||||||
|
orr r2, r2, #0x1000
|
||||||
|
str r2, [r1]
|
||||||
|
|
||||||
/* Initialise bss section to zero */
|
/* Initialise bss section to zero */
|
||||||
ldr r2, =_edata
|
ldr r2, =_edata
|
||||||
ldr r3, =_end
|
ldr r3, =_end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue