-
Notifications
You must be signed in to change notification settings - Fork 0
/
kernel.list
147 lines (129 loc) · 4.96 KB
/
kernel.list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
build/output.elf: file format elf32-littlearm
Disassembly of section .init:
00008000 <_start>:
8000: e3a0d902 mov sp, #32768 ; 0x8000
8004: ea000012 b 8054 <_main>
Disassembly of section .text:
00008008 <mailbox_write>:
8008: e59f1040 ldr r1, [pc, #64] ; 8050 <right_mail$+0x24>
0000800c <wait$>:
800c: e5912038 ldr r2, [r1, #56] ; 0x38
8010: e3120102 tst r2, #-2147483648 ; 0x80000000
8014: 1afffffc bne 800c <wait$>
8018: e5810020 str r0, [r1, #32]
801c: e1a0f00e mov pc, lr
00008020 <mailbox_read>:
8020: e52de004 push {lr} ; (str lr, [sp, #-4]!)
8024: e1a01000 mov r1, r0
8028: e59f0020 ldr r0, [pc, #32] ; 8050 <right_mail$+0x24>
0000802c <right_mail$>:
802c: e5902018 ldr r2, [r0, #24]
8030: e3120101 tst r2, #1073741824 ; 0x40000000
8034: 1afffffc bne 802c <right_mail$>
8038: e5902000 ldr r2, [r0]
803c: e202300f and r3, r2, #15
8040: e1330001 teq r3, r1
8044: 1afffff8 bne 802c <right_mail$>
8048: e3c2000f bic r0, r2, #15
804c: e49df004 pop {pc} ; (ldr pc, [sp], #4)
8050: 3f00b880 .word 0x3f00b880
00008054 <_main>:
8054: e3a04004 mov r4, #4
00008058 <pertama$>:
8058: e3a00001 mov r0, #1
805c: eb000048 bl 8184 <set_led_state>
8060: e59f00f4 ldr r0, [pc, #244] ; 815c <kelima$+0x34>
8064: eb00003e bl 8164 <delay>
8068: e3a00000 mov r0, #0
806c: eb000044 bl 8184 <set_led_state>
8070: e59f00e4 ldr r0, [pc, #228] ; 815c <kelima$+0x34>
8074: eb00003a bl 8164 <delay>
8078: e2544001 subs r4, r4, #1
807c: 1afffff5 bne 8058 <pertama$>
8080: e59f00d8 ldr r0, [pc, #216] ; 8160 <kelima$+0x38>
8084: eb000036 bl 8164 <delay>
8088: e3a04004 mov r4, #4
0000808c <kedua$>:
808c: e3a00001 mov r0, #1
8090: eb00003b bl 8184 <set_led_state>
8094: e59f00c0 ldr r0, [pc, #192] ; 815c <kelima$+0x34>
8098: eb000031 bl 8164 <delay>
809c: e3a00000 mov r0, #0
80a0: eb000037 bl 8184 <set_led_state>
80a4: e59f00b0 ldr r0, [pc, #176] ; 815c <kelima$+0x34>
80a8: eb00002d bl 8164 <delay>
80ac: e2544001 subs r4, r4, #1
80b0: 1afffff5 bne 808c <kedua$>
80b4: e59f00a4 ldr r0, [pc, #164] ; 8160 <kelima$+0x38>
80b8: eb000029 bl 8164 <delay>
80bc: e3a04002 mov r4, #2
000080c0 <ketiga$>:
80c0: e3a00001 mov r0, #1
80c4: eb00002e bl 8184 <set_led_state>
80c8: e59f008c ldr r0, [pc, #140] ; 815c <kelima$+0x34>
80cc: eb000024 bl 8164 <delay>
80d0: e3a00000 mov r0, #0
80d4: eb00002a bl 8184 <set_led_state>
80d8: e59f007c ldr r0, [pc, #124] ; 815c <kelima$+0x34>
80dc: eb000020 bl 8164 <delay>
80e0: e2544001 subs r4, r4, #1
80e4: 1afffff5 bne 80c0 <ketiga$>
80e8: e59f0070 ldr r0, [pc, #112] ; 8160 <kelima$+0x38>
80ec: eb00001c bl 8164 <delay>
80f0: e3a04005 mov r4, #5
000080f4 <keempat$>:
80f4: e3a00001 mov r0, #1
80f8: eb000021 bl 8184 <set_led_state>
80fc: e59f0058 ldr r0, [pc, #88] ; 815c <kelima$+0x34>
8100: eb000017 bl 8164 <delay>
8104: e3a00000 mov r0, #0
8108: eb00001d bl 8184 <set_led_state>
810c: e59f0048 ldr r0, [pc, #72] ; 815c <kelima$+0x34>
8110: eb000013 bl 8164 <delay>
8114: e2544001 subs r4, r4, #1
8118: 1afffff5 bne 80f4 <keempat$>
811c: e59f003c ldr r0, [pc, #60] ; 8160 <kelima$+0x38>
8120: eb00000f bl 8164 <delay>
8124: e3a04001 mov r4, #1
00008128 <kelima$>:
8128: e3a00001 mov r0, #1
812c: eb000014 bl 8184 <set_led_state>
8130: e59f0024 ldr r0, [pc, #36] ; 815c <kelima$+0x34>
8134: eb00000a bl 8164 <delay>
8138: e3a00000 mov r0, #0
813c: eb000010 bl 8184 <set_led_state>
8140: e59f0014 ldr r0, [pc, #20] ; 815c <kelima$+0x34>
8144: eb000006 bl 8164 <delay>
8148: e2544001 subs r4, r4, #1
814c: 1afffff5 bne 8128 <kelima$>
8150: e59f0008 ldr r0, [pc, #8] ; 8160 <kelima$+0x38>
8154: eb000002 bl 8164 <delay>
8158: eaffffbd b 8054 <_main>
815c: 00030d40 .word 0x00030d40
8160: 001e8480 .word 0x001e8480
00008164 <delay>:
8164: e3a0143f mov r1, #1056964608 ; 0x3f000000
8168: e3811a03 orr r1, r1, #12288 ; 0x3000
816c: e5912004 ldr r2, [r1, #4]
00008170 <delay1$>:
8170: e5913004 ldr r3, [r1, #4]
8174: e0433002 sub r3, r3, r2
8178: e1530000 cmp r3, r0
817c: bafffffb blt 8170 <delay1$>
8180: e1a0f00e mov pc, lr
00008184 <set_led_state>:
8184: e52de004 push {lr} ; (str lr, [sp, #-4]!)
8188: e1a01000 mov r1, r0
818c: e59f0028 ldr r0, [pc, #40] ; 81bc <set_led_state+0x38>
8190: e3a02000 mov r2, #0
8194: e5802004 str r2, [r0, #4]
8198: e5802010 str r2, [r0, #16]
819c: e3a02082 mov r2, #130 ; 0x82
81a0: e5802014 str r2, [r0, #20]
81a4: e5801018 str r1, [r0, #24]
81a8: e2800008 add r0, r0, #8
81ac: ebffff95 bl 8008 <mailbox_write>
81b0: e3a00008 mov r0, #8
81b4: ebffff99 bl 8020 <mailbox_read>
81b8: e49df004 pop {pc} ; (ldr pc, [sp], #4)
81bc: 000081c0 .word 0x000081c0