thanks to ultimo and others I think I have the pi2 switching back to svc and secure mode now.
and other cleanup
This commit is contained in:
@@ -44,7 +44,8 @@ LLCOPS = -march=arm -mcpu=arm1176jzf-s
|
||||
LLCOPS0 = -march=arm
|
||||
LLCOPS1 = -march=arm -mcpu=arm1176jzf-s
|
||||
COPS = -Wall -O2 -nostdlib -nostartfiles -ffreestanding
|
||||
OOPS = -std-compile-opts
|
||||
#OOPS = -std-compile-opts
|
||||
OOPS = -std-link-opts
|
||||
|
||||
clang : blinker03.clang.hex blinker03.clang.bin
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,17 +0,0 @@
|
||||
:1080000002D9A0E3050000EBFEFFFFEA001080E5C7
|
||||
:108010001EFF2FE1000090E51EFF2FE11EFF2FE164
|
||||
:10802000F0402DE9A4409FE50400A0E1F8FFFFEB3C
|
||||
:108030000707C0E3011780E30400A0E1F2FFFFEBB4
|
||||
:108040008C409FE5F918A0E30400A0E1EEFFFFEBF0
|
||||
:10805000021CA0E3F91881E30400A0E1EAFFFFEBB2
|
||||
:1080600070009FE5EAFFFFEB095CA0E3126CA0E360
|
||||
:108070000040A0E13D5885E37A6886E3000000EA0D
|
||||
:10808000064084E050009FE50118A0E3DEFFFFEB0F
|
||||
:1080900040009FE5DEFFFFEB040040E0050050E1FB
|
||||
:1080A000FAFFFF3A34009FE50118A0E3D6FFFFEB8B
|
||||
:1080B0002C009FE5047040E018009FE5D4FFFFEB23
|
||||
:1080C000000087E0050050E1FAFFFF3AEBFFFFEA0E
|
||||
:1080D0000400202008B4002020B400201C00202030
|
||||
:0880E0002800202000F7C2FF78
|
||||
:040000030000800079
|
||||
:00000001FF
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,89 +0,0 @@
|
||||
|
||||
blinker03.clang.opt.elf: file format elf32-littlearm
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00008000 <_start>:
|
||||
8000: e3a0d902 mov sp, #32768 ; 0x8000
|
||||
8004: eb000005 bl 8020 <notmain>
|
||||
|
||||
00008008 <hang>:
|
||||
8008: eafffffe b 8008 <hang>
|
||||
|
||||
0000800c <PUT32>:
|
||||
800c: e5801000 str r1, [r0]
|
||||
8010: e12fff1e bx lr
|
||||
|
||||
00008014 <GET32>:
|
||||
8014: e5900000 ldr r0, [r0]
|
||||
8018: e12fff1e bx lr
|
||||
|
||||
0000801c <dummy>:
|
||||
801c: e12fff1e bx lr
|
||||
|
||||
00008020 <notmain>:
|
||||
8020: e92d40f0 push {r4, r5, r6, r7, lr}
|
||||
8024: e59f40a4 ldr r4, [pc, #164] ; 80d0 <notmain+0xb0>
|
||||
8028: e1a00004 mov r0, r4
|
||||
802c: ebfffff8 bl 8014 <GET32>
|
||||
8030: e3c00707 bic r0, r0, #1835008 ; 0x1c0000
|
||||
8034: e3801701 orr r1, r0, #262144 ; 0x40000
|
||||
8038: e1a00004 mov r0, r4
|
||||
803c: ebfffff2 bl 800c <PUT32>
|
||||
8040: e59f408c ldr r4, [pc, #140] ; 80d4 <notmain+0xb4>
|
||||
8044: e3a018f9 mov r1, #16318464 ; 0xf90000
|
||||
8048: e1a00004 mov r0, r4
|
||||
804c: ebffffee bl 800c <PUT32>
|
||||
8050: e3a01c02 mov r1, #512 ; 0x200
|
||||
8054: e38118f9 orr r1, r1, #16318464 ; 0xf90000
|
||||
8058: e1a00004 mov r0, r4
|
||||
805c: ebffffea bl 800c <PUT32>
|
||||
8060: e59f0070 ldr r0, [pc, #112] ; 80d8 <notmain+0xb8>
|
||||
8064: ebffffea bl 8014 <GET32>
|
||||
8068: e3a05c09 mov r5, #2304 ; 0x900
|
||||
806c: e3a06c12 mov r6, #4608 ; 0x1200
|
||||
8070: e1a04000 mov r4, r0
|
||||
8074: e385583d orr r5, r5, #3997696 ; 0x3d0000
|
||||
8078: e386687a orr r6, r6, #7995392 ; 0x7a0000
|
||||
807c: ea000000 b 8084 <notmain+0x64>
|
||||
8080: e0844006 add r4, r4, r6
|
||||
8084: e59f0050 ldr r0, [pc, #80] ; 80dc <notmain+0xbc>
|
||||
8088: e3a01801 mov r1, #65536 ; 0x10000
|
||||
808c: ebffffde bl 800c <PUT32>
|
||||
8090: e59f0040 ldr r0, [pc, #64] ; 80d8 <notmain+0xb8>
|
||||
8094: ebffffde bl 8014 <GET32>
|
||||
8098: e0400004 sub r0, r0, r4
|
||||
809c: e1500005 cmp r0, r5
|
||||
80a0: 3afffffa bcc 8090 <notmain+0x70>
|
||||
80a4: e59f0034 ldr r0, [pc, #52] ; 80e0 <notmain+0xc0>
|
||||
80a8: e3a01801 mov r1, #65536 ; 0x10000
|
||||
80ac: ebffffd6 bl 800c <PUT32>
|
||||
80b0: e59f002c ldr r0, [pc, #44] ; 80e4 <notmain+0xc4>
|
||||
80b4: e0407004 sub r7, r0, r4
|
||||
80b8: e59f0018 ldr r0, [pc, #24] ; 80d8 <notmain+0xb8>
|
||||
80bc: ebffffd4 bl 8014 <GET32>
|
||||
80c0: e0870000 add r0, r7, r0
|
||||
80c4: e1500005 cmp r0, r5
|
||||
80c8: 3afffffa bcc 80b8 <notmain+0x98>
|
||||
80cc: eaffffeb b 8080 <notmain+0x60>
|
||||
80d0: 20200004 eorcs r0, r0, r4
|
||||
80d4: 2000b408 andcs fp, r0, r8, lsl #8
|
||||
80d8: 2000b420 andcs fp, r0, r0, lsr #8
|
||||
80dc: 2020001c eorcs r0, r0, ip, lsl r0
|
||||
80e0: 20200028 eorcs r0, r0, r8, lsr #32
|
||||
80e4: ffc2f700 ; <UNDEFINED> instruction: 0xffc2f700
|
||||
|
||||
Disassembly of section .ARM.attributes:
|
||||
|
||||
00000000 <.ARM.attributes>:
|
||||
0: 00002141 andeq r2, r0, r1, asr #2
|
||||
4: 61656100 cmnvs r5, r0, lsl #2
|
||||
8: 01006962 tsteq r0, r2, ror #18
|
||||
c: 00000017 andeq r0, r0, r7, lsl r0
|
||||
10: 01080206 tsteq r8, r6, lsl #4
|
||||
14: 020a0109 andeq r0, sl, #1073741826 ; 0x40000002
|
||||
18: 01150114 tsteq r5, r4, lsl r1
|
||||
1c: 01180317 tsteq r8, r7, lsl r3
|
||||
20: Address 0x00000020 is out of bounds.
|
||||
|
||||
Binary file not shown.
@@ -1,91 +0,0 @@
|
||||
.syntax unified
|
||||
.eabi_attribute 10, 2
|
||||
.fpu vfpv2
|
||||
.eabi_attribute 20, 1
|
||||
.eabi_attribute 21, 1
|
||||
.eabi_attribute 23, 3
|
||||
.eabi_attribute 24, 1
|
||||
.eabi_attribute 25, 1
|
||||
.file "blinker03.clang.opt.bc"
|
||||
.text
|
||||
.globl notmain
|
||||
.align 2
|
||||
.type notmain,%function
|
||||
notmain: @ @notmain
|
||||
@ BB#0: @ %entry
|
||||
push {r4, r5, r6, r7, lr}
|
||||
ldr r4, .LCPI0_0
|
||||
mov r0, r4
|
||||
bl GET32
|
||||
bic r0, r0, #1835008
|
||||
orr r1, r0, #262144
|
||||
mov r0, r4
|
||||
bl PUT32
|
||||
ldr r4, .LCPI0_1
|
||||
mov r1, #16318464
|
||||
mov r0, r4
|
||||
bl PUT32
|
||||
mov r1, #512
|
||||
orr r1, r1, #16318464
|
||||
mov r0, r4
|
||||
bl PUT32
|
||||
ldr r0, .LCPI0_2
|
||||
bl GET32
|
||||
mov r5, #2304
|
||||
mov r6, #4608
|
||||
mov r4, r0
|
||||
orr r5, r5, #3997696
|
||||
orr r6, r6, #7995392
|
||||
b .LBB0_2
|
||||
.LBB0_1: @ %while.end12
|
||||
@ in Loop: Header=BB0_2 Depth=1
|
||||
add r4, r4, r6
|
||||
.LBB0_2: @ %while.body
|
||||
@ =>This Loop Header: Depth=1
|
||||
@ Child Loop BB0_5 Depth 2
|
||||
@ Child Loop BB0_3 Depth 2
|
||||
ldr r0, .LCPI0_3
|
||||
mov r1, #65536
|
||||
bl PUT32
|
||||
.LBB0_3: @ %while.body3
|
||||
@ Parent Loop BB0_2 Depth=1
|
||||
@ => This Inner Loop Header: Depth=2
|
||||
ldr r0, .LCPI0_2
|
||||
bl GET32
|
||||
sub r0, r0, r4
|
||||
cmp r0, r5
|
||||
blo .LBB0_3
|
||||
@ BB#4: @ %while.end
|
||||
@ in Loop: Header=BB0_2 Depth=1
|
||||
ldr r0, .LCPI0_4
|
||||
mov r1, #65536
|
||||
bl PUT32
|
||||
ldr r0, .LCPI0_5
|
||||
sub r7, r0, r4
|
||||
.LBB0_5: @ %while.body6
|
||||
@ Parent Loop BB0_2 Depth=1
|
||||
@ => This Inner Loop Header: Depth=2
|
||||
ldr r0, .LCPI0_2
|
||||
bl GET32
|
||||
add r0, r7, r0
|
||||
cmp r0, r5
|
||||
blo .LBB0_5
|
||||
b .LBB0_1
|
||||
.align 2
|
||||
@ BB#6:
|
||||
.LCPI0_0:
|
||||
.long 538968068 @ 0x20200004
|
||||
.LCPI0_1:
|
||||
.long 536917000 @ 0x2000b408
|
||||
.LCPI0_2:
|
||||
.long 536917024 @ 0x2000b420
|
||||
.LCPI0_3:
|
||||
.long 538968092 @ 0x2020001c
|
||||
.LCPI0_4:
|
||||
.long 538968104 @ 0x20200028
|
||||
.LCPI0_5:
|
||||
.long 4290967296 @ 0xffc2f700
|
||||
.Ltmp0:
|
||||
.size notmain, .Ltmp0-notmain
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,16 +0,0 @@
|
||||
:1080000002D9A0E3050000EBFEFFFFEA001080E5C7
|
||||
:108010001EFF2FE1000090E51EFF2FE11EFF2FE164
|
||||
:1080200070402DE98C009FE5F9FFFFEB0717C0E3D7
|
||||
:10803000011781E37C009FE5F3FFFFEB78009FE5EC
|
||||
:10804000F918A0E3F0FFFFEB6C009FE56C109FE5D3
|
||||
:10805000EDFFFFEB68009FE5EDFFFFEB64409FE560
|
||||
:108060000050A0E160009FE50118A0E3E6FFFFEBF0
|
||||
:108070004C009FE5E6FFFFEB000065E0040050E1E7
|
||||
:10808000FAFFFF9A3D6885E240009FE50118A0E3F2
|
||||
:10809000096C86E2DCFFFFEB24009FE5DCFFFFEBD1
|
||||
:1080A000002066E0040052E1FAFFFF9A7A5885E268
|
||||
:1080B000125C85E2EAFFFFEA0400202008B40020F9
|
||||
:1080C0000002F90020B40020FF083D001C00202021
|
||||
:0480D0002800202044
|
||||
:040000030000800079
|
||||
:00000001FF
|
||||
@@ -1,103 +0,0 @@
|
||||
|
||||
blinker03.elf: file format elf32-littlearm
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
00008000 <_start>:
|
||||
8000: e3a0d902 mov sp, #32768 ; 0x8000
|
||||
8004: eb000005 bl 8020 <notmain>
|
||||
|
||||
00008008 <hang>:
|
||||
8008: eafffffe b 8008 <hang>
|
||||
|
||||
0000800c <PUT32>:
|
||||
800c: e5801000 str r1, [r0]
|
||||
8010: e12fff1e bx lr
|
||||
|
||||
00008014 <GET32>:
|
||||
8014: e5900000 ldr r0, [r0]
|
||||
8018: e12fff1e bx lr
|
||||
|
||||
0000801c <dummy>:
|
||||
801c: e12fff1e bx lr
|
||||
|
||||
00008020 <notmain>:
|
||||
8020: e92d4070 push {r4, r5, r6, lr}
|
||||
8024: e59f008c ldr r0, [pc, #140] ; 80b8 <notmain+0x98>
|
||||
8028: ebfffff9 bl 8014 <GET32>
|
||||
802c: e3c01707 bic r1, r0, #1835008 ; 0x1c0000
|
||||
8030: e3811701 orr r1, r1, #262144 ; 0x40000
|
||||
8034: e59f007c ldr r0, [pc, #124] ; 80b8 <notmain+0x98>
|
||||
8038: ebfffff3 bl 800c <PUT32>
|
||||
803c: e59f0078 ldr r0, [pc, #120] ; 80bc <notmain+0x9c>
|
||||
8040: e3a018f9 mov r1, #16318464 ; 0xf90000
|
||||
8044: ebfffff0 bl 800c <PUT32>
|
||||
8048: e59f006c ldr r0, [pc, #108] ; 80bc <notmain+0x9c>
|
||||
804c: e59f106c ldr r1, [pc, #108] ; 80c0 <notmain+0xa0>
|
||||
8050: ebffffed bl 800c <PUT32>
|
||||
8054: e59f0068 ldr r0, [pc, #104] ; 80c4 <notmain+0xa4>
|
||||
8058: ebffffed bl 8014 <GET32>
|
||||
805c: e59f4064 ldr r4, [pc, #100] ; 80c8 <notmain+0xa8>
|
||||
8060: e1a05000 mov r5, r0
|
||||
8064: e59f0060 ldr r0, [pc, #96] ; 80cc <notmain+0xac>
|
||||
8068: e3a01801 mov r1, #65536 ; 0x10000
|
||||
806c: ebffffe6 bl 800c <PUT32>
|
||||
8070: e59f004c ldr r0, [pc, #76] ; 80c4 <notmain+0xa4>
|
||||
8074: ebffffe6 bl 8014 <GET32>
|
||||
8078: e0650000 rsb r0, r5, r0
|
||||
807c: e1500004 cmp r0, r4
|
||||
8080: 9afffffa bls 8070 <notmain+0x50>
|
||||
8084: e285683d add r6, r5, #3997696 ; 0x3d0000
|
||||
8088: e59f0040 ldr r0, [pc, #64] ; 80d0 <notmain+0xb0>
|
||||
808c: e3a01801 mov r1, #65536 ; 0x10000
|
||||
8090: e2866c09 add r6, r6, #2304 ; 0x900
|
||||
8094: ebffffdc bl 800c <PUT32>
|
||||
8098: e59f0024 ldr r0, [pc, #36] ; 80c4 <notmain+0xa4>
|
||||
809c: ebffffdc bl 8014 <GET32>
|
||||
80a0: e0662000 rsb r2, r6, r0
|
||||
80a4: e1520004 cmp r2, r4
|
||||
80a8: 9afffffa bls 8098 <notmain+0x78>
|
||||
80ac: e285587a add r5, r5, #7995392 ; 0x7a0000
|
||||
80b0: e2855c12 add r5, r5, #4608 ; 0x1200
|
||||
80b4: eaffffea b 8064 <notmain+0x44>
|
||||
80b8: 20200004 eorcs r0, r0, r4
|
||||
80bc: 2000b408 andcs fp, r0, r8, lsl #8
|
||||
80c0: 00f90200 rscseq r0, r9, r0, lsl #4
|
||||
80c4: 2000b420 andcs fp, r0, r0, lsr #8
|
||||
80c8: 003d08ff ldrshteq r0, [sp], -pc
|
||||
80cc: 2020001c eorcs r0, r0, ip, lsl r0
|
||||
80d0: 20200028 eorcs r0, r0, r8, lsr #32
|
||||
|
||||
Disassembly of section .ARM.attributes:
|
||||
|
||||
00000000 <.ARM.attributes>:
|
||||
0: 00002c41 andeq r2, r0, r1, asr #24
|
||||
4: 61656100 cmnvs r5, r0, lsl #2
|
||||
8: 01006962 tsteq r0, r2, ror #18
|
||||
c: 00000022 andeq r0, r0, r2, lsr #32
|
||||
10: 4d524105 ldfmie f4, [r2, #-20] ; 0xffffffec
|
||||
14: 54347620 ldrtpl r7, [r4], #-1568 ; 0x620
|
||||
18: 08020600 stmdaeq r2, {r9, sl}
|
||||
1c: 12010901 andne r0, r1, #16384 ; 0x4000
|
||||
20: 15011404 strne r1, [r1, #-1028] ; 0x404
|
||||
24: 18031701 stmdane r3, {r0, r8, r9, sl, ip}
|
||||
28: 2c011a01 stccs 10, cr1, [r1], {1}
|
||||
2c: Address 0x000000000000002c is out of bounds.
|
||||
|
||||
|
||||
Disassembly of section .comment:
|
||||
|
||||
00000000 <.comment>:
|
||||
0: 3a434347 bcc 10d0d24 <notmain+0x10c8d04>
|
||||
4: 6f532820 svcvs 0x00532820
|
||||
8: 65637275 strbvs r7, [r3, #-629]! ; 0x275
|
||||
c: 43207972 teqmi r0, #1867776 ; 0x1c8000
|
||||
10: 4265646f rsbmi r6, r5, #1862270976 ; 0x6f000000
|
||||
14: 68636e65 stmdavs r3!, {r0, r2, r5, r6, r9, sl, fp, sp, lr}^
|
||||
18: 74694c20 strbtvc r4, [r9], #-3104 ; 0xc20
|
||||
1c: 30322065 eorscc r2, r2, r5, rrx
|
||||
20: 302e3131 eorcc r3, lr, r1, lsr r1
|
||||
24: 39362d39 ldmdbcc r6!, {r0, r3, r4, r5, r8, sl, fp, sp}
|
||||
28: 2e342029 cdpcs 0, 3, cr2, cr4, cr9, {1}
|
||||
2c: 00312e36 eorseq r2, r1, r6, lsr lr
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user