Skip to content

Instantly share code, notes, and snippets.

@drewis
Created July 3, 2013 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewis/5923617 to your computer and use it in GitHub Desktop.
Save drewis/5923617 to your computer and use it in GitHub Desktop.
__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