X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=src%2Fstartup.s;h=587ab95ea08c275fe7c1388a63afb97e4ef73c0d;hp=7765ede46d9a56f27b3ae9b3436d6e654f5080fb;hb=574147e84aafb61db3cf8b595d2a12ce5ba160de;hpb=e848811902a51b67dedb6f6325dda19a6f21e820 diff --git a/src/startup.s b/src/startup.s index 7765ede..587ab95 100644 --- a/src/startup.s +++ b/src/startup.s @@ -3,6 +3,7 @@ .section .startup .code 32 + .global startup startup: @ stop all but one of the cores mrc p15, 0, r0, c0, c0, 5 @@ -28,19 +29,4 @@ startup: exit: wfe b exit - .global dbgled -dbgled: - ldr r3, =0x3f200000 @ gpio base - ldr r2, =0x9000 @ gpio 24 and 25 -> output - str r2, [r3, #8] @ store to GPFSEL2 - ldr r2, =0x01000000 @ bit 24 - tst r0, #1 - strne r2, [r3, #0x1c] @ GPSET0 - streq r2, [r3, #0x28] @ GPCLR0 - lsl r2, #1 - tst r0, #2 - strne r2, [r3, #0x1c] @ GPSET0 - streq r2, [r3, #0x28] @ GPCLR0 - bx lr - @ vi:set filetype=armasm: