Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section .data
- .balign 4
- run_once: .word 1
- .section .text.start
- .arm
- .global _start
- _start:
- @FlushProcessDataCache
- ldr r0, =0xFFFF8001
- ldr r1, =start_addr
- ldr r2, =total_size
- svc 0x54
- ldr r0, =run_once
- mov r1, #0
- ldr r2, [r0]
- cmp r2, r1
- beq loop
- str r1, [r0]
- @ldr sp, =stack_end
- bl main
- loop:
- b loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement