2020-04-06 09:19:53 +00:00
|
|
|
|
|
|
|
gpio: file format elf32-littleriscv
|
|
|
|
|
|
|
|
|
|
|
|
Disassembly of section .init:
|
|
|
|
|
|
|
|
00000000 <_start>:
|
2020-04-11 11:03:49 +00:00
|
|
|
0: 10001197 auipc gp,0x10001
|
|
|
|
4: 80018193 addi gp,gp,-2048 # 10000800 <__global_pointer$>
|
|
|
|
8: 10002117 auipc sp,0x10002
|
|
|
|
c: ff810113 addi sp,sp,-8 # 10002000 <_sp>
|
|
|
|
10: 34000513 li a0,832
|
|
|
|
14: 10000597 auipc a1,0x10000
|
|
|
|
18: fec58593 addi a1,a1,-20 # 10000000 <__bss_start>
|
|
|
|
1c: 10000617 auipc a2,0x10000
|
|
|
|
20: fe460613 addi a2,a2,-28 # 10000000 <__bss_start>
|
|
|
|
24: 00c5fc63 bgeu a1,a2,3c <_start+0x3c>
|
|
|
|
28: 00052283 lw t0,0(a0)
|
|
|
|
2c: 0055a023 sw t0,0(a1)
|
|
|
|
30: 00450513 addi a0,a0,4
|
|
|
|
34: 00458593 addi a1,a1,4
|
|
|
|
38: fec5e8e3 bltu a1,a2,28 <_start+0x28>
|
|
|
|
3c: 10000517 auipc a0,0x10000
|
|
|
|
40: fc450513 addi a0,a0,-60 # 10000000 <__bss_start>
|
|
|
|
44: 10000597 auipc a1,0x10000
|
|
|
|
48: fbc58593 addi a1,a1,-68 # 10000000 <__bss_start>
|
|
|
|
4c: 00b57863 bgeu a0,a1,5c <_start+0x5c>
|
|
|
|
50: 00052023 sw zero,0(a0)
|
|
|
|
54: 00450513 addi a0,a0,4
|
|
|
|
58: feb56ce3 bltu a0,a1,50 <_start+0x50>
|
|
|
|
5c: 188000ef jal ra,1e4 <_init>
|
|
|
|
60: 118000ef jal ra,178 <main>
|
2020-04-06 09:19:53 +00:00
|
|
|
|
2020-04-06 13:28:56 +00:00
|
|
|
00000064 <loop>:
|
|
|
|
64: 0000006f j 64 <loop>
|
|
|
|
|
2020-04-11 11:03:49 +00:00
|
|
|
Disassembly of section .text:
|
|
|
|
|
|
|
|
00000068 <trap_entry>:
|
2020-04-06 13:28:56 +00:00
|
|
|
68: f8010113 addi sp,sp,-128
|
|
|
|
6c: 00112223 sw ra,4(sp)
|
|
|
|
70: 00212423 sw sp,8(sp)
|
|
|
|
74: 00312623 sw gp,12(sp)
|
|
|
|
78: 00412823 sw tp,16(sp)
|
|
|
|
7c: 00512a23 sw t0,20(sp)
|
|
|
|
80: 00612c23 sw t1,24(sp)
|
|
|
|
84: 00712e23 sw t2,28(sp)
|
|
|
|
88: 02812023 sw s0,32(sp)
|
|
|
|
8c: 02912223 sw s1,36(sp)
|
|
|
|
90: 02a12423 sw a0,40(sp)
|
|
|
|
94: 02b12623 sw a1,44(sp)
|
|
|
|
98: 02c12823 sw a2,48(sp)
|
|
|
|
9c: 02d12a23 sw a3,52(sp)
|
|
|
|
a0: 02e12c23 sw a4,56(sp)
|
|
|
|
a4: 02f12e23 sw a5,60(sp)
|
|
|
|
a8: 05012023 sw a6,64(sp)
|
|
|
|
ac: 05112223 sw a7,68(sp)
|
|
|
|
b0: 05212423 sw s2,72(sp)
|
|
|
|
b4: 05312623 sw s3,76(sp)
|
|
|
|
b8: 05412823 sw s4,80(sp)
|
|
|
|
bc: 05512a23 sw s5,84(sp)
|
|
|
|
c0: 05612c23 sw s6,88(sp)
|
|
|
|
c4: 05712e23 sw s7,92(sp)
|
|
|
|
c8: 07812023 sw s8,96(sp)
|
|
|
|
cc: 07912223 sw s9,100(sp)
|
|
|
|
d0: 07a12423 sw s10,104(sp)
|
|
|
|
d4: 07b12623 sw s11,108(sp)
|
|
|
|
d8: 07c12823 sw t3,112(sp)
|
|
|
|
dc: 07d12a23 sw t4,116(sp)
|
|
|
|
e0: 07e12c23 sw t5,120(sp)
|
|
|
|
e4: 07f12e23 sw t6,124(sp)
|
2020-04-11 11:03:49 +00:00
|
|
|
e8: 34202573 csrr a0,mcause
|
|
|
|
ec: 0c8000ef jal ra,1b4 <trap_handler>
|
2020-04-06 13:28:56 +00:00
|
|
|
f0: 00412083 lw ra,4(sp)
|
|
|
|
f4: 00812103 lw sp,8(sp)
|
|
|
|
f8: 00c12183 lw gp,12(sp)
|
|
|
|
fc: 01012203 lw tp,16(sp)
|
|
|
|
100: 01412283 lw t0,20(sp)
|
|
|
|
104: 01812303 lw t1,24(sp)
|
|
|
|
108: 01c12383 lw t2,28(sp)
|
|
|
|
10c: 02012403 lw s0,32(sp)
|
|
|
|
110: 02412483 lw s1,36(sp)
|
|
|
|
114: 02812503 lw a0,40(sp)
|
|
|
|
118: 02c12583 lw a1,44(sp)
|
|
|
|
11c: 03012603 lw a2,48(sp)
|
|
|
|
120: 03412683 lw a3,52(sp)
|
|
|
|
124: 03812703 lw a4,56(sp)
|
|
|
|
128: 03c12783 lw a5,60(sp)
|
|
|
|
12c: 04012803 lw a6,64(sp)
|
|
|
|
130: 04412883 lw a7,68(sp)
|
|
|
|
134: 04812903 lw s2,72(sp)
|
|
|
|
138: 04c12983 lw s3,76(sp)
|
|
|
|
13c: 05012a03 lw s4,80(sp)
|
|
|
|
140: 05412a83 lw s5,84(sp)
|
|
|
|
144: 05812b03 lw s6,88(sp)
|
|
|
|
148: 05c12b83 lw s7,92(sp)
|
|
|
|
14c: 06012c03 lw s8,96(sp)
|
|
|
|
150: 06412c83 lw s9,100(sp)
|
|
|
|
154: 06812d03 lw s10,104(sp)
|
|
|
|
158: 06c12d83 lw s11,108(sp)
|
|
|
|
15c: 07012e03 lw t3,112(sp)
|
|
|
|
160: 07412e83 lw t4,116(sp)
|
|
|
|
164: 07812f03 lw t5,120(sp)
|
|
|
|
168: 07c12f83 lw t6,124(sp)
|
|
|
|
16c: 08010113 addi sp,sp,128
|
|
|
|
170: 30200073 mret
|
2020-04-11 11:03:49 +00:00
|
|
|
174: 0000006f j 174 <trap_entry+0x10c>
|
2020-04-06 09:19:53 +00:00
|
|
|
|
2020-04-11 11:03:49 +00:00
|
|
|
00000178 <main>:
|
|
|
|
178: ff010113 addi sp,sp,-16
|
|
|
|
17c: 00112623 sw ra,12(sp)
|
|
|
|
180: 00812423 sw s0,8(sp)
|
|
|
|
184: 01010413 addi s0,sp,16
|
|
|
|
188: 400007b7 lui a5,0x40000
|
|
|
|
18c: 00478793 addi a5,a5,4 # 40000004 <_sp+0x2fffe004>
|
|
|
|
190: 0007a703 lw a4,0(a5)
|
|
|
|
194: 400007b7 lui a5,0x40000
|
|
|
|
198: 00478793 addi a5,a5,4 # 40000004 <_sp+0x2fffe004>
|
|
|
|
19c: 00174713 xori a4,a4,1
|
|
|
|
1a0: 00e7a023 sw a4,0(a5)
|
|
|
|
1a4: 0007a7b7 lui a5,0x7a
|
|
|
|
1a8: 12078513 addi a0,a5,288 # 7a120 <__stack_size+0x79920>
|
|
|
|
1ac: 0e0000ef jal ra,28c <busy_wait>
|
|
|
|
1b0: fd9ff06f j 188 <main+0x10>
|
|
|
|
|
|
|
|
000001b4 <trap_handler>:
|
|
|
|
1b4: fe010113 addi sp,sp,-32
|
|
|
|
1b8: 00112e23 sw ra,28(sp)
|
|
|
|
1bc: 00812c23 sw s0,24(sp)
|
|
|
|
1c0: 02010413 addi s0,sp,32
|
|
|
|
1c4: fea42623 sw a0,-20(s0)
|
|
|
|
1c8: 00000097 auipc ra,0x0
|
|
|
|
1cc: 000000e7 jalr zero # 0 <_start>
|
|
|
|
1d0: 00000013 nop
|
|
|
|
1d4: 01c12083 lw ra,28(sp)
|
|
|
|
1d8: 01812403 lw s0,24(sp)
|
|
|
|
1dc: 02010113 addi sp,sp,32
|
|
|
|
1e0: 00008067 ret
|
|
|
|
|
|
|
|
000001e4 <_init>:
|
|
|
|
1e4: ff010113 addi sp,sp,-16
|
|
|
|
1e8: 00812623 sw s0,12(sp)
|
|
|
|
1ec: 01010413 addi s0,sp,16
|
|
|
|
1f0: 00000797 auipc a5,0x0
|
|
|
|
1f4: e7878793 addi a5,a5,-392 # 68 <trap_entry>
|
|
|
|
1f8: 30579073 csrw mtvec,a5
|
|
|
|
1fc: 00000013 nop
|
|
|
|
200: 00c12403 lw s0,12(sp)
|
|
|
|
204: 01010113 addi sp,sp,16
|
|
|
|
208: 00008067 ret
|
|
|
|
|
|
|
|
0000020c <get_cycle_value>:
|
|
|
|
20c: fd010113 addi sp,sp,-48
|
|
|
|
210: 02812623 sw s0,44(sp)
|
|
|
|
214: 03010413 addi s0,sp,48
|
|
|
|
218: c0002773 rdcycle a4
|
|
|
|
21c: fee42623 sw a4,-20(s0)
|
|
|
|
220: fec42703 lw a4,-20(s0)
|
|
|
|
224: fee42023 sw a4,-32(s0)
|
|
|
|
228: fe042223 sw zero,-28(s0)
|
|
|
|
22c: c8002773 rdcycleh a4
|
|
|
|
230: fce42e23 sw a4,-36(s0)
|
|
|
|
234: fdc42703 lw a4,-36(s0)
|
|
|
|
238: 00070793 mv a5,a4
|
|
|
|
23c: 00000813 li a6,0
|
|
|
|
240: 00079613 slli a2,a5,0x0
|
|
|
|
244: 00000593 li a1,0
|
|
|
|
248: fe042683 lw a3,-32(s0)
|
|
|
|
24c: fe442703 lw a4,-28(s0)
|
|
|
|
250: 00b687b3 add a5,a3,a1
|
|
|
|
254: 00078513 mv a0,a5
|
|
|
|
258: 00d53533 sltu a0,a0,a3
|
|
|
|
25c: 00c70833 add a6,a4,a2
|
|
|
|
260: 01050733 add a4,a0,a6
|
|
|
|
264: 00070813 mv a6,a4
|
|
|
|
268: fef42023 sw a5,-32(s0)
|
|
|
|
26c: ff042223 sw a6,-28(s0)
|
|
|
|
270: fe042783 lw a5,-32(s0)
|
|
|
|
274: fe442803 lw a6,-28(s0)
|
|
|
|
278: 00078513 mv a0,a5
|
|
|
|
27c: 00080593 mv a1,a6
|
|
|
|
280: 02c12403 lw s0,44(sp)
|
|
|
|
284: 03010113 addi sp,sp,48
|
|
|
|
288: 00008067 ret
|
2020-04-06 09:19:53 +00:00
|
|
|
|
2020-04-11 11:03:49 +00:00
|
|
|
0000028c <busy_wait>:
|
|
|
|
28c: fd010113 addi sp,sp,-48
|
|
|
|
290: 02112623 sw ra,44(sp)
|
|
|
|
294: 02812423 sw s0,40(sp)
|
|
|
|
298: 03212223 sw s2,36(sp)
|
|
|
|
29c: 03312023 sw s3,32(sp)
|
|
|
|
2a0: 03010413 addi s0,sp,48
|
|
|
|
2a4: fca42e23 sw a0,-36(s0)
|
|
|
|
2a8: fdc42703 lw a4,-36(s0)
|
|
|
|
2ac: 03200793 li a5,50
|
|
|
|
2b0: 02f707b3 mul a5,a4,a5
|
|
|
|
2b4: fef42623 sw a5,-20(s0)
|
|
|
|
2b8: f55ff0ef jal ra,20c <get_cycle_value>
|
|
|
|
2bc: fea42023 sw a0,-32(s0)
|
|
|
|
2c0: feb42223 sw a1,-28(s0)
|
|
|
|
2c4: 00000013 nop
|
|
|
|
2c8: f45ff0ef jal ra,20c <get_cycle_value>
|
|
|
|
2cc: 00058613 mv a2,a1
|
|
|
|
2d0: 00050593 mv a1,a0
|
|
|
|
2d4: fec42783 lw a5,-20(s0)
|
|
|
|
2d8: 00078913 mv s2,a5
|
|
|
|
2dc: 00000993 li s3,0
|
|
|
|
2e0: fe042683 lw a3,-32(s0)
|
|
|
|
2e4: fe442703 lw a4,-28(s0)
|
|
|
|
2e8: 00d907b3 add a5,s2,a3
|
|
|
|
2ec: 00078513 mv a0,a5
|
|
|
|
2f0: 01253533 sltu a0,a0,s2
|
|
|
|
2f4: 00e98833 add a6,s3,a4
|
|
|
|
2f8: 01050733 add a4,a0,a6
|
|
|
|
2fc: 00070813 mv a6,a4
|
|
|
|
300: 00080693 mv a3,a6
|
|
|
|
304: 00060713 mv a4,a2
|
|
|
|
308: fcd760e3 bltu a4,a3,2c8 <busy_wait+0x3c>
|
|
|
|
30c: 00080693 mv a3,a6
|
|
|
|
310: 00060713 mv a4,a2
|
|
|
|
314: 00e69863 bne a3,a4,324 <busy_wait+0x98>
|
|
|
|
318: 00078713 mv a4,a5
|
|
|
|
31c: 00058793 mv a5,a1
|
|
|
|
320: fae7e4e3 bltu a5,a4,2c8 <busy_wait+0x3c>
|
|
|
|
324: 00000013 nop
|
|
|
|
328: 02c12083 lw ra,44(sp)
|
|
|
|
32c: 02812403 lw s0,40(sp)
|
|
|
|
330: 02412903 lw s2,36(sp)
|
|
|
|
334: 02012983 lw s3,32(sp)
|
|
|
|
338: 03010113 addi sp,sp,48
|
|
|
|
33c: 00008067 ret
|
2020-04-06 09:19:53 +00:00
|
|
|
|
|
|
|
Disassembly of section .stack:
|
|
|
|
|
2020-04-11 11:03:49 +00:00
|
|
|
10001800 <_sp-0x800>:
|
2020-04-06 09:19:53 +00:00
|
|
|
...
|
|
|
|
|
|
|
|
Disassembly of section .comment:
|
|
|
|
|
|
|
|
00000000 <.comment>:
|
|
|
|
0: 3a434347 fmsub.d ft6,ft6,ft4,ft7,rmm
|
|
|
|
4: 2820 fld fs0,80(s0)
|
|
|
|
6: 20554e47 fmsub.s ft8,fa0,ft5,ft4,rmm
|
|
|
|
a: 434d li t1,19
|
2020-04-11 11:03:49 +00:00
|
|
|
c: 2055 jal b0 <trap_entry+0x48>
|
2020-04-06 09:19:53 +00:00
|
|
|
e: 6345 lui t1,0x11
|
|
|
|
10: 696c flw fa1,84(a0)
|
|
|
|
12: 7370 flw fa2,100(a4)
|
2020-04-11 11:03:49 +00:00
|
|
|
14: 2065 jal bc <trap_entry+0x54>
|
2020-04-06 09:19:53 +00:00
|
|
|
16: 4952 lw s2,20(sp)
|
|
|
|
18: 562d4353 0x562d4353
|
|
|
|
1c: 4520 lw s0,72(a0)
|
|
|
|
1e: 626d lui tp,0x1b
|
|
|
|
20: 6465 lui s0,0x19
|
|
|
|
22: 6564 flw fs1,76(a0)
|
|
|
|
24: 2064 fld fs1,192(s0)
|
|
|
|
26: 2c434347 0x2c434347
|
|
|
|
2a: 3620 fld fs0,104(a2)
|
|
|
|
2c: 2d34 fld fa3,88(a0)
|
|
|
|
2e: 6962 flw fs2,24(sp)
|
|
|
|
30: 2974 fld fa3,208(a0)
|
|
|
|
32: 3820 fld fs0,112(s0)
|
|
|
|
34: 322e fld ft4,232(sp)
|
|
|
|
36: 302e fld ft0,232(sp)
|
|
|
|
...
|