Created
July 3, 2013 23:02
-
-
Save drewis/5923617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__turn_mmu_on: | |
mov r0, r0 | |
mcr p15, 0, r0, c1, c0, 0 @ write control reg | |
mrc p15, 0, r3, c0, c0, 0 @ read id reg | |
mov r3, r3 | |
mov r3, r13 | |
ldr r4, =0xF8003858 @ bank3_in (phys) | |
ldr r5, =0xF8003803 @ bank3_out (phys) | |
ldr r4, [r4] | |
orr r6, r4, #0x200000 @22nd bit for vibration | |
str r6, [r5, #0] @store in outmov pc, r3 | |
__enable_mmu_end: | |
ENDPROC(__turn_mmu_on) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment