mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS-demo.git
synced 2025-06-10 02:05:58 +00:00
45973 lines
1.7 MiB
45973 lines
1.7 MiB
|
|
TACOS-demo.elf: file format elf32-littlearm
|
|
|
|
Sections:
|
|
Idx Name Size VMA LMA File off Algn
|
|
0 .isr_vector 00000188 08000000 08000000 00001000 2**0
|
|
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
|
1 .text 0001284c 08000190 08000190 00001190 2**4
|
|
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
|
2 .rodata 00000d58 080129e0 080129e0 000139e0 2**3
|
|
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
|
3 .ARM.extab 00000000 08013738 08013738 000151dc 2**0
|
|
CONTENTS
|
|
4 .ARM 00000008 08013738 08013738 00014738 2**2
|
|
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
|
5 .preinit_array 00000000 08013740 08013740 000151dc 2**0
|
|
CONTENTS, ALLOC, LOAD, DATA
|
|
6 .init_array 0000000c 08013740 08013740 00014740 2**2
|
|
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
|
7 .fini_array 00000008 0801374c 0801374c 0001474c 2**2
|
|
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
|
8 .data 000001dc 20000000 08013754 00015000 2**2
|
|
CONTENTS, ALLOC, LOAD, DATA
|
|
9 .ccmram 00000000 10000000 10000000 000151dc 2**0
|
|
CONTENTS
|
|
10 .bss 0000883c 200001dc 200001dc 000151dc 2**2
|
|
ALLOC
|
|
11 ._user_heap_stack 00000600 20008a18 20008a18 000151dc 2**0
|
|
ALLOC
|
|
12 .ARM.attributes 00000030 00000000 00000000 000151dc 2**0
|
|
CONTENTS, READONLY
|
|
13 .debug_info 000533b4 00000000 00000000 0001520c 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
14 .debug_abbrev 0000b076 00000000 00000000 000685c0 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
15 .debug_aranges 00002fe8 00000000 00000000 00073638 2**3
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
16 .debug_rnglists 0000243a 00000000 00000000 00076620 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
17 .debug_macro 0002efe7 00000000 00000000 00078a5a 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
18 .debug_line 0003596d 00000000 00000000 000a7a41 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
19 .debug_str 0010508e 00000000 00000000 000dd3ae 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
20 .comment 00000043 00000000 00000000 001e243c 2**0
|
|
CONTENTS, READONLY
|
|
21 .debug_frame 0000e5f8 00000000 00000000 001e2480 2**2
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
22 .debug_line_str 0000006b 00000000 00000000 001f0a78 2**0
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS
|
|
|
|
Disassembly of section .text:
|
|
|
|
08000190 <__do_global_dtors_aux>:
|
|
8000190: b510 push {r4, lr}
|
|
8000192: 4c05 ldr r4, [pc, #20] @ (80001a8 <__do_global_dtors_aux+0x18>)
|
|
8000194: 7823 ldrb r3, [r4, #0]
|
|
8000196: b933 cbnz r3, 80001a6 <__do_global_dtors_aux+0x16>
|
|
8000198: 4b04 ldr r3, [pc, #16] @ (80001ac <__do_global_dtors_aux+0x1c>)
|
|
800019a: b113 cbz r3, 80001a2 <__do_global_dtors_aux+0x12>
|
|
800019c: 4804 ldr r0, [pc, #16] @ (80001b0 <__do_global_dtors_aux+0x20>)
|
|
800019e: f3af 8000 nop.w
|
|
80001a2: 2301 movs r3, #1
|
|
80001a4: 7023 strb r3, [r4, #0]
|
|
80001a6: bd10 pop {r4, pc}
|
|
80001a8: 200001dc .word 0x200001dc
|
|
80001ac: 00000000 .word 0x00000000
|
|
80001b0: 080129c4 .word 0x080129c4
|
|
|
|
080001b4 <frame_dummy>:
|
|
80001b4: b508 push {r3, lr}
|
|
80001b6: 4b03 ldr r3, [pc, #12] @ (80001c4 <frame_dummy+0x10>)
|
|
80001b8: b11b cbz r3, 80001c2 <frame_dummy+0xe>
|
|
80001ba: 4903 ldr r1, [pc, #12] @ (80001c8 <frame_dummy+0x14>)
|
|
80001bc: 4803 ldr r0, [pc, #12] @ (80001cc <frame_dummy+0x18>)
|
|
80001be: f3af 8000 nop.w
|
|
80001c2: bd08 pop {r3, pc}
|
|
80001c4: 00000000 .word 0x00000000
|
|
80001c8: 200001e0 .word 0x200001e0
|
|
80001cc: 080129c4 .word 0x080129c4
|
|
|
|
080001d0 <strcmp>:
|
|
80001d0: f810 2b01 ldrb.w r2, [r0], #1
|
|
80001d4: f811 3b01 ldrb.w r3, [r1], #1
|
|
80001d8: 2a01 cmp r2, #1
|
|
80001da: bf28 it cs
|
|
80001dc: 429a cmpcs r2, r3
|
|
80001de: d0f7 beq.n 80001d0 <strcmp>
|
|
80001e0: 1ad0 subs r0, r2, r3
|
|
80001e2: 4770 bx lr
|
|
...
|
|
|
|
080001f0 <memchr>:
|
|
80001f0: f001 01ff and.w r1, r1, #255 @ 0xff
|
|
80001f4: 2a10 cmp r2, #16
|
|
80001f6: db2b blt.n 8000250 <memchr+0x60>
|
|
80001f8: f010 0f07 tst.w r0, #7
|
|
80001fc: d008 beq.n 8000210 <memchr+0x20>
|
|
80001fe: f810 3b01 ldrb.w r3, [r0], #1
|
|
8000202: 3a01 subs r2, #1
|
|
8000204: 428b cmp r3, r1
|
|
8000206: d02d beq.n 8000264 <memchr+0x74>
|
|
8000208: f010 0f07 tst.w r0, #7
|
|
800020c: b342 cbz r2, 8000260 <memchr+0x70>
|
|
800020e: d1f6 bne.n 80001fe <memchr+0xe>
|
|
8000210: b4f0 push {r4, r5, r6, r7}
|
|
8000212: ea41 2101 orr.w r1, r1, r1, lsl #8
|
|
8000216: ea41 4101 orr.w r1, r1, r1, lsl #16
|
|
800021a: f022 0407 bic.w r4, r2, #7
|
|
800021e: f07f 0700 mvns.w r7, #0
|
|
8000222: 2300 movs r3, #0
|
|
8000224: e8f0 5602 ldrd r5, r6, [r0], #8
|
|
8000228: 3c08 subs r4, #8
|
|
800022a: ea85 0501 eor.w r5, r5, r1
|
|
800022e: ea86 0601 eor.w r6, r6, r1
|
|
8000232: fa85 f547 uadd8 r5, r5, r7
|
|
8000236: faa3 f587 sel r5, r3, r7
|
|
800023a: fa86 f647 uadd8 r6, r6, r7
|
|
800023e: faa5 f687 sel r6, r5, r7
|
|
8000242: b98e cbnz r6, 8000268 <memchr+0x78>
|
|
8000244: d1ee bne.n 8000224 <memchr+0x34>
|
|
8000246: bcf0 pop {r4, r5, r6, r7}
|
|
8000248: f001 01ff and.w r1, r1, #255 @ 0xff
|
|
800024c: f002 0207 and.w r2, r2, #7
|
|
8000250: b132 cbz r2, 8000260 <memchr+0x70>
|
|
8000252: f810 3b01 ldrb.w r3, [r0], #1
|
|
8000256: 3a01 subs r2, #1
|
|
8000258: ea83 0301 eor.w r3, r3, r1
|
|
800025c: b113 cbz r3, 8000264 <memchr+0x74>
|
|
800025e: d1f8 bne.n 8000252 <memchr+0x62>
|
|
8000260: 2000 movs r0, #0
|
|
8000262: 4770 bx lr
|
|
8000264: 3801 subs r0, #1
|
|
8000266: 4770 bx lr
|
|
8000268: 2d00 cmp r5, #0
|
|
800026a: bf06 itte eq
|
|
800026c: 4635 moveq r5, r6
|
|
800026e: 3803 subeq r0, #3
|
|
8000270: 3807 subne r0, #7
|
|
8000272: f015 0f01 tst.w r5, #1
|
|
8000276: d107 bne.n 8000288 <memchr+0x98>
|
|
8000278: 3001 adds r0, #1
|
|
800027a: f415 7f80 tst.w r5, #256 @ 0x100
|
|
800027e: bf02 ittt eq
|
|
8000280: 3001 addeq r0, #1
|
|
8000282: f415 3fc0 tsteq.w r5, #98304 @ 0x18000
|
|
8000286: 3001 addeq r0, #1
|
|
8000288: bcf0 pop {r4, r5, r6, r7}
|
|
800028a: 3801 subs r0, #1
|
|
800028c: 4770 bx lr
|
|
800028e: bf00 nop
|
|
|
|
08000290 <strlen>:
|
|
8000290: 4603 mov r3, r0
|
|
8000292: f813 2b01 ldrb.w r2, [r3], #1
|
|
8000296: 2a00 cmp r2, #0
|
|
8000298: d1fb bne.n 8000292 <strlen+0x2>
|
|
800029a: 1a18 subs r0, r3, r0
|
|
800029c: 3801 subs r0, #1
|
|
800029e: 4770 bx lr
|
|
|
|
080002a0 <__aeabi_drsub>:
|
|
80002a0: f081 4100 eor.w r1, r1, #2147483648 @ 0x80000000
|
|
80002a4: e002 b.n 80002ac <__adddf3>
|
|
80002a6: bf00 nop
|
|
|
|
080002a8 <__aeabi_dsub>:
|
|
80002a8: f083 4300 eor.w r3, r3, #2147483648 @ 0x80000000
|
|
|
|
080002ac <__adddf3>:
|
|
80002ac: b530 push {r4, r5, lr}
|
|
80002ae: ea4f 0441 mov.w r4, r1, lsl #1
|
|
80002b2: ea4f 0543 mov.w r5, r3, lsl #1
|
|
80002b6: ea94 0f05 teq r4, r5
|
|
80002ba: bf08 it eq
|
|
80002bc: ea90 0f02 teqeq r0, r2
|
|
80002c0: bf1f itttt ne
|
|
80002c2: ea54 0c00 orrsne.w ip, r4, r0
|
|
80002c6: ea55 0c02 orrsne.w ip, r5, r2
|
|
80002ca: ea7f 5c64 mvnsne.w ip, r4, asr #21
|
|
80002ce: ea7f 5c65 mvnsne.w ip, r5, asr #21
|
|
80002d2: f000 80e2 beq.w 800049a <__adddf3+0x1ee>
|
|
80002d6: ea4f 5454 mov.w r4, r4, lsr #21
|
|
80002da: ebd4 5555 rsbs r5, r4, r5, lsr #21
|
|
80002de: bfb8 it lt
|
|
80002e0: 426d neglt r5, r5
|
|
80002e2: dd0c ble.n 80002fe <__adddf3+0x52>
|
|
80002e4: 442c add r4, r5
|
|
80002e6: ea80 0202 eor.w r2, r0, r2
|
|
80002ea: ea81 0303 eor.w r3, r1, r3
|
|
80002ee: ea82 0000 eor.w r0, r2, r0
|
|
80002f2: ea83 0101 eor.w r1, r3, r1
|
|
80002f6: ea80 0202 eor.w r2, r0, r2
|
|
80002fa: ea81 0303 eor.w r3, r1, r3
|
|
80002fe: 2d36 cmp r5, #54 @ 0x36
|
|
8000300: bf88 it hi
|
|
8000302: bd30 pophi {r4, r5, pc}
|
|
8000304: f011 4f00 tst.w r1, #2147483648 @ 0x80000000
|
|
8000308: ea4f 3101 mov.w r1, r1, lsl #12
|
|
800030c: f44f 1c80 mov.w ip, #1048576 @ 0x100000
|
|
8000310: ea4c 3111 orr.w r1, ip, r1, lsr #12
|
|
8000314: d002 beq.n 800031c <__adddf3+0x70>
|
|
8000316: 4240 negs r0, r0
|
|
8000318: eb61 0141 sbc.w r1, r1, r1, lsl #1
|
|
800031c: f013 4f00 tst.w r3, #2147483648 @ 0x80000000
|
|
8000320: ea4f 3303 mov.w r3, r3, lsl #12
|
|
8000324: ea4c 3313 orr.w r3, ip, r3, lsr #12
|
|
8000328: d002 beq.n 8000330 <__adddf3+0x84>
|
|
800032a: 4252 negs r2, r2
|
|
800032c: eb63 0343 sbc.w r3, r3, r3, lsl #1
|
|
8000330: ea94 0f05 teq r4, r5
|
|
8000334: f000 80a7 beq.w 8000486 <__adddf3+0x1da>
|
|
8000338: f1a4 0401 sub.w r4, r4, #1
|
|
800033c: f1d5 0e20 rsbs lr, r5, #32
|
|
8000340: db0d blt.n 800035e <__adddf3+0xb2>
|
|
8000342: fa02 fc0e lsl.w ip, r2, lr
|
|
8000346: fa22 f205 lsr.w r2, r2, r5
|
|
800034a: 1880 adds r0, r0, r2
|
|
800034c: f141 0100 adc.w r1, r1, #0
|
|
8000350: fa03 f20e lsl.w r2, r3, lr
|
|
8000354: 1880 adds r0, r0, r2
|
|
8000356: fa43 f305 asr.w r3, r3, r5
|
|
800035a: 4159 adcs r1, r3
|
|
800035c: e00e b.n 800037c <__adddf3+0xd0>
|
|
800035e: f1a5 0520 sub.w r5, r5, #32
|
|
8000362: f10e 0e20 add.w lr, lr, #32
|
|
8000366: 2a01 cmp r2, #1
|
|
8000368: fa03 fc0e lsl.w ip, r3, lr
|
|
800036c: bf28 it cs
|
|
800036e: f04c 0c02 orrcs.w ip, ip, #2
|
|
8000372: fa43 f305 asr.w r3, r3, r5
|
|
8000376: 18c0 adds r0, r0, r3
|
|
8000378: eb51 71e3 adcs.w r1, r1, r3, asr #31
|
|
800037c: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
|
|
8000380: d507 bpl.n 8000392 <__adddf3+0xe6>
|
|
8000382: f04f 0e00 mov.w lr, #0
|
|
8000386: f1dc 0c00 rsbs ip, ip, #0
|
|
800038a: eb7e 0000 sbcs.w r0, lr, r0
|
|
800038e: eb6e 0101 sbc.w r1, lr, r1
|
|
8000392: f5b1 1f80 cmp.w r1, #1048576 @ 0x100000
|
|
8000396: d31b bcc.n 80003d0 <__adddf3+0x124>
|
|
8000398: f5b1 1f00 cmp.w r1, #2097152 @ 0x200000
|
|
800039c: d30c bcc.n 80003b8 <__adddf3+0x10c>
|
|
800039e: 0849 lsrs r1, r1, #1
|
|
80003a0: ea5f 0030 movs.w r0, r0, rrx
|
|
80003a4: ea4f 0c3c mov.w ip, ip, rrx
|
|
80003a8: f104 0401 add.w r4, r4, #1
|
|
80003ac: ea4f 5244 mov.w r2, r4, lsl #21
|
|
80003b0: f512 0f80 cmn.w r2, #4194304 @ 0x400000
|
|
80003b4: f080 809a bcs.w 80004ec <__adddf3+0x240>
|
|
80003b8: f1bc 4f00 cmp.w ip, #2147483648 @ 0x80000000
|
|
80003bc: bf08 it eq
|
|
80003be: ea5f 0c50 movseq.w ip, r0, lsr #1
|
|
80003c2: f150 0000 adcs.w r0, r0, #0
|
|
80003c6: eb41 5104 adc.w r1, r1, r4, lsl #20
|
|
80003ca: ea41 0105 orr.w r1, r1, r5
|
|
80003ce: bd30 pop {r4, r5, pc}
|
|
80003d0: ea5f 0c4c movs.w ip, ip, lsl #1
|
|
80003d4: 4140 adcs r0, r0
|
|
80003d6: eb41 0101 adc.w r1, r1, r1
|
|
80003da: 3c01 subs r4, #1
|
|
80003dc: bf28 it cs
|
|
80003de: f5b1 1f80 cmpcs.w r1, #1048576 @ 0x100000
|
|
80003e2: d2e9 bcs.n 80003b8 <__adddf3+0x10c>
|
|
80003e4: f091 0f00 teq r1, #0
|
|
80003e8: bf04 itt eq
|
|
80003ea: 4601 moveq r1, r0
|
|
80003ec: 2000 moveq r0, #0
|
|
80003ee: fab1 f381 clz r3, r1
|
|
80003f2: bf08 it eq
|
|
80003f4: 3320 addeq r3, #32
|
|
80003f6: f1a3 030b sub.w r3, r3, #11
|
|
80003fa: f1b3 0220 subs.w r2, r3, #32
|
|
80003fe: da0c bge.n 800041a <__adddf3+0x16e>
|
|
8000400: 320c adds r2, #12
|
|
8000402: dd08 ble.n 8000416 <__adddf3+0x16a>
|
|
8000404: f102 0c14 add.w ip, r2, #20
|
|
8000408: f1c2 020c rsb r2, r2, #12
|
|
800040c: fa01 f00c lsl.w r0, r1, ip
|
|
8000410: fa21 f102 lsr.w r1, r1, r2
|
|
8000414: e00c b.n 8000430 <__adddf3+0x184>
|
|
8000416: f102 0214 add.w r2, r2, #20
|
|
800041a: bfd8 it le
|
|
800041c: f1c2 0c20 rsble ip, r2, #32
|
|
8000420: fa01 f102 lsl.w r1, r1, r2
|
|
8000424: fa20 fc0c lsr.w ip, r0, ip
|
|
8000428: bfdc itt le
|
|
800042a: ea41 010c orrle.w r1, r1, ip
|
|
800042e: 4090 lslle r0, r2
|
|
8000430: 1ae4 subs r4, r4, r3
|
|
8000432: bfa2 ittt ge
|
|
8000434: eb01 5104 addge.w r1, r1, r4, lsl #20
|
|
8000438: 4329 orrge r1, r5
|
|
800043a: bd30 popge {r4, r5, pc}
|
|
800043c: ea6f 0404 mvn.w r4, r4
|
|
8000440: 3c1f subs r4, #31
|
|
8000442: da1c bge.n 800047e <__adddf3+0x1d2>
|
|
8000444: 340c adds r4, #12
|
|
8000446: dc0e bgt.n 8000466 <__adddf3+0x1ba>
|
|
8000448: f104 0414 add.w r4, r4, #20
|
|
800044c: f1c4 0220 rsb r2, r4, #32
|
|
8000450: fa20 f004 lsr.w r0, r0, r4
|
|
8000454: fa01 f302 lsl.w r3, r1, r2
|
|
8000458: ea40 0003 orr.w r0, r0, r3
|
|
800045c: fa21 f304 lsr.w r3, r1, r4
|
|
8000460: ea45 0103 orr.w r1, r5, r3
|
|
8000464: bd30 pop {r4, r5, pc}
|
|
8000466: f1c4 040c rsb r4, r4, #12
|
|
800046a: f1c4 0220 rsb r2, r4, #32
|
|
800046e: fa20 f002 lsr.w r0, r0, r2
|
|
8000472: fa01 f304 lsl.w r3, r1, r4
|
|
8000476: ea40 0003 orr.w r0, r0, r3
|
|
800047a: 4629 mov r1, r5
|
|
800047c: bd30 pop {r4, r5, pc}
|
|
800047e: fa21 f004 lsr.w r0, r1, r4
|
|
8000482: 4629 mov r1, r5
|
|
8000484: bd30 pop {r4, r5, pc}
|
|
8000486: f094 0f00 teq r4, #0
|
|
800048a: f483 1380 eor.w r3, r3, #1048576 @ 0x100000
|
|
800048e: bf06 itte eq
|
|
8000490: f481 1180 eoreq.w r1, r1, #1048576 @ 0x100000
|
|
8000494: 3401 addeq r4, #1
|
|
8000496: 3d01 subne r5, #1
|
|
8000498: e74e b.n 8000338 <__adddf3+0x8c>
|
|
800049a: ea7f 5c64 mvns.w ip, r4, asr #21
|
|
800049e: bf18 it ne
|
|
80004a0: ea7f 5c65 mvnsne.w ip, r5, asr #21
|
|
80004a4: d029 beq.n 80004fa <__adddf3+0x24e>
|
|
80004a6: ea94 0f05 teq r4, r5
|
|
80004aa: bf08 it eq
|
|
80004ac: ea90 0f02 teqeq r0, r2
|
|
80004b0: d005 beq.n 80004be <__adddf3+0x212>
|
|
80004b2: ea54 0c00 orrs.w ip, r4, r0
|
|
80004b6: bf04 itt eq
|
|
80004b8: 4619 moveq r1, r3
|
|
80004ba: 4610 moveq r0, r2
|
|
80004bc: bd30 pop {r4, r5, pc}
|
|
80004be: ea91 0f03 teq r1, r3
|
|
80004c2: bf1e ittt ne
|
|
80004c4: 2100 movne r1, #0
|
|
80004c6: 2000 movne r0, #0
|
|
80004c8: bd30 popne {r4, r5, pc}
|
|
80004ca: ea5f 5c54 movs.w ip, r4, lsr #21
|
|
80004ce: d105 bne.n 80004dc <__adddf3+0x230>
|
|
80004d0: 0040 lsls r0, r0, #1
|
|
80004d2: 4149 adcs r1, r1
|
|
80004d4: bf28 it cs
|
|
80004d6: f041 4100 orrcs.w r1, r1, #2147483648 @ 0x80000000
|
|
80004da: bd30 pop {r4, r5, pc}
|
|
80004dc: f514 0480 adds.w r4, r4, #4194304 @ 0x400000
|
|
80004e0: bf3c itt cc
|
|
80004e2: f501 1180 addcc.w r1, r1, #1048576 @ 0x100000
|
|
80004e6: bd30 popcc {r4, r5, pc}
|
|
80004e8: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
|
|
80004ec: f045 41fe orr.w r1, r5, #2130706432 @ 0x7f000000
|
|
80004f0: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
|
|
80004f4: f04f 0000 mov.w r0, #0
|
|
80004f8: bd30 pop {r4, r5, pc}
|
|
80004fa: ea7f 5c64 mvns.w ip, r4, asr #21
|
|
80004fe: bf1a itte ne
|
|
8000500: 4619 movne r1, r3
|
|
8000502: 4610 movne r0, r2
|
|
8000504: ea7f 5c65 mvnseq.w ip, r5, asr #21
|
|
8000508: bf1c itt ne
|
|
800050a: 460b movne r3, r1
|
|
800050c: 4602 movne r2, r0
|
|
800050e: ea50 3401 orrs.w r4, r0, r1, lsl #12
|
|
8000512: bf06 itte eq
|
|
8000514: ea52 3503 orrseq.w r5, r2, r3, lsl #12
|
|
8000518: ea91 0f03 teqeq r1, r3
|
|
800051c: f441 2100 orrne.w r1, r1, #524288 @ 0x80000
|
|
8000520: bd30 pop {r4, r5, pc}
|
|
8000522: bf00 nop
|
|
|
|
08000524 <__aeabi_ui2d>:
|
|
8000524: f090 0f00 teq r0, #0
|
|
8000528: bf04 itt eq
|
|
800052a: 2100 moveq r1, #0
|
|
800052c: 4770 bxeq lr
|
|
800052e: b530 push {r4, r5, lr}
|
|
8000530: f44f 6480 mov.w r4, #1024 @ 0x400
|
|
8000534: f104 0432 add.w r4, r4, #50 @ 0x32
|
|
8000538: f04f 0500 mov.w r5, #0
|
|
800053c: f04f 0100 mov.w r1, #0
|
|
8000540: e750 b.n 80003e4 <__adddf3+0x138>
|
|
8000542: bf00 nop
|
|
|
|
08000544 <__aeabi_i2d>:
|
|
8000544: f090 0f00 teq r0, #0
|
|
8000548: bf04 itt eq
|
|
800054a: 2100 moveq r1, #0
|
|
800054c: 4770 bxeq lr
|
|
800054e: b530 push {r4, r5, lr}
|
|
8000550: f44f 6480 mov.w r4, #1024 @ 0x400
|
|
8000554: f104 0432 add.w r4, r4, #50 @ 0x32
|
|
8000558: f010 4500 ands.w r5, r0, #2147483648 @ 0x80000000
|
|
800055c: bf48 it mi
|
|
800055e: 4240 negmi r0, r0
|
|
8000560: f04f 0100 mov.w r1, #0
|
|
8000564: e73e b.n 80003e4 <__adddf3+0x138>
|
|
8000566: bf00 nop
|
|
|
|
08000568 <__aeabi_f2d>:
|
|
8000568: 0042 lsls r2, r0, #1
|
|
800056a: ea4f 01e2 mov.w r1, r2, asr #3
|
|
800056e: ea4f 0131 mov.w r1, r1, rrx
|
|
8000572: ea4f 7002 mov.w r0, r2, lsl #28
|
|
8000576: bf1f itttt ne
|
|
8000578: f012 437f andsne.w r3, r2, #4278190080 @ 0xff000000
|
|
800057c: f093 4f7f teqne r3, #4278190080 @ 0xff000000
|
|
8000580: f081 5160 eorne.w r1, r1, #939524096 @ 0x38000000
|
|
8000584: 4770 bxne lr
|
|
8000586: f032 427f bics.w r2, r2, #4278190080 @ 0xff000000
|
|
800058a: bf08 it eq
|
|
800058c: 4770 bxeq lr
|
|
800058e: f093 4f7f teq r3, #4278190080 @ 0xff000000
|
|
8000592: bf04 itt eq
|
|
8000594: f441 2100 orreq.w r1, r1, #524288 @ 0x80000
|
|
8000598: 4770 bxeq lr
|
|
800059a: b530 push {r4, r5, lr}
|
|
800059c: f44f 7460 mov.w r4, #896 @ 0x380
|
|
80005a0: f001 4500 and.w r5, r1, #2147483648 @ 0x80000000
|
|
80005a4: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000
|
|
80005a8: e71c b.n 80003e4 <__adddf3+0x138>
|
|
80005aa: bf00 nop
|
|
|
|
080005ac <__aeabi_ul2d>:
|
|
80005ac: ea50 0201 orrs.w r2, r0, r1
|
|
80005b0: bf08 it eq
|
|
80005b2: 4770 bxeq lr
|
|
80005b4: b530 push {r4, r5, lr}
|
|
80005b6: f04f 0500 mov.w r5, #0
|
|
80005ba: e00a b.n 80005d2 <__aeabi_l2d+0x16>
|
|
|
|
080005bc <__aeabi_l2d>:
|
|
80005bc: ea50 0201 orrs.w r2, r0, r1
|
|
80005c0: bf08 it eq
|
|
80005c2: 4770 bxeq lr
|
|
80005c4: b530 push {r4, r5, lr}
|
|
80005c6: f011 4500 ands.w r5, r1, #2147483648 @ 0x80000000
|
|
80005ca: d502 bpl.n 80005d2 <__aeabi_l2d+0x16>
|
|
80005cc: 4240 negs r0, r0
|
|
80005ce: eb61 0141 sbc.w r1, r1, r1, lsl #1
|
|
80005d2: f44f 6480 mov.w r4, #1024 @ 0x400
|
|
80005d6: f104 0432 add.w r4, r4, #50 @ 0x32
|
|
80005da: ea5f 5c91 movs.w ip, r1, lsr #22
|
|
80005de: f43f aed8 beq.w 8000392 <__adddf3+0xe6>
|
|
80005e2: f04f 0203 mov.w r2, #3
|
|
80005e6: ea5f 0cdc movs.w ip, ip, lsr #3
|
|
80005ea: bf18 it ne
|
|
80005ec: 3203 addne r2, #3
|
|
80005ee: ea5f 0cdc movs.w ip, ip, lsr #3
|
|
80005f2: bf18 it ne
|
|
80005f4: 3203 addne r2, #3
|
|
80005f6: eb02 02dc add.w r2, r2, ip, lsr #3
|
|
80005fa: f1c2 0320 rsb r3, r2, #32
|
|
80005fe: fa00 fc03 lsl.w ip, r0, r3
|
|
8000602: fa20 f002 lsr.w r0, r0, r2
|
|
8000606: fa01 fe03 lsl.w lr, r1, r3
|
|
800060a: ea40 000e orr.w r0, r0, lr
|
|
800060e: fa21 f102 lsr.w r1, r1, r2
|
|
8000612: 4414 add r4, r2
|
|
8000614: e6bd b.n 8000392 <__adddf3+0xe6>
|
|
8000616: bf00 nop
|
|
|
|
08000618 <__aeabi_dmul>:
|
|
8000618: b570 push {r4, r5, r6, lr}
|
|
800061a: f04f 0cff mov.w ip, #255 @ 0xff
|
|
800061e: f44c 6ce0 orr.w ip, ip, #1792 @ 0x700
|
|
8000622: ea1c 5411 ands.w r4, ip, r1, lsr #20
|
|
8000626: bf1d ittte ne
|
|
8000628: ea1c 5513 andsne.w r5, ip, r3, lsr #20
|
|
800062c: ea94 0f0c teqne r4, ip
|
|
8000630: ea95 0f0c teqne r5, ip
|
|
8000634: f000 f8de bleq 80007f4 <__aeabi_dmul+0x1dc>
|
|
8000638: 442c add r4, r5
|
|
800063a: ea81 0603 eor.w r6, r1, r3
|
|
800063e: ea21 514c bic.w r1, r1, ip, lsl #21
|
|
8000642: ea23 534c bic.w r3, r3, ip, lsl #21
|
|
8000646: ea50 3501 orrs.w r5, r0, r1, lsl #12
|
|
800064a: bf18 it ne
|
|
800064c: ea52 3503 orrsne.w r5, r2, r3, lsl #12
|
|
8000650: f441 1180 orr.w r1, r1, #1048576 @ 0x100000
|
|
8000654: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
|
|
8000658: d038 beq.n 80006cc <__aeabi_dmul+0xb4>
|
|
800065a: fba0 ce02 umull ip, lr, r0, r2
|
|
800065e: f04f 0500 mov.w r5, #0
|
|
8000662: fbe1 e502 umlal lr, r5, r1, r2
|
|
8000666: f006 4200 and.w r2, r6, #2147483648 @ 0x80000000
|
|
800066a: fbe0 e503 umlal lr, r5, r0, r3
|
|
800066e: f04f 0600 mov.w r6, #0
|
|
8000672: fbe1 5603 umlal r5, r6, r1, r3
|
|
8000676: f09c 0f00 teq ip, #0
|
|
800067a: bf18 it ne
|
|
800067c: f04e 0e01 orrne.w lr, lr, #1
|
|
8000680: f1a4 04ff sub.w r4, r4, #255 @ 0xff
|
|
8000684: f5b6 7f00 cmp.w r6, #512 @ 0x200
|
|
8000688: f564 7440 sbc.w r4, r4, #768 @ 0x300
|
|
800068c: d204 bcs.n 8000698 <__aeabi_dmul+0x80>
|
|
800068e: ea5f 0e4e movs.w lr, lr, lsl #1
|
|
8000692: 416d adcs r5, r5
|
|
8000694: eb46 0606 adc.w r6, r6, r6
|
|
8000698: ea42 21c6 orr.w r1, r2, r6, lsl #11
|
|
800069c: ea41 5155 orr.w r1, r1, r5, lsr #21
|
|
80006a0: ea4f 20c5 mov.w r0, r5, lsl #11
|
|
80006a4: ea40 505e orr.w r0, r0, lr, lsr #21
|
|
80006a8: ea4f 2ece mov.w lr, lr, lsl #11
|
|
80006ac: f1b4 0cfd subs.w ip, r4, #253 @ 0xfd
|
|
80006b0: bf88 it hi
|
|
80006b2: f5bc 6fe0 cmphi.w ip, #1792 @ 0x700
|
|
80006b6: d81e bhi.n 80006f6 <__aeabi_dmul+0xde>
|
|
80006b8: f1be 4f00 cmp.w lr, #2147483648 @ 0x80000000
|
|
80006bc: bf08 it eq
|
|
80006be: ea5f 0e50 movseq.w lr, r0, lsr #1
|
|
80006c2: f150 0000 adcs.w r0, r0, #0
|
|
80006c6: eb41 5104 adc.w r1, r1, r4, lsl #20
|
|
80006ca: bd70 pop {r4, r5, r6, pc}
|
|
80006cc: f006 4600 and.w r6, r6, #2147483648 @ 0x80000000
|
|
80006d0: ea46 0101 orr.w r1, r6, r1
|
|
80006d4: ea40 0002 orr.w r0, r0, r2
|
|
80006d8: ea81 0103 eor.w r1, r1, r3
|
|
80006dc: ebb4 045c subs.w r4, r4, ip, lsr #1
|
|
80006e0: bfc2 ittt gt
|
|
80006e2: ebd4 050c rsbsgt r5, r4, ip
|
|
80006e6: ea41 5104 orrgt.w r1, r1, r4, lsl #20
|
|
80006ea: bd70 popgt {r4, r5, r6, pc}
|
|
80006ec: f441 1180 orr.w r1, r1, #1048576 @ 0x100000
|
|
80006f0: f04f 0e00 mov.w lr, #0
|
|
80006f4: 3c01 subs r4, #1
|
|
80006f6: f300 80ab bgt.w 8000850 <__aeabi_dmul+0x238>
|
|
80006fa: f114 0f36 cmn.w r4, #54 @ 0x36
|
|
80006fe: bfde ittt le
|
|
8000700: 2000 movle r0, #0
|
|
8000702: f001 4100 andle.w r1, r1, #2147483648 @ 0x80000000
|
|
8000706: bd70 pople {r4, r5, r6, pc}
|
|
8000708: f1c4 0400 rsb r4, r4, #0
|
|
800070c: 3c20 subs r4, #32
|
|
800070e: da35 bge.n 800077c <__aeabi_dmul+0x164>
|
|
8000710: 340c adds r4, #12
|
|
8000712: dc1b bgt.n 800074c <__aeabi_dmul+0x134>
|
|
8000714: f104 0414 add.w r4, r4, #20
|
|
8000718: f1c4 0520 rsb r5, r4, #32
|
|
800071c: fa00 f305 lsl.w r3, r0, r5
|
|
8000720: fa20 f004 lsr.w r0, r0, r4
|
|
8000724: fa01 f205 lsl.w r2, r1, r5
|
|
8000728: ea40 0002 orr.w r0, r0, r2
|
|
800072c: f001 4200 and.w r2, r1, #2147483648 @ 0x80000000
|
|
8000730: f021 4100 bic.w r1, r1, #2147483648 @ 0x80000000
|
|
8000734: eb10 70d3 adds.w r0, r0, r3, lsr #31
|
|
8000738: fa21 f604 lsr.w r6, r1, r4
|
|
800073c: eb42 0106 adc.w r1, r2, r6
|
|
8000740: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
|
|
8000744: bf08 it eq
|
|
8000746: ea20 70d3 biceq.w r0, r0, r3, lsr #31
|
|
800074a: bd70 pop {r4, r5, r6, pc}
|
|
800074c: f1c4 040c rsb r4, r4, #12
|
|
8000750: f1c4 0520 rsb r5, r4, #32
|
|
8000754: fa00 f304 lsl.w r3, r0, r4
|
|
8000758: fa20 f005 lsr.w r0, r0, r5
|
|
800075c: fa01 f204 lsl.w r2, r1, r4
|
|
8000760: ea40 0002 orr.w r0, r0, r2
|
|
8000764: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000
|
|
8000768: eb10 70d3 adds.w r0, r0, r3, lsr #31
|
|
800076c: f141 0100 adc.w r1, r1, #0
|
|
8000770: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
|
|
8000774: bf08 it eq
|
|
8000776: ea20 70d3 biceq.w r0, r0, r3, lsr #31
|
|
800077a: bd70 pop {r4, r5, r6, pc}
|
|
800077c: f1c4 0520 rsb r5, r4, #32
|
|
8000780: fa00 f205 lsl.w r2, r0, r5
|
|
8000784: ea4e 0e02 orr.w lr, lr, r2
|
|
8000788: fa20 f304 lsr.w r3, r0, r4
|
|
800078c: fa01 f205 lsl.w r2, r1, r5
|
|
8000790: ea43 0302 orr.w r3, r3, r2
|
|
8000794: fa21 f004 lsr.w r0, r1, r4
|
|
8000798: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000
|
|
800079c: fa21 f204 lsr.w r2, r1, r4
|
|
80007a0: ea20 0002 bic.w r0, r0, r2
|
|
80007a4: eb00 70d3 add.w r0, r0, r3, lsr #31
|
|
80007a8: ea5e 0e43 orrs.w lr, lr, r3, lsl #1
|
|
80007ac: bf08 it eq
|
|
80007ae: ea20 70d3 biceq.w r0, r0, r3, lsr #31
|
|
80007b2: bd70 pop {r4, r5, r6, pc}
|
|
80007b4: f094 0f00 teq r4, #0
|
|
80007b8: d10f bne.n 80007da <__aeabi_dmul+0x1c2>
|
|
80007ba: f001 4600 and.w r6, r1, #2147483648 @ 0x80000000
|
|
80007be: 0040 lsls r0, r0, #1
|
|
80007c0: eb41 0101 adc.w r1, r1, r1
|
|
80007c4: f411 1f80 tst.w r1, #1048576 @ 0x100000
|
|
80007c8: bf08 it eq
|
|
80007ca: 3c01 subeq r4, #1
|
|
80007cc: d0f7 beq.n 80007be <__aeabi_dmul+0x1a6>
|
|
80007ce: ea41 0106 orr.w r1, r1, r6
|
|
80007d2: f095 0f00 teq r5, #0
|
|
80007d6: bf18 it ne
|
|
80007d8: 4770 bxne lr
|
|
80007da: f003 4600 and.w r6, r3, #2147483648 @ 0x80000000
|
|
80007de: 0052 lsls r2, r2, #1
|
|
80007e0: eb43 0303 adc.w r3, r3, r3
|
|
80007e4: f413 1f80 tst.w r3, #1048576 @ 0x100000
|
|
80007e8: bf08 it eq
|
|
80007ea: 3d01 subeq r5, #1
|
|
80007ec: d0f7 beq.n 80007de <__aeabi_dmul+0x1c6>
|
|
80007ee: ea43 0306 orr.w r3, r3, r6
|
|
80007f2: 4770 bx lr
|
|
80007f4: ea94 0f0c teq r4, ip
|
|
80007f8: ea0c 5513 and.w r5, ip, r3, lsr #20
|
|
80007fc: bf18 it ne
|
|
80007fe: ea95 0f0c teqne r5, ip
|
|
8000802: d00c beq.n 800081e <__aeabi_dmul+0x206>
|
|
8000804: ea50 0641 orrs.w r6, r0, r1, lsl #1
|
|
8000808: bf18 it ne
|
|
800080a: ea52 0643 orrsne.w r6, r2, r3, lsl #1
|
|
800080e: d1d1 bne.n 80007b4 <__aeabi_dmul+0x19c>
|
|
8000810: ea81 0103 eor.w r1, r1, r3
|
|
8000814: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000
|
|
8000818: f04f 0000 mov.w r0, #0
|
|
800081c: bd70 pop {r4, r5, r6, pc}
|
|
800081e: ea50 0641 orrs.w r6, r0, r1, lsl #1
|
|
8000822: bf06 itte eq
|
|
8000824: 4610 moveq r0, r2
|
|
8000826: 4619 moveq r1, r3
|
|
8000828: ea52 0643 orrsne.w r6, r2, r3, lsl #1
|
|
800082c: d019 beq.n 8000862 <__aeabi_dmul+0x24a>
|
|
800082e: ea94 0f0c teq r4, ip
|
|
8000832: d102 bne.n 800083a <__aeabi_dmul+0x222>
|
|
8000834: ea50 3601 orrs.w r6, r0, r1, lsl #12
|
|
8000838: d113 bne.n 8000862 <__aeabi_dmul+0x24a>
|
|
800083a: ea95 0f0c teq r5, ip
|
|
800083e: d105 bne.n 800084c <__aeabi_dmul+0x234>
|
|
8000840: ea52 3603 orrs.w r6, r2, r3, lsl #12
|
|
8000844: bf1c itt ne
|
|
8000846: 4610 movne r0, r2
|
|
8000848: 4619 movne r1, r3
|
|
800084a: d10a bne.n 8000862 <__aeabi_dmul+0x24a>
|
|
800084c: ea81 0103 eor.w r1, r1, r3
|
|
8000850: f001 4100 and.w r1, r1, #2147483648 @ 0x80000000
|
|
8000854: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000
|
|
8000858: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
|
|
800085c: f04f 0000 mov.w r0, #0
|
|
8000860: bd70 pop {r4, r5, r6, pc}
|
|
8000862: f041 41fe orr.w r1, r1, #2130706432 @ 0x7f000000
|
|
8000866: f441 0178 orr.w r1, r1, #16252928 @ 0xf80000
|
|
800086a: bd70 pop {r4, r5, r6, pc}
|
|
|
|
0800086c <__aeabi_ddiv>:
|
|
800086c: b570 push {r4, r5, r6, lr}
|
|
800086e: f04f 0cff mov.w ip, #255 @ 0xff
|
|
8000872: f44c 6ce0 orr.w ip, ip, #1792 @ 0x700
|
|
8000876: ea1c 5411 ands.w r4, ip, r1, lsr #20
|
|
800087a: bf1d ittte ne
|
|
800087c: ea1c 5513 andsne.w r5, ip, r3, lsr #20
|
|
8000880: ea94 0f0c teqne r4, ip
|
|
8000884: ea95 0f0c teqne r5, ip
|
|
8000888: f000 f8a7 bleq 80009da <__aeabi_ddiv+0x16e>
|
|
800088c: eba4 0405 sub.w r4, r4, r5
|
|
8000890: ea81 0e03 eor.w lr, r1, r3
|
|
8000894: ea52 3503 orrs.w r5, r2, r3, lsl #12
|
|
8000898: ea4f 3101 mov.w r1, r1, lsl #12
|
|
800089c: f000 8088 beq.w 80009b0 <__aeabi_ddiv+0x144>
|
|
80008a0: ea4f 3303 mov.w r3, r3, lsl #12
|
|
80008a4: f04f 5580 mov.w r5, #268435456 @ 0x10000000
|
|
80008a8: ea45 1313 orr.w r3, r5, r3, lsr #4
|
|
80008ac: ea43 6312 orr.w r3, r3, r2, lsr #24
|
|
80008b0: ea4f 2202 mov.w r2, r2, lsl #8
|
|
80008b4: ea45 1511 orr.w r5, r5, r1, lsr #4
|
|
80008b8: ea45 6510 orr.w r5, r5, r0, lsr #24
|
|
80008bc: ea4f 2600 mov.w r6, r0, lsl #8
|
|
80008c0: f00e 4100 and.w r1, lr, #2147483648 @ 0x80000000
|
|
80008c4: 429d cmp r5, r3
|
|
80008c6: bf08 it eq
|
|
80008c8: 4296 cmpeq r6, r2
|
|
80008ca: f144 04fd adc.w r4, r4, #253 @ 0xfd
|
|
80008ce: f504 7440 add.w r4, r4, #768 @ 0x300
|
|
80008d2: d202 bcs.n 80008da <__aeabi_ddiv+0x6e>
|
|
80008d4: 085b lsrs r3, r3, #1
|
|
80008d6: ea4f 0232 mov.w r2, r2, rrx
|
|
80008da: 1ab6 subs r6, r6, r2
|
|
80008dc: eb65 0503 sbc.w r5, r5, r3
|
|
80008e0: 085b lsrs r3, r3, #1
|
|
80008e2: ea4f 0232 mov.w r2, r2, rrx
|
|
80008e6: f44f 1080 mov.w r0, #1048576 @ 0x100000
|
|
80008ea: f44f 2c00 mov.w ip, #524288 @ 0x80000
|
|
80008ee: ebb6 0e02 subs.w lr, r6, r2
|
|
80008f2: eb75 0e03 sbcs.w lr, r5, r3
|
|
80008f6: bf22 ittt cs
|
|
80008f8: 1ab6 subcs r6, r6, r2
|
|
80008fa: 4675 movcs r5, lr
|
|
80008fc: ea40 000c orrcs.w r0, r0, ip
|
|
8000900: 085b lsrs r3, r3, #1
|
|
8000902: ea4f 0232 mov.w r2, r2, rrx
|
|
8000906: ebb6 0e02 subs.w lr, r6, r2
|
|
800090a: eb75 0e03 sbcs.w lr, r5, r3
|
|
800090e: bf22 ittt cs
|
|
8000910: 1ab6 subcs r6, r6, r2
|
|
8000912: 4675 movcs r5, lr
|
|
8000914: ea40 005c orrcs.w r0, r0, ip, lsr #1
|
|
8000918: 085b lsrs r3, r3, #1
|
|
800091a: ea4f 0232 mov.w r2, r2, rrx
|
|
800091e: ebb6 0e02 subs.w lr, r6, r2
|
|
8000922: eb75 0e03 sbcs.w lr, r5, r3
|
|
8000926: bf22 ittt cs
|
|
8000928: 1ab6 subcs r6, r6, r2
|
|
800092a: 4675 movcs r5, lr
|
|
800092c: ea40 009c orrcs.w r0, r0, ip, lsr #2
|
|
8000930: 085b lsrs r3, r3, #1
|
|
8000932: ea4f 0232 mov.w r2, r2, rrx
|
|
8000936: ebb6 0e02 subs.w lr, r6, r2
|
|
800093a: eb75 0e03 sbcs.w lr, r5, r3
|
|
800093e: bf22 ittt cs
|
|
8000940: 1ab6 subcs r6, r6, r2
|
|
8000942: 4675 movcs r5, lr
|
|
8000944: ea40 00dc orrcs.w r0, r0, ip, lsr #3
|
|
8000948: ea55 0e06 orrs.w lr, r5, r6
|
|
800094c: d018 beq.n 8000980 <__aeabi_ddiv+0x114>
|
|
800094e: ea4f 1505 mov.w r5, r5, lsl #4
|
|
8000952: ea45 7516 orr.w r5, r5, r6, lsr #28
|
|
8000956: ea4f 1606 mov.w r6, r6, lsl #4
|
|
800095a: ea4f 03c3 mov.w r3, r3, lsl #3
|
|
800095e: ea43 7352 orr.w r3, r3, r2, lsr #29
|
|
8000962: ea4f 02c2 mov.w r2, r2, lsl #3
|
|
8000966: ea5f 1c1c movs.w ip, ip, lsr #4
|
|
800096a: d1c0 bne.n 80008ee <__aeabi_ddiv+0x82>
|
|
800096c: f411 1f80 tst.w r1, #1048576 @ 0x100000
|
|
8000970: d10b bne.n 800098a <__aeabi_ddiv+0x11e>
|
|
8000972: ea41 0100 orr.w r1, r1, r0
|
|
8000976: f04f 0000 mov.w r0, #0
|
|
800097a: f04f 4c00 mov.w ip, #2147483648 @ 0x80000000
|
|
800097e: e7b6 b.n 80008ee <__aeabi_ddiv+0x82>
|
|
8000980: f411 1f80 tst.w r1, #1048576 @ 0x100000
|
|
8000984: bf04 itt eq
|
|
8000986: 4301 orreq r1, r0
|
|
8000988: 2000 moveq r0, #0
|
|
800098a: f1b4 0cfd subs.w ip, r4, #253 @ 0xfd
|
|
800098e: bf88 it hi
|
|
8000990: f5bc 6fe0 cmphi.w ip, #1792 @ 0x700
|
|
8000994: f63f aeaf bhi.w 80006f6 <__aeabi_dmul+0xde>
|
|
8000998: ebb5 0c03 subs.w ip, r5, r3
|
|
800099c: bf04 itt eq
|
|
800099e: ebb6 0c02 subseq.w ip, r6, r2
|
|
80009a2: ea5f 0c50 movseq.w ip, r0, lsr #1
|
|
80009a6: f150 0000 adcs.w r0, r0, #0
|
|
80009aa: eb41 5104 adc.w r1, r1, r4, lsl #20
|
|
80009ae: bd70 pop {r4, r5, r6, pc}
|
|
80009b0: f00e 4e00 and.w lr, lr, #2147483648 @ 0x80000000
|
|
80009b4: ea4e 3111 orr.w r1, lr, r1, lsr #12
|
|
80009b8: eb14 045c adds.w r4, r4, ip, lsr #1
|
|
80009bc: bfc2 ittt gt
|
|
80009be: ebd4 050c rsbsgt r5, r4, ip
|
|
80009c2: ea41 5104 orrgt.w r1, r1, r4, lsl #20
|
|
80009c6: bd70 popgt {r4, r5, r6, pc}
|
|
80009c8: f441 1180 orr.w r1, r1, #1048576 @ 0x100000
|
|
80009cc: f04f 0e00 mov.w lr, #0
|
|
80009d0: 3c01 subs r4, #1
|
|
80009d2: e690 b.n 80006f6 <__aeabi_dmul+0xde>
|
|
80009d4: ea45 0e06 orr.w lr, r5, r6
|
|
80009d8: e68d b.n 80006f6 <__aeabi_dmul+0xde>
|
|
80009da: ea0c 5513 and.w r5, ip, r3, lsr #20
|
|
80009de: ea94 0f0c teq r4, ip
|
|
80009e2: bf08 it eq
|
|
80009e4: ea95 0f0c teqeq r5, ip
|
|
80009e8: f43f af3b beq.w 8000862 <__aeabi_dmul+0x24a>
|
|
80009ec: ea94 0f0c teq r4, ip
|
|
80009f0: d10a bne.n 8000a08 <__aeabi_ddiv+0x19c>
|
|
80009f2: ea50 3401 orrs.w r4, r0, r1, lsl #12
|
|
80009f6: f47f af34 bne.w 8000862 <__aeabi_dmul+0x24a>
|
|
80009fa: ea95 0f0c teq r5, ip
|
|
80009fe: f47f af25 bne.w 800084c <__aeabi_dmul+0x234>
|
|
8000a02: 4610 mov r0, r2
|
|
8000a04: 4619 mov r1, r3
|
|
8000a06: e72c b.n 8000862 <__aeabi_dmul+0x24a>
|
|
8000a08: ea95 0f0c teq r5, ip
|
|
8000a0c: d106 bne.n 8000a1c <__aeabi_ddiv+0x1b0>
|
|
8000a0e: ea52 3503 orrs.w r5, r2, r3, lsl #12
|
|
8000a12: f43f aefd beq.w 8000810 <__aeabi_dmul+0x1f8>
|
|
8000a16: 4610 mov r0, r2
|
|
8000a18: 4619 mov r1, r3
|
|
8000a1a: e722 b.n 8000862 <__aeabi_dmul+0x24a>
|
|
8000a1c: ea50 0641 orrs.w r6, r0, r1, lsl #1
|
|
8000a20: bf18 it ne
|
|
8000a22: ea52 0643 orrsne.w r6, r2, r3, lsl #1
|
|
8000a26: f47f aec5 bne.w 80007b4 <__aeabi_dmul+0x19c>
|
|
8000a2a: ea50 0441 orrs.w r4, r0, r1, lsl #1
|
|
8000a2e: f47f af0d bne.w 800084c <__aeabi_dmul+0x234>
|
|
8000a32: ea52 0543 orrs.w r5, r2, r3, lsl #1
|
|
8000a36: f47f aeeb bne.w 8000810 <__aeabi_dmul+0x1f8>
|
|
8000a3a: e712 b.n 8000862 <__aeabi_dmul+0x24a>
|
|
|
|
08000a3c <__gedf2>:
|
|
8000a3c: f04f 3cff mov.w ip, #4294967295
|
|
8000a40: e006 b.n 8000a50 <__cmpdf2+0x4>
|
|
8000a42: bf00 nop
|
|
|
|
08000a44 <__ledf2>:
|
|
8000a44: f04f 0c01 mov.w ip, #1
|
|
8000a48: e002 b.n 8000a50 <__cmpdf2+0x4>
|
|
8000a4a: bf00 nop
|
|
|
|
08000a4c <__cmpdf2>:
|
|
8000a4c: f04f 0c01 mov.w ip, #1
|
|
8000a50: f84d cd04 str.w ip, [sp, #-4]!
|
|
8000a54: ea4f 0c41 mov.w ip, r1, lsl #1
|
|
8000a58: ea7f 5c6c mvns.w ip, ip, asr #21
|
|
8000a5c: ea4f 0c43 mov.w ip, r3, lsl #1
|
|
8000a60: bf18 it ne
|
|
8000a62: ea7f 5c6c mvnsne.w ip, ip, asr #21
|
|
8000a66: d01b beq.n 8000aa0 <__cmpdf2+0x54>
|
|
8000a68: b001 add sp, #4
|
|
8000a6a: ea50 0c41 orrs.w ip, r0, r1, lsl #1
|
|
8000a6e: bf0c ite eq
|
|
8000a70: ea52 0c43 orrseq.w ip, r2, r3, lsl #1
|
|
8000a74: ea91 0f03 teqne r1, r3
|
|
8000a78: bf02 ittt eq
|
|
8000a7a: ea90 0f02 teqeq r0, r2
|
|
8000a7e: 2000 moveq r0, #0
|
|
8000a80: 4770 bxeq lr
|
|
8000a82: f110 0f00 cmn.w r0, #0
|
|
8000a86: ea91 0f03 teq r1, r3
|
|
8000a8a: bf58 it pl
|
|
8000a8c: 4299 cmppl r1, r3
|
|
8000a8e: bf08 it eq
|
|
8000a90: 4290 cmpeq r0, r2
|
|
8000a92: bf2c ite cs
|
|
8000a94: 17d8 asrcs r0, r3, #31
|
|
8000a96: ea6f 70e3 mvncc.w r0, r3, asr #31
|
|
8000a9a: f040 0001 orr.w r0, r0, #1
|
|
8000a9e: 4770 bx lr
|
|
8000aa0: ea4f 0c41 mov.w ip, r1, lsl #1
|
|
8000aa4: ea7f 5c6c mvns.w ip, ip, asr #21
|
|
8000aa8: d102 bne.n 8000ab0 <__cmpdf2+0x64>
|
|
8000aaa: ea50 3c01 orrs.w ip, r0, r1, lsl #12
|
|
8000aae: d107 bne.n 8000ac0 <__cmpdf2+0x74>
|
|
8000ab0: ea4f 0c43 mov.w ip, r3, lsl #1
|
|
8000ab4: ea7f 5c6c mvns.w ip, ip, asr #21
|
|
8000ab8: d1d6 bne.n 8000a68 <__cmpdf2+0x1c>
|
|
8000aba: ea52 3c03 orrs.w ip, r2, r3, lsl #12
|
|
8000abe: d0d3 beq.n 8000a68 <__cmpdf2+0x1c>
|
|
8000ac0: f85d 0b04 ldr.w r0, [sp], #4
|
|
8000ac4: 4770 bx lr
|
|
8000ac6: bf00 nop
|
|
|
|
08000ac8 <__aeabi_cdrcmple>:
|
|
8000ac8: 4684 mov ip, r0
|
|
8000aca: 4610 mov r0, r2
|
|
8000acc: 4662 mov r2, ip
|
|
8000ace: 468c mov ip, r1
|
|
8000ad0: 4619 mov r1, r3
|
|
8000ad2: 4663 mov r3, ip
|
|
8000ad4: e000 b.n 8000ad8 <__aeabi_cdcmpeq>
|
|
8000ad6: bf00 nop
|
|
|
|
08000ad8 <__aeabi_cdcmpeq>:
|
|
8000ad8: b501 push {r0, lr}
|
|
8000ada: f7ff ffb7 bl 8000a4c <__cmpdf2>
|
|
8000ade: 2800 cmp r0, #0
|
|
8000ae0: bf48 it mi
|
|
8000ae2: f110 0f00 cmnmi.w r0, #0
|
|
8000ae6: bd01 pop {r0, pc}
|
|
|
|
08000ae8 <__aeabi_dcmpeq>:
|
|
8000ae8: f84d ed08 str.w lr, [sp, #-8]!
|
|
8000aec: f7ff fff4 bl 8000ad8 <__aeabi_cdcmpeq>
|
|
8000af0: bf0c ite eq
|
|
8000af2: 2001 moveq r0, #1
|
|
8000af4: 2000 movne r0, #0
|
|
8000af6: f85d fb08 ldr.w pc, [sp], #8
|
|
8000afa: bf00 nop
|
|
|
|
08000afc <__aeabi_dcmplt>:
|
|
8000afc: f84d ed08 str.w lr, [sp, #-8]!
|
|
8000b00: f7ff ffea bl 8000ad8 <__aeabi_cdcmpeq>
|
|
8000b04: bf34 ite cc
|
|
8000b06: 2001 movcc r0, #1
|
|
8000b08: 2000 movcs r0, #0
|
|
8000b0a: f85d fb08 ldr.w pc, [sp], #8
|
|
8000b0e: bf00 nop
|
|
|
|
08000b10 <__aeabi_dcmple>:
|
|
8000b10: f84d ed08 str.w lr, [sp, #-8]!
|
|
8000b14: f7ff ffe0 bl 8000ad8 <__aeabi_cdcmpeq>
|
|
8000b18: bf94 ite ls
|
|
8000b1a: 2001 movls r0, #1
|
|
8000b1c: 2000 movhi r0, #0
|
|
8000b1e: f85d fb08 ldr.w pc, [sp], #8
|
|
8000b22: bf00 nop
|
|
|
|
08000b24 <__aeabi_dcmpge>:
|
|
8000b24: f84d ed08 str.w lr, [sp, #-8]!
|
|
8000b28: f7ff ffce bl 8000ac8 <__aeabi_cdrcmple>
|
|
8000b2c: bf94 ite ls
|
|
8000b2e: 2001 movls r0, #1
|
|
8000b30: 2000 movhi r0, #0
|
|
8000b32: f85d fb08 ldr.w pc, [sp], #8
|
|
8000b36: bf00 nop
|
|
|
|
08000b38 <__aeabi_dcmpgt>:
|
|
8000b38: f84d ed08 str.w lr, [sp, #-8]!
|
|
8000b3c: f7ff ffc4 bl 8000ac8 <__aeabi_cdrcmple>
|
|
8000b40: bf34 ite cc
|
|
8000b42: 2001 movcc r0, #1
|
|
8000b44: 2000 movcs r0, #0
|
|
8000b46: f85d fb08 ldr.w pc, [sp], #8
|
|
8000b4a: bf00 nop
|
|
|
|
08000b4c <__aeabi_dcmpun>:
|
|
8000b4c: ea4f 0c41 mov.w ip, r1, lsl #1
|
|
8000b50: ea7f 5c6c mvns.w ip, ip, asr #21
|
|
8000b54: d102 bne.n 8000b5c <__aeabi_dcmpun+0x10>
|
|
8000b56: ea50 3c01 orrs.w ip, r0, r1, lsl #12
|
|
8000b5a: d10a bne.n 8000b72 <__aeabi_dcmpun+0x26>
|
|
8000b5c: ea4f 0c43 mov.w ip, r3, lsl #1
|
|
8000b60: ea7f 5c6c mvns.w ip, ip, asr #21
|
|
8000b64: d102 bne.n 8000b6c <__aeabi_dcmpun+0x20>
|
|
8000b66: ea52 3c03 orrs.w ip, r2, r3, lsl #12
|
|
8000b6a: d102 bne.n 8000b72 <__aeabi_dcmpun+0x26>
|
|
8000b6c: f04f 0000 mov.w r0, #0
|
|
8000b70: 4770 bx lr
|
|
8000b72: f04f 0001 mov.w r0, #1
|
|
8000b76: 4770 bx lr
|
|
|
|
08000b78 <__aeabi_d2iz>:
|
|
8000b78: ea4f 0241 mov.w r2, r1, lsl #1
|
|
8000b7c: f512 1200 adds.w r2, r2, #2097152 @ 0x200000
|
|
8000b80: d215 bcs.n 8000bae <__aeabi_d2iz+0x36>
|
|
8000b82: d511 bpl.n 8000ba8 <__aeabi_d2iz+0x30>
|
|
8000b84: f46f 7378 mvn.w r3, #992 @ 0x3e0
|
|
8000b88: ebb3 5262 subs.w r2, r3, r2, asr #21
|
|
8000b8c: d912 bls.n 8000bb4 <__aeabi_d2iz+0x3c>
|
|
8000b8e: ea4f 23c1 mov.w r3, r1, lsl #11
|
|
8000b92: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
|
|
8000b96: ea43 5350 orr.w r3, r3, r0, lsr #21
|
|
8000b9a: f011 4f00 tst.w r1, #2147483648 @ 0x80000000
|
|
8000b9e: fa23 f002 lsr.w r0, r3, r2
|
|
8000ba2: bf18 it ne
|
|
8000ba4: 4240 negne r0, r0
|
|
8000ba6: 4770 bx lr
|
|
8000ba8: f04f 0000 mov.w r0, #0
|
|
8000bac: 4770 bx lr
|
|
8000bae: ea50 3001 orrs.w r0, r0, r1, lsl #12
|
|
8000bb2: d105 bne.n 8000bc0 <__aeabi_d2iz+0x48>
|
|
8000bb4: f011 4000 ands.w r0, r1, #2147483648 @ 0x80000000
|
|
8000bb8: bf08 it eq
|
|
8000bba: f06f 4000 mvneq.w r0, #2147483648 @ 0x80000000
|
|
8000bbe: 4770 bx lr
|
|
8000bc0: f04f 0000 mov.w r0, #0
|
|
8000bc4: 4770 bx lr
|
|
8000bc6: bf00 nop
|
|
|
|
08000bc8 <__aeabi_uldivmod>:
|
|
8000bc8: b953 cbnz r3, 8000be0 <__aeabi_uldivmod+0x18>
|
|
8000bca: b94a cbnz r2, 8000be0 <__aeabi_uldivmod+0x18>
|
|
8000bcc: 2900 cmp r1, #0
|
|
8000bce: bf08 it eq
|
|
8000bd0: 2800 cmpeq r0, #0
|
|
8000bd2: bf1c itt ne
|
|
8000bd4: f04f 31ff movne.w r1, #4294967295
|
|
8000bd8: f04f 30ff movne.w r0, #4294967295
|
|
8000bdc: f000 b96a b.w 8000eb4 <__aeabi_idiv0>
|
|
8000be0: f1ad 0c08 sub.w ip, sp, #8
|
|
8000be4: e96d ce04 strd ip, lr, [sp, #-16]!
|
|
8000be8: f000 f806 bl 8000bf8 <__udivmoddi4>
|
|
8000bec: f8dd e004 ldr.w lr, [sp, #4]
|
|
8000bf0: e9dd 2302 ldrd r2, r3, [sp, #8]
|
|
8000bf4: b004 add sp, #16
|
|
8000bf6: 4770 bx lr
|
|
|
|
08000bf8 <__udivmoddi4>:
|
|
8000bf8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
|
|
8000bfc: 9d08 ldr r5, [sp, #32]
|
|
8000bfe: 460c mov r4, r1
|
|
8000c00: 2b00 cmp r3, #0
|
|
8000c02: d14e bne.n 8000ca2 <__udivmoddi4+0xaa>
|
|
8000c04: 4694 mov ip, r2
|
|
8000c06: 458c cmp ip, r1
|
|
8000c08: 4686 mov lr, r0
|
|
8000c0a: fab2 f282 clz r2, r2
|
|
8000c0e: d962 bls.n 8000cd6 <__udivmoddi4+0xde>
|
|
8000c10: b14a cbz r2, 8000c26 <__udivmoddi4+0x2e>
|
|
8000c12: f1c2 0320 rsb r3, r2, #32
|
|
8000c16: 4091 lsls r1, r2
|
|
8000c18: fa20 f303 lsr.w r3, r0, r3
|
|
8000c1c: fa0c fc02 lsl.w ip, ip, r2
|
|
8000c20: 4319 orrs r1, r3
|
|
8000c22: fa00 fe02 lsl.w lr, r0, r2
|
|
8000c26: ea4f 471c mov.w r7, ip, lsr #16
|
|
8000c2a: fa1f f68c uxth.w r6, ip
|
|
8000c2e: fbb1 f4f7 udiv r4, r1, r7
|
|
8000c32: ea4f 431e mov.w r3, lr, lsr #16
|
|
8000c36: fb07 1114 mls r1, r7, r4, r1
|
|
8000c3a: ea43 4301 orr.w r3, r3, r1, lsl #16
|
|
8000c3e: fb04 f106 mul.w r1, r4, r6
|
|
8000c42: 4299 cmp r1, r3
|
|
8000c44: d90a bls.n 8000c5c <__udivmoddi4+0x64>
|
|
8000c46: eb1c 0303 adds.w r3, ip, r3
|
|
8000c4a: f104 30ff add.w r0, r4, #4294967295
|
|
8000c4e: f080 8112 bcs.w 8000e76 <__udivmoddi4+0x27e>
|
|
8000c52: 4299 cmp r1, r3
|
|
8000c54: f240 810f bls.w 8000e76 <__udivmoddi4+0x27e>
|
|
8000c58: 3c02 subs r4, #2
|
|
8000c5a: 4463 add r3, ip
|
|
8000c5c: 1a59 subs r1, r3, r1
|
|
8000c5e: fa1f f38e uxth.w r3, lr
|
|
8000c62: fbb1 f0f7 udiv r0, r1, r7
|
|
8000c66: fb07 1110 mls r1, r7, r0, r1
|
|
8000c6a: ea43 4301 orr.w r3, r3, r1, lsl #16
|
|
8000c6e: fb00 f606 mul.w r6, r0, r6
|
|
8000c72: 429e cmp r6, r3
|
|
8000c74: d90a bls.n 8000c8c <__udivmoddi4+0x94>
|
|
8000c76: eb1c 0303 adds.w r3, ip, r3
|
|
8000c7a: f100 31ff add.w r1, r0, #4294967295
|
|
8000c7e: f080 80fc bcs.w 8000e7a <__udivmoddi4+0x282>
|
|
8000c82: 429e cmp r6, r3
|
|
8000c84: f240 80f9 bls.w 8000e7a <__udivmoddi4+0x282>
|
|
8000c88: 4463 add r3, ip
|
|
8000c8a: 3802 subs r0, #2
|
|
8000c8c: 1b9b subs r3, r3, r6
|
|
8000c8e: ea40 4004 orr.w r0, r0, r4, lsl #16
|
|
8000c92: 2100 movs r1, #0
|
|
8000c94: b11d cbz r5, 8000c9e <__udivmoddi4+0xa6>
|
|
8000c96: 40d3 lsrs r3, r2
|
|
8000c98: 2200 movs r2, #0
|
|
8000c9a: e9c5 3200 strd r3, r2, [r5]
|
|
8000c9e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
8000ca2: 428b cmp r3, r1
|
|
8000ca4: d905 bls.n 8000cb2 <__udivmoddi4+0xba>
|
|
8000ca6: b10d cbz r5, 8000cac <__udivmoddi4+0xb4>
|
|
8000ca8: e9c5 0100 strd r0, r1, [r5]
|
|
8000cac: 2100 movs r1, #0
|
|
8000cae: 4608 mov r0, r1
|
|
8000cb0: e7f5 b.n 8000c9e <__udivmoddi4+0xa6>
|
|
8000cb2: fab3 f183 clz r1, r3
|
|
8000cb6: 2900 cmp r1, #0
|
|
8000cb8: d146 bne.n 8000d48 <__udivmoddi4+0x150>
|
|
8000cba: 42a3 cmp r3, r4
|
|
8000cbc: d302 bcc.n 8000cc4 <__udivmoddi4+0xcc>
|
|
8000cbe: 4290 cmp r0, r2
|
|
8000cc0: f0c0 80f0 bcc.w 8000ea4 <__udivmoddi4+0x2ac>
|
|
8000cc4: 1a86 subs r6, r0, r2
|
|
8000cc6: eb64 0303 sbc.w r3, r4, r3
|
|
8000cca: 2001 movs r0, #1
|
|
8000ccc: 2d00 cmp r5, #0
|
|
8000cce: d0e6 beq.n 8000c9e <__udivmoddi4+0xa6>
|
|
8000cd0: e9c5 6300 strd r6, r3, [r5]
|
|
8000cd4: e7e3 b.n 8000c9e <__udivmoddi4+0xa6>
|
|
8000cd6: 2a00 cmp r2, #0
|
|
8000cd8: f040 8090 bne.w 8000dfc <__udivmoddi4+0x204>
|
|
8000cdc: eba1 040c sub.w r4, r1, ip
|
|
8000ce0: ea4f 481c mov.w r8, ip, lsr #16
|
|
8000ce4: fa1f f78c uxth.w r7, ip
|
|
8000ce8: 2101 movs r1, #1
|
|
8000cea: fbb4 f6f8 udiv r6, r4, r8
|
|
8000cee: ea4f 431e mov.w r3, lr, lsr #16
|
|
8000cf2: fb08 4416 mls r4, r8, r6, r4
|
|
8000cf6: ea43 4304 orr.w r3, r3, r4, lsl #16
|
|
8000cfa: fb07 f006 mul.w r0, r7, r6
|
|
8000cfe: 4298 cmp r0, r3
|
|
8000d00: d908 bls.n 8000d14 <__udivmoddi4+0x11c>
|
|
8000d02: eb1c 0303 adds.w r3, ip, r3
|
|
8000d06: f106 34ff add.w r4, r6, #4294967295
|
|
8000d0a: d202 bcs.n 8000d12 <__udivmoddi4+0x11a>
|
|
8000d0c: 4298 cmp r0, r3
|
|
8000d0e: f200 80cd bhi.w 8000eac <__udivmoddi4+0x2b4>
|
|
8000d12: 4626 mov r6, r4
|
|
8000d14: 1a1c subs r4, r3, r0
|
|
8000d16: fa1f f38e uxth.w r3, lr
|
|
8000d1a: fbb4 f0f8 udiv r0, r4, r8
|
|
8000d1e: fb08 4410 mls r4, r8, r0, r4
|
|
8000d22: ea43 4304 orr.w r3, r3, r4, lsl #16
|
|
8000d26: fb00 f707 mul.w r7, r0, r7
|
|
8000d2a: 429f cmp r7, r3
|
|
8000d2c: d908 bls.n 8000d40 <__udivmoddi4+0x148>
|
|
8000d2e: eb1c 0303 adds.w r3, ip, r3
|
|
8000d32: f100 34ff add.w r4, r0, #4294967295
|
|
8000d36: d202 bcs.n 8000d3e <__udivmoddi4+0x146>
|
|
8000d38: 429f cmp r7, r3
|
|
8000d3a: f200 80b0 bhi.w 8000e9e <__udivmoddi4+0x2a6>
|
|
8000d3e: 4620 mov r0, r4
|
|
8000d40: 1bdb subs r3, r3, r7
|
|
8000d42: ea40 4006 orr.w r0, r0, r6, lsl #16
|
|
8000d46: e7a5 b.n 8000c94 <__udivmoddi4+0x9c>
|
|
8000d48: f1c1 0620 rsb r6, r1, #32
|
|
8000d4c: 408b lsls r3, r1
|
|
8000d4e: fa22 f706 lsr.w r7, r2, r6
|
|
8000d52: 431f orrs r7, r3
|
|
8000d54: fa20 fc06 lsr.w ip, r0, r6
|
|
8000d58: fa04 f301 lsl.w r3, r4, r1
|
|
8000d5c: ea43 030c orr.w r3, r3, ip
|
|
8000d60: 40f4 lsrs r4, r6
|
|
8000d62: fa00 f801 lsl.w r8, r0, r1
|
|
8000d66: 0c38 lsrs r0, r7, #16
|
|
8000d68: ea4f 4913 mov.w r9, r3, lsr #16
|
|
8000d6c: fbb4 fef0 udiv lr, r4, r0
|
|
8000d70: fa1f fc87 uxth.w ip, r7
|
|
8000d74: fb00 441e mls r4, r0, lr, r4
|
|
8000d78: ea49 4404 orr.w r4, r9, r4, lsl #16
|
|
8000d7c: fb0e f90c mul.w r9, lr, ip
|
|
8000d80: 45a1 cmp r9, r4
|
|
8000d82: fa02 f201 lsl.w r2, r2, r1
|
|
8000d86: d90a bls.n 8000d9e <__udivmoddi4+0x1a6>
|
|
8000d88: 193c adds r4, r7, r4
|
|
8000d8a: f10e 3aff add.w sl, lr, #4294967295
|
|
8000d8e: f080 8084 bcs.w 8000e9a <__udivmoddi4+0x2a2>
|
|
8000d92: 45a1 cmp r9, r4
|
|
8000d94: f240 8081 bls.w 8000e9a <__udivmoddi4+0x2a2>
|
|
8000d98: f1ae 0e02 sub.w lr, lr, #2
|
|
8000d9c: 443c add r4, r7
|
|
8000d9e: eba4 0409 sub.w r4, r4, r9
|
|
8000da2: fa1f f983 uxth.w r9, r3
|
|
8000da6: fbb4 f3f0 udiv r3, r4, r0
|
|
8000daa: fb00 4413 mls r4, r0, r3, r4
|
|
8000dae: ea49 4404 orr.w r4, r9, r4, lsl #16
|
|
8000db2: fb03 fc0c mul.w ip, r3, ip
|
|
8000db6: 45a4 cmp ip, r4
|
|
8000db8: d907 bls.n 8000dca <__udivmoddi4+0x1d2>
|
|
8000dba: 193c adds r4, r7, r4
|
|
8000dbc: f103 30ff add.w r0, r3, #4294967295
|
|
8000dc0: d267 bcs.n 8000e92 <__udivmoddi4+0x29a>
|
|
8000dc2: 45a4 cmp ip, r4
|
|
8000dc4: d965 bls.n 8000e92 <__udivmoddi4+0x29a>
|
|
8000dc6: 3b02 subs r3, #2
|
|
8000dc8: 443c add r4, r7
|
|
8000dca: ea43 400e orr.w r0, r3, lr, lsl #16
|
|
8000dce: fba0 9302 umull r9, r3, r0, r2
|
|
8000dd2: eba4 040c sub.w r4, r4, ip
|
|
8000dd6: 429c cmp r4, r3
|
|
8000dd8: 46ce mov lr, r9
|
|
8000dda: 469c mov ip, r3
|
|
8000ddc: d351 bcc.n 8000e82 <__udivmoddi4+0x28a>
|
|
8000dde: d04e beq.n 8000e7e <__udivmoddi4+0x286>
|
|
8000de0: b155 cbz r5, 8000df8 <__udivmoddi4+0x200>
|
|
8000de2: ebb8 030e subs.w r3, r8, lr
|
|
8000de6: eb64 040c sbc.w r4, r4, ip
|
|
8000dea: fa04 f606 lsl.w r6, r4, r6
|
|
8000dee: 40cb lsrs r3, r1
|
|
8000df0: 431e orrs r6, r3
|
|
8000df2: 40cc lsrs r4, r1
|
|
8000df4: e9c5 6400 strd r6, r4, [r5]
|
|
8000df8: 2100 movs r1, #0
|
|
8000dfa: e750 b.n 8000c9e <__udivmoddi4+0xa6>
|
|
8000dfc: f1c2 0320 rsb r3, r2, #32
|
|
8000e00: fa20 f103 lsr.w r1, r0, r3
|
|
8000e04: fa0c fc02 lsl.w ip, ip, r2
|
|
8000e08: fa24 f303 lsr.w r3, r4, r3
|
|
8000e0c: 4094 lsls r4, r2
|
|
8000e0e: 430c orrs r4, r1
|
|
8000e10: ea4f 481c mov.w r8, ip, lsr #16
|
|
8000e14: fa00 fe02 lsl.w lr, r0, r2
|
|
8000e18: fa1f f78c uxth.w r7, ip
|
|
8000e1c: fbb3 f0f8 udiv r0, r3, r8
|
|
8000e20: fb08 3110 mls r1, r8, r0, r3
|
|
8000e24: 0c23 lsrs r3, r4, #16
|
|
8000e26: ea43 4301 orr.w r3, r3, r1, lsl #16
|
|
8000e2a: fb00 f107 mul.w r1, r0, r7
|
|
8000e2e: 4299 cmp r1, r3
|
|
8000e30: d908 bls.n 8000e44 <__udivmoddi4+0x24c>
|
|
8000e32: eb1c 0303 adds.w r3, ip, r3
|
|
8000e36: f100 36ff add.w r6, r0, #4294967295
|
|
8000e3a: d22c bcs.n 8000e96 <__udivmoddi4+0x29e>
|
|
8000e3c: 4299 cmp r1, r3
|
|
8000e3e: d92a bls.n 8000e96 <__udivmoddi4+0x29e>
|
|
8000e40: 3802 subs r0, #2
|
|
8000e42: 4463 add r3, ip
|
|
8000e44: 1a5b subs r3, r3, r1
|
|
8000e46: b2a4 uxth r4, r4
|
|
8000e48: fbb3 f1f8 udiv r1, r3, r8
|
|
8000e4c: fb08 3311 mls r3, r8, r1, r3
|
|
8000e50: ea44 4403 orr.w r4, r4, r3, lsl #16
|
|
8000e54: fb01 f307 mul.w r3, r1, r7
|
|
8000e58: 42a3 cmp r3, r4
|
|
8000e5a: d908 bls.n 8000e6e <__udivmoddi4+0x276>
|
|
8000e5c: eb1c 0404 adds.w r4, ip, r4
|
|
8000e60: f101 36ff add.w r6, r1, #4294967295
|
|
8000e64: d213 bcs.n 8000e8e <__udivmoddi4+0x296>
|
|
8000e66: 42a3 cmp r3, r4
|
|
8000e68: d911 bls.n 8000e8e <__udivmoddi4+0x296>
|
|
8000e6a: 3902 subs r1, #2
|
|
8000e6c: 4464 add r4, ip
|
|
8000e6e: 1ae4 subs r4, r4, r3
|
|
8000e70: ea41 4100 orr.w r1, r1, r0, lsl #16
|
|
8000e74: e739 b.n 8000cea <__udivmoddi4+0xf2>
|
|
8000e76: 4604 mov r4, r0
|
|
8000e78: e6f0 b.n 8000c5c <__udivmoddi4+0x64>
|
|
8000e7a: 4608 mov r0, r1
|
|
8000e7c: e706 b.n 8000c8c <__udivmoddi4+0x94>
|
|
8000e7e: 45c8 cmp r8, r9
|
|
8000e80: d2ae bcs.n 8000de0 <__udivmoddi4+0x1e8>
|
|
8000e82: ebb9 0e02 subs.w lr, r9, r2
|
|
8000e86: eb63 0c07 sbc.w ip, r3, r7
|
|
8000e8a: 3801 subs r0, #1
|
|
8000e8c: e7a8 b.n 8000de0 <__udivmoddi4+0x1e8>
|
|
8000e8e: 4631 mov r1, r6
|
|
8000e90: e7ed b.n 8000e6e <__udivmoddi4+0x276>
|
|
8000e92: 4603 mov r3, r0
|
|
8000e94: e799 b.n 8000dca <__udivmoddi4+0x1d2>
|
|
8000e96: 4630 mov r0, r6
|
|
8000e98: e7d4 b.n 8000e44 <__udivmoddi4+0x24c>
|
|
8000e9a: 46d6 mov lr, sl
|
|
8000e9c: e77f b.n 8000d9e <__udivmoddi4+0x1a6>
|
|
8000e9e: 4463 add r3, ip
|
|
8000ea0: 3802 subs r0, #2
|
|
8000ea2: e74d b.n 8000d40 <__udivmoddi4+0x148>
|
|
8000ea4: 4606 mov r6, r0
|
|
8000ea6: 4623 mov r3, r4
|
|
8000ea8: 4608 mov r0, r1
|
|
8000eaa: e70f b.n 8000ccc <__udivmoddi4+0xd4>
|
|
8000eac: 3e02 subs r6, #2
|
|
8000eae: 4463 add r3, ip
|
|
8000eb0: e730 b.n 8000d14 <__udivmoddi4+0x11c>
|
|
8000eb2: bf00 nop
|
|
|
|
08000eb4 <__aeabi_idiv0>:
|
|
8000eb4: 4770 bx lr
|
|
8000eb6: bf00 nop
|
|
|
|
08000eb8 <_ZnwjPv>:
|
|
#endif // __cpp_sized_deallocation
|
|
#endif // __cpp_aligned_new
|
|
|
|
// Default placement versions of operator new.
|
|
_GLIBCXX_NODISCARD inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
|
|
{ return __p; }
|
|
8000eb8: b480 push {r7}
|
|
8000eba: b083 sub sp, #12
|
|
8000ebc: af00 add r7, sp, #0
|
|
8000ebe: 6078 str r0, [r7, #4]
|
|
8000ec0: 6039 str r1, [r7, #0]
|
|
8000ec2: 683b ldr r3, [r7, #0]
|
|
8000ec4: 4618 mov r0, r3
|
|
8000ec6: 370c adds r7, #12
|
|
8000ec8: 46bd mov sp, r7
|
|
8000eca: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000ece: 4770 bx lr
|
|
|
|
08000ed0 <_ZN9__gnu_cxx5__ops16__iter_less_iterEv>:
|
|
};
|
|
|
|
_GLIBCXX14_CONSTEXPR
|
|
inline _Iter_less_iter
|
|
__iter_less_iter()
|
|
{ return _Iter_less_iter(); }
|
|
8000ed0: b480 push {r7}
|
|
8000ed2: af00 add r7, sp, #0
|
|
8000ed4: bf00 nop
|
|
8000ed6: 4618 mov r0, r3
|
|
8000ed8: 46bd mov sp, r7
|
|
8000eda: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000ede: 4770 bx lr
|
|
|
|
08000ee0 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE15_M_add_ref_copyEv>:
|
|
}
|
|
|
|
template<>
|
|
inline void
|
|
_Sp_counted_base<_S_single>::_M_add_ref_copy()
|
|
{ ++_M_use_count; }
|
|
8000ee0: b480 push {r7}
|
|
8000ee2: b083 sub sp, #12
|
|
8000ee4: af00 add r7, sp, #0
|
|
8000ee6: 6078 str r0, [r7, #4]
|
|
8000ee8: 687b ldr r3, [r7, #4]
|
|
8000eea: 685b ldr r3, [r3, #4]
|
|
8000eec: 1c5a adds r2, r3, #1
|
|
8000eee: 687b ldr r3, [r7, #4]
|
|
8000ef0: 605a str r2, [r3, #4]
|
|
8000ef2: bf00 nop
|
|
8000ef4: 370c adds r7, #12
|
|
8000ef6: 46bd mov sp, r7
|
|
8000ef8: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000efc: 4770 bx lr
|
|
|
|
08000efe <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_releaseEv>:
|
|
|
|
template<>
|
|
inline void
|
|
_Sp_counted_base<_S_single>::_M_release() noexcept
|
|
{
|
|
8000efe: b580 push {r7, lr}
|
|
8000f00: b082 sub sp, #8
|
|
8000f02: af00 add r7, sp, #0
|
|
8000f04: 6078 str r0, [r7, #4]
|
|
if (--_M_use_count == 0)
|
|
8000f06: 687b ldr r3, [r7, #4]
|
|
8000f08: 685b ldr r3, [r3, #4]
|
|
8000f0a: 1e5a subs r2, r3, #1
|
|
8000f0c: 687b ldr r3, [r7, #4]
|
|
8000f0e: 605a str r2, [r3, #4]
|
|
8000f10: 687b ldr r3, [r7, #4]
|
|
8000f12: 685b ldr r3, [r3, #4]
|
|
8000f14: 2b00 cmp r3, #0
|
|
8000f16: bf0c ite eq
|
|
8000f18: 2301 moveq r3, #1
|
|
8000f1a: 2300 movne r3, #0
|
|
8000f1c: b2db uxtb r3, r3
|
|
8000f1e: 2b00 cmp r3, #0
|
|
8000f20: d019 beq.n 8000f56 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_releaseEv+0x58>
|
|
{
|
|
_M_dispose();
|
|
8000f22: 687b ldr r3, [r7, #4]
|
|
8000f24: 681b ldr r3, [r3, #0]
|
|
8000f26: 3308 adds r3, #8
|
|
8000f28: 681b ldr r3, [r3, #0]
|
|
8000f2a: 6878 ldr r0, [r7, #4]
|
|
8000f2c: 4798 blx r3
|
|
if (--_M_weak_count == 0)
|
|
8000f2e: 687b ldr r3, [r7, #4]
|
|
8000f30: 689b ldr r3, [r3, #8]
|
|
8000f32: 1e5a subs r2, r3, #1
|
|
8000f34: 687b ldr r3, [r7, #4]
|
|
8000f36: 609a str r2, [r3, #8]
|
|
8000f38: 687b ldr r3, [r7, #4]
|
|
8000f3a: 689b ldr r3, [r3, #8]
|
|
8000f3c: 2b00 cmp r3, #0
|
|
8000f3e: bf0c ite eq
|
|
8000f40: 2301 moveq r3, #1
|
|
8000f42: 2300 movne r3, #0
|
|
8000f44: b2db uxtb r3, r3
|
|
8000f46: 2b00 cmp r3, #0
|
|
8000f48: d005 beq.n 8000f56 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_releaseEv+0x58>
|
|
_M_destroy();
|
|
8000f4a: 687b ldr r3, [r7, #4]
|
|
8000f4c: 681b ldr r3, [r3, #0]
|
|
8000f4e: 330c adds r3, #12
|
|
8000f50: 681b ldr r3, [r3, #0]
|
|
8000f52: 6878 ldr r0, [r7, #4]
|
|
8000f54: 4798 blx r3
|
|
}
|
|
}
|
|
8000f56: bf00 nop
|
|
8000f58: 3708 adds r7, #8
|
|
8000f5a: 46bd mov sp, r7
|
|
8000f5c: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08000f60 <_ZNSt19_Sp_make_shared_tag5_S_tiEv>:
|
|
private:
|
|
template<typename _Tp, typename _Alloc, _Lock_policy _Lp>
|
|
friend class _Sp_counted_ptr_inplace;
|
|
|
|
static const type_info&
|
|
_S_ti() noexcept _GLIBCXX_VISIBILITY(default)
|
|
8000f60: b480 push {r7}
|
|
8000f62: af00 add r7, sp, #0
|
|
{
|
|
alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { };
|
|
return reinterpret_cast<const type_info&>(__tag);
|
|
8000f64: 4b02 ldr r3, [pc, #8] @ (8000f70 <_ZNSt19_Sp_make_shared_tag5_S_tiEv+0x10>)
|
|
}
|
|
8000f66: 4618 mov r0, r3
|
|
8000f68: 46bd mov sp, r7
|
|
8000f6a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000f6e: 4770 bx lr
|
|
8000f70: 08013050 .word 0x08013050
|
|
|
|
08000f74 <_ZNSt18_Rb_tree_node_base10_S_minimumEPS_>:
|
|
_Base_ptr _M_parent;
|
|
_Base_ptr _M_left;
|
|
_Base_ptr _M_right;
|
|
|
|
static _Base_ptr
|
|
_S_minimum(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8000f74: b480 push {r7}
|
|
8000f76: b083 sub sp, #12
|
|
8000f78: af00 add r7, sp, #0
|
|
8000f7a: 6078 str r0, [r7, #4]
|
|
{
|
|
while (__x->_M_left != 0) __x = __x->_M_left;
|
|
8000f7c: e002 b.n 8000f84 <_ZNSt18_Rb_tree_node_base10_S_minimumEPS_+0x10>
|
|
8000f7e: 687b ldr r3, [r7, #4]
|
|
8000f80: 689b ldr r3, [r3, #8]
|
|
8000f82: 607b str r3, [r7, #4]
|
|
8000f84: 687b ldr r3, [r7, #4]
|
|
8000f86: 689b ldr r3, [r3, #8]
|
|
8000f88: 2b00 cmp r3, #0
|
|
8000f8a: d1f8 bne.n 8000f7e <_ZNSt18_Rb_tree_node_base10_S_minimumEPS_+0xa>
|
|
return __x;
|
|
8000f8c: 687b ldr r3, [r7, #4]
|
|
}
|
|
8000f8e: 4618 mov r0, r3
|
|
8000f90: 370c adds r7, #12
|
|
8000f92: 46bd mov sp, r7
|
|
8000f94: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000f98: 4770 bx lr
|
|
|
|
08000f9a <_ZNSt18_Rb_tree_node_base10_S_maximumEPS_>:
|
|
while (__x->_M_left != 0) __x = __x->_M_left;
|
|
return __x;
|
|
}
|
|
|
|
static _Base_ptr
|
|
_S_maximum(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8000f9a: b480 push {r7}
|
|
8000f9c: b083 sub sp, #12
|
|
8000f9e: af00 add r7, sp, #0
|
|
8000fa0: 6078 str r0, [r7, #4]
|
|
{
|
|
while (__x->_M_right != 0) __x = __x->_M_right;
|
|
8000fa2: e002 b.n 8000faa <_ZNSt18_Rb_tree_node_base10_S_maximumEPS_+0x10>
|
|
8000fa4: 687b ldr r3, [r7, #4]
|
|
8000fa6: 68db ldr r3, [r3, #12]
|
|
8000fa8: 607b str r3, [r7, #4]
|
|
8000faa: 687b ldr r3, [r7, #4]
|
|
8000fac: 68db ldr r3, [r3, #12]
|
|
8000fae: 2b00 cmp r3, #0
|
|
8000fb0: d1f8 bne.n 8000fa4 <_ZNSt18_Rb_tree_node_base10_S_maximumEPS_+0xa>
|
|
return __x;
|
|
8000fb2: 687b ldr r3, [r7, #4]
|
|
}
|
|
8000fb4: 4618 mov r0, r3
|
|
8000fb6: 370c adds r7, #12
|
|
8000fb8: 46bd mov sp, r7
|
|
8000fba: f85d 7b04 ldr.w r7, [sp], #4
|
|
8000fbe: 4770 bx lr
|
|
|
|
08000fc0 <_ZNSt15_Rb_tree_headerC1Ev>:
|
|
struct _Rb_tree_header
|
|
{
|
|
_Rb_tree_node_base _M_header;
|
|
size_t _M_node_count; // Keeps track of size of tree.
|
|
|
|
_Rb_tree_header() _GLIBCXX_NOEXCEPT
|
|
8000fc0: b580 push {r7, lr}
|
|
8000fc2: b082 sub sp, #8
|
|
8000fc4: af00 add r7, sp, #0
|
|
8000fc6: 6078 str r0, [r7, #4]
|
|
{
|
|
_M_header._M_color = _S_red;
|
|
8000fc8: 687b ldr r3, [r7, #4]
|
|
8000fca: 2200 movs r2, #0
|
|
8000fcc: 701a strb r2, [r3, #0]
|
|
_M_reset();
|
|
8000fce: 6878 ldr r0, [r7, #4]
|
|
8000fd0: f000 f805 bl 8000fde <_ZNSt15_Rb_tree_header8_M_resetEv>
|
|
}
|
|
8000fd4: 687b ldr r3, [r7, #4]
|
|
8000fd6: 4618 mov r0, r3
|
|
8000fd8: 3708 adds r7, #8
|
|
8000fda: 46bd mov sp, r7
|
|
8000fdc: bd80 pop {r7, pc}
|
|
|
|
08000fde <_ZNSt15_Rb_tree_header8_M_resetEv>:
|
|
|
|
__from._M_reset();
|
|
}
|
|
|
|
void
|
|
_M_reset()
|
|
8000fde: b480 push {r7}
|
|
8000fe0: b083 sub sp, #12
|
|
8000fe2: af00 add r7, sp, #0
|
|
8000fe4: 6078 str r0, [r7, #4]
|
|
{
|
|
_M_header._M_parent = 0;
|
|
8000fe6: 687b ldr r3, [r7, #4]
|
|
8000fe8: 2200 movs r2, #0
|
|
8000fea: 605a str r2, [r3, #4]
|
|
_M_header._M_left = &_M_header;
|
|
8000fec: 687a ldr r2, [r7, #4]
|
|
8000fee: 687b ldr r3, [r7, #4]
|
|
8000ff0: 609a str r2, [r3, #8]
|
|
_M_header._M_right = &_M_header;
|
|
8000ff2: 687a ldr r2, [r7, #4]
|
|
8000ff4: 687b ldr r3, [r7, #4]
|
|
8000ff6: 60da str r2, [r3, #12]
|
|
_M_node_count = 0;
|
|
8000ff8: 687b ldr r3, [r7, #4]
|
|
8000ffa: 2200 movs r2, #0
|
|
8000ffc: 611a str r2, [r3, #16]
|
|
}
|
|
8000ffe: bf00 nop
|
|
8001000: 370c adds r7, #12
|
|
8001002: 46bd mov sp, r7
|
|
8001004: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001008: 4770 bx lr
|
|
...
|
|
|
|
0800100c <__tcf_0>:
|
|
*
|
|
* @ingroup tacos_statemachine
|
|
*/
|
|
static Statemachine* instance()
|
|
{
|
|
static CGuard g;
|
|
800100c: b580 push {r7, lr}
|
|
800100e: af00 add r7, sp, #0
|
|
8001010: 4801 ldr r0, [pc, #4] @ (8001018 <__tcf_0+0xc>)
|
|
8001012: f000 f83b bl 800108c <_ZN3sta5tacos12Statemachine6CGuardD1Ev>
|
|
8001016: bd80 pop {r7, pc}
|
|
8001018: 200001f8 .word 0x200001f8
|
|
|
|
0800101c <_ZN3sta5tacos12Statemachine8instanceEv>:
|
|
static Statemachine* instance()
|
|
800101c: b598 push {r3, r4, r7, lr}
|
|
800101e: af00 add r7, sp, #0
|
|
static CGuard g;
|
|
8001020: 4b17 ldr r3, [pc, #92] @ (8001080 <_ZN3sta5tacos12Statemachine8instanceEv+0x64>)
|
|
8001022: 681b ldr r3, [r3, #0]
|
|
8001024: f3bf 8f5b dmb ish
|
|
8001028: f003 0301 and.w r3, r3, #1
|
|
800102c: 2b00 cmp r3, #0
|
|
800102e: bf0c ite eq
|
|
8001030: 2301 moveq r3, #1
|
|
8001032: 2300 movne r3, #0
|
|
8001034: b2db uxtb r3, r3
|
|
8001036: 2b00 cmp r3, #0
|
|
8001038: d010 beq.n 800105c <_ZN3sta5tacos12Statemachine8instanceEv+0x40>
|
|
800103a: 4811 ldr r0, [pc, #68] @ (8001080 <_ZN3sta5tacos12Statemachine8instanceEv+0x64>)
|
|
800103c: f002 fdbe bl 8003bbc <__cxa_guard_acquire>
|
|
8001040: 4603 mov r3, r0
|
|
8001042: 2b00 cmp r3, #0
|
|
8001044: bf14 ite ne
|
|
8001046: 2301 movne r3, #1
|
|
8001048: 2300 moveq r3, #0
|
|
800104a: b2db uxtb r3, r3
|
|
800104c: 2b00 cmp r3, #0
|
|
800104e: d005 beq.n 800105c <_ZN3sta5tacos12Statemachine8instanceEv+0x40>
|
|
8001050: 480c ldr r0, [pc, #48] @ (8001084 <_ZN3sta5tacos12Statemachine8instanceEv+0x68>)
|
|
8001052: f00e fd6e bl 800fb32 <atexit>
|
|
8001056: 480a ldr r0, [pc, #40] @ (8001080 <_ZN3sta5tacos12Statemachine8instanceEv+0x64>)
|
|
8001058: f002 fe18 bl 8003c8c <__cxa_guard_release>
|
|
|
|
if (!_instance)
|
|
800105c: 4b0a ldr r3, [pc, #40] @ (8001088 <_ZN3sta5tacos12Statemachine8instanceEv+0x6c>)
|
|
800105e: 681b ldr r3, [r3, #0]
|
|
8001060: 2b00 cmp r3, #0
|
|
8001062: d109 bne.n 8001078 <_ZN3sta5tacos12Statemachine8instanceEv+0x5c>
|
|
{
|
|
// Create the statemachine singleton instance.
|
|
Statemachine::_instance = new Statemachine();
|
|
8001064: 20e8 movs r0, #232 @ 0xe8
|
|
8001066: f00e fb61 bl 800f72c <_Znwj>
|
|
800106a: 4603 mov r3, r0
|
|
800106c: 461c mov r4, r3
|
|
800106e: 4620 mov r0, r4
|
|
8001070: f005 fa9c bl 80065ac <_ZN3sta5tacos12StatemachineC1Ev>
|
|
8001074: 4b04 ldr r3, [pc, #16] @ (8001088 <_ZN3sta5tacos12Statemachine8instanceEv+0x6c>)
|
|
8001076: 601c str r4, [r3, #0]
|
|
}
|
|
|
|
return _instance;
|
|
8001078: 4b03 ldr r3, [pc, #12] @ (8001088 <_ZN3sta5tacos12Statemachine8instanceEv+0x6c>)
|
|
800107a: 681b ldr r3, [r3, #0]
|
|
}
|
|
800107c: 4618 mov r0, r3
|
|
800107e: bd98 pop {r3, r4, r7, pc}
|
|
8001080: 200001fc .word 0x200001fc
|
|
8001084: 0800100d .word 0x0800100d
|
|
8001088: 200002fc .word 0x200002fc
|
|
|
|
0800108c <_ZN3sta5tacos12Statemachine6CGuardD1Ev>:
|
|
static Statemachine * _instance;
|
|
|
|
class CGuard
|
|
{
|
|
public:
|
|
~CGuard()
|
|
800108c: b580 push {r7, lr}
|
|
800108e: b082 sub sp, #8
|
|
8001090: af00 add r7, sp, #0
|
|
8001092: 6078 str r0, [r7, #4]
|
|
{
|
|
if( NULL != Statemachine::_instance )
|
|
8001094: 4b0a ldr r3, [pc, #40] @ (80010c0 <_ZN3sta5tacos12Statemachine6CGuardD1Ev+0x34>)
|
|
8001096: 681b ldr r3, [r3, #0]
|
|
8001098: 2b00 cmp r3, #0
|
|
800109a: d00b beq.n 80010b4 <_ZN3sta5tacos12Statemachine6CGuardD1Ev+0x28>
|
|
{
|
|
delete Statemachine::_instance;
|
|
800109c: 4b08 ldr r3, [pc, #32] @ (80010c0 <_ZN3sta5tacos12Statemachine6CGuardD1Ev+0x34>)
|
|
800109e: 681b ldr r3, [r3, #0]
|
|
80010a0: 2b00 cmp r3, #0
|
|
80010a2: d004 beq.n 80010ae <_ZN3sta5tacos12Statemachine6CGuardD1Ev+0x22>
|
|
80010a4: 681a ldr r2, [r3, #0]
|
|
80010a6: 320c adds r2, #12
|
|
80010a8: 6812 ldr r2, [r2, #0]
|
|
80010aa: 4618 mov r0, r3
|
|
80010ac: 4790 blx r2
|
|
Statemachine::_instance = NULL;
|
|
80010ae: 4b04 ldr r3, [pc, #16] @ (80010c0 <_ZN3sta5tacos12Statemachine6CGuardD1Ev+0x34>)
|
|
80010b0: 2200 movs r2, #0
|
|
80010b2: 601a str r2, [r3, #0]
|
|
}
|
|
}
|
|
80010b4: 687b ldr r3, [r7, #4]
|
|
80010b6: 4618 mov r0, r3
|
|
80010b8: 3708 adds r7, #8
|
|
80010ba: 46bd mov sp, r7
|
|
80010bc: bd80 pop {r7, pc}
|
|
80010be: bf00 nop
|
|
80010c0: 200002fc .word 0x200002fc
|
|
|
|
080010c4 <_ZN3sta5tacos17onStateTransitionEttm>:
|
|
* @param lockout The lockout time after the transition.
|
|
*
|
|
* @ingroup tacos_statemachine
|
|
*/
|
|
STA_WEAK
|
|
void onStateTransition(uint16_t from, uint16_t to, uint32_t lockout) {}
|
|
80010c4: b480 push {r7}
|
|
80010c6: b083 sub sp, #12
|
|
80010c8: af00 add r7, sp, #0
|
|
80010ca: 4603 mov r3, r0
|
|
80010cc: 603a str r2, [r7, #0]
|
|
80010ce: 80fb strh r3, [r7, #6]
|
|
80010d0: 460b mov r3, r1
|
|
80010d2: 80bb strh r3, [r7, #4]
|
|
80010d4: bf00 nop
|
|
80010d6: 370c adds r7, #12
|
|
80010d8: 46bd mov sp, r7
|
|
80010da: f85d 7b04 ldr.w r7, [sp], #4
|
|
80010de: 4770 bx lr
|
|
|
|
080010e0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EED1Ev>:
|
|
#else
|
|
// Unused _Is_pod_comparator is kept as it is part of mangled name.
|
|
template<typename _Key_compare,
|
|
bool /* _Is_pod_comparator */ = __is_pod(_Key_compare)>
|
|
#endif
|
|
struct _Rb_tree_impl
|
|
80010e0: b580 push {r7, lr}
|
|
80010e2: b082 sub sp, #8
|
|
80010e4: af00 add r7, sp, #0
|
|
80010e6: 6078 str r0, [r7, #4]
|
|
80010e8: 6878 ldr r0, [r7, #4]
|
|
80010ea: f000 f8eb bl 80012c4 <_ZNSaISt13_Rb_tree_nodeItEED1Ev>
|
|
80010ee: 687b ldr r3, [r7, #4]
|
|
80010f0: 4618 mov r0, r3
|
|
80010f2: 3708 adds r7, #8
|
|
80010f4: 46bd mov sp, r7
|
|
80010f6: bd80 pop {r7, pc}
|
|
|
|
080010f8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1Ev>:
|
|
public:
|
|
// allocation/deallocation
|
|
#if __cplusplus < 201103L
|
|
_Rb_tree() { }
|
|
#else
|
|
_Rb_tree() = default;
|
|
80010f8: b580 push {r7, lr}
|
|
80010fa: b082 sub sp, #8
|
|
80010fc: af00 add r7, sp, #0
|
|
80010fe: 6078 str r0, [r7, #4]
|
|
8001100: 687b ldr r3, [r7, #4]
|
|
8001102: 4618 mov r0, r3
|
|
8001104: f000 f8c9 bl 800129a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1Ev>
|
|
8001108: 687b ldr r3, [r7, #4]
|
|
800110a: 4618 mov r0, r3
|
|
800110c: 3708 adds r7, #8
|
|
800110e: 46bd mov sp, r7
|
|
8001110: bd80 pop {r7, pc}
|
|
|
|
08001112 <_ZNSt3setItSt4lessItESaItEEC1Ev>:
|
|
* @brief Default constructor creates no elements.
|
|
*/
|
|
#if __cplusplus < 201103L
|
|
set() : _M_t() { }
|
|
#else
|
|
set() = default;
|
|
8001112: b580 push {r7, lr}
|
|
8001114: b082 sub sp, #8
|
|
8001116: af00 add r7, sp, #0
|
|
8001118: 6078 str r0, [r7, #4]
|
|
800111a: 687b ldr r3, [r7, #4]
|
|
800111c: 4618 mov r0, r3
|
|
800111e: f7ff ffeb bl 80010f8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1Ev>
|
|
8001122: 687b ldr r3, [r7, #4]
|
|
8001124: 4618 mov r0, r3
|
|
8001126: 3708 adds r7, #8
|
|
8001128: 46bd mov sp, r7
|
|
800112a: bd80 pop {r7, pc}
|
|
|
|
0800112c <_ZNSt3setItSt4lessItESaItEED1Ev>:
|
|
/**
|
|
* The dtor only erases the elements, and note that if the elements
|
|
* themselves are pointers, the pointed-to memory is not touched in any
|
|
* way. Managing the pointer is the user's responsibility.
|
|
*/
|
|
~set() = default;
|
|
800112c: b580 push {r7, lr}
|
|
800112e: b082 sub sp, #8
|
|
8001130: af00 add r7, sp, #0
|
|
8001132: 6078 str r0, [r7, #4]
|
|
8001134: 687b ldr r3, [r7, #4]
|
|
8001136: 4618 mov r0, r3
|
|
8001138: f000 f8d0 bl 80012dc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEED1Ev>
|
|
800113c: 687b ldr r3, [r7, #4]
|
|
800113e: 4618 mov r0, r3
|
|
8001140: 3708 adds r7, #8
|
|
8001142: 46bd mov sp, r7
|
|
8001144: bd80 pop {r7, pc}
|
|
|
|
08001146 <_ZZN3sta5tacos7startupEvENKUlvE_clEv>:
|
|
{
|
|
void startup()
|
|
{
|
|
// ###### Register different threads for different states here. ######
|
|
// Register a "Spam Task" thread for all states except 1 and 2.
|
|
sta::tacos::addThread<tasks::SpamTask>(ALL_STATES - state_set{1,2});
|
|
8001146: b580 push {r7, lr}
|
|
8001148: b086 sub sp, #24
|
|
800114a: af00 add r7, sp, #0
|
|
800114c: 6078 str r0, [r7, #4]
|
|
800114e: 6039 str r1, [r7, #0]
|
|
8001150: 6878 ldr r0, [r7, #4]
|
|
8001152: f7ff ffde bl 8001112 <_ZNSt3setItSt4lessItESaItEEC1Ev>
|
|
8001156: 2300 movs r3, #0
|
|
8001158: 81fb strh r3, [r7, #14]
|
|
800115a: e00b b.n 8001174 <_ZZN3sta5tacos7startupEvENKUlvE_clEv+0x2e>
|
|
800115c: f107 0310 add.w r3, r7, #16
|
|
8001160: f107 020e add.w r2, r7, #14
|
|
8001164: 6879 ldr r1, [r7, #4]
|
|
8001166: 4618 mov r0, r3
|
|
8001168: f000 f8cd bl 8001306 <_ZNSt3setItSt4lessItESaItEE6insertERKt>
|
|
800116c: 89fb ldrh r3, [r7, #14]
|
|
800116e: 3301 adds r3, #1
|
|
8001170: b29b uxth r3, r3
|
|
8001172: 81fb strh r3, [r7, #14]
|
|
8001174: 89fb ldrh r3, [r7, #14]
|
|
8001176: 2b02 cmp r3, #2
|
|
8001178: d9f0 bls.n 800115c <_ZZN3sta5tacos7startupEvENKUlvE_clEv+0x16>
|
|
800117a: bf00 nop
|
|
800117c: 6878 ldr r0, [r7, #4]
|
|
800117e: 3718 adds r7, #24
|
|
8001180: 46bd mov sp, r7
|
|
8001182: bd80 pop {r7, pc}
|
|
|
|
08001184 <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EED1Ev>:
|
|
__r._M_ptr = nullptr;
|
|
}
|
|
|
|
__shared_ptr(const __shared_ptr&) noexcept = default;
|
|
__shared_ptr& operator=(const __shared_ptr&) noexcept = default;
|
|
~__shared_ptr() = default;
|
|
8001184: b580 push {r7, lr}
|
|
8001186: b082 sub sp, #8
|
|
8001188: af00 add r7, sp, #0
|
|
800118a: 6078 str r0, [r7, #4]
|
|
800118c: 687b ldr r3, [r7, #4]
|
|
800118e: 3304 adds r3, #4
|
|
8001190: 4618 mov r0, r3
|
|
8001192: f000 f9bc bl 800150e <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
8001196: 687b ldr r3, [r7, #4]
|
|
8001198: 4618 mov r0, r3
|
|
800119a: 3708 adds r7, #8
|
|
800119c: 46bd mov sp, r7
|
|
800119e: bd80 pop {r7, pc}
|
|
|
|
080011a0 <_ZNSt10shared_ptrIN5tasks8SpamTaskEED1Ev>:
|
|
* the stored pointer returned by `get()`, not the owned pointer.
|
|
* To test whether two `shared_ptr` objects share ownership of the same
|
|
* pointer see `std::shared_ptr::owner_before` and `std::owner_less`.
|
|
*/
|
|
template<typename _Tp>
|
|
class shared_ptr : public __shared_ptr<_Tp>
|
|
80011a0: b580 push {r7, lr}
|
|
80011a2: b082 sub sp, #8
|
|
80011a4: af00 add r7, sp, #0
|
|
80011a6: 6078 str r0, [r7, #4]
|
|
80011a8: 687b ldr r3, [r7, #4]
|
|
80011aa: 4618 mov r0, r3
|
|
80011ac: f7ff ffea bl 8001184 <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
80011b0: 687b ldr r3, [r7, #4]
|
|
80011b2: 4618 mov r0, r3
|
|
80011b4: 3708 adds r7, #8
|
|
80011b6: 46bd mov sp, r7
|
|
80011b8: bd80 pop {r7, pc}
|
|
...
|
|
|
|
080011bc <_ZN3sta5tacos7startupEv>:
|
|
{
|
|
80011bc: b580 push {r7, lr}
|
|
80011be: b09c sub sp, #112 @ 0x70
|
|
80011c0: af02 add r7, sp, #8
|
|
sta::tacos::addThread<tasks::SpamTask>(ALL_STATES - state_set{1,2});
|
|
80011c2: f107 0320 add.w r3, r7, #32
|
|
80011c6: f107 0238 add.w r2, r7, #56 @ 0x38
|
|
80011ca: 4611 mov r1, r2
|
|
80011cc: 4618 mov r0, r3
|
|
80011ce: f7ff ffba bl 8001146 <_ZZN3sta5tacos7startupEvENKUlvE_clEv>
|
|
80011d2: 4b26 ldr r3, [pc, #152] @ (800126c <_ZN3sta5tacos7startupEv+0xb0>)
|
|
80011d4: 681b ldr r3, [r3, #0]
|
|
80011d6: 65fb str r3, [r7, #92] @ 0x5c
|
|
80011d8: f107 035c add.w r3, r7, #92 @ 0x5c
|
|
80011dc: 657b str r3, [r7, #84] @ 0x54
|
|
80011de: 2302 movs r3, #2
|
|
80011e0: 65bb str r3, [r7, #88] @ 0x58
|
|
80011e2: f107 0364 add.w r3, r7, #100 @ 0x64
|
|
80011e6: 4618 mov r0, r3
|
|
80011e8: f000 f8b5 bl 8001356 <_ZNSaItEC1Ev>
|
|
80011ec: f107 0260 add.w r2, r7, #96 @ 0x60
|
|
80011f0: f107 003c add.w r0, r7, #60 @ 0x3c
|
|
80011f4: f107 0364 add.w r3, r7, #100 @ 0x64
|
|
80011f8: 9300 str r3, [sp, #0]
|
|
80011fa: 4613 mov r3, r2
|
|
80011fc: f107 0254 add.w r2, r7, #84 @ 0x54
|
|
8001200: ca06 ldmia r2, {r1, r2}
|
|
8001202: f000 f8c0 bl 8001386 <_ZNSt3setItSt4lessItESaItEEC1ESt16initializer_listItERKS1_RKS2_>
|
|
8001206: f107 0308 add.w r3, r7, #8
|
|
800120a: f107 023c add.w r2, r7, #60 @ 0x3c
|
|
800120e: f107 0120 add.w r1, r7, #32
|
|
8001212: 4618 mov r0, r3
|
|
8001214: f000 f8e7 bl 80013e6 <_ZmiItESt3setIT_St4lessIS1_ESaIS1_EERKS5_S7_>
|
|
8001218: 463b mov r3, r7
|
|
800121a: f107 0208 add.w r2, r7, #8
|
|
800121e: 4611 mov r1, r2
|
|
8001220: 4618 mov r0, r3
|
|
8001222: f000 f945 bl 80014b0 <_ZN3sta5tacos9addThreadIN5tasks8SpamTaskEJEEESt10shared_ptrIT_ESt3setItSt4lessItESaItEEDpT0_>
|
|
8001226: 463b mov r3, r7
|
|
8001228: 4618 mov r0, r3
|
|
800122a: f7ff ffb9 bl 80011a0 <_ZNSt10shared_ptrIN5tasks8SpamTaskEED1Ev>
|
|
800122e: f107 0308 add.w r3, r7, #8
|
|
8001232: 4618 mov r0, r3
|
|
8001234: f7ff ff7a bl 800112c <_ZNSt3setItSt4lessItESaItEED1Ev>
|
|
8001238: f107 033c add.w r3, r7, #60 @ 0x3c
|
|
800123c: 4618 mov r0, r3
|
|
800123e: f7ff ff75 bl 800112c <_ZNSt3setItSt4lessItESaItEED1Ev>
|
|
8001242: f107 0364 add.w r3, r7, #100 @ 0x64
|
|
8001246: 4618 mov r0, r3
|
|
8001248: f000 f891 bl 800136e <_ZNSaItED1Ev>
|
|
800124c: f107 0320 add.w r3, r7, #32
|
|
8001250: 4618 mov r0, r3
|
|
8001252: f7ff ff6b bl 800112c <_ZNSt3setItSt4lessItESaItEED1Ev>
|
|
|
|
STA_DEBUG_PRINTF("The answer to everything is %d", 42);
|
|
8001256: 4b06 ldr r3, [pc, #24] @ (8001270 <_ZN3sta5tacos7startupEv+0xb4>)
|
|
8001258: 681b ldr r3, [r3, #0]
|
|
800125a: 222a movs r2, #42 @ 0x2a
|
|
800125c: 4905 ldr r1, [pc, #20] @ (8001274 <_ZN3sta5tacos7startupEv+0xb8>)
|
|
800125e: 4618 mov r0, r3
|
|
8001260: f008 fd30 bl 8009cc4 <_ZN3sta9Printable6printfEPKcz>
|
|
}
|
|
8001264: bf00 nop
|
|
8001266: 3768 adds r7, #104 @ 0x68
|
|
8001268: 46bd mov sp, r7
|
|
800126a: bd80 pop {r7, pc}
|
|
800126c: 08012a00 .word 0x08012a00
|
|
8001270: 200002f8 .word 0x200002f8
|
|
8001274: 080129e0 .word 0x080129e0
|
|
|
|
08001278 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_destroyEv>:
|
|
_M_destroy() noexcept
|
|
8001278: b580 push {r7, lr}
|
|
800127a: b082 sub sp, #8
|
|
800127c: af00 add r7, sp, #0
|
|
800127e: 6078 str r0, [r7, #4]
|
|
{ delete this; }
|
|
8001280: 687b ldr r3, [r7, #4]
|
|
8001282: 2b00 cmp r3, #0
|
|
8001284: d005 beq.n 8001292 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_destroyEv+0x1a>
|
|
8001286: 687b ldr r3, [r7, #4]
|
|
8001288: 681b ldr r3, [r3, #0]
|
|
800128a: 3304 adds r3, #4
|
|
800128c: 681b ldr r3, [r3, #0]
|
|
800128e: 6878 ldr r0, [r7, #4]
|
|
8001290: 4798 blx r3
|
|
8001292: bf00 nop
|
|
8001294: 3708 adds r7, #8
|
|
8001296: 46bd mov sp, r7
|
|
8001298: bd80 pop {r7, pc}
|
|
|
|
0800129a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1Ev>:
|
|
_Rb_tree_impl()
|
|
800129a: b580 push {r7, lr}
|
|
800129c: b082 sub sp, #8
|
|
800129e: af00 add r7, sp, #0
|
|
80012a0: 6078 str r0, [r7, #4]
|
|
: _Node_allocator()
|
|
80012a2: 6878 ldr r0, [r7, #4]
|
|
80012a4: f000 f966 bl 8001574 <_ZNSaISt13_Rb_tree_nodeItEEC1Ev>
|
|
80012a8: 687b ldr r3, [r7, #4]
|
|
80012aa: 4618 mov r0, r3
|
|
80012ac: f000 f96e bl 800158c <_ZNSt20_Rb_tree_key_compareISt4lessItEEC1Ev>
|
|
80012b0: 687b ldr r3, [r7, #4]
|
|
80012b2: 3304 adds r3, #4
|
|
80012b4: 4618 mov r0, r3
|
|
80012b6: f7ff fe83 bl 8000fc0 <_ZNSt15_Rb_tree_headerC1Ev>
|
|
{ }
|
|
80012ba: 687b ldr r3, [r7, #4]
|
|
80012bc: 4618 mov r0, r3
|
|
80012be: 3708 adds r7, #8
|
|
80012c0: 46bd mov sp, r7
|
|
80012c2: bd80 pop {r7, pc}
|
|
|
|
080012c4 <_ZNSaISt13_Rb_tree_nodeItEED1Ev>:
|
|
allocator(const allocator<_Tp1>&) _GLIBCXX_NOTHROW { }
|
|
|
|
#if __cpp_constexpr_dynamic_alloc
|
|
constexpr
|
|
#endif
|
|
~allocator() _GLIBCXX_NOTHROW { }
|
|
80012c4: b580 push {r7, lr}
|
|
80012c6: b082 sub sp, #8
|
|
80012c8: af00 add r7, sp, #0
|
|
80012ca: 6078 str r0, [r7, #4]
|
|
80012cc: 6878 ldr r0, [r7, #4]
|
|
80012ce: f000 f968 bl 80015a2 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEED1Ev>
|
|
80012d2: 687b ldr r3, [r7, #4]
|
|
80012d4: 4618 mov r0, r3
|
|
80012d6: 3708 adds r7, #8
|
|
80012d8: 46bd mov sp, r7
|
|
80012da: bd80 pop {r7, pc}
|
|
|
|
080012dc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEED1Ev>:
|
|
: _Rb_tree(std::move(__x), std::move(__a),
|
|
typename _Alloc_traits::is_always_equal{})
|
|
{ }
|
|
#endif
|
|
|
|
~_Rb_tree() _GLIBCXX_NOEXCEPT
|
|
80012dc: b580 push {r7, lr}
|
|
80012de: b082 sub sp, #8
|
|
80012e0: af00 add r7, sp, #0
|
|
80012e2: 6078 str r0, [r7, #4]
|
|
{ _M_erase(_M_begin()); }
|
|
80012e4: 6878 ldr r0, [r7, #4]
|
|
80012e6: f000 f987 bl 80015f8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_beginEv>
|
|
80012ea: 4603 mov r3, r0
|
|
80012ec: 4619 mov r1, r3
|
|
80012ee: 6878 ldr r0, [r7, #4]
|
|
80012f0: f000 f962 bl 80015b8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_eraseEPSt13_Rb_tree_nodeItE>
|
|
80012f4: 687b ldr r3, [r7, #4]
|
|
80012f6: 4618 mov r0, r3
|
|
80012f8: f7ff fef2 bl 80010e0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EED1Ev>
|
|
80012fc: 687b ldr r3, [r7, #4]
|
|
80012fe: 4618 mov r0, r3
|
|
8001300: 3708 adds r7, #8
|
|
8001302: 46bd mov sp, r7
|
|
8001304: bd80 pop {r7, pc}
|
|
|
|
08001306 <_ZNSt3setItSt4lessItESaItEE6insertERKt>:
|
|
* not already present in the %set.
|
|
*
|
|
* Insertion requires logarithmic time.
|
|
*/
|
|
std::pair<iterator, bool>
|
|
insert(const value_type& __x)
|
|
8001306: b580 push {r7, lr}
|
|
8001308: b086 sub sp, #24
|
|
800130a: af00 add r7, sp, #0
|
|
800130c: 60f8 str r0, [r7, #12]
|
|
800130e: 60b9 str r1, [r7, #8]
|
|
8001310: 607a str r2, [r7, #4]
|
|
{
|
|
std::pair<typename _Rep_type::iterator, bool> __p =
|
|
_M_t._M_insert_unique(__x);
|
|
8001312: 68b9 ldr r1, [r7, #8]
|
|
8001314: f107 0310 add.w r3, r7, #16
|
|
8001318: 687a ldr r2, [r7, #4]
|
|
800131a: 4618 mov r0, r3
|
|
800131c: f000 f978 bl 8001610 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE16_M_insert_uniqueIRKtEESt4pairISt17_Rb_tree_iteratorItEbEOT_>
|
|
return std::pair<iterator, bool>(__p.first, __p.second);
|
|
8001320: f107 0310 add.w r3, r7, #16
|
|
8001324: 1d1a adds r2, r3, #4
|
|
8001326: f107 0310 add.w r3, r7, #16
|
|
800132a: 4619 mov r1, r3
|
|
800132c: 68f8 ldr r0, [r7, #12]
|
|
800132e: f000 f9be bl 80016ae <_ZNSt4pairISt23_Rb_tree_const_iteratorItEbEC1IRSt17_Rb_tree_iteratorItERbLb1EEEOT_OT0_>
|
|
}
|
|
8001332: 68f8 ldr r0, [r7, #12]
|
|
8001334: 3718 adds r7, #24
|
|
8001336: 46bd mov sp, r7
|
|
8001338: bd80 pop {r7, pc}
|
|
|
|
0800133a <_ZNSaISt13_Rb_tree_nodeItEEC1ERKS1_>:
|
|
allocator(const allocator& __a) _GLIBCXX_NOTHROW
|
|
800133a: b580 push {r7, lr}
|
|
800133c: b082 sub sp, #8
|
|
800133e: af00 add r7, sp, #0
|
|
8001340: 6078 str r0, [r7, #4]
|
|
8001342: 6039 str r1, [r7, #0]
|
|
: __allocator_base<_Tp>(__a) { }
|
|
8001344: 6839 ldr r1, [r7, #0]
|
|
8001346: 6878 ldr r0, [r7, #4]
|
|
8001348: f000 f9cc bl 80016e4 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEEC1ERKS2_>
|
|
800134c: 687b ldr r3, [r7, #4]
|
|
800134e: 4618 mov r0, r3
|
|
8001350: 3708 adds r7, #8
|
|
8001352: 46bd mov sp, r7
|
|
8001354: bd80 pop {r7, pc}
|
|
|
|
08001356 <_ZNSaItEC1Ev>:
|
|
allocator() _GLIBCXX_NOTHROW { }
|
|
8001356: b580 push {r7, lr}
|
|
8001358: b082 sub sp, #8
|
|
800135a: af00 add r7, sp, #0
|
|
800135c: 6078 str r0, [r7, #4]
|
|
800135e: 6878 ldr r0, [r7, #4]
|
|
8001360: f000 f9cc bl 80016fc <_ZNSt15__new_allocatorItEC1Ev>
|
|
8001364: 687b ldr r3, [r7, #4]
|
|
8001366: 4618 mov r0, r3
|
|
8001368: 3708 adds r7, #8
|
|
800136a: 46bd mov sp, r7
|
|
800136c: bd80 pop {r7, pc}
|
|
|
|
0800136e <_ZNSaItED1Ev>:
|
|
~allocator() _GLIBCXX_NOTHROW { }
|
|
800136e: b580 push {r7, lr}
|
|
8001370: b082 sub sp, #8
|
|
8001372: af00 add r7, sp, #0
|
|
8001374: 6078 str r0, [r7, #4]
|
|
8001376: 6878 ldr r0, [r7, #4]
|
|
8001378: f000 f9cb bl 8001712 <_ZNSt15__new_allocatorItED1Ev>
|
|
800137c: 687b ldr r3, [r7, #4]
|
|
800137e: 4618 mov r0, r3
|
|
8001380: 3708 adds r7, #8
|
|
8001382: 46bd mov sp, r7
|
|
8001384: bd80 pop {r7, pc}
|
|
|
|
08001386 <_ZNSt3setItSt4lessItESaItEEC1ESt16initializer_listItERKS1_RKS2_>:
|
|
set(initializer_list<value_type> __l,
|
|
8001386: b5b0 push {r4, r5, r7, lr}
|
|
8001388: b086 sub sp, #24
|
|
800138a: af00 add r7, sp, #0
|
|
800138c: 60f8 str r0, [r7, #12]
|
|
800138e: 1d38 adds r0, r7, #4
|
|
8001390: e880 0006 stmia.w r0, {r1, r2}
|
|
8001394: 603b str r3, [r7, #0]
|
|
: _M_t(__comp, _Key_alloc_type(__a))
|
|
8001396: 68fc ldr r4, [r7, #12]
|
|
8001398: f107 0314 add.w r3, r7, #20
|
|
800139c: 6ab9 ldr r1, [r7, #40] @ 0x28
|
|
800139e: 4618 mov r0, r3
|
|
80013a0: f000 f9c2 bl 8001728 <_ZNSaItEC1ERKS_>
|
|
80013a4: f107 0314 add.w r3, r7, #20
|
|
80013a8: 461a mov r2, r3
|
|
80013aa: 6839 ldr r1, [r7, #0]
|
|
80013ac: 4620 mov r0, r4
|
|
80013ae: f000 f9c9 bl 8001744 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1ERKS3_RKS4_>
|
|
80013b2: f107 0314 add.w r3, r7, #20
|
|
80013b6: 4618 mov r0, r3
|
|
80013b8: f7ff ffd9 bl 800136e <_ZNSaItED1Ev>
|
|
{ _M_t._M_insert_range_unique(__l.begin(), __l.end()); }
|
|
80013bc: 68fc ldr r4, [r7, #12]
|
|
80013be: 1d3b adds r3, r7, #4
|
|
80013c0: 4618 mov r0, r3
|
|
80013c2: f000 f9dd bl 8001780 <_ZNKSt16initializer_listItE5beginEv>
|
|
80013c6: 4605 mov r5, r0
|
|
80013c8: 1d3b adds r3, r7, #4
|
|
80013ca: 4618 mov r0, r3
|
|
80013cc: f000 f9e4 bl 8001798 <_ZNKSt16initializer_listItE3endEv>
|
|
80013d0: 4603 mov r3, r0
|
|
80013d2: 461a mov r2, r3
|
|
80013d4: 4629 mov r1, r5
|
|
80013d6: 4620 mov r0, r4
|
|
80013d8: f000 f9f0 bl 80017bc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE22_M_insert_range_uniqueIPKtEENSt9enable_ifIXsrSt7is_sameItNSt15iterator_traitsIT_E10value_typeEE5valueEvE4typeESC_SC_>
|
|
80013dc: 68fb ldr r3, [r7, #12]
|
|
80013de: 4618 mov r0, r3
|
|
80013e0: 3718 adds r7, #24
|
|
80013e2: 46bd mov sp, r7
|
|
80013e4: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080013e6 <_ZmiItESt3setIT_St4lessIS1_ESaIS1_EERKS5_S7_>:
|
|
|
|
#endif // STA_TACOS_NUM_STATES
|
|
|
|
/// Overwrite "-" operator for set.
|
|
template <typename T>
|
|
std::set<T> operator-(const std::set<T>& set1, const std::set<T>& set2) {
|
|
80013e6: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
|
|
80013ea: b08d sub sp, #52 @ 0x34
|
|
80013ec: af04 add r7, sp, #16
|
|
80013ee: 60f8 str r0, [r7, #12]
|
|
80013f0: 60b9 str r1, [r7, #8]
|
|
80013f2: 607a str r2, [r7, #4]
|
|
std::set<T> result;
|
|
80013f4: 68f8 ldr r0, [r7, #12]
|
|
80013f6: f7ff fe8c bl 8001112 <_ZNSt3setItSt4lessItESaItEEC1Ev>
|
|
std::set_difference(set1.begin(), set1.end(), set2.begin(), set2.end(), std::inserter(result, result.begin()));
|
|
80013fa: 68b8 ldr r0, [r7, #8]
|
|
80013fc: f000 fa0b bl 8001816 <_ZNKSt3setItSt4lessItESaItEE5beginEv>
|
|
8001400: 4606 mov r6, r0
|
|
8001402: 68b8 ldr r0, [r7, #8]
|
|
8001404: f000 fa14 bl 8001830 <_ZNKSt3setItSt4lessItESaItEE3endEv>
|
|
8001408: 4680 mov r8, r0
|
|
800140a: 6878 ldr r0, [r7, #4]
|
|
800140c: f000 fa03 bl 8001816 <_ZNKSt3setItSt4lessItESaItEE5beginEv>
|
|
8001410: 4681 mov r9, r0
|
|
8001412: 6878 ldr r0, [r7, #4]
|
|
8001414: f000 fa0c bl 8001830 <_ZNKSt3setItSt4lessItESaItEE3endEv>
|
|
8001418: 4605 mov r5, r0
|
|
800141a: 68f8 ldr r0, [r7, #12]
|
|
800141c: f000 f9fb bl 8001816 <_ZNKSt3setItSt4lessItESaItEE5beginEv>
|
|
8001420: 4602 mov r2, r0
|
|
8001422: f107 0318 add.w r3, r7, #24
|
|
8001426: 68f9 ldr r1, [r7, #12]
|
|
8001428: 4618 mov r0, r3
|
|
800142a: f000 fa0e bl 800184a <_ZSt8inserterISt3setItSt4lessItESaItEEESt15insert_iteratorIT_ERS6_NS6_8iteratorE>
|
|
800142e: f107 0410 add.w r4, r7, #16
|
|
8001432: aa01 add r2, sp, #4
|
|
8001434: f107 0318 add.w r3, r7, #24
|
|
8001438: e893 0003 ldmia.w r3, {r0, r1}
|
|
800143c: e882 0003 stmia.w r2, {r0, r1}
|
|
8001440: 9500 str r5, [sp, #0]
|
|
8001442: 464b mov r3, r9
|
|
8001444: 4642 mov r2, r8
|
|
8001446: 4631 mov r1, r6
|
|
8001448: 4620 mov r0, r4
|
|
800144a: f000 fa0d bl 8001868 <_ZSt14set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEET1_T_SA_T0_SB_S9_>
|
|
return result;
|
|
800144e: bf00 nop
|
|
}
|
|
8001450: 68f8 ldr r0, [r7, #12]
|
|
8001452: 3724 adds r7, #36 @ 0x24
|
|
8001454: 46bd mov sp, r7
|
|
8001456: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
|
|
|
|
0800145a <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EED1Ev>:
|
|
~__shared_ptr() = default;
|
|
800145a: b580 push {r7, lr}
|
|
800145c: b082 sub sp, #8
|
|
800145e: af00 add r7, sp, #0
|
|
8001460: 6078 str r0, [r7, #4]
|
|
8001462: 687b ldr r3, [r7, #4]
|
|
8001464: 3304 adds r3, #4
|
|
8001466: 4618 mov r0, r3
|
|
8001468: f000 f851 bl 800150e <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
800146c: 687b ldr r3, [r7, #4]
|
|
800146e: 4618 mov r0, r3
|
|
8001470: 3708 adds r7, #8
|
|
8001472: 46bd mov sp, r7
|
|
8001474: bd80 pop {r7, pc}
|
|
|
|
08001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>:
|
|
8001476: b580 push {r7, lr}
|
|
8001478: b082 sub sp, #8
|
|
800147a: af00 add r7, sp, #0
|
|
800147c: 6078 str r0, [r7, #4]
|
|
800147e: 687b ldr r3, [r7, #4]
|
|
8001480: 4618 mov r0, r3
|
|
8001482: f7ff ffea bl 800145a <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
8001486: 687b ldr r3, [r7, #4]
|
|
8001488: 4618 mov r0, r3
|
|
800148a: 3708 adds r7, #8
|
|
800148c: 46bd mov sp, r7
|
|
800148e: bd80 pop {r7, pc}
|
|
|
|
08001490 <_ZNSt3setItSt4lessItESaItEEC1ERKS3_>:
|
|
set(const set&) = default;
|
|
8001490: b580 push {r7, lr}
|
|
8001492: b082 sub sp, #8
|
|
8001494: af00 add r7, sp, #0
|
|
8001496: 6078 str r0, [r7, #4]
|
|
8001498: 6039 str r1, [r7, #0]
|
|
800149a: 687b ldr r3, [r7, #4]
|
|
800149c: 683a ldr r2, [r7, #0]
|
|
800149e: 4611 mov r1, r2
|
|
80014a0: 4618 mov r0, r3
|
|
80014a2: f000 fa1f bl 80018e4 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1ERKS5_>
|
|
80014a6: 687b ldr r3, [r7, #4]
|
|
80014a8: 4618 mov r0, r3
|
|
80014aa: 3708 adds r7, #8
|
|
80014ac: 46bd mov sp, r7
|
|
80014ae: bd80 pop {r7, pc}
|
|
|
|
080014b0 <_ZN3sta5tacos9addThreadIN5tasks8SpamTaskEJEEESt10shared_ptrIT_ESt3setItSt4lessItESaItEEDpT0_>:
|
|
* @param args The constructor arguments for the provided class.
|
|
*
|
|
* @ingroup tacos_api
|
|
*/
|
|
template<typename T, typename ... Args>
|
|
std::shared_ptr<T> addThread(std::set<uint16_t> states, Args ... args)
|
|
80014b0: b590 push {r4, r7, lr}
|
|
80014b2: b08b sub sp, #44 @ 0x2c
|
|
80014b4: af00 add r7, sp, #0
|
|
80014b6: 6078 str r0, [r7, #4]
|
|
80014b8: 6039 str r1, [r7, #0]
|
|
{
|
|
std::shared_ptr<T> thread_ptr = std::make_shared<T>(args...);
|
|
80014ba: 687b ldr r3, [r7, #4]
|
|
80014bc: 4618 mov r0, r3
|
|
80014be: f000 f9f3 bl 80018a8 <_ZSt11make_sharedIN5tasks8SpamTaskEJEESt10shared_ptrINSt9enable_ifIXntsrSt8is_arrayIT_E5valueES5_E4typeEEDpOT0_>
|
|
|
|
Statemachine::instance()->registerThread(thread_ptr, states);
|
|
80014c2: f7ff fdab bl 800101c <_ZN3sta5tacos12Statemachine8instanceEv>
|
|
80014c6: 4604 mov r4, r0
|
|
80014c8: f107 0308 add.w r3, r7, #8
|
|
80014cc: 6879 ldr r1, [r7, #4]
|
|
80014ce: 4618 mov r0, r3
|
|
80014d0: f000 f9f8 bl 80018c4 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1IN5tasks8SpamTaskEvEERKS_IT_E>
|
|
80014d4: f107 0310 add.w r3, r7, #16
|
|
80014d8: 6839 ldr r1, [r7, #0]
|
|
80014da: 4618 mov r0, r3
|
|
80014dc: f7ff ffd8 bl 8001490 <_ZNSt3setItSt4lessItESaItEEC1ERKS3_>
|
|
80014e0: f107 0210 add.w r2, r7, #16
|
|
80014e4: f107 0308 add.w r3, r7, #8
|
|
80014e8: 4619 mov r1, r3
|
|
80014ea: 4620 mov r0, r4
|
|
80014ec: f005 f99e bl 800682c <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE>
|
|
80014f0: f107 0310 add.w r3, r7, #16
|
|
80014f4: 4618 mov r0, r3
|
|
80014f6: f7ff fe19 bl 800112c <_ZNSt3setItSt4lessItESaItEED1Ev>
|
|
80014fa: f107 0308 add.w r3, r7, #8
|
|
80014fe: 4618 mov r0, r3
|
|
8001500: f7ff ffb9 bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
|
|
return thread_ptr;
|
|
8001504: bf00 nop
|
|
}
|
|
8001506: 6878 ldr r0, [r7, #4]
|
|
8001508: 372c adds r7, #44 @ 0x2c
|
|
800150a: 46bd mov sp, r7
|
|
800150c: bd90 pop {r4, r7, pc}
|
|
|
|
0800150e <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EED1Ev>:
|
|
~__shared_count() noexcept
|
|
800150e: b580 push {r7, lr}
|
|
8001510: b082 sub sp, #8
|
|
8001512: af00 add r7, sp, #0
|
|
8001514: 6078 str r0, [r7, #4]
|
|
if (_M_pi != nullptr)
|
|
8001516: 687b ldr r3, [r7, #4]
|
|
8001518: 681b ldr r3, [r3, #0]
|
|
800151a: 2b00 cmp r3, #0
|
|
800151c: d004 beq.n 8001528 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EED1Ev+0x1a>
|
|
_M_pi->_M_release();
|
|
800151e: 687b ldr r3, [r7, #4]
|
|
8001520: 681b ldr r3, [r3, #0]
|
|
8001522: 4618 mov r0, r3
|
|
8001524: f7ff fceb bl 8000efe <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE10_M_releaseEv>
|
|
}
|
|
8001528: 687b ldr r3, [r7, #4]
|
|
800152a: 4618 mov r0, r3
|
|
800152c: 3708 adds r7, #8
|
|
800152e: 46bd mov sp, r7
|
|
8001530: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08001534 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EED1Ev>:
|
|
~_Sp_counted_base() noexcept
|
|
8001534: b480 push {r7}
|
|
8001536: b083 sub sp, #12
|
|
8001538: af00 add r7, sp, #0
|
|
800153a: 6078 str r0, [r7, #4]
|
|
{ }
|
|
800153c: 4a04 ldr r2, [pc, #16] @ (8001550 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EED1Ev+0x1c>)
|
|
800153e: 687b ldr r3, [r7, #4]
|
|
8001540: 601a str r2, [r3, #0]
|
|
8001542: 687b ldr r3, [r7, #4]
|
|
8001544: 4618 mov r0, r3
|
|
8001546: 370c adds r7, #12
|
|
8001548: 46bd mov sp, r7
|
|
800154a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800154e: 4770 bx lr
|
|
8001550: 0801307c .word 0x0801307c
|
|
|
|
08001554 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EED0Ev>:
|
|
~_Sp_counted_base() noexcept
|
|
8001554: b580 push {r7, lr}
|
|
8001556: b082 sub sp, #8
|
|
8001558: af00 add r7, sp, #0
|
|
800155a: 6078 str r0, [r7, #4]
|
|
{ }
|
|
800155c: 6878 ldr r0, [r7, #4]
|
|
800155e: f7ff ffe9 bl 8001534 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
8001562: 210c movs r1, #12
|
|
8001564: 6878 ldr r0, [r7, #4]
|
|
8001566: f00e f8dd bl 800f724 <_ZdlPvj>
|
|
800156a: 687b ldr r3, [r7, #4]
|
|
800156c: 4618 mov r0, r3
|
|
800156e: 3708 adds r7, #8
|
|
8001570: 46bd mov sp, r7
|
|
8001572: bd80 pop {r7, pc}
|
|
|
|
08001574 <_ZNSaISt13_Rb_tree_nodeItEEC1Ev>:
|
|
allocator() _GLIBCXX_NOTHROW { }
|
|
8001574: b580 push {r7, lr}
|
|
8001576: b082 sub sp, #8
|
|
8001578: af00 add r7, sp, #0
|
|
800157a: 6078 str r0, [r7, #4]
|
|
800157c: 6878 ldr r0, [r7, #4]
|
|
800157e: f000 f9d6 bl 800192e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEEC1Ev>
|
|
8001582: 687b ldr r3, [r7, #4]
|
|
8001584: 4618 mov r0, r3
|
|
8001586: 3708 adds r7, #8
|
|
8001588: 46bd mov sp, r7
|
|
800158a: bd80 pop {r7, pc}
|
|
|
|
0800158c <_ZNSt20_Rb_tree_key_compareISt4lessItEEC1Ev>:
|
|
_Rb_tree_key_compare()
|
|
800158c: b480 push {r7}
|
|
800158e: b083 sub sp, #12
|
|
8001590: af00 add r7, sp, #0
|
|
8001592: 6078 str r0, [r7, #4]
|
|
{ }
|
|
8001594: 687b ldr r3, [r7, #4]
|
|
8001596: 4618 mov r0, r3
|
|
8001598: 370c adds r7, #12
|
|
800159a: 46bd mov sp, r7
|
|
800159c: f85d 7b04 ldr.w r7, [sp], #4
|
|
80015a0: 4770 bx lr
|
|
|
|
080015a2 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEED1Ev>:
|
|
template<typename _Tp1>
|
|
_GLIBCXX20_CONSTEXPR
|
|
__new_allocator(const __new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
|
|
|
|
#if __cplusplus <= 201703L
|
|
~__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
80015a2: b480 push {r7}
|
|
80015a4: b083 sub sp, #12
|
|
80015a6: af00 add r7, sp, #0
|
|
80015a8: 6078 str r0, [r7, #4]
|
|
80015aa: 687b ldr r3, [r7, #4]
|
|
80015ac: 4618 mov r0, r3
|
|
80015ae: 370c adds r7, #12
|
|
80015b0: 46bd mov sp, r7
|
|
80015b2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80015b6: 4770 bx lr
|
|
|
|
080015b8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_eraseEPSt13_Rb_tree_nodeItE>:
|
|
}
|
|
|
|
template<typename _Key, typename _Val, typename _KeyOfValue,
|
|
typename _Compare, typename _Alloc>
|
|
void
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
80015b8: b580 push {r7, lr}
|
|
80015ba: b084 sub sp, #16
|
|
80015bc: af00 add r7, sp, #0
|
|
80015be: 6078 str r0, [r7, #4]
|
|
80015c0: 6039 str r1, [r7, #0]
|
|
_M_erase(_Link_type __x)
|
|
{
|
|
// Erase without rebalancing.
|
|
while (__x != 0)
|
|
80015c2: e011 b.n 80015e8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_eraseEPSt13_Rb_tree_nodeItE+0x30>
|
|
{
|
|
_M_erase(_S_right(__x));
|
|
80015c4: 6838 ldr r0, [r7, #0]
|
|
80015c6: f000 f9bd bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
80015ca: 4603 mov r3, r0
|
|
80015cc: 4619 mov r1, r3
|
|
80015ce: 6878 ldr r0, [r7, #4]
|
|
80015d0: f7ff fff2 bl 80015b8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_eraseEPSt13_Rb_tree_nodeItE>
|
|
_Link_type __y = _S_left(__x);
|
|
80015d4: 6838 ldr r0, [r7, #0]
|
|
80015d6: f000 f9c1 bl 800195c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_S_leftEPSt18_Rb_tree_node_base>
|
|
80015da: 60f8 str r0, [r7, #12]
|
|
_M_drop_node(__x);
|
|
80015dc: 6839 ldr r1, [r7, #0]
|
|
80015de: 6878 ldr r0, [r7, #4]
|
|
80015e0: f000 f9c8 bl 8001974 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_drop_nodeEPSt13_Rb_tree_nodeItE>
|
|
__x = __y;
|
|
80015e4: 68fb ldr r3, [r7, #12]
|
|
80015e6: 603b str r3, [r7, #0]
|
|
while (__x != 0)
|
|
80015e8: 683b ldr r3, [r7, #0]
|
|
80015ea: 2b00 cmp r3, #0
|
|
80015ec: d1ea bne.n 80015c4 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_eraseEPSt13_Rb_tree_nodeItE+0xc>
|
|
}
|
|
}
|
|
80015ee: bf00 nop
|
|
80015f0: bf00 nop
|
|
80015f2: 3710 adds r7, #16
|
|
80015f4: 46bd mov sp, r7
|
|
80015f6: bd80 pop {r7, pc}
|
|
|
|
080015f8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_beginEv>:
|
|
_M_begin() _GLIBCXX_NOEXCEPT
|
|
80015f8: b580 push {r7, lr}
|
|
80015fa: b082 sub sp, #8
|
|
80015fc: af00 add r7, sp, #0
|
|
80015fe: 6078 str r0, [r7, #4]
|
|
{ return _M_mbegin(); }
|
|
8001600: 6878 ldr r0, [r7, #4]
|
|
8001602: f000 f9c8 bl 8001996 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE9_M_mbeginEv>
|
|
8001606: 4603 mov r3, r0
|
|
8001608: 4618 mov r0, r3
|
|
800160a: 3708 adds r7, #8
|
|
800160c: 46bd mov sp, r7
|
|
800160e: bd80 pop {r7, pc}
|
|
|
|
08001610 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE16_M_insert_uniqueIRKtEESt4pairISt17_Rb_tree_iteratorItEbEOT_>:
|
|
#if __cplusplus >= 201103L
|
|
template<typename _Arg>
|
|
#endif
|
|
pair<typename _Rb_tree<_Key, _Val, _KeyOfValue,
|
|
_Compare, _Alloc>::iterator, bool>
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8001610: b5b0 push {r4, r5, r7, lr}
|
|
8001612: b08e sub sp, #56 @ 0x38
|
|
8001614: af02 add r7, sp, #8
|
|
8001616: 60f8 str r0, [r7, #12]
|
|
8001618: 60b9 str r1, [r7, #8]
|
|
800161a: 607a str r2, [r7, #4]
|
|
_M_insert_unique(const _Val& __v)
|
|
#endif
|
|
{
|
|
typedef pair<iterator, bool> _Res;
|
|
pair<_Base_ptr, _Base_ptr> __res
|
|
= _M_get_insert_unique_pos(_KeyOfValue()(__v));
|
|
800161c: f107 031c add.w r3, r7, #28
|
|
8001620: 6879 ldr r1, [r7, #4]
|
|
8001622: 4618 mov r0, r3
|
|
8001624: f000 fa48 bl 8001ab8 <_ZNKSt9_IdentityItEclERKt>
|
|
8001628: 4602 mov r2, r0
|
|
800162a: f107 0314 add.w r3, r7, #20
|
|
800162e: 68b9 ldr r1, [r7, #8]
|
|
8001630: 4618 mov r0, r3
|
|
8001632: f000 f9bc bl 80019ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt>
|
|
|
|
if (__res.second)
|
|
8001636: 69bb ldr r3, [r7, #24]
|
|
8001638: 2b00 cmp r3, #0
|
|
800163a: d022 beq.n 8001682 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE16_M_insert_uniqueIRKtEESt4pairISt17_Rb_tree_iteratorItEbEOT_+0x72>
|
|
{
|
|
_Alloc_node __an(*this);
|
|
800163c: f107 0310 add.w r3, r7, #16
|
|
8001640: 68b9 ldr r1, [r7, #8]
|
|
8001642: 4618 mov r0, r3
|
|
8001644: f000 fa44 bl 8001ad0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeC1ERS5_>
|
|
return _Res(_M_insert_(__res.first, __res.second,
|
|
8001648: 697c ldr r4, [r7, #20]
|
|
800164a: 69bd ldr r5, [r7, #24]
|
|
800164c: 6878 ldr r0, [r7, #4]
|
|
800164e: f000 fa4e bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8001652: 4602 mov r2, r0
|
|
8001654: f107 0310 add.w r3, r7, #16
|
|
8001658: 9300 str r3, [sp, #0]
|
|
800165a: 4613 mov r3, r2
|
|
800165c: 462a mov r2, r5
|
|
800165e: 4621 mov r1, r4
|
|
8001660: 68b8 ldr r0, [r7, #8]
|
|
8001662: f000 fa4f bl 8001b04 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_>
|
|
8001666: 4603 mov r3, r0
|
|
8001668: 623b str r3, [r7, #32]
|
|
_GLIBCXX_FORWARD(_Arg, __v), __an),
|
|
true);
|
|
800166a: 2301 movs r3, #1
|
|
800166c: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
8001670: f107 0227 add.w r2, r7, #39 @ 0x27
|
|
8001674: f107 0320 add.w r3, r7, #32
|
|
8001678: 4619 mov r1, r3
|
|
800167a: 68f8 ldr r0, [r7, #12]
|
|
800167c: f000 fa8b bl 8001b96 <_ZNSt4pairISt17_Rb_tree_iteratorItEbEC1IS1_bLb1EEEOT_OT0_>
|
|
}
|
|
|
|
return _Res(iterator(__res.first), false);
|
|
}
|
|
8001680: e011 b.n 80016a6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE16_M_insert_uniqueIRKtEESt4pairISt17_Rb_tree_iteratorItEbEOT_+0x96>
|
|
return _Res(iterator(__res.first), false);
|
|
8001682: 697a ldr r2, [r7, #20]
|
|
8001684: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
8001688: 4611 mov r1, r2
|
|
800168a: 4618 mov r0, r3
|
|
800168c: f000 fa9c bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8001690: 2300 movs r3, #0
|
|
8001692: f887 302f strb.w r3, [r7, #47] @ 0x2f
|
|
8001696: f107 022f add.w r2, r7, #47 @ 0x2f
|
|
800169a: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
800169e: 4619 mov r1, r3
|
|
80016a0: 68f8 ldr r0, [r7, #12]
|
|
80016a2: f000 fa78 bl 8001b96 <_ZNSt4pairISt17_Rb_tree_iteratorItEbEC1IS1_bLb1EEEOT_OT0_>
|
|
}
|
|
80016a6: 68f8 ldr r0, [r7, #12]
|
|
80016a8: 3730 adds r7, #48 @ 0x30
|
|
80016aa: 46bd mov sp, r7
|
|
80016ac: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080016ae <_ZNSt4pairISt23_Rb_tree_const_iteratorItEbEC1IRSt17_Rb_tree_iteratorItERbLb1EEEOT_OT0_>:
|
|
enable_if<_PCCP::template
|
|
_MoveConstructiblePair<_U1, _U2>()
|
|
&& _PCCP::template
|
|
_ImplicitlyMoveConvertiblePair<_U1, _U2>(),
|
|
bool>::type=true>
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
80016ae: b590 push {r4, r7, lr}
|
|
80016b0: b085 sub sp, #20
|
|
80016b2: af00 add r7, sp, #0
|
|
80016b4: 60f8 str r0, [r7, #12]
|
|
80016b6: 60b9 str r1, [r7, #8]
|
|
80016b8: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
80016ba: 68fc ldr r4, [r7, #12]
|
|
80016bc: 68b8 ldr r0, [r7, #8]
|
|
80016be: f000 fa92 bl 8001be6 <_ZSt7forwardIRSt17_Rb_tree_iteratorItEEOT_RNSt16remove_referenceIS3_E4typeE>
|
|
80016c2: 4603 mov r3, r0
|
|
80016c4: 4619 mov r1, r3
|
|
80016c6: 4620 mov r0, r4
|
|
80016c8: f000 faa3 bl 8001c12 <_ZNSt23_Rb_tree_const_iteratorItEC1ERKSt17_Rb_tree_iteratorItE>
|
|
80016cc: 6878 ldr r0, [r7, #4]
|
|
80016ce: f000 fa95 bl 8001bfc <_ZSt7forwardIRbEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80016d2: 4603 mov r3, r0
|
|
80016d4: 781a ldrb r2, [r3, #0]
|
|
80016d6: 68fb ldr r3, [r7, #12]
|
|
80016d8: 711a strb r2, [r3, #4]
|
|
80016da: 68fb ldr r3, [r7, #12]
|
|
80016dc: 4618 mov r0, r3
|
|
80016de: 3714 adds r7, #20
|
|
80016e0: 46bd mov sp, r7
|
|
80016e2: bd90 pop {r4, r7, pc}
|
|
|
|
080016e4 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEEC1ERKS2_>:
|
|
__new_allocator(const __new_allocator&) _GLIBCXX_USE_NOEXCEPT { }
|
|
80016e4: b480 push {r7}
|
|
80016e6: b083 sub sp, #12
|
|
80016e8: af00 add r7, sp, #0
|
|
80016ea: 6078 str r0, [r7, #4]
|
|
80016ec: 6039 str r1, [r7, #0]
|
|
80016ee: 687b ldr r3, [r7, #4]
|
|
80016f0: 4618 mov r0, r3
|
|
80016f2: 370c adds r7, #12
|
|
80016f4: 46bd mov sp, r7
|
|
80016f6: f85d 7b04 ldr.w r7, [sp], #4
|
|
80016fa: 4770 bx lr
|
|
|
|
080016fc <_ZNSt15__new_allocatorItEC1Ev>:
|
|
__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
80016fc: b480 push {r7}
|
|
80016fe: b083 sub sp, #12
|
|
8001700: af00 add r7, sp, #0
|
|
8001702: 6078 str r0, [r7, #4]
|
|
8001704: 687b ldr r3, [r7, #4]
|
|
8001706: 4618 mov r0, r3
|
|
8001708: 370c adds r7, #12
|
|
800170a: 46bd mov sp, r7
|
|
800170c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001710: 4770 bx lr
|
|
|
|
08001712 <_ZNSt15__new_allocatorItED1Ev>:
|
|
~__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
8001712: b480 push {r7}
|
|
8001714: b083 sub sp, #12
|
|
8001716: af00 add r7, sp, #0
|
|
8001718: 6078 str r0, [r7, #4]
|
|
800171a: 687b ldr r3, [r7, #4]
|
|
800171c: 4618 mov r0, r3
|
|
800171e: 370c adds r7, #12
|
|
8001720: 46bd mov sp, r7
|
|
8001722: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001726: 4770 bx lr
|
|
|
|
08001728 <_ZNSaItEC1ERKS_>:
|
|
allocator(const allocator& __a) _GLIBCXX_NOTHROW
|
|
8001728: b580 push {r7, lr}
|
|
800172a: b082 sub sp, #8
|
|
800172c: af00 add r7, sp, #0
|
|
800172e: 6078 str r0, [r7, #4]
|
|
8001730: 6039 str r1, [r7, #0]
|
|
: __allocator_base<_Tp>(__a) { }
|
|
8001732: 6839 ldr r1, [r7, #0]
|
|
8001734: 6878 ldr r0, [r7, #4]
|
|
8001736: f000 fa7c bl 8001c32 <_ZNSt15__new_allocatorItEC1ERKS0_>
|
|
800173a: 687b ldr r3, [r7, #4]
|
|
800173c: 4618 mov r0, r3
|
|
800173e: 3708 adds r7, #8
|
|
8001740: 46bd mov sp, r7
|
|
8001742: bd80 pop {r7, pc}
|
|
|
|
08001744 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1ERKS3_RKS4_>:
|
|
_Rb_tree(const _Compare& __comp,
|
|
8001744: b590 push {r4, r7, lr}
|
|
8001746: b087 sub sp, #28
|
|
8001748: af00 add r7, sp, #0
|
|
800174a: 60f8 str r0, [r7, #12]
|
|
800174c: 60b9 str r1, [r7, #8]
|
|
800174e: 607a str r2, [r7, #4]
|
|
: _M_impl(__comp, _Node_allocator(__a)) { }
|
|
8001750: 68fc ldr r4, [r7, #12]
|
|
8001752: f107 0314 add.w r3, r7, #20
|
|
8001756: 6879 ldr r1, [r7, #4]
|
|
8001758: 4618 mov r0, r3
|
|
800175a: f000 fa76 bl 8001c4a <_ZNSaISt13_Rb_tree_nodeItEEC1ItEERKSaIT_E>
|
|
800175e: f107 0314 add.w r3, r7, #20
|
|
8001762: 461a mov r2, r3
|
|
8001764: 68b9 ldr r1, [r7, #8]
|
|
8001766: 4620 mov r0, r4
|
|
8001768: f000 fa7c bl 8001c64 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1ERKS3_OSaISt13_Rb_tree_nodeItEE>
|
|
800176c: f107 0314 add.w r3, r7, #20
|
|
8001770: 4618 mov r0, r3
|
|
8001772: f7ff fda7 bl 80012c4 <_ZNSaISt13_Rb_tree_nodeItEED1Ev>
|
|
8001776: 68fb ldr r3, [r7, #12]
|
|
8001778: 4618 mov r0, r3
|
|
800177a: 371c adds r7, #28
|
|
800177c: 46bd mov sp, r7
|
|
800177e: bd90 pop {r4, r7, pc}
|
|
|
|
08001780 <_ZNKSt16initializer_listItE5beginEv>:
|
|
constexpr size_type
|
|
size() const noexcept { return _M_len; }
|
|
|
|
// First element.
|
|
constexpr const_iterator
|
|
begin() const noexcept { return _M_array; }
|
|
8001780: b480 push {r7}
|
|
8001782: b083 sub sp, #12
|
|
8001784: af00 add r7, sp, #0
|
|
8001786: 6078 str r0, [r7, #4]
|
|
8001788: 687b ldr r3, [r7, #4]
|
|
800178a: 681b ldr r3, [r3, #0]
|
|
800178c: 4618 mov r0, r3
|
|
800178e: 370c adds r7, #12
|
|
8001790: 46bd mov sp, r7
|
|
8001792: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001796: 4770 bx lr
|
|
|
|
08001798 <_ZNKSt16initializer_listItE3endEv>:
|
|
|
|
// One past the last element.
|
|
constexpr const_iterator
|
|
end() const noexcept { return begin() + size(); }
|
|
8001798: b590 push {r4, r7, lr}
|
|
800179a: b083 sub sp, #12
|
|
800179c: af00 add r7, sp, #0
|
|
800179e: 6078 str r0, [r7, #4]
|
|
80017a0: 6878 ldr r0, [r7, #4]
|
|
80017a2: f7ff ffed bl 8001780 <_ZNKSt16initializer_listItE5beginEv>
|
|
80017a6: 4604 mov r4, r0
|
|
80017a8: 6878 ldr r0, [r7, #4]
|
|
80017aa: f000 fa78 bl 8001c9e <_ZNKSt16initializer_listItE4sizeEv>
|
|
80017ae: 4603 mov r3, r0
|
|
80017b0: 005b lsls r3, r3, #1
|
|
80017b2: 4423 add r3, r4
|
|
80017b4: 4618 mov r0, r3
|
|
80017b6: 370c adds r7, #12
|
|
80017b8: 46bd mov sp, r7
|
|
80017ba: bd90 pop {r4, r7, pc}
|
|
|
|
080017bc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE22_M_insert_range_uniqueIPKtEENSt9enable_ifIXsrSt7is_sameItNSt15iterator_traitsIT_E10value_typeEE5valueEvE4typeESC_SC_>:
|
|
_M_insert_range_unique(_InputIterator __first, _InputIterator __last)
|
|
80017bc: b580 push {r7, lr}
|
|
80017be: b088 sub sp, #32
|
|
80017c0: af00 add r7, sp, #0
|
|
80017c2: 60f8 str r0, [r7, #12]
|
|
80017c4: 60b9 str r1, [r7, #8]
|
|
80017c6: 607a str r2, [r7, #4]
|
|
_Alloc_node __an(*this);
|
|
80017c8: f107 0314 add.w r3, r7, #20
|
|
80017cc: 68f9 ldr r1, [r7, #12]
|
|
80017ce: 4618 mov r0, r3
|
|
80017d0: f000 f97e bl 8001ad0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeC1ERS5_>
|
|
for (; __first != __last; ++__first)
|
|
80017d4: e016 b.n 8001804 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE22_M_insert_range_uniqueIPKtEENSt9enable_ifIXsrSt7is_sameItNSt15iterator_traitsIT_E10value_typeEE5valueEvE4typeESC_SC_+0x48>
|
|
_M_insert_unique_(end(), *__first, __an);
|
|
80017d6: 68f8 ldr r0, [r7, #12]
|
|
80017d8: f000 fa6d bl 8001cb6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE3endEv>
|
|
80017dc: 4603 mov r3, r0
|
|
80017de: 61fb str r3, [r7, #28]
|
|
80017e0: f107 021c add.w r2, r7, #28
|
|
80017e4: f107 0318 add.w r3, r7, #24
|
|
80017e8: 4611 mov r1, r2
|
|
80017ea: 4618 mov r0, r3
|
|
80017ec: f000 fa11 bl 8001c12 <_ZNSt23_Rb_tree_const_iteratorItEC1ERKSt17_Rb_tree_iteratorItE>
|
|
80017f0: f107 0314 add.w r3, r7, #20
|
|
80017f4: 68ba ldr r2, [r7, #8]
|
|
80017f6: 69b9 ldr r1, [r7, #24]
|
|
80017f8: 68f8 ldr r0, [r7, #12]
|
|
80017fa: f000 fa6d bl 8001cd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_RT0_>
|
|
for (; __first != __last; ++__first)
|
|
80017fe: 68bb ldr r3, [r7, #8]
|
|
8001800: 3302 adds r3, #2
|
|
8001802: 60bb str r3, [r7, #8]
|
|
8001804: 68ba ldr r2, [r7, #8]
|
|
8001806: 687b ldr r3, [r7, #4]
|
|
8001808: 429a cmp r2, r3
|
|
800180a: d1e4 bne.n 80017d6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE22_M_insert_range_uniqueIPKtEENSt9enable_ifIXsrSt7is_sameItNSt15iterator_traitsIT_E10value_typeEE5valueEvE4typeESC_SC_+0x1a>
|
|
}
|
|
800180c: bf00 nop
|
|
800180e: bf00 nop
|
|
8001810: 3720 adds r7, #32
|
|
8001812: 46bd mov sp, r7
|
|
8001814: bd80 pop {r7, pc}
|
|
|
|
08001816 <_ZNKSt3setItSt4lessItESaItEE5beginEv>:
|
|
begin() const _GLIBCXX_NOEXCEPT
|
|
8001816: b580 push {r7, lr}
|
|
8001818: b082 sub sp, #8
|
|
800181a: af00 add r7, sp, #0
|
|
800181c: 6078 str r0, [r7, #4]
|
|
{ return _M_t.begin(); }
|
|
800181e: 687b ldr r3, [r7, #4]
|
|
8001820: 4618 mov r0, r3
|
|
8001822: f000 fa8c bl 8001d3e <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE5beginEv>
|
|
8001826: 4603 mov r3, r0
|
|
8001828: 4618 mov r0, r3
|
|
800182a: 3708 adds r7, #8
|
|
800182c: 46bd mov sp, r7
|
|
800182e: bd80 pop {r7, pc}
|
|
|
|
08001830 <_ZNKSt3setItSt4lessItESaItEE3endEv>:
|
|
end() const _GLIBCXX_NOEXCEPT
|
|
8001830: b580 push {r7, lr}
|
|
8001832: b082 sub sp, #8
|
|
8001834: af00 add r7, sp, #0
|
|
8001836: 6078 str r0, [r7, #4]
|
|
{ return _M_t.end(); }
|
|
8001838: 687b ldr r3, [r7, #4]
|
|
800183a: 4618 mov r0, r3
|
|
800183c: f000 fa90 bl 8001d60 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE3endEv>
|
|
8001840: 4603 mov r3, r0
|
|
8001842: 4618 mov r0, r3
|
|
8001844: 3708 adds r7, #8
|
|
8001846: 46bd mov sp, r7
|
|
8001848: bd80 pop {r7, pc}
|
|
|
|
0800184a <_ZSt8inserterISt3setItSt4lessItESaItEEESt15insert_iteratorIT_ERS6_NS6_8iteratorE>:
|
|
{ return insert_iterator<_Container>(__x, __i); }
|
|
#else
|
|
template<typename _Container>
|
|
_GLIBCXX_NODISCARD
|
|
inline insert_iterator<_Container>
|
|
inserter(_Container& __x, typename _Container::iterator __i)
|
|
800184a: b580 push {r7, lr}
|
|
800184c: b084 sub sp, #16
|
|
800184e: af00 add r7, sp, #0
|
|
8001850: 60f8 str r0, [r7, #12]
|
|
8001852: 60b9 str r1, [r7, #8]
|
|
8001854: 607a str r2, [r7, #4]
|
|
{ return insert_iterator<_Container>(__x, __i); }
|
|
8001856: 687a ldr r2, [r7, #4]
|
|
8001858: 68b9 ldr r1, [r7, #8]
|
|
800185a: 68f8 ldr r0, [r7, #12]
|
|
800185c: f000 fa91 bl 8001d82 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEC1ERS4_St23_Rb_tree_const_iteratorItE>
|
|
8001860: 68f8 ldr r0, [r7, #12]
|
|
8001862: 3710 adds r7, #16
|
|
8001864: 46bd mov sp, r7
|
|
8001866: bd80 pop {r7, pc}
|
|
|
|
08001868 <_ZSt14set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEET1_T_SA_T0_SB_S9_>:
|
|
*/
|
|
template<typename _InputIterator1, typename _InputIterator2,
|
|
typename _OutputIterator>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _OutputIterator
|
|
set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
|
|
8001868: b5b0 push {r4, r5, r7, lr}
|
|
800186a: b088 sub sp, #32
|
|
800186c: af04 add r7, sp, #16
|
|
800186e: 60f8 str r0, [r7, #12]
|
|
8001870: 60b9 str r1, [r7, #8]
|
|
8001872: 607a str r2, [r7, #4]
|
|
8001874: 603b str r3, [r7, #0]
|
|
__glibcxx_requires_irreflexive2(__first1, __last1);
|
|
__glibcxx_requires_irreflexive2(__first2, __last2);
|
|
|
|
return _GLIBCXX_STD_A::__set_difference(__first1, __last1,
|
|
__first2, __last2, __result,
|
|
__gnu_cxx::__ops::__iter_less_iter());
|
|
8001876: f7ff fb2b bl 8000ed0 <_ZN9__gnu_cxx5__ops16__iter_less_iterEv>
|
|
return _GLIBCXX_STD_A::__set_difference(__first1, __last1,
|
|
800187a: 68fc ldr r4, [r7, #12]
|
|
800187c: f88d 500c strb.w r5, [sp, #12]
|
|
8001880: aa01 add r2, sp, #4
|
|
8001882: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8001886: e893 0003 ldmia.w r3, {r0, r1}
|
|
800188a: e882 0003 stmia.w r2, {r0, r1}
|
|
800188e: 6a3b ldr r3, [r7, #32]
|
|
8001890: 9300 str r3, [sp, #0]
|
|
8001892: 683b ldr r3, [r7, #0]
|
|
8001894: 687a ldr r2, [r7, #4]
|
|
8001896: 68b9 ldr r1, [r7, #8]
|
|
8001898: 4620 mov r0, r4
|
|
800189a: f000 fa86 bl 8001daa <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_>
|
|
__gnu_cxx::__ops::__iter_less_iter());
|
|
800189e: bf00 nop
|
|
}
|
|
80018a0: 68f8 ldr r0, [r7, #12]
|
|
80018a2: 3710 adds r7, #16
|
|
80018a4: 46bd mov sp, r7
|
|
80018a6: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080018a8 <_ZSt11make_sharedIN5tasks8SpamTaskEJEESt10shared_ptrINSt9enable_ifIXntsrSt8is_arrayIT_E5valueES5_E4typeEEDpOT0_>:
|
|
* @throw std::bad_alloc, or an exception thrown from the
|
|
* constructor of @a _Tp.
|
|
*/
|
|
template<typename _Tp, typename... _Args>
|
|
inline shared_ptr<_NonArray<_Tp>>
|
|
make_shared(_Args&&... __args)
|
|
80018a8: b580 push {r7, lr}
|
|
80018aa: b084 sub sp, #16
|
|
80018ac: af00 add r7, sp, #0
|
|
80018ae: 6078 str r0, [r7, #4]
|
|
{
|
|
using _Alloc = allocator<void>;
|
|
_Alloc __a;
|
|
return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
|
|
std::forward<_Args>(__args)...);
|
|
80018b0: f107 030c add.w r3, r7, #12
|
|
80018b4: 4619 mov r1, r3
|
|
80018b6: 6878 ldr r0, [r7, #4]
|
|
80018b8: f000 fae1 bl 8001e7e <_ZNSt10shared_ptrIN5tasks8SpamTaskEEC1ISaIvEJEEESt20_Sp_alloc_shared_tagIT_EDpOT0_>
|
|
}
|
|
80018bc: 6878 ldr r0, [r7, #4]
|
|
80018be: 3710 adds r7, #16
|
|
80018c0: 46bd mov sp, r7
|
|
80018c2: bd80 pop {r7, pc}
|
|
|
|
080018c4 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1IN5tasks8SpamTaskEvEERKS_IT_E>:
|
|
shared_ptr(const shared_ptr<_Yp>& __r) noexcept
|
|
80018c4: b580 push {r7, lr}
|
|
80018c6: b082 sub sp, #8
|
|
80018c8: af00 add r7, sp, #0
|
|
80018ca: 6078 str r0, [r7, #4]
|
|
80018cc: 6039 str r1, [r7, #0]
|
|
: __shared_ptr<_Tp>(__r) { }
|
|
80018ce: 687b ldr r3, [r7, #4]
|
|
80018d0: 683a ldr r2, [r7, #0]
|
|
80018d2: 4611 mov r1, r2
|
|
80018d4: 4618 mov r0, r3
|
|
80018d6: f000 fae1 bl 8001e9c <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1IN5tasks8SpamTaskEvEERKS_IT_LS4_0EE>
|
|
80018da: 687b ldr r3, [r7, #4]
|
|
80018dc: 4618 mov r0, r3
|
|
80018de: 3708 adds r7, #8
|
|
80018e0: 46bd mov sp, r7
|
|
80018e2: bd80 pop {r7, pc}
|
|
|
|
080018e4 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1ERKS5_>:
|
|
_Rb_tree(const _Rb_tree& __x)
|
|
80018e4: b590 push {r4, r7, lr}
|
|
80018e6: b083 sub sp, #12
|
|
80018e8: af00 add r7, sp, #0
|
|
80018ea: 6078 str r0, [r7, #4]
|
|
80018ec: 6039 str r1, [r7, #0]
|
|
: _M_impl(__x._M_impl)
|
|
80018ee: 687b ldr r3, [r7, #4]
|
|
80018f0: 683a ldr r2, [r7, #0]
|
|
80018f2: 4611 mov r1, r2
|
|
80018f4: 4618 mov r0, r3
|
|
80018f6: f000 fae7 bl 8001ec8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1ERKS7_>
|
|
if (__x._M_root() != 0)
|
|
80018fa: 6838 ldr r0, [r7, #0]
|
|
80018fc: f000 fb0a bl 8001f14 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_rootEv>
|
|
8001900: 4603 mov r3, r0
|
|
8001902: 2b00 cmp r3, #0
|
|
8001904: bf14 ite ne
|
|
8001906: 2301 movne r3, #1
|
|
8001908: 2300 moveq r3, #0
|
|
800190a: b2db uxtb r3, r3
|
|
800190c: 2b00 cmp r3, #0
|
|
800190e: d009 beq.n 8001924 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEEC1ERKS5_+0x40>
|
|
_M_root() = _M_copy(__x);
|
|
8001910: 6878 ldr r0, [r7, #4]
|
|
8001912: f000 fb0b bl 8001f2c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_rootEv>
|
|
8001916: 4604 mov r4, r0
|
|
8001918: 6839 ldr r1, [r7, #0]
|
|
800191a: 6878 ldr r0, [r7, #4]
|
|
800191c: f000 fb12 bl 8001f44 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyERKS5_>
|
|
8001920: 4603 mov r3, r0
|
|
8001922: 6023 str r3, [r4, #0]
|
|
}
|
|
8001924: 687b ldr r3, [r7, #4]
|
|
8001926: 4618 mov r0, r3
|
|
8001928: 370c adds r7, #12
|
|
800192a: 46bd mov sp, r7
|
|
800192c: bd90 pop {r4, r7, pc}
|
|
|
|
0800192e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEEC1Ev>:
|
|
__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
800192e: b480 push {r7}
|
|
8001930: b083 sub sp, #12
|
|
8001932: af00 add r7, sp, #0
|
|
8001934: 6078 str r0, [r7, #4]
|
|
8001936: 687b ldr r3, [r7, #4]
|
|
8001938: 4618 mov r0, r3
|
|
800193a: 370c adds r7, #12
|
|
800193c: 46bd mov sp, r7
|
|
800193e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001942: 4770 bx lr
|
|
|
|
08001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>:
|
|
_S_right(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8001944: b480 push {r7}
|
|
8001946: b083 sub sp, #12
|
|
8001948: af00 add r7, sp, #0
|
|
800194a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(__x->_M_right); }
|
|
800194c: 687b ldr r3, [r7, #4]
|
|
800194e: 68db ldr r3, [r3, #12]
|
|
8001950: 4618 mov r0, r3
|
|
8001952: 370c adds r7, #12
|
|
8001954: 46bd mov sp, r7
|
|
8001956: f85d 7b04 ldr.w r7, [sp], #4
|
|
800195a: 4770 bx lr
|
|
|
|
0800195c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_S_leftEPSt18_Rb_tree_node_base>:
|
|
_S_left(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
800195c: b480 push {r7}
|
|
800195e: b083 sub sp, #12
|
|
8001960: af00 add r7, sp, #0
|
|
8001962: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(__x->_M_left); }
|
|
8001964: 687b ldr r3, [r7, #4]
|
|
8001966: 689b ldr r3, [r3, #8]
|
|
8001968: 4618 mov r0, r3
|
|
800196a: 370c adds r7, #12
|
|
800196c: 46bd mov sp, r7
|
|
800196e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001972: 4770 bx lr
|
|
|
|
08001974 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_drop_nodeEPSt13_Rb_tree_nodeItE>:
|
|
_M_drop_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
8001974: b580 push {r7, lr}
|
|
8001976: b082 sub sp, #8
|
|
8001978: af00 add r7, sp, #0
|
|
800197a: 6078 str r0, [r7, #4]
|
|
800197c: 6039 str r1, [r7, #0]
|
|
_M_destroy_node(__p);
|
|
800197e: 6839 ldr r1, [r7, #0]
|
|
8001980: 6878 ldr r0, [r7, #4]
|
|
8001982: f000 faf6 bl 8001f72 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE15_M_destroy_nodeEPSt13_Rb_tree_nodeItE>
|
|
_M_put_node(__p);
|
|
8001986: 6839 ldr r1, [r7, #0]
|
|
8001988: 6878 ldr r0, [r7, #4]
|
|
800198a: f000 fb07 bl 8001f9c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_put_nodeEPSt13_Rb_tree_nodeItE>
|
|
}
|
|
800198e: bf00 nop
|
|
8001990: 3708 adds r7, #8
|
|
8001992: 46bd mov sp, r7
|
|
8001994: bd80 pop {r7, pc}
|
|
|
|
08001996 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE9_M_mbeginEv>:
|
|
_M_mbegin() const _GLIBCXX_NOEXCEPT
|
|
8001996: b480 push {r7}
|
|
8001998: b083 sub sp, #12
|
|
800199a: af00 add r7, sp, #0
|
|
800199c: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); }
|
|
800199e: 687b ldr r3, [r7, #4]
|
|
80019a0: 689b ldr r3, [r3, #8]
|
|
80019a2: 4618 mov r0, r3
|
|
80019a4: 370c adds r7, #12
|
|
80019a6: 46bd mov sp, r7
|
|
80019a8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80019ac: 4770 bx lr
|
|
|
|
080019ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
80019ae: b590 push {r4, r7, lr}
|
|
80019b0: b08b sub sp, #44 @ 0x2c
|
|
80019b2: af00 add r7, sp, #0
|
|
80019b4: 60f8 str r0, [r7, #12]
|
|
80019b6: 60b9 str r1, [r7, #8]
|
|
80019b8: 607a str r2, [r7, #4]
|
|
_Link_type __x = _M_begin();
|
|
80019ba: 68b8 ldr r0, [r7, #8]
|
|
80019bc: f7ff fe1c bl 80015f8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_M_beginEv>
|
|
80019c0: 4603 mov r3, r0
|
|
80019c2: 61bb str r3, [r7, #24]
|
|
_Base_ptr __y = _M_end();
|
|
80019c4: 68b8 ldr r0, [r7, #8]
|
|
80019c6: f000 fafb bl 8001fc0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_M_endEv>
|
|
80019ca: 4603 mov r3, r0
|
|
80019cc: 617b str r3, [r7, #20]
|
|
bool __comp = true;
|
|
80019ce: 2301 movs r3, #1
|
|
80019d0: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
while (__x != 0)
|
|
80019d4: e01f b.n 8001a16 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x68>
|
|
__y = __x;
|
|
80019d6: 69bb ldr r3, [r7, #24]
|
|
80019d8: 617b str r3, [r7, #20]
|
|
__comp = _M_impl._M_key_compare(__k, _S_key(__x));
|
|
80019da: 68bc ldr r4, [r7, #8]
|
|
80019dc: 69bb ldr r3, [r7, #24]
|
|
80019de: 4618 mov r0, r3
|
|
80019e0: f000 fafa bl 8001fd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt13_Rb_tree_nodeItE>
|
|
80019e4: 4603 mov r3, r0
|
|
80019e6: 461a mov r2, r3
|
|
80019e8: 6879 ldr r1, [r7, #4]
|
|
80019ea: 4620 mov r0, r4
|
|
80019ec: f000 fb07 bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
80019f0: 4603 mov r3, r0
|
|
80019f2: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
__x = __comp ? _S_left(__x) : _S_right(__x);
|
|
80019f6: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
|
|
80019fa: 2b00 cmp r3, #0
|
|
80019fc: d005 beq.n 8001a0a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x5c>
|
|
80019fe: 69bb ldr r3, [r7, #24]
|
|
8001a00: 4618 mov r0, r3
|
|
8001a02: f7ff ffab bl 800195c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_S_leftEPSt18_Rb_tree_node_base>
|
|
8001a06: 4603 mov r3, r0
|
|
8001a08: e004 b.n 8001a14 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x66>
|
|
8001a0a: 69bb ldr r3, [r7, #24]
|
|
8001a0c: 4618 mov r0, r3
|
|
8001a0e: f7ff ff99 bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
8001a12: 4603 mov r3, r0
|
|
8001a14: 61bb str r3, [r7, #24]
|
|
while (__x != 0)
|
|
8001a16: 69bb ldr r3, [r7, #24]
|
|
8001a18: 2b00 cmp r3, #0
|
|
8001a1a: d1dc bne.n 80019d6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x28>
|
|
iterator __j = iterator(__y);
|
|
8001a1c: 697a ldr r2, [r7, #20]
|
|
8001a1e: f107 0310 add.w r3, r7, #16
|
|
8001a22: 4611 mov r1, r2
|
|
8001a24: 4618 mov r0, r3
|
|
8001a26: f000 f8cf bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
if (__comp)
|
|
8001a2a: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
|
|
8001a2e: 2b00 cmp r3, #0
|
|
8001a30: d01d beq.n 8001a6e <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0xc0>
|
|
if (__j == begin())
|
|
8001a32: 68b8 ldr r0, [r7, #8]
|
|
8001a34: f000 faf8 bl 8002028 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE5beginEv>
|
|
8001a38: 4603 mov r3, r0
|
|
8001a3a: 61fb str r3, [r7, #28]
|
|
8001a3c: f107 021c add.w r2, r7, #28
|
|
8001a40: f107 0310 add.w r3, r7, #16
|
|
8001a44: 4611 mov r1, r2
|
|
8001a46: 4618 mov r0, r3
|
|
8001a48: f000 faff bl 800204a <_ZSteqRKSt17_Rb_tree_iteratorItES2_>
|
|
8001a4c: 4603 mov r3, r0
|
|
8001a4e: 2b00 cmp r3, #0
|
|
8001a50: d008 beq.n 8001a64 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0xb6>
|
|
return _Res(__x, __y);
|
|
8001a52: f107 0214 add.w r2, r7, #20
|
|
8001a56: f107 0318 add.w r3, r7, #24
|
|
8001a5a: 4619 mov r1, r3
|
|
8001a5c: 68f8 ldr r0, [r7, #12]
|
|
8001a5e: f000 fb08 bl 8002072 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeItERS1_Lb1EEEOT_OT0_>
|
|
8001a62: e025 b.n 8001ab0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x102>
|
|
--__j;
|
|
8001a64: f107 0310 add.w r3, r7, #16
|
|
8001a68: 4618 mov r0, r3
|
|
8001a6a: f000 fb1b bl 80020a4 <_ZNSt17_Rb_tree_iteratorItEmmEv>
|
|
if (_M_impl._M_key_compare(_S_key(__j._M_node), __k))
|
|
8001a6e: 68bc ldr r4, [r7, #8]
|
|
8001a70: 693b ldr r3, [r7, #16]
|
|
8001a72: 4618 mov r0, r3
|
|
8001a74: f000 fb27 bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
8001a78: 4603 mov r3, r0
|
|
8001a7a: 687a ldr r2, [r7, #4]
|
|
8001a7c: 4619 mov r1, r3
|
|
8001a7e: 4620 mov r0, r4
|
|
8001a80: f000 fabd bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8001a84: 4603 mov r3, r0
|
|
8001a86: 2b00 cmp r3, #0
|
|
8001a88: d008 beq.n 8001a9c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0xee>
|
|
return _Res(__x, __y);
|
|
8001a8a: f107 0214 add.w r2, r7, #20
|
|
8001a8e: f107 0318 add.w r3, r7, #24
|
|
8001a92: 4619 mov r1, r3
|
|
8001a94: 68f8 ldr r0, [r7, #12]
|
|
8001a96: f000 faec bl 8002072 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeItERS1_Lb1EEEOT_OT0_>
|
|
8001a9a: e009 b.n 8001ab0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt+0x102>
|
|
return _Res(__j._M_node, 0);
|
|
8001a9c: 2300 movs r3, #0
|
|
8001a9e: 623b str r3, [r7, #32]
|
|
8001aa0: f107 0220 add.w r2, r7, #32
|
|
8001aa4: f107 0310 add.w r3, r7, #16
|
|
8001aa8: 4619 mov r1, r3
|
|
8001aaa: 68f8 ldr r0, [r7, #12]
|
|
8001aac: f000 fb17 bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
8001ab0: 68f8 ldr r0, [r7, #12]
|
|
8001ab2: 372c adds r7, #44 @ 0x2c
|
|
8001ab4: 46bd mov sp, r7
|
|
8001ab6: bd90 pop {r4, r7, pc}
|
|
|
|
08001ab8 <_ZNKSt9_IdentityItEclERKt>:
|
|
_Tp&
|
|
operator()(_Tp& __x) const
|
|
{ return __x; }
|
|
|
|
const _Tp&
|
|
operator()(const _Tp& __x) const
|
|
8001ab8: b480 push {r7}
|
|
8001aba: b083 sub sp, #12
|
|
8001abc: af00 add r7, sp, #0
|
|
8001abe: 6078 str r0, [r7, #4]
|
|
8001ac0: 6039 str r1, [r7, #0]
|
|
{ return __x; }
|
|
8001ac2: 683b ldr r3, [r7, #0]
|
|
8001ac4: 4618 mov r0, r3
|
|
8001ac6: 370c adds r7, #12
|
|
8001ac8: 46bd mov sp, r7
|
|
8001aca: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001ace: 4770 bx lr
|
|
|
|
08001ad0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeC1ERS5_>:
|
|
_Alloc_node(_Rb_tree& __t)
|
|
8001ad0: b480 push {r7}
|
|
8001ad2: b083 sub sp, #12
|
|
8001ad4: af00 add r7, sp, #0
|
|
8001ad6: 6078 str r0, [r7, #4]
|
|
8001ad8: 6039 str r1, [r7, #0]
|
|
: _M_t(__t) { }
|
|
8001ada: 687b ldr r3, [r7, #4]
|
|
8001adc: 683a ldr r2, [r7, #0]
|
|
8001ade: 601a str r2, [r3, #0]
|
|
8001ae0: 687b ldr r3, [r7, #4]
|
|
8001ae2: 4618 mov r0, r3
|
|
8001ae4: 370c adds r7, #12
|
|
8001ae6: 46bd mov sp, r7
|
|
8001ae8: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001aec: 4770 bx lr
|
|
|
|
08001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>:
|
|
* This function is used to implement "perfect forwarding".
|
|
*/
|
|
template<typename _Tp>
|
|
_GLIBCXX_NODISCARD
|
|
constexpr _Tp&&
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8001aee: b480 push {r7}
|
|
8001af0: b083 sub sp, #12
|
|
8001af2: af00 add r7, sp, #0
|
|
8001af4: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8001af6: 687b ldr r3, [r7, #4]
|
|
8001af8: 4618 mov r0, r3
|
|
8001afa: 370c adds r7, #12
|
|
8001afc: 46bd mov sp, r7
|
|
8001afe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001b02: 4770 bx lr
|
|
|
|
08001b04 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8001b04: b5b0 push {r4, r5, r7, lr}
|
|
8001b06: b088 sub sp, #32
|
|
8001b08: af00 add r7, sp, #0
|
|
8001b0a: 60f8 str r0, [r7, #12]
|
|
8001b0c: 60b9 str r1, [r7, #8]
|
|
8001b0e: 607a str r2, [r7, #4]
|
|
8001b10: 603b str r3, [r7, #0]
|
|
|| _M_impl._M_key_compare(_KeyOfValue()(__v),
|
|
8001b12: 68bb ldr r3, [r7, #8]
|
|
8001b14: 2b00 cmp r3, #0
|
|
8001b16: d11a bne.n 8001b4e <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_+0x4a>
|
|
bool __insert_left = (__x != 0 || __p == _M_end()
|
|
8001b18: 68f8 ldr r0, [r7, #12]
|
|
8001b1a: f000 fa51 bl 8001fc0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_M_endEv>
|
|
8001b1e: 4602 mov r2, r0
|
|
8001b20: 687b ldr r3, [r7, #4]
|
|
8001b22: 4293 cmp r3, r2
|
|
8001b24: d013 beq.n 8001b4e <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_+0x4a>
|
|
|| _M_impl._M_key_compare(_KeyOfValue()(__v),
|
|
8001b26: 68fc ldr r4, [r7, #12]
|
|
8001b28: f107 0310 add.w r3, r7, #16
|
|
8001b2c: 6839 ldr r1, [r7, #0]
|
|
8001b2e: 4618 mov r0, r3
|
|
8001b30: f7ff ffc2 bl 8001ab8 <_ZNKSt9_IdentityItEclERKt>
|
|
8001b34: 4605 mov r5, r0
|
|
8001b36: 6878 ldr r0, [r7, #4]
|
|
8001b38: f000 fac5 bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
8001b3c: 4603 mov r3, r0
|
|
8001b3e: 461a mov r2, r3
|
|
8001b40: 4629 mov r1, r5
|
|
8001b42: 4620 mov r0, r4
|
|
8001b44: f000 fa5b bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8001b48: 4603 mov r3, r0
|
|
8001b4a: 2b00 cmp r3, #0
|
|
8001b4c: d001 beq.n 8001b52 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_+0x4e>
|
|
8001b4e: 2301 movs r3, #1
|
|
8001b50: e000 b.n 8001b54 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_+0x50>
|
|
8001b52: 2300 movs r3, #0
|
|
bool __insert_left = (__x != 0 || __p == _M_end()
|
|
8001b54: 77fb strb r3, [r7, #31]
|
|
_Link_type __z = __node_gen(_GLIBCXX_FORWARD(_Arg, __v));
|
|
8001b56: 6838 ldr r0, [r7, #0]
|
|
8001b58: f7ff ffc9 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8001b5c: 4603 mov r3, r0
|
|
8001b5e: 4619 mov r1, r3
|
|
8001b60: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
8001b62: f000 fad1 bl 8002108 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeclIRKtEEPSt13_Rb_tree_nodeItEOT_>
|
|
8001b66: 61b8 str r0, [r7, #24]
|
|
this->_M_impl._M_header);
|
|
8001b68: 68fb ldr r3, [r7, #12]
|
|
8001b6a: 3304 adds r3, #4
|
|
_Rb_tree_insert_and_rebalance(__insert_left, __z, __p,
|
|
8001b6c: 7ff8 ldrb r0, [r7, #31]
|
|
8001b6e: 687a ldr r2, [r7, #4]
|
|
8001b70: 69b9 ldr r1, [r7, #24]
|
|
8001b72: f00d fe49 bl 800f808 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_>
|
|
++_M_impl._M_node_count;
|
|
8001b76: 68fb ldr r3, [r7, #12]
|
|
8001b78: 695b ldr r3, [r3, #20]
|
|
8001b7a: 1c5a adds r2, r3, #1
|
|
8001b7c: 68fb ldr r3, [r7, #12]
|
|
8001b7e: 615a str r2, [r3, #20]
|
|
return iterator(__z);
|
|
8001b80: f107 0314 add.w r3, r7, #20
|
|
8001b84: 69b9 ldr r1, [r7, #24]
|
|
8001b86: 4618 mov r0, r3
|
|
8001b88: f000 f81e bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8001b8c: 697b ldr r3, [r7, #20]
|
|
}
|
|
8001b8e: 4618 mov r0, r3
|
|
8001b90: 3720 adds r7, #32
|
|
8001b92: 46bd mov sp, r7
|
|
8001b94: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08001b96 <_ZNSt4pairISt17_Rb_tree_iteratorItEbEC1IS1_bLb1EEEOT_OT0_>:
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
8001b96: b580 push {r7, lr}
|
|
8001b98: b084 sub sp, #16
|
|
8001b9a: af00 add r7, sp, #0
|
|
8001b9c: 60f8 str r0, [r7, #12]
|
|
8001b9e: 60b9 str r1, [r7, #8]
|
|
8001ba0: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
8001ba2: 68b8 ldr r0, [r7, #8]
|
|
8001ba4: f000 fac4 bl 8002130 <_ZSt7forwardISt17_Rb_tree_iteratorItEEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8001ba8: 4602 mov r2, r0
|
|
8001baa: 68fb ldr r3, [r7, #12]
|
|
8001bac: 6812 ldr r2, [r2, #0]
|
|
8001bae: 601a str r2, [r3, #0]
|
|
8001bb0: 6878 ldr r0, [r7, #4]
|
|
8001bb2: f000 fac8 bl 8002146 <_ZSt7forwardIbEOT_RNSt16remove_referenceIS0_E4typeE>
|
|
8001bb6: 4603 mov r3, r0
|
|
8001bb8: 781a ldrb r2, [r3, #0]
|
|
8001bba: 68fb ldr r3, [r7, #12]
|
|
8001bbc: 711a strb r2, [r3, #4]
|
|
8001bbe: 68fb ldr r3, [r7, #12]
|
|
8001bc0: 4618 mov r0, r3
|
|
8001bc2: 3710 adds r7, #16
|
|
8001bc4: 46bd mov sp, r7
|
|
8001bc6: bd80 pop {r7, pc}
|
|
|
|
08001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>:
|
|
_Rb_tree_iterator(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8001bc8: b480 push {r7}
|
|
8001bca: b083 sub sp, #12
|
|
8001bcc: af00 add r7, sp, #0
|
|
8001bce: 6078 str r0, [r7, #4]
|
|
8001bd0: 6039 str r1, [r7, #0]
|
|
: _M_node(__x) { }
|
|
8001bd2: 687b ldr r3, [r7, #4]
|
|
8001bd4: 683a ldr r2, [r7, #0]
|
|
8001bd6: 601a str r2, [r3, #0]
|
|
8001bd8: 687b ldr r3, [r7, #4]
|
|
8001bda: 4618 mov r0, r3
|
|
8001bdc: 370c adds r7, #12
|
|
8001bde: 46bd mov sp, r7
|
|
8001be0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001be4: 4770 bx lr
|
|
|
|
08001be6 <_ZSt7forwardIRSt17_Rb_tree_iteratorItEEOT_RNSt16remove_referenceIS3_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8001be6: b480 push {r7}
|
|
8001be8: b083 sub sp, #12
|
|
8001bea: af00 add r7, sp, #0
|
|
8001bec: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8001bee: 687b ldr r3, [r7, #4]
|
|
8001bf0: 4618 mov r0, r3
|
|
8001bf2: 370c adds r7, #12
|
|
8001bf4: 46bd mov sp, r7
|
|
8001bf6: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001bfa: 4770 bx lr
|
|
|
|
08001bfc <_ZSt7forwardIRbEOT_RNSt16remove_referenceIS1_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8001bfc: b480 push {r7}
|
|
8001bfe: b083 sub sp, #12
|
|
8001c00: af00 add r7, sp, #0
|
|
8001c02: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8001c04: 687b ldr r3, [r7, #4]
|
|
8001c06: 4618 mov r0, r3
|
|
8001c08: 370c adds r7, #12
|
|
8001c0a: 46bd mov sp, r7
|
|
8001c0c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001c10: 4770 bx lr
|
|
|
|
08001c12 <_ZNSt23_Rb_tree_const_iteratorItEC1ERKSt17_Rb_tree_iteratorItE>:
|
|
_Rb_tree_const_iterator(const iterator& __it) _GLIBCXX_NOEXCEPT
|
|
8001c12: b480 push {r7}
|
|
8001c14: b083 sub sp, #12
|
|
8001c16: af00 add r7, sp, #0
|
|
8001c18: 6078 str r0, [r7, #4]
|
|
8001c1a: 6039 str r1, [r7, #0]
|
|
: _M_node(__it._M_node) { }
|
|
8001c1c: 683b ldr r3, [r7, #0]
|
|
8001c1e: 681a ldr r2, [r3, #0]
|
|
8001c20: 687b ldr r3, [r7, #4]
|
|
8001c22: 601a str r2, [r3, #0]
|
|
8001c24: 687b ldr r3, [r7, #4]
|
|
8001c26: 4618 mov r0, r3
|
|
8001c28: 370c adds r7, #12
|
|
8001c2a: 46bd mov sp, r7
|
|
8001c2c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001c30: 4770 bx lr
|
|
|
|
08001c32 <_ZNSt15__new_allocatorItEC1ERKS0_>:
|
|
__new_allocator(const __new_allocator&) _GLIBCXX_USE_NOEXCEPT { }
|
|
8001c32: b480 push {r7}
|
|
8001c34: b083 sub sp, #12
|
|
8001c36: af00 add r7, sp, #0
|
|
8001c38: 6078 str r0, [r7, #4]
|
|
8001c3a: 6039 str r1, [r7, #0]
|
|
8001c3c: 687b ldr r3, [r7, #4]
|
|
8001c3e: 4618 mov r0, r3
|
|
8001c40: 370c adds r7, #12
|
|
8001c42: 46bd mov sp, r7
|
|
8001c44: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001c48: 4770 bx lr
|
|
|
|
08001c4a <_ZNSaISt13_Rb_tree_nodeItEEC1ItEERKSaIT_E>:
|
|
allocator(const allocator<_Tp1>&) _GLIBCXX_NOTHROW { }
|
|
8001c4a: b580 push {r7, lr}
|
|
8001c4c: b082 sub sp, #8
|
|
8001c4e: af00 add r7, sp, #0
|
|
8001c50: 6078 str r0, [r7, #4]
|
|
8001c52: 6039 str r1, [r7, #0]
|
|
8001c54: 6878 ldr r0, [r7, #4]
|
|
8001c56: f7ff fe6a bl 800192e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEEC1Ev>
|
|
8001c5a: 687b ldr r3, [r7, #4]
|
|
8001c5c: 4618 mov r0, r3
|
|
8001c5e: 3708 adds r7, #8
|
|
8001c60: 46bd mov sp, r7
|
|
8001c62: bd80 pop {r7, pc}
|
|
|
|
08001c64 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1ERKS3_OSaISt13_Rb_tree_nodeItEE>:
|
|
_Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a)
|
|
8001c64: b580 push {r7, lr}
|
|
8001c66: b084 sub sp, #16
|
|
8001c68: af00 add r7, sp, #0
|
|
8001c6a: 60f8 str r0, [r7, #12]
|
|
8001c6c: 60b9 str r1, [r7, #8]
|
|
8001c6e: 607a str r2, [r7, #4]
|
|
: _Node_allocator(std::move(__a)), _Base_key_compare(__comp)
|
|
8001c70: 6878 ldr r0, [r7, #4]
|
|
8001c72: f000 fa73 bl 800215c <_ZSt4moveIRSaISt13_Rb_tree_nodeItEEEONSt16remove_referenceIT_E4typeEOS5_>
|
|
8001c76: 4603 mov r3, r0
|
|
8001c78: 4619 mov r1, r3
|
|
8001c7a: 68f8 ldr r0, [r7, #12]
|
|
8001c7c: f7ff fb5d bl 800133a <_ZNSaISt13_Rb_tree_nodeItEEC1ERKS1_>
|
|
8001c80: 68fb ldr r3, [r7, #12]
|
|
8001c82: 68b9 ldr r1, [r7, #8]
|
|
8001c84: 4618 mov r0, r3
|
|
8001c86: f000 fa74 bl 8002172 <_ZNSt20_Rb_tree_key_compareISt4lessItEEC1ERKS1_>
|
|
8001c8a: 68fb ldr r3, [r7, #12]
|
|
8001c8c: 3304 adds r3, #4
|
|
8001c8e: 4618 mov r0, r3
|
|
8001c90: f7ff f996 bl 8000fc0 <_ZNSt15_Rb_tree_headerC1Ev>
|
|
{ }
|
|
8001c94: 68fb ldr r3, [r7, #12]
|
|
8001c96: 4618 mov r0, r3
|
|
8001c98: 3710 adds r7, #16
|
|
8001c9a: 46bd mov sp, r7
|
|
8001c9c: bd80 pop {r7, pc}
|
|
|
|
08001c9e <_ZNKSt16initializer_listItE4sizeEv>:
|
|
size() const noexcept { return _M_len; }
|
|
8001c9e: b480 push {r7}
|
|
8001ca0: b083 sub sp, #12
|
|
8001ca2: af00 add r7, sp, #0
|
|
8001ca4: 6078 str r0, [r7, #4]
|
|
8001ca6: 687b ldr r3, [r7, #4]
|
|
8001ca8: 685b ldr r3, [r3, #4]
|
|
8001caa: 4618 mov r0, r3
|
|
8001cac: 370c adds r7, #12
|
|
8001cae: 46bd mov sp, r7
|
|
8001cb0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001cb4: 4770 bx lr
|
|
|
|
08001cb6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE3endEv>:
|
|
end() _GLIBCXX_NOEXCEPT
|
|
8001cb6: b580 push {r7, lr}
|
|
8001cb8: b084 sub sp, #16
|
|
8001cba: af00 add r7, sp, #0
|
|
8001cbc: 6078 str r0, [r7, #4]
|
|
{ return iterator(&this->_M_impl._M_header); }
|
|
8001cbe: 687b ldr r3, [r7, #4]
|
|
8001cc0: 1d1a adds r2, r3, #4
|
|
8001cc2: f107 030c add.w r3, r7, #12
|
|
8001cc6: 4611 mov r1, r2
|
|
8001cc8: 4618 mov r0, r3
|
|
8001cca: f7ff ff7d bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8001cce: 68fb ldr r3, [r7, #12]
|
|
8001cd0: 4618 mov r0, r3
|
|
8001cd2: 3710 adds r7, #16
|
|
8001cd4: 46bd mov sp, r7
|
|
8001cd6: bd80 pop {r7, pc}
|
|
|
|
08001cd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_RT0_>:
|
|
template<typename _Arg, typename _NodeGen>
|
|
#else
|
|
template<typename _NodeGen>
|
|
#endif
|
|
typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8001cd8: b5b0 push {r4, r5, r7, lr}
|
|
8001cda: b08a sub sp, #40 @ 0x28
|
|
8001cdc: af02 add r7, sp, #8
|
|
8001cde: 60f8 str r0, [r7, #12]
|
|
8001ce0: 60b9 str r1, [r7, #8]
|
|
8001ce2: 607a str r2, [r7, #4]
|
|
8001ce4: 603b str r3, [r7, #0]
|
|
const _Val& __v,
|
|
#endif
|
|
_NodeGen& __node_gen)
|
|
{
|
|
pair<_Base_ptr, _Base_ptr> __res
|
|
= _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v));
|
|
8001ce6: f107 0318 add.w r3, r7, #24
|
|
8001cea: 6879 ldr r1, [r7, #4]
|
|
8001cec: 4618 mov r0, r3
|
|
8001cee: f7ff fee3 bl 8001ab8 <_ZNKSt9_IdentityItEclERKt>
|
|
8001cf2: 4603 mov r3, r0
|
|
8001cf4: f107 0010 add.w r0, r7, #16
|
|
8001cf8: 68ba ldr r2, [r7, #8]
|
|
8001cfa: 68f9 ldr r1, [r7, #12]
|
|
8001cfc: f000 fa45 bl 800218a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt>
|
|
|
|
if (__res.second)
|
|
8001d00: 697b ldr r3, [r7, #20]
|
|
8001d02: 2b00 cmp r3, #0
|
|
8001d04: d00f beq.n 8001d26 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_RT0_+0x4e>
|
|
return _M_insert_(__res.first, __res.second,
|
|
8001d06: 693c ldr r4, [r7, #16]
|
|
8001d08: 697d ldr r5, [r7, #20]
|
|
8001d0a: 6878 ldr r0, [r7, #4]
|
|
8001d0c: f7ff feef bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8001d10: 4602 mov r2, r0
|
|
8001d12: 683b ldr r3, [r7, #0]
|
|
8001d14: 9300 str r3, [sp, #0]
|
|
8001d16: 4613 mov r3, r2
|
|
8001d18: 462a mov r2, r5
|
|
8001d1a: 4621 mov r1, r4
|
|
8001d1c: 68f8 ldr r0, [r7, #12]
|
|
8001d1e: f7ff fef1 bl 8001b04 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_M_insert_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItEPSt18_Rb_tree_node_baseSD_OT_RT0_>
|
|
8001d22: 4603 mov r3, r0
|
|
_GLIBCXX_FORWARD(_Arg, __v),
|
|
__node_gen);
|
|
8001d24: e007 b.n 8001d36 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_RT0_+0x5e>
|
|
return iterator(__res.first);
|
|
8001d26: 693a ldr r2, [r7, #16]
|
|
8001d28: f107 031c add.w r3, r7, #28
|
|
8001d2c: 4611 mov r1, r2
|
|
8001d2e: 4618 mov r0, r3
|
|
8001d30: f7ff ff4a bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8001d34: 69fb ldr r3, [r7, #28]
|
|
}
|
|
8001d36: 4618 mov r0, r3
|
|
8001d38: 3720 adds r7, #32
|
|
8001d3a: 46bd mov sp, r7
|
|
8001d3c: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08001d3e <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE5beginEv>:
|
|
begin() const _GLIBCXX_NOEXCEPT
|
|
8001d3e: b580 push {r7, lr}
|
|
8001d40: b084 sub sp, #16
|
|
8001d42: af00 add r7, sp, #0
|
|
8001d44: 6078 str r0, [r7, #4]
|
|
{ return const_iterator(this->_M_impl._M_header._M_left); }
|
|
8001d46: 687b ldr r3, [r7, #4]
|
|
8001d48: 68da ldr r2, [r3, #12]
|
|
8001d4a: f107 030c add.w r3, r7, #12
|
|
8001d4e: 4611 mov r1, r2
|
|
8001d50: 4618 mov r0, r3
|
|
8001d52: f000 fb3d bl 80023d0 <_ZNSt23_Rb_tree_const_iteratorItEC1EPKSt18_Rb_tree_node_base>
|
|
8001d56: 68fb ldr r3, [r7, #12]
|
|
8001d58: 4618 mov r0, r3
|
|
8001d5a: 3710 adds r7, #16
|
|
8001d5c: 46bd mov sp, r7
|
|
8001d5e: bd80 pop {r7, pc}
|
|
|
|
08001d60 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE3endEv>:
|
|
end() const _GLIBCXX_NOEXCEPT
|
|
8001d60: b580 push {r7, lr}
|
|
8001d62: b084 sub sp, #16
|
|
8001d64: af00 add r7, sp, #0
|
|
8001d66: 6078 str r0, [r7, #4]
|
|
{ return const_iterator(&this->_M_impl._M_header); }
|
|
8001d68: 687b ldr r3, [r7, #4]
|
|
8001d6a: 1d1a adds r2, r3, #4
|
|
8001d6c: f107 030c add.w r3, r7, #12
|
|
8001d70: 4611 mov r1, r2
|
|
8001d72: 4618 mov r0, r3
|
|
8001d74: f000 fb2c bl 80023d0 <_ZNSt23_Rb_tree_const_iteratorItEC1EPKSt18_Rb_tree_node_base>
|
|
8001d78: 68fb ldr r3, [r7, #12]
|
|
8001d7a: 4618 mov r0, r3
|
|
8001d7c: 3710 adds r7, #16
|
|
8001d7e: 46bd mov sp, r7
|
|
8001d80: bd80 pop {r7, pc}
|
|
|
|
08001d82 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEC1ERS4_St23_Rb_tree_const_iteratorItE>:
|
|
insert_iterator(_Container& __x, _Iter __i)
|
|
8001d82: b580 push {r7, lr}
|
|
8001d84: b084 sub sp, #16
|
|
8001d86: af00 add r7, sp, #0
|
|
8001d88: 60f8 str r0, [r7, #12]
|
|
8001d8a: 60b9 str r1, [r7, #8]
|
|
8001d8c: 607a str r2, [r7, #4]
|
|
: container(std::__addressof(__x)), iter(__i) {}
|
|
8001d8e: 68b8 ldr r0, [r7, #8]
|
|
8001d90: f000 fb2d bl 80023ee <_ZSt11__addressofISt3setItSt4lessItESaItEEEPT_RS5_>
|
|
8001d94: 4602 mov r2, r0
|
|
8001d96: 68fb ldr r3, [r7, #12]
|
|
8001d98: 601a str r2, [r3, #0]
|
|
8001d9a: 68fb ldr r3, [r7, #12]
|
|
8001d9c: 687a ldr r2, [r7, #4]
|
|
8001d9e: 605a str r2, [r3, #4]
|
|
8001da0: 68fb ldr r3, [r7, #12]
|
|
8001da2: 4618 mov r0, r3
|
|
8001da4: 3710 adds r7, #16
|
|
8001da6: 46bd mov sp, r7
|
|
8001da8: bd80 pop {r7, pc}
|
|
|
|
08001daa <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_>:
|
|
__set_difference(_InputIterator1 __first1, _InputIterator1 __last1,
|
|
8001daa: b590 push {r4, r7, lr}
|
|
8001dac: b087 sub sp, #28
|
|
8001dae: af02 add r7, sp, #8
|
|
8001db0: 60f8 str r0, [r7, #12]
|
|
8001db2: 60b9 str r1, [r7, #8]
|
|
8001db4: 607a str r2, [r7, #4]
|
|
8001db6: 603b str r3, [r7, #0]
|
|
while (__first1 != __last1 && __first2 != __last2)
|
|
8001db8: e03c b.n 8001e34 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x8a>
|
|
if (__comp(__first1, __first2))
|
|
8001dba: f107 032c add.w r3, r7, #44 @ 0x2c
|
|
8001dbe: 683a ldr r2, [r7, #0]
|
|
8001dc0: 68b9 ldr r1, [r7, #8]
|
|
8001dc2: 4618 mov r0, r3
|
|
8001dc4: f000 fb32 bl 800242c <_ZNK9__gnu_cxx5__ops15_Iter_less_iterclISt23_Rb_tree_const_iteratorItES4_EEbT_T0_>
|
|
8001dc8: 4603 mov r3, r0
|
|
8001dca: 2b00 cmp r3, #0
|
|
8001dcc: d01a beq.n 8001e04 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x5a>
|
|
*__result = *__first1;
|
|
8001dce: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8001dd2: 4618 mov r0, r3
|
|
8001dd4: f000 fb46 bl 8002464 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEdeEv>
|
|
8001dd8: 4604 mov r4, r0
|
|
8001dda: f107 0308 add.w r3, r7, #8
|
|
8001dde: 4618 mov r0, r3
|
|
8001de0: f000 fb4b bl 800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>
|
|
8001de4: 4603 mov r3, r0
|
|
8001de6: 4619 mov r1, r3
|
|
8001de8: 4620 mov r0, r4
|
|
8001dea: f000 fb54 bl 8002496 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEaSERKt>
|
|
++__first1;
|
|
8001dee: f107 0308 add.w r3, r7, #8
|
|
8001df2: 4618 mov r0, r3
|
|
8001df4: f000 fb67 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
++__result;
|
|
8001df8: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8001dfc: 4618 mov r0, r3
|
|
8001dfe: f000 fb73 bl 80024e8 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEppEv>
|
|
8001e02: e017 b.n 8001e34 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x8a>
|
|
else if (__comp(__first2, __first1))
|
|
8001e04: f107 032c add.w r3, r7, #44 @ 0x2c
|
|
8001e08: 68ba ldr r2, [r7, #8]
|
|
8001e0a: 6839 ldr r1, [r7, #0]
|
|
8001e0c: 4618 mov r0, r3
|
|
8001e0e: f000 fb0d bl 800242c <_ZNK9__gnu_cxx5__ops15_Iter_less_iterclISt23_Rb_tree_const_iteratorItES4_EEbT_T0_>
|
|
8001e12: 4603 mov r3, r0
|
|
8001e14: 2b00 cmp r3, #0
|
|
8001e16: d004 beq.n 8001e22 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x78>
|
|
++__first2;
|
|
8001e18: 463b mov r3, r7
|
|
8001e1a: 4618 mov r0, r3
|
|
8001e1c: f000 fb53 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
8001e20: e008 b.n 8001e34 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x8a>
|
|
++__first1;
|
|
8001e22: f107 0308 add.w r3, r7, #8
|
|
8001e26: 4618 mov r0, r3
|
|
8001e28: f000 fb4d bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
++__first2;
|
|
8001e2c: 463b mov r3, r7
|
|
8001e2e: 4618 mov r0, r3
|
|
8001e30: f000 fb49 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
while (__first1 != __last1 && __first2 != __last2)
|
|
8001e34: 1d3a adds r2, r7, #4
|
|
8001e36: f107 0308 add.w r3, r7, #8
|
|
8001e3a: 4611 mov r1, r2
|
|
8001e3c: 4618 mov r0, r3
|
|
8001e3e: f000 fae1 bl 8002404 <_ZStneRKSt23_Rb_tree_const_iteratorItES2_>
|
|
8001e42: 4603 mov r3, r0
|
|
8001e44: 2b00 cmp r3, #0
|
|
8001e46: d00a beq.n 8001e5e <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0xb4>
|
|
8001e48: 463b mov r3, r7
|
|
8001e4a: f107 0120 add.w r1, r7, #32
|
|
8001e4e: 4618 mov r0, r3
|
|
8001e50: f000 fad8 bl 8002404 <_ZStneRKSt23_Rb_tree_const_iteratorItES2_>
|
|
8001e54: 4603 mov r3, r0
|
|
8001e56: 2b00 cmp r3, #0
|
|
8001e58: d001 beq.n 8001e5e <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0xb4>
|
|
8001e5a: 2301 movs r3, #1
|
|
8001e5c: e000 b.n 8001e60 <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0xb6>
|
|
8001e5e: 2300 movs r3, #0
|
|
8001e60: 2b00 cmp r3, #0
|
|
8001e62: d1aa bne.n 8001dba <_ZSt16__set_differenceISt23_Rb_tree_const_iteratorItES1_St15insert_iteratorISt3setItSt4lessItESaItEEEN9__gnu_cxx5__ops15_Iter_less_iterEET1_T_SD_T0_SE_SC_T2_+0x10>
|
|
return std::copy(__first1, __last1, __result);
|
|
8001e64: 68f8 ldr r0, [r7, #12]
|
|
8001e66: 6abb ldr r3, [r7, #40] @ 0x28
|
|
8001e68: 9300 str r3, [sp, #0]
|
|
8001e6a: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
8001e6c: 687a ldr r2, [r7, #4]
|
|
8001e6e: 68b9 ldr r1, [r7, #8]
|
|
8001e70: f000 fb45 bl 80024fe <_ZSt4copyISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET0_T_SA_S9_>
|
|
8001e74: bf00 nop
|
|
}
|
|
8001e76: 68f8 ldr r0, [r7, #12]
|
|
8001e78: 3714 adds r7, #20
|
|
8001e7a: 46bd mov sp, r7
|
|
8001e7c: bd90 pop {r4, r7, pc}
|
|
|
|
08001e7e <_ZNSt10shared_ptrIN5tasks8SpamTaskEEC1ISaIvEJEEESt20_Sp_alloc_shared_tagIT_EDpOT0_>:
|
|
shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
|
|
8001e7e: b580 push {r7, lr}
|
|
8001e80: b082 sub sp, #8
|
|
8001e82: af00 add r7, sp, #0
|
|
8001e84: 6078 str r0, [r7, #4]
|
|
8001e86: 6039 str r1, [r7, #0]
|
|
: __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
|
|
8001e88: 687b ldr r3, [r7, #4]
|
|
8001e8a: 6839 ldr r1, [r7, #0]
|
|
8001e8c: 4618 mov r0, r3
|
|
8001e8e: f000 fb55 bl 800253c <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EEC1ISaIvEJEEESt20_Sp_alloc_shared_tagIT_EDpOT0_>
|
|
{ }
|
|
8001e92: 687b ldr r3, [r7, #4]
|
|
8001e94: 4618 mov r0, r3
|
|
8001e96: 3708 adds r7, #8
|
|
8001e98: 46bd mov sp, r7
|
|
8001e9a: bd80 pop {r7, pc}
|
|
|
|
08001e9c <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1IN5tasks8SpamTaskEvEERKS_IT_LS4_0EE>:
|
|
|
|
template<typename _Yp, typename = _Compatible<_Yp>>
|
|
__shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept
|
|
8001e9c: b580 push {r7, lr}
|
|
8001e9e: b082 sub sp, #8
|
|
8001ea0: af00 add r7, sp, #0
|
|
8001ea2: 6078 str r0, [r7, #4]
|
|
8001ea4: 6039 str r1, [r7, #0]
|
|
: _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount)
|
|
8001ea6: 683b ldr r3, [r7, #0]
|
|
8001ea8: 681a ldr r2, [r3, #0]
|
|
8001eaa: 687b ldr r3, [r7, #4]
|
|
8001eac: 601a str r2, [r3, #0]
|
|
8001eae: 687b ldr r3, [r7, #4]
|
|
8001eb0: 1d1a adds r2, r3, #4
|
|
8001eb2: 683b ldr r3, [r7, #0]
|
|
8001eb4: 3304 adds r3, #4
|
|
8001eb6: 4619 mov r1, r3
|
|
8001eb8: 4610 mov r0, r2
|
|
8001eba: f000 fb59 bl 8002570 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1ERKS2_>
|
|
{ }
|
|
8001ebe: 687b ldr r3, [r7, #4]
|
|
8001ec0: 4618 mov r0, r3
|
|
8001ec2: 3708 adds r7, #8
|
|
8001ec4: 46bd mov sp, r7
|
|
8001ec6: bd80 pop {r7, pc}
|
|
|
|
08001ec8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_Rb_tree_implIS3_Lb1EEC1ERKS7_>:
|
|
_Rb_tree_impl(const _Rb_tree_impl& __x)
|
|
8001ec8: b580 push {r7, lr}
|
|
8001eca: b084 sub sp, #16
|
|
8001ecc: af00 add r7, sp, #0
|
|
8001ece: 6078 str r0, [r7, #4]
|
|
8001ed0: 6039 str r1, [r7, #0]
|
|
, _Rb_tree_header()
|
|
8001ed2: f107 030c add.w r3, r7, #12
|
|
8001ed6: 6839 ldr r1, [r7, #0]
|
|
8001ed8: 4618 mov r0, r3
|
|
8001eda: f000 fb60 bl 800259e <_ZN9__gnu_cxx14__alloc_traitsISaISt13_Rb_tree_nodeItEES2_E17_S_select_on_copyERKS3_>
|
|
8001ede: f107 030c add.w r3, r7, #12
|
|
8001ee2: 4619 mov r1, r3
|
|
8001ee4: 6878 ldr r0, [r7, #4]
|
|
8001ee6: f7ff fa28 bl 800133a <_ZNSaISt13_Rb_tree_nodeItEEC1ERKS1_>
|
|
8001eea: f107 030c add.w r3, r7, #12
|
|
8001eee: 4618 mov r0, r3
|
|
8001ef0: f7ff f9e8 bl 80012c4 <_ZNSaISt13_Rb_tree_nodeItEED1Ev>
|
|
8001ef4: 687b ldr r3, [r7, #4]
|
|
, _Base_key_compare(__x._M_key_compare)
|
|
8001ef6: 683a ldr r2, [r7, #0]
|
|
, _Rb_tree_header()
|
|
8001ef8: 4611 mov r1, r2
|
|
8001efa: 4618 mov r0, r3
|
|
8001efc: f000 f939 bl 8002172 <_ZNSt20_Rb_tree_key_compareISt4lessItEEC1ERKS1_>
|
|
8001f00: 687b ldr r3, [r7, #4]
|
|
8001f02: 3304 adds r3, #4
|
|
8001f04: 4618 mov r0, r3
|
|
8001f06: f7ff f85b bl 8000fc0 <_ZNSt15_Rb_tree_headerC1Ev>
|
|
{ }
|
|
8001f0a: 687b ldr r3, [r7, #4]
|
|
8001f0c: 4618 mov r0, r3
|
|
8001f0e: 3710 adds r7, #16
|
|
8001f10: 46bd mov sp, r7
|
|
8001f12: bd80 pop {r7, pc}
|
|
|
|
08001f14 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_rootEv>:
|
|
_M_root() const _GLIBCXX_NOEXCEPT
|
|
8001f14: b480 push {r7}
|
|
8001f16: b083 sub sp, #12
|
|
8001f18: af00 add r7, sp, #0
|
|
8001f1a: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl._M_header._M_parent; }
|
|
8001f1c: 687b ldr r3, [r7, #4]
|
|
8001f1e: 689b ldr r3, [r3, #8]
|
|
8001f20: 4618 mov r0, r3
|
|
8001f22: 370c adds r7, #12
|
|
8001f24: 46bd mov sp, r7
|
|
8001f26: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001f2a: 4770 bx lr
|
|
|
|
08001f2c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_rootEv>:
|
|
_M_root() _GLIBCXX_NOEXCEPT
|
|
8001f2c: b480 push {r7}
|
|
8001f2e: b083 sub sp, #12
|
|
8001f30: af00 add r7, sp, #0
|
|
8001f32: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl._M_header._M_parent; }
|
|
8001f34: 687b ldr r3, [r7, #4]
|
|
8001f36: 3308 adds r3, #8
|
|
8001f38: 4618 mov r0, r3
|
|
8001f3a: 370c adds r7, #12
|
|
8001f3c: 46bd mov sp, r7
|
|
8001f3e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001f42: 4770 bx lr
|
|
|
|
08001f44 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyERKS5_>:
|
|
_M_copy(const _Rb_tree& __x)
|
|
8001f44: b580 push {r7, lr}
|
|
8001f46: b084 sub sp, #16
|
|
8001f48: af00 add r7, sp, #0
|
|
8001f4a: 6078 str r0, [r7, #4]
|
|
8001f4c: 6039 str r1, [r7, #0]
|
|
_Alloc_node __an(*this);
|
|
8001f4e: f107 030c add.w r3, r7, #12
|
|
8001f52: 6879 ldr r1, [r7, #4]
|
|
8001f54: 4618 mov r0, r3
|
|
8001f56: f7ff fdbb bl 8001ad0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeC1ERS5_>
|
|
return _M_copy<__as_lvalue>(__x, __an);
|
|
8001f5a: f107 030c add.w r3, r7, #12
|
|
8001f5e: 461a mov r2, r3
|
|
8001f60: 6839 ldr r1, [r7, #0]
|
|
8001f62: 6878 ldr r0, [r7, #4]
|
|
8001f64: f000 fb29 bl 80025ba <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItERKS5_RT0_>
|
|
8001f68: 4603 mov r3, r0
|
|
}
|
|
8001f6a: 4618 mov r0, r3
|
|
8001f6c: 3710 adds r7, #16
|
|
8001f6e: 46bd mov sp, r7
|
|
8001f70: bd80 pop {r7, pc}
|
|
|
|
08001f72 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE15_M_destroy_nodeEPSt13_Rb_tree_nodeItE>:
|
|
_M_destroy_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
8001f72: b590 push {r4, r7, lr}
|
|
8001f74: b083 sub sp, #12
|
|
8001f76: af00 add r7, sp, #0
|
|
8001f78: 6078 str r0, [r7, #4]
|
|
8001f7a: 6039 str r1, [r7, #0]
|
|
_Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr());
|
|
8001f7c: 6878 ldr r0, [r7, #4]
|
|
8001f7e: f000 fb4b bl 8002618 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE21_M_get_Node_allocatorEv>
|
|
8001f82: 4604 mov r4, r0
|
|
8001f84: 6838 ldr r0, [r7, #0]
|
|
8001f86: f000 fb52 bl 800262e <_ZNSt13_Rb_tree_nodeItE9_M_valptrEv>
|
|
8001f8a: 4603 mov r3, r0
|
|
8001f8c: 4619 mov r1, r3
|
|
8001f8e: 4620 mov r0, r4
|
|
8001f90: f000 fb5b bl 800264a <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE7destroyItEEvRS2_PT_>
|
|
}
|
|
8001f94: bf00 nop
|
|
8001f96: 370c adds r7, #12
|
|
8001f98: 46bd mov sp, r7
|
|
8001f9a: bd90 pop {r4, r7, pc}
|
|
|
|
08001f9c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_put_nodeEPSt13_Rb_tree_nodeItE>:
|
|
_M_put_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
8001f9c: b580 push {r7, lr}
|
|
8001f9e: b082 sub sp, #8
|
|
8001fa0: af00 add r7, sp, #0
|
|
8001fa2: 6078 str r0, [r7, #4]
|
|
8001fa4: 6039 str r1, [r7, #0]
|
|
{ _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); }
|
|
8001fa6: 6878 ldr r0, [r7, #4]
|
|
8001fa8: f000 fb36 bl 8002618 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE21_M_get_Node_allocatorEv>
|
|
8001fac: 4603 mov r3, r0
|
|
8001fae: 2201 movs r2, #1
|
|
8001fb0: 6839 ldr r1, [r7, #0]
|
|
8001fb2: 4618 mov r0, r3
|
|
8001fb4: f000 fb56 bl 8002664 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE10deallocateERS2_PS1_j>
|
|
8001fb8: bf00 nop
|
|
8001fba: 3708 adds r7, #8
|
|
8001fbc: 46bd mov sp, r7
|
|
8001fbe: bd80 pop {r7, pc}
|
|
|
|
08001fc0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_M_endEv>:
|
|
_M_end() _GLIBCXX_NOEXCEPT
|
|
8001fc0: b480 push {r7}
|
|
8001fc2: b083 sub sp, #12
|
|
8001fc4: af00 add r7, sp, #0
|
|
8001fc6: 6078 str r0, [r7, #4]
|
|
{ return &this->_M_impl._M_header; }
|
|
8001fc8: 687b ldr r3, [r7, #4]
|
|
8001fca: 3304 adds r3, #4
|
|
8001fcc: 4618 mov r0, r3
|
|
8001fce: 370c adds r7, #12
|
|
8001fd0: 46bd mov sp, r7
|
|
8001fd2: f85d 7b04 ldr.w r7, [sp], #4
|
|
8001fd6: 4770 bx lr
|
|
|
|
08001fd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt13_Rb_tree_nodeItE>:
|
|
_S_key(_Const_Link_type __x)
|
|
8001fd8: b580 push {r7, lr}
|
|
8001fda: b084 sub sp, #16
|
|
8001fdc: af00 add r7, sp, #0
|
|
8001fde: 6078 str r0, [r7, #4]
|
|
return _KeyOfValue()(*__x->_M_valptr());
|
|
8001fe0: 6878 ldr r0, [r7, #4]
|
|
8001fe2: f000 fb4e bl 8002682 <_ZNKSt13_Rb_tree_nodeItE9_M_valptrEv>
|
|
8001fe6: 4602 mov r2, r0
|
|
8001fe8: f107 030c add.w r3, r7, #12
|
|
8001fec: 4611 mov r1, r2
|
|
8001fee: 4618 mov r0, r3
|
|
8001ff0: f7ff fd62 bl 8001ab8 <_ZNKSt9_IdentityItEclERKt>
|
|
8001ff4: 4603 mov r3, r0
|
|
}
|
|
8001ff6: 4618 mov r0, r3
|
|
8001ff8: 3710 adds r7, #16
|
|
8001ffa: 46bd mov sp, r7
|
|
8001ffc: bd80 pop {r7, pc}
|
|
|
|
08001ffe <_ZNKSt4lessItEclERKtS2_>:
|
|
operator()(const _Tp& __x, const _Tp& __y) const
|
|
8001ffe: b480 push {r7}
|
|
8002000: b085 sub sp, #20
|
|
8002002: af00 add r7, sp, #0
|
|
8002004: 60f8 str r0, [r7, #12]
|
|
8002006: 60b9 str r1, [r7, #8]
|
|
8002008: 607a str r2, [r7, #4]
|
|
{ return __x < __y; }
|
|
800200a: 68bb ldr r3, [r7, #8]
|
|
800200c: 881a ldrh r2, [r3, #0]
|
|
800200e: 687b ldr r3, [r7, #4]
|
|
8002010: 881b ldrh r3, [r3, #0]
|
|
8002012: 429a cmp r2, r3
|
|
8002014: bf34 ite cc
|
|
8002016: 2301 movcc r3, #1
|
|
8002018: 2300 movcs r3, #0
|
|
800201a: b2db uxtb r3, r3
|
|
800201c: 4618 mov r0, r3
|
|
800201e: 3714 adds r7, #20
|
|
8002020: 46bd mov sp, r7
|
|
8002022: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002026: 4770 bx lr
|
|
|
|
08002028 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE5beginEv>:
|
|
begin() _GLIBCXX_NOEXCEPT
|
|
8002028: b580 push {r7, lr}
|
|
800202a: b084 sub sp, #16
|
|
800202c: af00 add r7, sp, #0
|
|
800202e: 6078 str r0, [r7, #4]
|
|
{ return iterator(this->_M_impl._M_header._M_left); }
|
|
8002030: 687b ldr r3, [r7, #4]
|
|
8002032: 68da ldr r2, [r3, #12]
|
|
8002034: f107 030c add.w r3, r7, #12
|
|
8002038: 4611 mov r1, r2
|
|
800203a: 4618 mov r0, r3
|
|
800203c: f7ff fdc4 bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8002040: 68fb ldr r3, [r7, #12]
|
|
8002042: 4618 mov r0, r3
|
|
8002044: 3710 adds r7, #16
|
|
8002046: 46bd mov sp, r7
|
|
8002048: bd80 pop {r7, pc}
|
|
|
|
0800204a <_ZSteqRKSt17_Rb_tree_iteratorItES2_>:
|
|
operator==(const _Self& __x, const _Self& __y) _GLIBCXX_NOEXCEPT
|
|
800204a: b480 push {r7}
|
|
800204c: b083 sub sp, #12
|
|
800204e: af00 add r7, sp, #0
|
|
8002050: 6078 str r0, [r7, #4]
|
|
8002052: 6039 str r1, [r7, #0]
|
|
{ return __x._M_node == __y._M_node; }
|
|
8002054: 687b ldr r3, [r7, #4]
|
|
8002056: 681a ldr r2, [r3, #0]
|
|
8002058: 683b ldr r3, [r7, #0]
|
|
800205a: 681b ldr r3, [r3, #0]
|
|
800205c: 429a cmp r2, r3
|
|
800205e: bf0c ite eq
|
|
8002060: 2301 moveq r3, #1
|
|
8002062: 2300 movne r3, #0
|
|
8002064: b2db uxtb r3, r3
|
|
8002066: 4618 mov r0, r3
|
|
8002068: 370c adds r7, #12
|
|
800206a: 46bd mov sp, r7
|
|
800206c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002070: 4770 bx lr
|
|
|
|
08002072 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeItERS1_Lb1EEEOT_OT0_>:
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
8002072: b580 push {r7, lr}
|
|
8002074: b084 sub sp, #16
|
|
8002076: af00 add r7, sp, #0
|
|
8002078: 60f8 str r0, [r7, #12]
|
|
800207a: 60b9 str r1, [r7, #8]
|
|
800207c: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
800207e: 68b8 ldr r0, [r7, #8]
|
|
8002080: f000 fb0d bl 800269e <_ZSt7forwardIRPSt13_Rb_tree_nodeItEEOT_RNSt16remove_referenceIS4_E4typeE>
|
|
8002084: 4603 mov r3, r0
|
|
8002086: 681a ldr r2, [r3, #0]
|
|
8002088: 68fb ldr r3, [r7, #12]
|
|
800208a: 601a str r2, [r3, #0]
|
|
800208c: 6878 ldr r0, [r7, #4]
|
|
800208e: f000 fb11 bl 80026b4 <_ZSt7forwardIRPSt18_Rb_tree_node_baseEOT_RNSt16remove_referenceIS3_E4typeE>
|
|
8002092: 4603 mov r3, r0
|
|
8002094: 681a ldr r2, [r3, #0]
|
|
8002096: 68fb ldr r3, [r7, #12]
|
|
8002098: 605a str r2, [r3, #4]
|
|
800209a: 68fb ldr r3, [r7, #12]
|
|
800209c: 4618 mov r0, r3
|
|
800209e: 3710 adds r7, #16
|
|
80020a0: 46bd mov sp, r7
|
|
80020a2: bd80 pop {r7, pc}
|
|
|
|
080020a4 <_ZNSt17_Rb_tree_iteratorItEmmEv>:
|
|
operator--() _GLIBCXX_NOEXCEPT
|
|
80020a4: b580 push {r7, lr}
|
|
80020a6: b082 sub sp, #8
|
|
80020a8: af00 add r7, sp, #0
|
|
80020aa: 6078 str r0, [r7, #4]
|
|
_M_node = _Rb_tree_decrement(_M_node);
|
|
80020ac: 687b ldr r3, [r7, #4]
|
|
80020ae: 681b ldr r3, [r3, #0]
|
|
80020b0: 4618 mov r0, r3
|
|
80020b2: f00d fba7 bl 800f804 <_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base>
|
|
80020b6: 4602 mov r2, r0
|
|
80020b8: 687b ldr r3, [r7, #4]
|
|
80020ba: 601a str r2, [r3, #0]
|
|
return *this;
|
|
80020bc: 687b ldr r3, [r7, #4]
|
|
}
|
|
80020be: 4618 mov r0, r3
|
|
80020c0: 3708 adds r7, #8
|
|
80020c2: 46bd mov sp, r7
|
|
80020c4: bd80 pop {r7, pc}
|
|
|
|
080020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>:
|
|
_S_key(_Const_Base_ptr __x)
|
|
80020c6: b580 push {r7, lr}
|
|
80020c8: b082 sub sp, #8
|
|
80020ca: af00 add r7, sp, #0
|
|
80020cc: 6078 str r0, [r7, #4]
|
|
{ return _S_key(static_cast<_Const_Link_type>(__x)); }
|
|
80020ce: 6878 ldr r0, [r7, #4]
|
|
80020d0: f7ff ff82 bl 8001fd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt13_Rb_tree_nodeItE>
|
|
80020d4: 4603 mov r3, r0
|
|
80020d6: 4618 mov r0, r3
|
|
80020d8: 3708 adds r7, #8
|
|
80020da: 46bd mov sp, r7
|
|
80020dc: bd80 pop {r7, pc}
|
|
|
|
080020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>:
|
|
constexpr pair(const _T1& __a, const _T2& __b)
|
|
80020de: b480 push {r7}
|
|
80020e0: b085 sub sp, #20
|
|
80020e2: af00 add r7, sp, #0
|
|
80020e4: 60f8 str r0, [r7, #12]
|
|
80020e6: 60b9 str r1, [r7, #8]
|
|
80020e8: 607a str r2, [r7, #4]
|
|
: first(__a), second(__b) { }
|
|
80020ea: 68bb ldr r3, [r7, #8]
|
|
80020ec: 681a ldr r2, [r3, #0]
|
|
80020ee: 68fb ldr r3, [r7, #12]
|
|
80020f0: 601a str r2, [r3, #0]
|
|
80020f2: 687b ldr r3, [r7, #4]
|
|
80020f4: 681a ldr r2, [r3, #0]
|
|
80020f6: 68fb ldr r3, [r7, #12]
|
|
80020f8: 605a str r2, [r3, #4]
|
|
80020fa: 68fb ldr r3, [r7, #12]
|
|
80020fc: 4618 mov r0, r3
|
|
80020fe: 3714 adds r7, #20
|
|
8002100: 46bd mov sp, r7
|
|
8002102: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002106: 4770 bx lr
|
|
|
|
08002108 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeclIRKtEEPSt13_Rb_tree_nodeItEOT_>:
|
|
operator()(_GLIBCXX_FWDREF(_Arg) __arg) const
|
|
8002108: b590 push {r4, r7, lr}
|
|
800210a: b083 sub sp, #12
|
|
800210c: af00 add r7, sp, #0
|
|
800210e: 6078 str r0, [r7, #4]
|
|
8002110: 6039 str r1, [r7, #0]
|
|
{ return _M_t._M_create_node(_GLIBCXX_FORWARD(_Arg, __arg)); }
|
|
8002112: 687b ldr r3, [r7, #4]
|
|
8002114: 681c ldr r4, [r3, #0]
|
|
8002116: 6838 ldr r0, [r7, #0]
|
|
8002118: f7ff fce9 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
800211c: 4603 mov r3, r0
|
|
800211e: 4619 mov r1, r3
|
|
8002120: 4620 mov r0, r4
|
|
8002122: f000 fad2 bl 80026ca <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE14_M_create_nodeIJRKtEEEPSt13_Rb_tree_nodeItEDpOT_>
|
|
8002126: 4603 mov r3, r0
|
|
8002128: 4618 mov r0, r3
|
|
800212a: 370c adds r7, #12
|
|
800212c: 46bd mov sp, r7
|
|
800212e: bd90 pop {r4, r7, pc}
|
|
|
|
08002130 <_ZSt7forwardISt17_Rb_tree_iteratorItEEOT_RNSt16remove_referenceIS2_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8002130: b480 push {r7}
|
|
8002132: b083 sub sp, #12
|
|
8002134: af00 add r7, sp, #0
|
|
8002136: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8002138: 687b ldr r3, [r7, #4]
|
|
800213a: 4618 mov r0, r3
|
|
800213c: 370c adds r7, #12
|
|
800213e: 46bd mov sp, r7
|
|
8002140: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002144: 4770 bx lr
|
|
|
|
08002146 <_ZSt7forwardIbEOT_RNSt16remove_referenceIS0_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8002146: b480 push {r7}
|
|
8002148: b083 sub sp, #12
|
|
800214a: af00 add r7, sp, #0
|
|
800214c: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
800214e: 687b ldr r3, [r7, #4]
|
|
8002150: 4618 mov r0, r3
|
|
8002152: 370c adds r7, #12
|
|
8002154: 46bd mov sp, r7
|
|
8002156: f85d 7b04 ldr.w r7, [sp], #4
|
|
800215a: 4770 bx lr
|
|
|
|
0800215c <_ZSt4moveIRSaISt13_Rb_tree_nodeItEEEONSt16remove_referenceIT_E4typeEOS5_>:
|
|
* @return The parameter cast to an rvalue-reference to allow moving it.
|
|
*/
|
|
template<typename _Tp>
|
|
_GLIBCXX_NODISCARD
|
|
constexpr typename std::remove_reference<_Tp>::type&&
|
|
move(_Tp&& __t) noexcept
|
|
800215c: b480 push {r7}
|
|
800215e: b083 sub sp, #12
|
|
8002160: af00 add r7, sp, #0
|
|
8002162: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8002164: 687b ldr r3, [r7, #4]
|
|
8002166: 4618 mov r0, r3
|
|
8002168: 370c adds r7, #12
|
|
800216a: 46bd mov sp, r7
|
|
800216c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002170: 4770 bx lr
|
|
|
|
08002172 <_ZNSt20_Rb_tree_key_compareISt4lessItEEC1ERKS1_>:
|
|
_Rb_tree_key_compare(const _Key_compare& __comp)
|
|
8002172: b480 push {r7}
|
|
8002174: b083 sub sp, #12
|
|
8002176: af00 add r7, sp, #0
|
|
8002178: 6078 str r0, [r7, #4]
|
|
800217a: 6039 str r1, [r7, #0]
|
|
{ }
|
|
800217c: 687b ldr r3, [r7, #4]
|
|
800217e: 4618 mov r0, r3
|
|
8002180: 370c adds r7, #12
|
|
8002182: 46bd mov sp, r7
|
|
8002184: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002188: 4770 bx lr
|
|
|
|
0800218a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
800218a: b590 push {r4, r7, lr}
|
|
800218c: b08d sub sp, #52 @ 0x34
|
|
800218e: af00 add r7, sp, #0
|
|
8002190: 60f8 str r0, [r7, #12]
|
|
8002192: 60b9 str r1, [r7, #8]
|
|
8002194: 607a str r2, [r7, #4]
|
|
8002196: 603b str r3, [r7, #0]
|
|
iterator __pos = __position._M_const_cast();
|
|
8002198: 1d3b adds r3, r7, #4
|
|
800219a: 4618 mov r0, r3
|
|
800219c: f000 faac bl 80026f8 <_ZNKSt23_Rb_tree_const_iteratorItE13_M_const_castEv>
|
|
80021a0: 4603 mov r3, r0
|
|
80021a2: 61bb str r3, [r7, #24]
|
|
if (__pos._M_node == _M_end())
|
|
80021a4: 69bc ldr r4, [r7, #24]
|
|
80021a6: 68b8 ldr r0, [r7, #8]
|
|
80021a8: f7ff ff0a bl 8001fc0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_M_endEv>
|
|
80021ac: 4603 mov r3, r0
|
|
80021ae: 429c cmp r4, r3
|
|
80021b0: bf0c ite eq
|
|
80021b2: 2301 moveq r3, #1
|
|
80021b4: 2300 movne r3, #0
|
|
80021b6: b2db uxtb r3, r3
|
|
80021b8: 2b00 cmp r3, #0
|
|
80021ba: d030 beq.n 800221e <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x94>
|
|
if (size() > 0
|
|
80021bc: 68b8 ldr r0, [r7, #8]
|
|
80021be: f000 faac bl 800271a <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE4sizeEv>
|
|
80021c2: 4603 mov r3, r0
|
|
&& _M_impl._M_key_compare(_S_key(_M_rightmost()), __k))
|
|
80021c4: 2b00 cmp r3, #0
|
|
80021c6: d013 beq.n 80021f0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x66>
|
|
80021c8: 68bc ldr r4, [r7, #8]
|
|
80021ca: 68b8 ldr r0, [r7, #8]
|
|
80021cc: f000 fab1 bl 8002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>
|
|
80021d0: 4603 mov r3, r0
|
|
80021d2: 681b ldr r3, [r3, #0]
|
|
80021d4: 4618 mov r0, r3
|
|
80021d6: f7ff ff76 bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
80021da: 4603 mov r3, r0
|
|
80021dc: 683a ldr r2, [r7, #0]
|
|
80021de: 4619 mov r1, r3
|
|
80021e0: 4620 mov r0, r4
|
|
80021e2: f7ff ff0c bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
80021e6: 4603 mov r3, r0
|
|
80021e8: 2b00 cmp r3, #0
|
|
80021ea: d001 beq.n 80021f0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x66>
|
|
80021ec: 2301 movs r3, #1
|
|
80021ee: e000 b.n 80021f2 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x68>
|
|
80021f0: 2300 movs r3, #0
|
|
if (size() > 0
|
|
80021f2: 2b00 cmp r3, #0
|
|
80021f4: d00c beq.n 8002210 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x86>
|
|
return _Res(0, _M_rightmost());
|
|
80021f6: 2300 movs r3, #0
|
|
80021f8: 61fb str r3, [r7, #28]
|
|
80021fa: 68b8 ldr r0, [r7, #8]
|
|
80021fc: f000 fa99 bl 8002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>
|
|
8002200: 4602 mov r2, r0
|
|
8002202: f107 031c add.w r3, r7, #28
|
|
8002206: 4619 mov r1, r3
|
|
8002208: 68f8 ldr r0, [r7, #12]
|
|
800220a: f7ff ff68 bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
800220e: e0db b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _M_get_insert_unique_pos(__k);
|
|
8002210: 68fb ldr r3, [r7, #12]
|
|
8002212: 683a ldr r2, [r7, #0]
|
|
8002214: 68b9 ldr r1, [r7, #8]
|
|
8002216: 4618 mov r0, r3
|
|
8002218: f7ff fbc9 bl 80019ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt>
|
|
800221c: e0d4 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node)))
|
|
800221e: 68bc ldr r4, [r7, #8]
|
|
8002220: 69bb ldr r3, [r7, #24]
|
|
8002222: 4618 mov r0, r3
|
|
8002224: f7ff ff4f bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
8002228: 4603 mov r3, r0
|
|
800222a: 461a mov r2, r3
|
|
800222c: 6839 ldr r1, [r7, #0]
|
|
800222e: 4620 mov r0, r4
|
|
8002230: f7ff fee5 bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8002234: 4603 mov r3, r0
|
|
8002236: 2b00 cmp r3, #0
|
|
8002238: d057 beq.n 80022ea <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x160>
|
|
iterator __before = __pos;
|
|
800223a: 69bb ldr r3, [r7, #24]
|
|
800223c: 617b str r3, [r7, #20]
|
|
if (__pos._M_node == _M_leftmost()) // begin()
|
|
800223e: 69bc ldr r4, [r7, #24]
|
|
8002240: 68b8 ldr r0, [r7, #8]
|
|
8002242: f000 fa82 bl 800274a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_leftmostEv>
|
|
8002246: 4603 mov r3, r0
|
|
8002248: 681b ldr r3, [r3, #0]
|
|
800224a: 429c cmp r4, r3
|
|
800224c: bf0c ite eq
|
|
800224e: 2301 moveq r3, #1
|
|
8002250: 2300 movne r3, #0
|
|
8002252: b2db uxtb r3, r3
|
|
8002254: 2b00 cmp r3, #0
|
|
8002256: d00d beq.n 8002274 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0xea>
|
|
return _Res(_M_leftmost(), _M_leftmost());
|
|
8002258: 68b8 ldr r0, [r7, #8]
|
|
800225a: f000 fa76 bl 800274a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_leftmostEv>
|
|
800225e: 4604 mov r4, r0
|
|
8002260: 68b8 ldr r0, [r7, #8]
|
|
8002262: f000 fa72 bl 800274a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_leftmostEv>
|
|
8002266: 4603 mov r3, r0
|
|
8002268: 461a mov r2, r3
|
|
800226a: 4621 mov r1, r4
|
|
800226c: 68f8 ldr r0, [r7, #12]
|
|
800226e: f000 fa78 bl 8002762 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRS1_S4_Lb1EEEOT_OT0_>
|
|
8002272: e0a9 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k))
|
|
8002274: 68bc ldr r4, [r7, #8]
|
|
8002276: f107 0314 add.w r3, r7, #20
|
|
800227a: 4618 mov r0, r3
|
|
800227c: f7ff ff12 bl 80020a4 <_ZNSt17_Rb_tree_iteratorItEmmEv>
|
|
8002280: 4603 mov r3, r0
|
|
8002282: 681b ldr r3, [r3, #0]
|
|
8002284: 4618 mov r0, r3
|
|
8002286: f7ff ff1e bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
800228a: 4603 mov r3, r0
|
|
800228c: 683a ldr r2, [r7, #0]
|
|
800228e: 4619 mov r1, r3
|
|
8002290: 4620 mov r0, r4
|
|
8002292: f7ff feb4 bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8002296: 4603 mov r3, r0
|
|
8002298: 2b00 cmp r3, #0
|
|
800229a: d01f beq.n 80022dc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x152>
|
|
if (_S_right(__before._M_node) == 0)
|
|
800229c: 697b ldr r3, [r7, #20]
|
|
800229e: 4618 mov r0, r3
|
|
80022a0: f7ff fb50 bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
80022a4: 4603 mov r3, r0
|
|
80022a6: 2b00 cmp r3, #0
|
|
80022a8: bf0c ite eq
|
|
80022aa: 2301 moveq r3, #1
|
|
80022ac: 2300 movne r3, #0
|
|
80022ae: b2db uxtb r3, r3
|
|
80022b0: 2b00 cmp r3, #0
|
|
80022b2: d00a beq.n 80022ca <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x140>
|
|
return _Res(0, __before._M_node);
|
|
80022b4: 2300 movs r3, #0
|
|
80022b6: 623b str r3, [r7, #32]
|
|
80022b8: f107 0214 add.w r2, r7, #20
|
|
80022bc: f107 0320 add.w r3, r7, #32
|
|
80022c0: 4619 mov r1, r3
|
|
80022c2: 68f8 ldr r0, [r7, #12]
|
|
80022c4: f7ff ff0b bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
80022c8: e07e b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _Res(__pos._M_node, __pos._M_node);
|
|
80022ca: f107 0218 add.w r2, r7, #24
|
|
80022ce: f107 0318 add.w r3, r7, #24
|
|
80022d2: 4619 mov r1, r3
|
|
80022d4: 68f8 ldr r0, [r7, #12]
|
|
80022d6: f000 fa44 bl 8002762 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRS1_S4_Lb1EEEOT_OT0_>
|
|
80022da: e075 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _M_get_insert_unique_pos(__k);
|
|
80022dc: 68fb ldr r3, [r7, #12]
|
|
80022de: 683a ldr r2, [r7, #0]
|
|
80022e0: 68b9 ldr r1, [r7, #8]
|
|
80022e2: 4618 mov r0, r3
|
|
80022e4: f7ff fb63 bl 80019ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt>
|
|
80022e8: e06e b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k))
|
|
80022ea: 68bc ldr r4, [r7, #8]
|
|
80022ec: 69bb ldr r3, [r7, #24]
|
|
80022ee: 4618 mov r0, r3
|
|
80022f0: f7ff fee9 bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
80022f4: 4603 mov r3, r0
|
|
80022f6: 683a ldr r2, [r7, #0]
|
|
80022f8: 4619 mov r1, r3
|
|
80022fa: 4620 mov r0, r4
|
|
80022fc: f7ff fe7f bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8002300: 4603 mov r3, r0
|
|
8002302: 2b00 cmp r3, #0
|
|
8002304: d056 beq.n 80023b4 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x22a>
|
|
iterator __after = __pos;
|
|
8002306: 69bb ldr r3, [r7, #24]
|
|
8002308: 613b str r3, [r7, #16]
|
|
if (__pos._M_node == _M_rightmost())
|
|
800230a: 69bc ldr r4, [r7, #24]
|
|
800230c: 68b8 ldr r0, [r7, #8]
|
|
800230e: f000 fa10 bl 8002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>
|
|
8002312: 4603 mov r3, r0
|
|
8002314: 681b ldr r3, [r3, #0]
|
|
8002316: 429c cmp r4, r3
|
|
8002318: bf0c ite eq
|
|
800231a: 2301 moveq r3, #1
|
|
800231c: 2300 movne r3, #0
|
|
800231e: b2db uxtb r3, r3
|
|
8002320: 2b00 cmp r3, #0
|
|
8002322: d00c beq.n 800233e <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x1b4>
|
|
return _Res(0, _M_rightmost());
|
|
8002324: 2300 movs r3, #0
|
|
8002326: 627b str r3, [r7, #36] @ 0x24
|
|
8002328: 68b8 ldr r0, [r7, #8]
|
|
800232a: f000 fa02 bl 8002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>
|
|
800232e: 4602 mov r2, r0
|
|
8002330: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8002334: 4619 mov r1, r3
|
|
8002336: 68f8 ldr r0, [r7, #12]
|
|
8002338: f7ff fed1 bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
800233c: e044 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node)))
|
|
800233e: 68bc ldr r4, [r7, #8]
|
|
8002340: f107 0310 add.w r3, r7, #16
|
|
8002344: 4618 mov r0, r3
|
|
8002346: f000 fa25 bl 8002794 <_ZNSt17_Rb_tree_iteratorItEppEv>
|
|
800234a: 4603 mov r3, r0
|
|
800234c: 681b ldr r3, [r3, #0]
|
|
800234e: 4618 mov r0, r3
|
|
8002350: f7ff feb9 bl 80020c6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
8002354: 4603 mov r3, r0
|
|
8002356: 461a mov r2, r3
|
|
8002358: 6839 ldr r1, [r7, #0]
|
|
800235a: 4620 mov r0, r4
|
|
800235c: f7ff fe4f bl 8001ffe <_ZNKSt4lessItEclERKtS2_>
|
|
8002360: 4603 mov r3, r0
|
|
8002362: 2b00 cmp r3, #0
|
|
8002364: d01f beq.n 80023a6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x21c>
|
|
if (_S_right(__pos._M_node) == 0)
|
|
8002366: 69bb ldr r3, [r7, #24]
|
|
8002368: 4618 mov r0, r3
|
|
800236a: f7ff faeb bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
800236e: 4603 mov r3, r0
|
|
8002370: 2b00 cmp r3, #0
|
|
8002372: bf0c ite eq
|
|
8002374: 2301 moveq r3, #1
|
|
8002376: 2300 movne r3, #0
|
|
8002378: b2db uxtb r3, r3
|
|
800237a: 2b00 cmp r3, #0
|
|
800237c: d00a beq.n 8002394 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x20a>
|
|
return _Res(0, __pos._M_node);
|
|
800237e: 2300 movs r3, #0
|
|
8002380: 62bb str r3, [r7, #40] @ 0x28
|
|
8002382: f107 0218 add.w r2, r7, #24
|
|
8002386: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
800238a: 4619 mov r1, r3
|
|
800238c: 68f8 ldr r0, [r7, #12]
|
|
800238e: f7ff fea6 bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
8002392: e019 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _Res(__after._M_node, __after._M_node);
|
|
8002394: f107 0210 add.w r2, r7, #16
|
|
8002398: f107 0310 add.w r3, r7, #16
|
|
800239c: 4619 mov r1, r3
|
|
800239e: 68f8 ldr r0, [r7, #12]
|
|
80023a0: f000 f9df bl 8002762 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRS1_S4_Lb1EEEOT_OT0_>
|
|
80023a4: e010 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _M_get_insert_unique_pos(__k);
|
|
80023a6: 68fb ldr r3, [r7, #12]
|
|
80023a8: 683a ldr r2, [r7, #0]
|
|
80023aa: 68b9 ldr r1, [r7, #8]
|
|
80023ac: 4618 mov r0, r3
|
|
80023ae: f7ff fafe bl 80019ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE24_M_get_insert_unique_posERKt>
|
|
80023b2: e009 b.n 80023c8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE29_M_get_insert_hint_unique_posESt23_Rb_tree_const_iteratorItERKt+0x23e>
|
|
return _Res(__pos._M_node, 0);
|
|
80023b4: 2300 movs r3, #0
|
|
80023b6: 62fb str r3, [r7, #44] @ 0x2c
|
|
80023b8: f107 022c add.w r2, r7, #44 @ 0x2c
|
|
80023bc: f107 0318 add.w r3, r7, #24
|
|
80023c0: 4619 mov r1, r3
|
|
80023c2: 68f8 ldr r0, [r7, #12]
|
|
80023c4: f7ff fe8b bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
80023c8: 68f8 ldr r0, [r7, #12]
|
|
80023ca: 3734 adds r7, #52 @ 0x34
|
|
80023cc: 46bd mov sp, r7
|
|
80023ce: bd90 pop {r4, r7, pc}
|
|
|
|
080023d0 <_ZNSt23_Rb_tree_const_iteratorItEC1EPKSt18_Rb_tree_node_base>:
|
|
_Rb_tree_const_iterator(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
80023d0: b480 push {r7}
|
|
80023d2: b083 sub sp, #12
|
|
80023d4: af00 add r7, sp, #0
|
|
80023d6: 6078 str r0, [r7, #4]
|
|
80023d8: 6039 str r1, [r7, #0]
|
|
: _M_node(__x) { }
|
|
80023da: 687b ldr r3, [r7, #4]
|
|
80023dc: 683a ldr r2, [r7, #0]
|
|
80023de: 601a str r2, [r3, #0]
|
|
80023e0: 687b ldr r3, [r7, #4]
|
|
80023e2: 4618 mov r0, r3
|
|
80023e4: 370c adds r7, #12
|
|
80023e6: 46bd mov sp, r7
|
|
80023e8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80023ec: 4770 bx lr
|
|
|
|
080023ee <_ZSt11__addressofISt3setItSt4lessItESaItEEEPT_RS5_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
80023ee: b480 push {r7}
|
|
80023f0: b083 sub sp, #12
|
|
80023f2: af00 add r7, sp, #0
|
|
80023f4: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
80023f6: 687b ldr r3, [r7, #4]
|
|
80023f8: 4618 mov r0, r3
|
|
80023fa: 370c adds r7, #12
|
|
80023fc: 46bd mov sp, r7
|
|
80023fe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002402: 4770 bx lr
|
|
|
|
08002404 <_ZStneRKSt23_Rb_tree_const_iteratorItES2_>:
|
|
operator!=(const _Self& __x, const _Self& __y) _GLIBCXX_NOEXCEPT
|
|
8002404: b480 push {r7}
|
|
8002406: b083 sub sp, #12
|
|
8002408: af00 add r7, sp, #0
|
|
800240a: 6078 str r0, [r7, #4]
|
|
800240c: 6039 str r1, [r7, #0]
|
|
{ return __x._M_node != __y._M_node; }
|
|
800240e: 687b ldr r3, [r7, #4]
|
|
8002410: 681a ldr r2, [r3, #0]
|
|
8002412: 683b ldr r3, [r7, #0]
|
|
8002414: 681b ldr r3, [r3, #0]
|
|
8002416: 429a cmp r2, r3
|
|
8002418: bf14 ite ne
|
|
800241a: 2301 movne r3, #1
|
|
800241c: 2300 moveq r3, #0
|
|
800241e: b2db uxtb r3, r3
|
|
8002420: 4618 mov r0, r3
|
|
8002422: 370c adds r7, #12
|
|
8002424: 46bd mov sp, r7
|
|
8002426: f85d 7b04 ldr.w r7, [sp], #4
|
|
800242a: 4770 bx lr
|
|
|
|
0800242c <_ZNK9__gnu_cxx5__ops15_Iter_less_iterclISt23_Rb_tree_const_iteratorItES4_EEbT_T0_>:
|
|
operator()(_Iterator1 __it1, _Iterator2 __it2) const
|
|
800242c: b590 push {r4, r7, lr}
|
|
800242e: b085 sub sp, #20
|
|
8002430: af00 add r7, sp, #0
|
|
8002432: 60f8 str r0, [r7, #12]
|
|
8002434: 60b9 str r1, [r7, #8]
|
|
8002436: 607a str r2, [r7, #4]
|
|
{ return *__it1 < *__it2; }
|
|
8002438: f107 0308 add.w r3, r7, #8
|
|
800243c: 4618 mov r0, r3
|
|
800243e: f000 f81c bl 800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>
|
|
8002442: 4603 mov r3, r0
|
|
8002444: 881c ldrh r4, [r3, #0]
|
|
8002446: 1d3b adds r3, r7, #4
|
|
8002448: 4618 mov r0, r3
|
|
800244a: f000 f816 bl 800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>
|
|
800244e: 4603 mov r3, r0
|
|
8002450: 881b ldrh r3, [r3, #0]
|
|
8002452: 429c cmp r4, r3
|
|
8002454: bf34 ite cc
|
|
8002456: 2301 movcc r3, #1
|
|
8002458: 2300 movcs r3, #0
|
|
800245a: b2db uxtb r3, r3
|
|
800245c: 4618 mov r0, r3
|
|
800245e: 3714 adds r7, #20
|
|
8002460: 46bd mov sp, r7
|
|
8002462: bd90 pop {r4, r7, pc}
|
|
|
|
08002464 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEdeEv>:
|
|
operator*()
|
|
8002464: b480 push {r7}
|
|
8002466: b083 sub sp, #12
|
|
8002468: af00 add r7, sp, #0
|
|
800246a: 6078 str r0, [r7, #4]
|
|
{ return *this; }
|
|
800246c: 687b ldr r3, [r7, #4]
|
|
800246e: 4618 mov r0, r3
|
|
8002470: 370c adds r7, #12
|
|
8002472: 46bd mov sp, r7
|
|
8002474: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002478: 4770 bx lr
|
|
|
|
0800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>:
|
|
operator*() const _GLIBCXX_NOEXCEPT
|
|
800247a: b580 push {r7, lr}
|
|
800247c: b082 sub sp, #8
|
|
800247e: af00 add r7, sp, #0
|
|
8002480: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Link_type>(_M_node)->_M_valptr(); }
|
|
8002482: 687b ldr r3, [r7, #4]
|
|
8002484: 681b ldr r3, [r3, #0]
|
|
8002486: 4618 mov r0, r3
|
|
8002488: f000 f8fb bl 8002682 <_ZNKSt13_Rb_tree_nodeItE9_M_valptrEv>
|
|
800248c: 4603 mov r3, r0
|
|
800248e: 4618 mov r0, r3
|
|
8002490: 3708 adds r7, #8
|
|
8002492: 46bd mov sp, r7
|
|
8002494: bd80 pop {r7, pc}
|
|
|
|
08002496 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEaSERKt>:
|
|
operator=(const typename _Container::value_type& __value)
|
|
8002496: b590 push {r4, r7, lr}
|
|
8002498: b083 sub sp, #12
|
|
800249a: af00 add r7, sp, #0
|
|
800249c: 6078 str r0, [r7, #4]
|
|
800249e: 6039 str r1, [r7, #0]
|
|
iter = container->insert(iter, __value);
|
|
80024a0: 687b ldr r3, [r7, #4]
|
|
80024a2: 6818 ldr r0, [r3, #0]
|
|
80024a4: 687c ldr r4, [r7, #4]
|
|
80024a6: 687b ldr r3, [r7, #4]
|
|
80024a8: 683a ldr r2, [r7, #0]
|
|
80024aa: 6859 ldr r1, [r3, #4]
|
|
80024ac: f000 f983 bl 80027b6 <_ZNSt3setItSt4lessItESaItEE6insertESt23_Rb_tree_const_iteratorItERKt>
|
|
80024b0: 6060 str r0, [r4, #4]
|
|
++iter;
|
|
80024b2: 687b ldr r3, [r7, #4]
|
|
80024b4: 3304 adds r3, #4
|
|
80024b6: 4618 mov r0, r3
|
|
80024b8: f000 f805 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
return *this;
|
|
80024bc: 687b ldr r3, [r7, #4]
|
|
}
|
|
80024be: 4618 mov r0, r3
|
|
80024c0: 370c adds r7, #12
|
|
80024c2: 46bd mov sp, r7
|
|
80024c4: bd90 pop {r4, r7, pc}
|
|
|
|
080024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>:
|
|
operator++() _GLIBCXX_NOEXCEPT
|
|
80024c6: b580 push {r7, lr}
|
|
80024c8: b082 sub sp, #8
|
|
80024ca: af00 add r7, sp, #0
|
|
80024cc: 6078 str r0, [r7, #4]
|
|
_M_node = _Rb_tree_increment(_M_node);
|
|
80024ce: 687b ldr r3, [r7, #4]
|
|
80024d0: 681b ldr r3, [r3, #0]
|
|
80024d2: 4618 mov r0, r3
|
|
80024d4: f00d f994 bl 800f800 <_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base>
|
|
80024d8: 4602 mov r2, r0
|
|
80024da: 687b ldr r3, [r7, #4]
|
|
80024dc: 601a str r2, [r3, #0]
|
|
return *this;
|
|
80024de: 687b ldr r3, [r7, #4]
|
|
}
|
|
80024e0: 4618 mov r0, r3
|
|
80024e2: 3708 adds r7, #8
|
|
80024e4: 46bd mov sp, r7
|
|
80024e6: bd80 pop {r7, pc}
|
|
|
|
080024e8 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEppEv>:
|
|
operator++()
|
|
80024e8: b480 push {r7}
|
|
80024ea: b083 sub sp, #12
|
|
80024ec: af00 add r7, sp, #0
|
|
80024ee: 6078 str r0, [r7, #4]
|
|
{ return *this; }
|
|
80024f0: 687b ldr r3, [r7, #4]
|
|
80024f2: 4618 mov r0, r3
|
|
80024f4: 370c adds r7, #12
|
|
80024f6: 46bd mov sp, r7
|
|
80024f8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80024fc: 4770 bx lr
|
|
|
|
080024fe <_ZSt4copyISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET0_T_SA_S9_>:
|
|
* within [first,last).
|
|
*/
|
|
template<typename _II, typename _OI>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _OI
|
|
copy(_II __first, _II __last, _OI __result)
|
|
80024fe: b082 sub sp, #8
|
|
8002500: b590 push {r4, r7, lr}
|
|
8002502: b087 sub sp, #28
|
|
8002504: af02 add r7, sp, #8
|
|
8002506: 60f8 str r0, [r7, #12]
|
|
8002508: 60b9 str r1, [r7, #8]
|
|
800250a: 607a str r2, [r7, #4]
|
|
800250c: 627b str r3, [r7, #36] @ 0x24
|
|
__glibcxx_function_requires(_OutputIteratorConcept<_OI,
|
|
typename iterator_traits<_II>::reference>)
|
|
__glibcxx_requires_can_increment_range(__first, __last, __result);
|
|
|
|
return std::__copy_move_a<__is_move_iterator<_II>::__value>
|
|
(std::__miter_base(__first), std::__miter_base(__last), __result);
|
|
800250e: 68b8 ldr r0, [r7, #8]
|
|
8002510: f000 f96c bl 80027ec <_ZSt12__miter_baseISt23_Rb_tree_const_iteratorItEET_S2_>
|
|
8002514: 4604 mov r4, r0
|
|
8002516: 6878 ldr r0, [r7, #4]
|
|
8002518: f000 f968 bl 80027ec <_ZSt12__miter_baseISt23_Rb_tree_const_iteratorItEET_S2_>
|
|
800251c: 4602 mov r2, r0
|
|
800251e: 68f8 ldr r0, [r7, #12]
|
|
8002520: 6abb ldr r3, [r7, #40] @ 0x28
|
|
8002522: 9300 str r3, [sp, #0]
|
|
8002524: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
8002526: 4621 mov r1, r4
|
|
8002528: f000 f96b bl 8002802 <_ZSt13__copy_move_aILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>
|
|
800252c: bf00 nop
|
|
}
|
|
800252e: 68f8 ldr r0, [r7, #12]
|
|
8002530: 3714 adds r7, #20
|
|
8002532: 46bd mov sp, r7
|
|
8002534: e8bd 4090 ldmia.w sp!, {r4, r7, lr}
|
|
8002538: b002 add sp, #8
|
|
800253a: 4770 bx lr
|
|
|
|
0800253c <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EEC1ISaIvEJEEESt20_Sp_alloc_shared_tagIT_EDpOT0_>:
|
|
/// @}
|
|
|
|
protected:
|
|
// This constructor is non-standard, it is used by allocate_shared.
|
|
template<typename _Alloc, typename... _Args>
|
|
__shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args)
|
|
800253c: b580 push {r7, lr}
|
|
800253e: b082 sub sp, #8
|
|
8002540: af00 add r7, sp, #0
|
|
8002542: 6078 str r0, [r7, #4]
|
|
8002544: 6039 str r1, [r7, #0]
|
|
: _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
|
|
8002546: 687b ldr r3, [r7, #4]
|
|
8002548: 2200 movs r2, #0
|
|
800254a: 601a str r2, [r3, #0]
|
|
800254c: 687b ldr r3, [r7, #4]
|
|
800254e: 3304 adds r3, #4
|
|
8002550: 6879 ldr r1, [r7, #4]
|
|
8002552: 683a ldr r2, [r7, #0]
|
|
8002554: 4618 mov r0, r3
|
|
8002556: f000 f985 bl 8002864 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1IN5tasks8SpamTaskESaIvEJEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_>
|
|
{ _M_enable_shared_from_this_with(_M_ptr); }
|
|
800255a: 687b ldr r3, [r7, #4]
|
|
800255c: 681b ldr r3, [r3, #0]
|
|
800255e: 4619 mov r1, r3
|
|
8002560: 6878 ldr r0, [r7, #4]
|
|
8002562: f000 f9c3 bl 80028ec <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EE31_M_enable_shared_from_this_withIS1_S1_EENSt9enable_ifIXntsrNS4_15__has_esft_baseIT0_vEE5valueEvE4typeEPT_>
|
|
8002566: 687b ldr r3, [r7, #4]
|
|
8002568: 4618 mov r0, r3
|
|
800256a: 3708 adds r7, #8
|
|
800256c: 46bd mov sp, r7
|
|
800256e: bd80 pop {r7, pc}
|
|
|
|
08002570 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1ERKS2_>:
|
|
__shared_count(const __shared_count& __r) noexcept
|
|
8002570: b580 push {r7, lr}
|
|
8002572: b082 sub sp, #8
|
|
8002574: af00 add r7, sp, #0
|
|
8002576: 6078 str r0, [r7, #4]
|
|
8002578: 6039 str r1, [r7, #0]
|
|
: _M_pi(__r._M_pi)
|
|
800257a: 683b ldr r3, [r7, #0]
|
|
800257c: 681a ldr r2, [r3, #0]
|
|
800257e: 687b ldr r3, [r7, #4]
|
|
8002580: 601a str r2, [r3, #0]
|
|
if (_M_pi != nullptr)
|
|
8002582: 687b ldr r3, [r7, #4]
|
|
8002584: 681b ldr r3, [r3, #0]
|
|
8002586: 2b00 cmp r3, #0
|
|
8002588: d004 beq.n 8002594 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1ERKS2_+0x24>
|
|
_M_pi->_M_add_ref_copy();
|
|
800258a: 687b ldr r3, [r7, #4]
|
|
800258c: 681b ldr r3, [r3, #0]
|
|
800258e: 4618 mov r0, r3
|
|
8002590: f7fe fca6 bl 8000ee0 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EE15_M_add_ref_copyEv>
|
|
}
|
|
8002594: 687b ldr r3, [r7, #4]
|
|
8002596: 4618 mov r0, r3
|
|
8002598: 3708 adds r7, #8
|
|
800259a: 46bd mov sp, r7
|
|
800259c: bd80 pop {r7, pc}
|
|
|
|
0800259e <_ZN9__gnu_cxx14__alloc_traitsISaISt13_Rb_tree_nodeItEES2_E17_S_select_on_copyERKS3_>:
|
|
std::__enable_if_t<__is_custom_pointer<_Ptr>::value>
|
|
destroy(_Alloc& __a, _Ptr __p)
|
|
noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p))))
|
|
{ _Base_type::destroy(__a, std::__to_address(__p)); }
|
|
|
|
static constexpr _Alloc _S_select_on_copy(const _Alloc& __a)
|
|
800259e: b580 push {r7, lr}
|
|
80025a0: b082 sub sp, #8
|
|
80025a2: af00 add r7, sp, #0
|
|
80025a4: 6078 str r0, [r7, #4]
|
|
80025a6: 6039 str r1, [r7, #0]
|
|
{ return _Base_type::select_on_container_copy_construction(__a); }
|
|
80025a8: 687b ldr r3, [r7, #4]
|
|
80025aa: 6839 ldr r1, [r7, #0]
|
|
80025ac: 4618 mov r0, r3
|
|
80025ae: f000 f9a8 bl 8002902 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE37select_on_container_copy_constructionERKS2_>
|
|
80025b2: 6878 ldr r0, [r7, #4]
|
|
80025b4: 3708 adds r7, #8
|
|
80025b6: 46bd mov sp, r7
|
|
80025b8: bd80 pop {r7, pc}
|
|
|
|
080025ba <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItERKS5_RT0_>:
|
|
_M_copy(const _Rb_tree& __x, _NodeGen& __gen)
|
|
80025ba: b590 push {r4, r7, lr}
|
|
80025bc: b087 sub sp, #28
|
|
80025be: af00 add r7, sp, #0
|
|
80025c0: 60f8 str r0, [r7, #12]
|
|
80025c2: 60b9 str r1, [r7, #8]
|
|
80025c4: 607a str r2, [r7, #4]
|
|
_M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen);
|
|
80025c6: 68b8 ldr r0, [r7, #8]
|
|
80025c8: f7ff f9e5 bl 8001996 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE9_M_mbeginEv>
|
|
80025cc: 4604 mov r4, r0
|
|
80025ce: 68f8 ldr r0, [r7, #12]
|
|
80025d0: f7ff fcf6 bl 8001fc0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE6_M_endEv>
|
|
80025d4: 4602 mov r2, r0
|
|
80025d6: 687b ldr r3, [r7, #4]
|
|
80025d8: 4621 mov r1, r4
|
|
80025da: 68f8 ldr r0, [r7, #12]
|
|
80025dc: f000 f99e bl 800291c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_>
|
|
80025e0: 6178 str r0, [r7, #20]
|
|
_M_leftmost() = _S_minimum(__root);
|
|
80025e2: 68f8 ldr r0, [r7, #12]
|
|
80025e4: f000 f8b1 bl 800274a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_leftmostEv>
|
|
80025e8: 4604 mov r4, r0
|
|
80025ea: 6978 ldr r0, [r7, #20]
|
|
80025ec: f000 f9e7 bl 80029be <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_S_minimumEPSt18_Rb_tree_node_base>
|
|
80025f0: 4603 mov r3, r0
|
|
80025f2: 6023 str r3, [r4, #0]
|
|
_M_rightmost() = _S_maximum(__root);
|
|
80025f4: 68f8 ldr r0, [r7, #12]
|
|
80025f6: f000 f89c bl 8002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>
|
|
80025fa: 4604 mov r4, r0
|
|
80025fc: 6978 ldr r0, [r7, #20]
|
|
80025fe: f000 f9ea bl 80029d6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_S_maximumEPSt18_Rb_tree_node_base>
|
|
8002602: 4603 mov r3, r0
|
|
8002604: 6023 str r3, [r4, #0]
|
|
_M_impl._M_node_count = __x._M_impl._M_node_count;
|
|
8002606: 68bb ldr r3, [r7, #8]
|
|
8002608: 695a ldr r2, [r3, #20]
|
|
800260a: 68fb ldr r3, [r7, #12]
|
|
800260c: 615a str r2, [r3, #20]
|
|
return __root;
|
|
800260e: 697b ldr r3, [r7, #20]
|
|
}
|
|
8002610: 4618 mov r0, r3
|
|
8002612: 371c adds r7, #28
|
|
8002614: 46bd mov sp, r7
|
|
8002616: bd90 pop {r4, r7, pc}
|
|
|
|
08002618 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE21_M_get_Node_allocatorEv>:
|
|
_M_get_Node_allocator() _GLIBCXX_NOEXCEPT
|
|
8002618: b480 push {r7}
|
|
800261a: b083 sub sp, #12
|
|
800261c: af00 add r7, sp, #0
|
|
800261e: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl; }
|
|
8002620: 687b ldr r3, [r7, #4]
|
|
8002622: 4618 mov r0, r3
|
|
8002624: 370c adds r7, #12
|
|
8002626: 46bd mov sp, r7
|
|
8002628: f85d 7b04 ldr.w r7, [sp], #4
|
|
800262c: 4770 bx lr
|
|
|
|
0800262e <_ZNSt13_Rb_tree_nodeItE9_M_valptrEv>:
|
|
_M_valptr()
|
|
800262e: b580 push {r7, lr}
|
|
8002630: b082 sub sp, #8
|
|
8002632: af00 add r7, sp, #0
|
|
8002634: 6078 str r0, [r7, #4]
|
|
{ return _M_storage._M_ptr(); }
|
|
8002636: 687b ldr r3, [r7, #4]
|
|
8002638: 3310 adds r3, #16
|
|
800263a: 4618 mov r0, r3
|
|
800263c: f000 f9d7 bl 80029ee <_ZN9__gnu_cxx16__aligned_membufItE6_M_ptrEv>
|
|
8002640: 4603 mov r3, r0
|
|
8002642: 4618 mov r0, r3
|
|
8002644: 3708 adds r7, #8
|
|
8002646: 46bd mov sp, r7
|
|
8002648: bd80 pop {r7, pc}
|
|
|
|
0800264a <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE7destroyItEEvRS2_PT_>:
|
|
*
|
|
* Calls @c __a.destroy(__p).
|
|
*/
|
|
template<typename _Up>
|
|
static _GLIBCXX20_CONSTEXPR void
|
|
destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p)
|
|
800264a: b580 push {r7, lr}
|
|
800264c: b082 sub sp, #8
|
|
800264e: af00 add r7, sp, #0
|
|
8002650: 6078 str r0, [r7, #4]
|
|
8002652: 6039 str r1, [r7, #0]
|
|
noexcept(is_nothrow_destructible<_Up>::value)
|
|
{
|
|
#if __cplusplus <= 201703L
|
|
__a.destroy(__p);
|
|
8002654: 6839 ldr r1, [r7, #0]
|
|
8002656: 6878 ldr r0, [r7, #4]
|
|
8002658: f000 f9d5 bl 8002a06 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE7destroyItEEvPT_>
|
|
#else
|
|
std::destroy_at(__p);
|
|
#endif
|
|
}
|
|
800265c: bf00 nop
|
|
800265e: 3708 adds r7, #8
|
|
8002660: 46bd mov sp, r7
|
|
8002662: bd80 pop {r7, pc}
|
|
|
|
08002664 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE10deallocateERS2_PS1_j>:
|
|
deallocate(allocator_type& __a, pointer __p, size_type __n)
|
|
8002664: b580 push {r7, lr}
|
|
8002666: b084 sub sp, #16
|
|
8002668: af00 add r7, sp, #0
|
|
800266a: 60f8 str r0, [r7, #12]
|
|
800266c: 60b9 str r1, [r7, #8]
|
|
800266e: 607a str r2, [r7, #4]
|
|
{ __a.deallocate(__p, __n); }
|
|
8002670: 687a ldr r2, [r7, #4]
|
|
8002672: 68b9 ldr r1, [r7, #8]
|
|
8002674: 68f8 ldr r0, [r7, #12]
|
|
8002676: f000 f9d1 bl 8002a1c <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE10deallocateEPS1_j>
|
|
800267a: bf00 nop
|
|
800267c: 3710 adds r7, #16
|
|
800267e: 46bd mov sp, r7
|
|
8002680: bd80 pop {r7, pc}
|
|
|
|
08002682 <_ZNKSt13_Rb_tree_nodeItE9_M_valptrEv>:
|
|
_M_valptr() const
|
|
8002682: b580 push {r7, lr}
|
|
8002684: b082 sub sp, #8
|
|
8002686: af00 add r7, sp, #0
|
|
8002688: 6078 str r0, [r7, #4]
|
|
{ return _M_storage._M_ptr(); }
|
|
800268a: 687b ldr r3, [r7, #4]
|
|
800268c: 3310 adds r3, #16
|
|
800268e: 4618 mov r0, r3
|
|
8002690: f000 f9d7 bl 8002a42 <_ZNK9__gnu_cxx16__aligned_membufItE6_M_ptrEv>
|
|
8002694: 4603 mov r3, r0
|
|
8002696: 4618 mov r0, r3
|
|
8002698: 3708 adds r7, #8
|
|
800269a: 46bd mov sp, r7
|
|
800269c: bd80 pop {r7, pc}
|
|
|
|
0800269e <_ZSt7forwardIRPSt13_Rb_tree_nodeItEEOT_RNSt16remove_referenceIS4_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800269e: b480 push {r7}
|
|
80026a0: b083 sub sp, #12
|
|
80026a2: af00 add r7, sp, #0
|
|
80026a4: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
80026a6: 687b ldr r3, [r7, #4]
|
|
80026a8: 4618 mov r0, r3
|
|
80026aa: 370c adds r7, #12
|
|
80026ac: 46bd mov sp, r7
|
|
80026ae: f85d 7b04 ldr.w r7, [sp], #4
|
|
80026b2: 4770 bx lr
|
|
|
|
080026b4 <_ZSt7forwardIRPSt18_Rb_tree_node_baseEOT_RNSt16remove_referenceIS3_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
80026b4: b480 push {r7}
|
|
80026b6: b083 sub sp, #12
|
|
80026b8: af00 add r7, sp, #0
|
|
80026ba: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
80026bc: 687b ldr r3, [r7, #4]
|
|
80026be: 4618 mov r0, r3
|
|
80026c0: 370c adds r7, #12
|
|
80026c2: 46bd mov sp, r7
|
|
80026c4: f85d 7b04 ldr.w r7, [sp], #4
|
|
80026c8: 4770 bx lr
|
|
|
|
080026ca <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE14_M_create_nodeIJRKtEEEPSt13_Rb_tree_nodeItEDpOT_>:
|
|
_M_create_node(_Args&&... __args)
|
|
80026ca: b580 push {r7, lr}
|
|
80026cc: b084 sub sp, #16
|
|
80026ce: af00 add r7, sp, #0
|
|
80026d0: 6078 str r0, [r7, #4]
|
|
80026d2: 6039 str r1, [r7, #0]
|
|
_Link_type __tmp = _M_get_node();
|
|
80026d4: 6878 ldr r0, [r7, #4]
|
|
80026d6: f000 f9c0 bl 8002a5a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_get_nodeEv>
|
|
80026da: 60f8 str r0, [r7, #12]
|
|
_M_construct_node(__tmp, std::forward<_Args>(__args)...);
|
|
80026dc: 6838 ldr r0, [r7, #0]
|
|
80026de: f7ff fa06 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
80026e2: 4603 mov r3, r0
|
|
80026e4: 461a mov r2, r3
|
|
80026e6: 68f9 ldr r1, [r7, #12]
|
|
80026e8: 6878 ldr r0, [r7, #4]
|
|
80026ea: f000 f9c7 bl 8002a7c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_construct_nodeIJRKtEEEvPSt13_Rb_tree_nodeItEDpOT_>
|
|
return __tmp;
|
|
80026ee: 68fb ldr r3, [r7, #12]
|
|
}
|
|
80026f0: 4618 mov r0, r3
|
|
80026f2: 3710 adds r7, #16
|
|
80026f4: 46bd mov sp, r7
|
|
80026f6: bd80 pop {r7, pc}
|
|
|
|
080026f8 <_ZNKSt23_Rb_tree_const_iteratorItE13_M_const_castEv>:
|
|
_M_const_cast() const _GLIBCXX_NOEXCEPT
|
|
80026f8: b580 push {r7, lr}
|
|
80026fa: b084 sub sp, #16
|
|
80026fc: af00 add r7, sp, #0
|
|
80026fe: 6078 str r0, [r7, #4]
|
|
{ return iterator(const_cast<typename iterator::_Base_ptr>(_M_node)); }
|
|
8002700: 687b ldr r3, [r7, #4]
|
|
8002702: 681a ldr r2, [r3, #0]
|
|
8002704: f107 030c add.w r3, r7, #12
|
|
8002708: 4611 mov r1, r2
|
|
800270a: 4618 mov r0, r3
|
|
800270c: f7ff fa5c bl 8001bc8 <_ZNSt17_Rb_tree_iteratorItEC1EPSt18_Rb_tree_node_base>
|
|
8002710: 68fb ldr r3, [r7, #12]
|
|
8002712: 4618 mov r0, r3
|
|
8002714: 3710 adds r7, #16
|
|
8002716: 46bd mov sp, r7
|
|
8002718: bd80 pop {r7, pc}
|
|
|
|
0800271a <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE4sizeEv>:
|
|
size() const _GLIBCXX_NOEXCEPT
|
|
800271a: b480 push {r7}
|
|
800271c: b083 sub sp, #12
|
|
800271e: af00 add r7, sp, #0
|
|
8002720: 6078 str r0, [r7, #4]
|
|
{ return _M_impl._M_node_count; }
|
|
8002722: 687b ldr r3, [r7, #4]
|
|
8002724: 695b ldr r3, [r3, #20]
|
|
8002726: 4618 mov r0, r3
|
|
8002728: 370c adds r7, #12
|
|
800272a: 46bd mov sp, r7
|
|
800272c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002730: 4770 bx lr
|
|
|
|
08002732 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE12_M_rightmostEv>:
|
|
_M_rightmost() _GLIBCXX_NOEXCEPT
|
|
8002732: b480 push {r7}
|
|
8002734: b083 sub sp, #12
|
|
8002736: af00 add r7, sp, #0
|
|
8002738: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl._M_header._M_right; }
|
|
800273a: 687b ldr r3, [r7, #4]
|
|
800273c: 3310 adds r3, #16
|
|
800273e: 4618 mov r0, r3
|
|
8002740: 370c adds r7, #12
|
|
8002742: 46bd mov sp, r7
|
|
8002744: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002748: 4770 bx lr
|
|
|
|
0800274a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_leftmostEv>:
|
|
_M_leftmost() _GLIBCXX_NOEXCEPT
|
|
800274a: b480 push {r7}
|
|
800274c: b083 sub sp, #12
|
|
800274e: af00 add r7, sp, #0
|
|
8002750: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl._M_header._M_left; }
|
|
8002752: 687b ldr r3, [r7, #4]
|
|
8002754: 330c adds r3, #12
|
|
8002756: 4618 mov r0, r3
|
|
8002758: 370c adds r7, #12
|
|
800275a: 46bd mov sp, r7
|
|
800275c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002760: 4770 bx lr
|
|
|
|
08002762 <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRS1_S4_Lb1EEEOT_OT0_>:
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
8002762: b580 push {r7, lr}
|
|
8002764: b084 sub sp, #16
|
|
8002766: af00 add r7, sp, #0
|
|
8002768: 60f8 str r0, [r7, #12]
|
|
800276a: 60b9 str r1, [r7, #8]
|
|
800276c: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
800276e: 68b8 ldr r0, [r7, #8]
|
|
8002770: f7ff ffa0 bl 80026b4 <_ZSt7forwardIRPSt18_Rb_tree_node_baseEOT_RNSt16remove_referenceIS3_E4typeE>
|
|
8002774: 4603 mov r3, r0
|
|
8002776: 681a ldr r2, [r3, #0]
|
|
8002778: 68fb ldr r3, [r7, #12]
|
|
800277a: 601a str r2, [r3, #0]
|
|
800277c: 6878 ldr r0, [r7, #4]
|
|
800277e: f7ff ff99 bl 80026b4 <_ZSt7forwardIRPSt18_Rb_tree_node_baseEOT_RNSt16remove_referenceIS3_E4typeE>
|
|
8002782: 4603 mov r3, r0
|
|
8002784: 681a ldr r2, [r3, #0]
|
|
8002786: 68fb ldr r3, [r7, #12]
|
|
8002788: 605a str r2, [r3, #4]
|
|
800278a: 68fb ldr r3, [r7, #12]
|
|
800278c: 4618 mov r0, r3
|
|
800278e: 3710 adds r7, #16
|
|
8002790: 46bd mov sp, r7
|
|
8002792: bd80 pop {r7, pc}
|
|
|
|
08002794 <_ZNSt17_Rb_tree_iteratorItEppEv>:
|
|
operator++() _GLIBCXX_NOEXCEPT
|
|
8002794: b580 push {r7, lr}
|
|
8002796: b082 sub sp, #8
|
|
8002798: af00 add r7, sp, #0
|
|
800279a: 6078 str r0, [r7, #4]
|
|
_M_node = _Rb_tree_increment(_M_node);
|
|
800279c: 687b ldr r3, [r7, #4]
|
|
800279e: 681b ldr r3, [r3, #0]
|
|
80027a0: 4618 mov r0, r3
|
|
80027a2: f00d f82b bl 800f7fc <_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base>
|
|
80027a6: 4602 mov r2, r0
|
|
80027a8: 687b ldr r3, [r7, #4]
|
|
80027aa: 601a str r2, [r3, #0]
|
|
return *this;
|
|
80027ac: 687b ldr r3, [r7, #4]
|
|
}
|
|
80027ae: 4618 mov r0, r3
|
|
80027b0: 3708 adds r7, #8
|
|
80027b2: 46bd mov sp, r7
|
|
80027b4: bd80 pop {r7, pc}
|
|
|
|
080027b6 <_ZNSt3setItSt4lessItESaItEE6insertESt23_Rb_tree_const_iteratorItERKt>:
|
|
* https://gcc.gnu.org/onlinedocs/libstdc++/manual/associative.html#containers.associative.insert_hints
|
|
*
|
|
* Insertion requires logarithmic time (if the hint is not taken).
|
|
*/
|
|
iterator
|
|
insert(const_iterator __position, const value_type& __x)
|
|
80027b6: b580 push {r7, lr}
|
|
80027b8: b086 sub sp, #24
|
|
80027ba: af00 add r7, sp, #0
|
|
80027bc: 60f8 str r0, [r7, #12]
|
|
80027be: 60b9 str r1, [r7, #8]
|
|
80027c0: 607a str r2, [r7, #4]
|
|
{ return _M_t._M_insert_unique_(__position, __x); }
|
|
80027c2: 68fb ldr r3, [r7, #12]
|
|
80027c4: 687a ldr r2, [r7, #4]
|
|
80027c6: 68b9 ldr r1, [r7, #8]
|
|
80027c8: 4618 mov r0, r3
|
|
80027ca: f000 f977 bl 8002abc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_>
|
|
80027ce: 4603 mov r3, r0
|
|
80027d0: 617b str r3, [r7, #20]
|
|
80027d2: f107 0214 add.w r2, r7, #20
|
|
80027d6: f107 0310 add.w r3, r7, #16
|
|
80027da: 4611 mov r1, r2
|
|
80027dc: 4618 mov r0, r3
|
|
80027de: f7ff fa18 bl 8001c12 <_ZNSt23_Rb_tree_const_iteratorItEC1ERKSt17_Rb_tree_iteratorItE>
|
|
80027e2: 693b ldr r3, [r7, #16]
|
|
80027e4: 4618 mov r0, r3
|
|
80027e6: 3718 adds r7, #24
|
|
80027e8: 46bd mov sp, r7
|
|
80027ea: bd80 pop {r7, pc}
|
|
|
|
080027ec <_ZSt12__miter_baseISt23_Rb_tree_const_iteratorItEET_S2_>:
|
|
// Fallback implementation of the function in bits/stl_iterator.h used to
|
|
// remove the move_iterator wrapper.
|
|
template<typename _Iterator>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _Iterator
|
|
__miter_base(_Iterator __it)
|
|
80027ec: b480 push {r7}
|
|
80027ee: b083 sub sp, #12
|
|
80027f0: af00 add r7, sp, #0
|
|
80027f2: 6078 str r0, [r7, #4]
|
|
{ return __it; }
|
|
80027f4: 687b ldr r3, [r7, #4]
|
|
80027f6: 4618 mov r0, r3
|
|
80027f8: 370c adds r7, #12
|
|
80027fa: 46bd mov sp, r7
|
|
80027fc: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002800: 4770 bx lr
|
|
|
|
08002802 <_ZSt13__copy_move_aILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>:
|
|
__copy_move_a(_II __first, _II __last, _OI __result)
|
|
8002802: b082 sub sp, #8
|
|
8002804: b5b0 push {r4, r5, r7, lr}
|
|
8002806: b08a sub sp, #40 @ 0x28
|
|
8002808: af02 add r7, sp, #8
|
|
800280a: 60f8 str r0, [r7, #12]
|
|
800280c: 60b9 str r1, [r7, #8]
|
|
800280e: 607a str r2, [r7, #4]
|
|
8002810: 637b str r3, [r7, #52] @ 0x34
|
|
return std::__niter_wrap(__result,
|
|
8002812: 68b8 ldr r0, [r7, #8]
|
|
8002814: f000 f96d bl 8002af2 <_ZSt12__niter_baseISt23_Rb_tree_const_iteratorItEET_S2_>
|
|
8002818: 4604 mov r4, r0
|
|
800281a: 6878 ldr r0, [r7, #4]
|
|
800281c: f000 f969 bl 8002af2 <_ZSt12__niter_baseISt23_Rb_tree_const_iteratorItEET_S2_>
|
|
8002820: 4605 mov r5, r0
|
|
8002822: f107 0010 add.w r0, r7, #16
|
|
8002826: f107 0334 add.w r3, r7, #52 @ 0x34
|
|
800282a: e893 0006 ldmia.w r3, {r1, r2}
|
|
800282e: f000 f96b bl 8002b08 <_ZSt12__niter_baseISt15insert_iteratorISt3setItSt4lessItESaItEEEET_S7_>
|
|
8002832: f107 0018 add.w r0, r7, #24
|
|
8002836: 697b ldr r3, [r7, #20]
|
|
8002838: 9300 str r3, [sp, #0]
|
|
800283a: 693b ldr r3, [r7, #16]
|
|
800283c: 462a mov r2, r5
|
|
800283e: 4621 mov r1, r4
|
|
8002840: f000 f976 bl 8002b30 <_ZSt14__copy_move_a1ILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>
|
|
8002844: 68f8 ldr r0, [r7, #12]
|
|
8002846: f107 0134 add.w r1, r7, #52 @ 0x34
|
|
800284a: f107 0318 add.w r3, r7, #24
|
|
800284e: cb0c ldmia r3, {r2, r3}
|
|
8002850: f000 f986 bl 8002b60 <_ZSt12__niter_wrapISt15insert_iteratorISt3setItSt4lessItESaItEEEET_RKS7_S7_>
|
|
std::__niter_base(__result)));
|
|
8002854: bf00 nop
|
|
}
|
|
8002856: 68f8 ldr r0, [r7, #12]
|
|
8002858: 3720 adds r7, #32
|
|
800285a: 46bd mov sp, r7
|
|
800285c: e8bd 40b0 ldmia.w sp!, {r4, r5, r7, lr}
|
|
8002860: b002 add sp, #8
|
|
8002862: 4770 bx lr
|
|
|
|
08002864 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1IN5tasks8SpamTaskESaIvEJEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_>:
|
|
__shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a,
|
|
8002864: b5b0 push {r4, r5, r7, lr}
|
|
8002866: b08a sub sp, #40 @ 0x28
|
|
8002868: af00 add r7, sp, #0
|
|
800286a: 60f8 str r0, [r7, #12]
|
|
800286c: 60b9 str r1, [r7, #8]
|
|
800286e: 607a str r2, [r7, #4]
|
|
typename _Sp_cp_type::__allocator_type __a2(__a._M_a);
|
|
8002870: 687a ldr r2, [r7, #4]
|
|
8002872: f107 031c add.w r3, r7, #28
|
|
8002876: 4611 mov r1, r2
|
|
8002878: 4618 mov r0, r3
|
|
800287a: f000 f986 bl 8002b8a <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEC1IvEERKSaIT_E>
|
|
auto __guard = std::__allocate_guarded(__a2);
|
|
800287e: f107 0314 add.w r3, r7, #20
|
|
8002882: f107 021c add.w r2, r7, #28
|
|
8002886: 4611 mov r1, r2
|
|
8002888: 4618 mov r0, r3
|
|
800288a: f000 f997 bl 8002bbc <_ZSt18__allocate_guardedISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEESt15__allocated_ptrIT_ERS9_>
|
|
_Sp_cp_type* __mem = __guard.get();
|
|
800288e: f107 0314 add.w r3, r7, #20
|
|
8002892: 4618 mov r0, r3
|
|
8002894: f000 f9ba bl 8002c0c <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE3getEv>
|
|
8002898: 6278 str r0, [r7, #36] @ 0x24
|
|
auto __pi = ::new (__mem)
|
|
800289a: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800289c: 4619 mov r1, r3
|
|
800289e: 2068 movs r0, #104 @ 0x68
|
|
80028a0: f7fe fb0a bl 8000eb8 <_ZnwjPv>
|
|
80028a4: 4604 mov r4, r0
|
|
80028a6: 4629 mov r1, r5
|
|
80028a8: 4620 mov r0, r4
|
|
80028aa: f000 f9bd bl 8002c28 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEC1IJEEES2_DpOT_>
|
|
80028ae: 623c str r4, [r7, #32]
|
|
__guard = nullptr;
|
|
80028b0: f107 0314 add.w r3, r7, #20
|
|
80028b4: 2100 movs r1, #0
|
|
80028b6: 4618 mov r0, r3
|
|
80028b8: f000 f9d8 bl 8002c6c <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEaSEDn>
|
|
_M_pi = __pi;
|
|
80028bc: 68fb ldr r3, [r7, #12]
|
|
80028be: 6a3a ldr r2, [r7, #32]
|
|
80028c0: 601a str r2, [r3, #0]
|
|
__p = __pi->_M_ptr();
|
|
80028c2: 6a38 ldr r0, [r7, #32]
|
|
80028c4: f000 f9e1 bl 8002c8a <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE6_M_ptrEv>
|
|
80028c8: 4602 mov r2, r0
|
|
80028ca: 68bb ldr r3, [r7, #8]
|
|
80028cc: 601a str r2, [r3, #0]
|
|
}
|
|
80028ce: f107 0314 add.w r3, r7, #20
|
|
80028d2: 4618 mov r0, r3
|
|
80028d4: f000 f985 bl 8002be2 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEED1Ev>
|
|
80028d8: f107 031c add.w r3, r7, #28
|
|
80028dc: 4618 mov r0, r3
|
|
80028de: f000 f961 bl 8002ba4 <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEED1Ev>
|
|
80028e2: 68fb ldr r3, [r7, #12]
|
|
80028e4: 4618 mov r0, r3
|
|
80028e6: 3728 adds r7, #40 @ 0x28
|
|
80028e8: 46bd mov sp, r7
|
|
80028ea: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080028ec <_ZNSt12__shared_ptrIN5tasks8SpamTaskELN9__gnu_cxx12_Lock_policyE0EE31_M_enable_shared_from_this_withIS1_S1_EENSt9enable_ifIXntsrNS4_15__has_esft_baseIT0_vEE5valueEvE4typeEPT_>:
|
|
__base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount);
|
|
}
|
|
|
|
template<typename _Yp, typename _Yp2 = typename remove_cv<_Yp>::type>
|
|
typename enable_if<!__has_esft_base<_Yp2>::value>::type
|
|
_M_enable_shared_from_this_with(_Yp*) noexcept
|
|
80028ec: b480 push {r7}
|
|
80028ee: b083 sub sp, #12
|
|
80028f0: af00 add r7, sp, #0
|
|
80028f2: 6078 str r0, [r7, #4]
|
|
80028f4: 6039 str r1, [r7, #0]
|
|
{ }
|
|
80028f6: bf00 nop
|
|
80028f8: 370c adds r7, #12
|
|
80028fa: 46bd mov sp, r7
|
|
80028fc: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002900: 4770 bx lr
|
|
|
|
08002902 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE37select_on_container_copy_constructionERKS2_>:
|
|
* @brief Obtain an allocator to use when copying a container.
|
|
* @param __rhs An allocator.
|
|
* @return @c __rhs
|
|
*/
|
|
static _GLIBCXX20_CONSTEXPR allocator_type
|
|
select_on_container_copy_construction(const allocator_type& __rhs)
|
|
8002902: b580 push {r7, lr}
|
|
8002904: b082 sub sp, #8
|
|
8002906: af00 add r7, sp, #0
|
|
8002908: 6078 str r0, [r7, #4]
|
|
800290a: 6039 str r1, [r7, #0]
|
|
{ return __rhs; }
|
|
800290c: 6839 ldr r1, [r7, #0]
|
|
800290e: 6878 ldr r0, [r7, #4]
|
|
8002910: f7fe fd13 bl 800133a <_ZNSaISt13_Rb_tree_nodeItEEC1ERKS1_>
|
|
8002914: 6878 ldr r0, [r7, #4]
|
|
8002916: 3708 adds r7, #8
|
|
8002918: 46bd mov sp, r7
|
|
800291a: bd80 pop {r7, pc}
|
|
|
|
0800291c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_>:
|
|
_Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::
|
|
800291c: b580 push {r7, lr}
|
|
800291e: b086 sub sp, #24
|
|
8002920: af00 add r7, sp, #0
|
|
8002922: 60f8 str r0, [r7, #12]
|
|
8002924: 60b9 str r1, [r7, #8]
|
|
8002926: 607a str r2, [r7, #4]
|
|
8002928: 603b str r3, [r7, #0]
|
|
_Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen);
|
|
800292a: 683a ldr r2, [r7, #0]
|
|
800292c: 68b9 ldr r1, [r7, #8]
|
|
800292e: 68f8 ldr r0, [r7, #12]
|
|
8002930: f000 f9b9 bl 8002ca6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_M_clone_nodeILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_RT0_>
|
|
8002934: 6178 str r0, [r7, #20]
|
|
__top->_M_parent = __p;
|
|
8002936: 697b ldr r3, [r7, #20]
|
|
8002938: 687a ldr r2, [r7, #4]
|
|
800293a: 605a str r2, [r3, #4]
|
|
if (__x->_M_right)
|
|
800293c: 68bb ldr r3, [r7, #8]
|
|
800293e: 68db ldr r3, [r3, #12]
|
|
8002940: 2b00 cmp r3, #0
|
|
8002942: d00b beq.n 800295c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_+0x40>
|
|
_M_copy<_MoveValues>(_S_right(__x), __top, __node_gen);
|
|
8002944: 68b8 ldr r0, [r7, #8]
|
|
8002946: f7fe fffd bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
800294a: 4601 mov r1, r0
|
|
800294c: 683b ldr r3, [r7, #0]
|
|
800294e: 697a ldr r2, [r7, #20]
|
|
8002950: 68f8 ldr r0, [r7, #12]
|
|
8002952: f7ff ffe3 bl 800291c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_>
|
|
8002956: 4602 mov r2, r0
|
|
__top->_M_right =
|
|
8002958: 697b ldr r3, [r7, #20]
|
|
800295a: 60da str r2, [r3, #12]
|
|
__p = __top;
|
|
800295c: 697b ldr r3, [r7, #20]
|
|
800295e: 607b str r3, [r7, #4]
|
|
__x = _S_left(__x);
|
|
8002960: 68b8 ldr r0, [r7, #8]
|
|
8002962: f7fe fffb bl 800195c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_S_leftEPSt18_Rb_tree_node_base>
|
|
8002966: 60b8 str r0, [r7, #8]
|
|
while (__x != 0)
|
|
8002968: e021 b.n 80029ae <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_+0x92>
|
|
_Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen);
|
|
800296a: 683a ldr r2, [r7, #0]
|
|
800296c: 68b9 ldr r1, [r7, #8]
|
|
800296e: 68f8 ldr r0, [r7, #12]
|
|
8002970: f000 f999 bl 8002ca6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_M_clone_nodeILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_RT0_>
|
|
8002974: 6138 str r0, [r7, #16]
|
|
__p->_M_left = __y;
|
|
8002976: 687b ldr r3, [r7, #4]
|
|
8002978: 693a ldr r2, [r7, #16]
|
|
800297a: 609a str r2, [r3, #8]
|
|
__y->_M_parent = __p;
|
|
800297c: 693b ldr r3, [r7, #16]
|
|
800297e: 687a ldr r2, [r7, #4]
|
|
8002980: 605a str r2, [r3, #4]
|
|
if (__x->_M_right)
|
|
8002982: 68bb ldr r3, [r7, #8]
|
|
8002984: 68db ldr r3, [r3, #12]
|
|
8002986: 2b00 cmp r3, #0
|
|
8002988: d00b beq.n 80029a2 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_+0x86>
|
|
__y->_M_right = _M_copy<_MoveValues>(_S_right(__x),
|
|
800298a: 68b8 ldr r0, [r7, #8]
|
|
800298c: f7fe ffda bl 8001944 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE8_S_rightEPSt18_Rb_tree_node_base>
|
|
8002990: 4601 mov r1, r0
|
|
8002992: 683b ldr r3, [r7, #0]
|
|
8002994: 693a ldr r2, [r7, #16]
|
|
8002996: 68f8 ldr r0, [r7, #12]
|
|
8002998: f7ff ffc0 bl 800291c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_>
|
|
800299c: 4602 mov r2, r0
|
|
800299e: 693b ldr r3, [r7, #16]
|
|
80029a0: 60da str r2, [r3, #12]
|
|
__p = __y;
|
|
80029a2: 693b ldr r3, [r7, #16]
|
|
80029a4: 607b str r3, [r7, #4]
|
|
__x = _S_left(__x);
|
|
80029a6: 68b8 ldr r0, [r7, #8]
|
|
80029a8: f7fe ffd8 bl 800195c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_S_leftEPSt18_Rb_tree_node_base>
|
|
80029ac: 60b8 str r0, [r7, #8]
|
|
while (__x != 0)
|
|
80029ae: 68bb ldr r3, [r7, #8]
|
|
80029b0: 2b00 cmp r3, #0
|
|
80029b2: d1da bne.n 800296a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE7_M_copyILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_PSt18_Rb_tree_node_baseRT0_+0x4e>
|
|
return __top;
|
|
80029b4: 697b ldr r3, [r7, #20]
|
|
}
|
|
80029b6: 4618 mov r0, r3
|
|
80029b8: 3718 adds r7, #24
|
|
80029ba: 46bd mov sp, r7
|
|
80029bc: bd80 pop {r7, pc}
|
|
|
|
080029be <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_S_minimumEPSt18_Rb_tree_node_base>:
|
|
_S_minimum(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
80029be: b580 push {r7, lr}
|
|
80029c0: b082 sub sp, #8
|
|
80029c2: af00 add r7, sp, #0
|
|
80029c4: 6078 str r0, [r7, #4]
|
|
{ return _Rb_tree_node_base::_S_minimum(__x); }
|
|
80029c6: 6878 ldr r0, [r7, #4]
|
|
80029c8: f7fe fad4 bl 8000f74 <_ZNSt18_Rb_tree_node_base10_S_minimumEPS_>
|
|
80029cc: 4603 mov r3, r0
|
|
80029ce: 4618 mov r0, r3
|
|
80029d0: 3708 adds r7, #8
|
|
80029d2: 46bd mov sp, r7
|
|
80029d4: bd80 pop {r7, pc}
|
|
|
|
080029d6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE10_S_maximumEPSt18_Rb_tree_node_base>:
|
|
_S_maximum(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
80029d6: b580 push {r7, lr}
|
|
80029d8: b082 sub sp, #8
|
|
80029da: af00 add r7, sp, #0
|
|
80029dc: 6078 str r0, [r7, #4]
|
|
{ return _Rb_tree_node_base::_S_maximum(__x); }
|
|
80029de: 6878 ldr r0, [r7, #4]
|
|
80029e0: f7fe fadb bl 8000f9a <_ZNSt18_Rb_tree_node_base10_S_maximumEPS_>
|
|
80029e4: 4603 mov r3, r0
|
|
80029e6: 4618 mov r0, r3
|
|
80029e8: 3708 adds r7, #8
|
|
80029ea: 46bd mov sp, r7
|
|
80029ec: bd80 pop {r7, pc}
|
|
|
|
080029ee <_ZN9__gnu_cxx16__aligned_membufItE6_M_ptrEv>:
|
|
const void*
|
|
_M_addr() const noexcept
|
|
{ return static_cast<const void*>(&_M_storage); }
|
|
|
|
_Tp*
|
|
_M_ptr() noexcept
|
|
80029ee: b580 push {r7, lr}
|
|
80029f0: b082 sub sp, #8
|
|
80029f2: af00 add r7, sp, #0
|
|
80029f4: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp*>(_M_addr()); }
|
|
80029f6: 6878 ldr r0, [r7, #4]
|
|
80029f8: f000 f977 bl 8002cea <_ZN9__gnu_cxx16__aligned_membufItE7_M_addrEv>
|
|
80029fc: 4603 mov r3, r0
|
|
80029fe: 4618 mov r0, r3
|
|
8002a00: 3708 adds r7, #8
|
|
8002a02: 46bd mov sp, r7
|
|
8002a04: bd80 pop {r7, pc}
|
|
|
|
08002a06 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE7destroyItEEvPT_>:
|
|
noexcept(std::is_nothrow_constructible<_Up, _Args...>::value)
|
|
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
|
|
|
|
template<typename _Up>
|
|
void
|
|
destroy(_Up* __p)
|
|
8002a06: b480 push {r7}
|
|
8002a08: b083 sub sp, #12
|
|
8002a0a: af00 add r7, sp, #0
|
|
8002a0c: 6078 str r0, [r7, #4]
|
|
8002a0e: 6039 str r1, [r7, #0]
|
|
noexcept(std::is_nothrow_destructible<_Up>::value)
|
|
{ __p->~_Up(); }
|
|
8002a10: bf00 nop
|
|
8002a12: 370c adds r7, #12
|
|
8002a14: 46bd mov sp, r7
|
|
8002a16: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002a1a: 4770 bx lr
|
|
|
|
08002a1c <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE10deallocateEPS1_j>:
|
|
deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
|
|
8002a1c: b580 push {r7, lr}
|
|
8002a1e: b084 sub sp, #16
|
|
8002a20: af00 add r7, sp, #0
|
|
8002a22: 60f8 str r0, [r7, #12]
|
|
8002a24: 60b9 str r1, [r7, #8]
|
|
8002a26: 607a str r2, [r7, #4]
|
|
_GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
|
|
8002a28: 687a ldr r2, [r7, #4]
|
|
8002a2a: 4613 mov r3, r2
|
|
8002a2c: 009b lsls r3, r3, #2
|
|
8002a2e: 4413 add r3, r2
|
|
8002a30: 009b lsls r3, r3, #2
|
|
8002a32: 4619 mov r1, r3
|
|
8002a34: 68b8 ldr r0, [r7, #8]
|
|
8002a36: f00c fe75 bl 800f724 <_ZdlPvj>
|
|
}
|
|
8002a3a: bf00 nop
|
|
8002a3c: 3710 adds r7, #16
|
|
8002a3e: 46bd mov sp, r7
|
|
8002a40: bd80 pop {r7, pc}
|
|
|
|
08002a42 <_ZNK9__gnu_cxx16__aligned_membufItE6_M_ptrEv>:
|
|
|
|
const _Tp*
|
|
_M_ptr() const noexcept
|
|
8002a42: b580 push {r7, lr}
|
|
8002a44: b082 sub sp, #8
|
|
8002a46: af00 add r7, sp, #0
|
|
8002a48: 6078 str r0, [r7, #4]
|
|
{ return static_cast<const _Tp*>(_M_addr()); }
|
|
8002a4a: 6878 ldr r0, [r7, #4]
|
|
8002a4c: f000 f958 bl 8002d00 <_ZNK9__gnu_cxx16__aligned_membufItE7_M_addrEv>
|
|
8002a50: 4603 mov r3, r0
|
|
8002a52: 4618 mov r0, r3
|
|
8002a54: 3708 adds r7, #8
|
|
8002a56: 46bd mov sp, r7
|
|
8002a58: bd80 pop {r7, pc}
|
|
|
|
08002a5a <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_M_get_nodeEv>:
|
|
_M_get_node()
|
|
8002a5a: b580 push {r7, lr}
|
|
8002a5c: b082 sub sp, #8
|
|
8002a5e: af00 add r7, sp, #0
|
|
8002a60: 6078 str r0, [r7, #4]
|
|
{ return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); }
|
|
8002a62: 6878 ldr r0, [r7, #4]
|
|
8002a64: f7ff fdd8 bl 8002618 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE21_M_get_Node_allocatorEv>
|
|
8002a68: 4603 mov r3, r0
|
|
8002a6a: 2101 movs r1, #1
|
|
8002a6c: 4618 mov r0, r3
|
|
8002a6e: f000 f952 bl 8002d16 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE8allocateERS2_j>
|
|
8002a72: 4603 mov r3, r0
|
|
8002a74: 4618 mov r0, r3
|
|
8002a76: 3708 adds r7, #8
|
|
8002a78: 46bd mov sp, r7
|
|
8002a7a: bd80 pop {r7, pc}
|
|
|
|
08002a7c <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_construct_nodeIJRKtEEEvPSt13_Rb_tree_nodeItEDpOT_>:
|
|
_M_construct_node(_Link_type __node, _Args&&... __args)
|
|
8002a7c: b5b0 push {r4, r5, r7, lr}
|
|
8002a7e: b084 sub sp, #16
|
|
8002a80: af00 add r7, sp, #0
|
|
8002a82: 60f8 str r0, [r7, #12]
|
|
8002a84: 60b9 str r1, [r7, #8]
|
|
8002a86: 607a str r2, [r7, #4]
|
|
::new(__node) _Rb_tree_node<_Val>;
|
|
8002a88: 68bb ldr r3, [r7, #8]
|
|
8002a8a: 4619 mov r1, r3
|
|
8002a8c: 2014 movs r0, #20
|
|
8002a8e: f7fe fa13 bl 8000eb8 <_ZnwjPv>
|
|
_Alloc_traits::construct(_M_get_Node_allocator(),
|
|
8002a92: 68f8 ldr r0, [r7, #12]
|
|
8002a94: f7ff fdc0 bl 8002618 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE21_M_get_Node_allocatorEv>
|
|
8002a98: 4604 mov r4, r0
|
|
8002a9a: 68b8 ldr r0, [r7, #8]
|
|
8002a9c: f7ff fdc7 bl 800262e <_ZNSt13_Rb_tree_nodeItE9_M_valptrEv>
|
|
8002aa0: 4605 mov r5, r0
|
|
8002aa2: 6878 ldr r0, [r7, #4]
|
|
8002aa4: f7ff f823 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8002aa8: 4603 mov r3, r0
|
|
8002aaa: 461a mov r2, r3
|
|
8002aac: 4629 mov r1, r5
|
|
8002aae: 4620 mov r0, r4
|
|
8002ab0: f000 f940 bl 8002d34 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE9constructItJRKtEEEvRS2_PT_DpOT0_>
|
|
}
|
|
8002ab4: bf00 nop
|
|
8002ab6: 3710 adds r7, #16
|
|
8002ab8: 46bd mov sp, r7
|
|
8002aba: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08002abc <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_>:
|
|
_M_insert_unique_(const_iterator __pos, _Arg&& __x)
|
|
8002abc: b580 push {r7, lr}
|
|
8002abe: b086 sub sp, #24
|
|
8002ac0: af00 add r7, sp, #0
|
|
8002ac2: 60f8 str r0, [r7, #12]
|
|
8002ac4: 60b9 str r1, [r7, #8]
|
|
8002ac6: 607a str r2, [r7, #4]
|
|
_Alloc_node __an(*this);
|
|
8002ac8: f107 0314 add.w r3, r7, #20
|
|
8002acc: 68f9 ldr r1, [r7, #12]
|
|
8002ace: 4618 mov r0, r3
|
|
8002ad0: f7fe fffe bl 8001ad0 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeC1ERS5_>
|
|
return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an);
|
|
8002ad4: 6878 ldr r0, [r7, #4]
|
|
8002ad6: f7ff f80a bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8002ada: 4602 mov r2, r0
|
|
8002adc: f107 0314 add.w r3, r7, #20
|
|
8002ae0: 68b9 ldr r1, [r7, #8]
|
|
8002ae2: 68f8 ldr r0, [r7, #12]
|
|
8002ae4: f7ff f8f8 bl 8001cd8 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE17_M_insert_unique_IRKtNS5_11_Alloc_nodeEEESt17_Rb_tree_iteratorItESt23_Rb_tree_const_iteratorItEOT_RT0_>
|
|
8002ae8: 4603 mov r3, r0
|
|
}
|
|
8002aea: 4618 mov r0, r3
|
|
8002aec: 3718 adds r7, #24
|
|
8002aee: 46bd mov sp, r7
|
|
8002af0: bd80 pop {r7, pc}
|
|
|
|
08002af2 <_ZSt12__niter_baseISt23_Rb_tree_const_iteratorItEET_S2_>:
|
|
__niter_base(_Iterator __it)
|
|
8002af2: b480 push {r7}
|
|
8002af4: b083 sub sp, #12
|
|
8002af6: af00 add r7, sp, #0
|
|
8002af8: 6078 str r0, [r7, #4]
|
|
{ return __it; }
|
|
8002afa: 687b ldr r3, [r7, #4]
|
|
8002afc: 4618 mov r0, r3
|
|
8002afe: 370c adds r7, #12
|
|
8002b00: 46bd mov sp, r7
|
|
8002b02: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002b06: 4770 bx lr
|
|
|
|
08002b08 <_ZSt12__niter_baseISt15insert_iteratorISt3setItSt4lessItESaItEEEET_S7_>:
|
|
__niter_base(_Iterator __it)
|
|
8002b08: b480 push {r7}
|
|
8002b0a: b085 sub sp, #20
|
|
8002b0c: af00 add r7, sp, #0
|
|
8002b0e: 60f8 str r0, [r7, #12]
|
|
8002b10: 1d3b adds r3, r7, #4
|
|
8002b12: e883 0006 stmia.w r3, {r1, r2}
|
|
{ return __it; }
|
|
8002b16: 68fb ldr r3, [r7, #12]
|
|
8002b18: 461a mov r2, r3
|
|
8002b1a: 1d3b adds r3, r7, #4
|
|
8002b1c: e893 0003 ldmia.w r3, {r0, r1}
|
|
8002b20: e882 0003 stmia.w r2, {r0, r1}
|
|
8002b24: 68f8 ldr r0, [r7, #12]
|
|
8002b26: 3714 adds r7, #20
|
|
8002b28: 46bd mov sp, r7
|
|
8002b2a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002b2e: 4770 bx lr
|
|
|
|
08002b30 <_ZSt14__copy_move_a1ILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>:
|
|
__copy_move_a1(_II __first, _II __last, _OI __result)
|
|
8002b30: b082 sub sp, #8
|
|
8002b32: b580 push {r7, lr}
|
|
8002b34: b086 sub sp, #24
|
|
8002b36: af02 add r7, sp, #8
|
|
8002b38: 60f8 str r0, [r7, #12]
|
|
8002b3a: 60b9 str r1, [r7, #8]
|
|
8002b3c: 607a str r2, [r7, #4]
|
|
8002b3e: 61fb str r3, [r7, #28]
|
|
{ return std::__copy_move_a2<_IsMove>(__first, __last, __result); }
|
|
8002b40: 68f8 ldr r0, [r7, #12]
|
|
8002b42: 6a3b ldr r3, [r7, #32]
|
|
8002b44: 9300 str r3, [sp, #0]
|
|
8002b46: 69fb ldr r3, [r7, #28]
|
|
8002b48: 687a ldr r2, [r7, #4]
|
|
8002b4a: 68b9 ldr r1, [r7, #8]
|
|
8002b4c: f000 f905 bl 8002d5a <_ZSt14__copy_move_a2ILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>
|
|
8002b50: bf00 nop
|
|
8002b52: 68f8 ldr r0, [r7, #12]
|
|
8002b54: 3710 adds r7, #16
|
|
8002b56: 46bd mov sp, r7
|
|
8002b58: e8bd 4080 ldmia.w sp!, {r7, lr}
|
|
8002b5c: b002 add sp, #8
|
|
8002b5e: 4770 bx lr
|
|
|
|
08002b60 <_ZSt12__niter_wrapISt15insert_iteratorISt3setItSt4lessItESaItEEEET_RKS7_S7_>:
|
|
__niter_wrap(const _Iterator&, _Iterator __res)
|
|
8002b60: b480 push {r7}
|
|
8002b62: b085 sub sp, #20
|
|
8002b64: af00 add r7, sp, #0
|
|
8002b66: 60f8 str r0, [r7, #12]
|
|
8002b68: 60b9 str r1, [r7, #8]
|
|
8002b6a: 4639 mov r1, r7
|
|
8002b6c: e881 000c stmia.w r1, {r2, r3}
|
|
{ return __res; }
|
|
8002b70: 68fb ldr r3, [r7, #12]
|
|
8002b72: 461a mov r2, r3
|
|
8002b74: 463b mov r3, r7
|
|
8002b76: e893 0003 ldmia.w r3, {r0, r1}
|
|
8002b7a: e882 0003 stmia.w r2, {r0, r1}
|
|
8002b7e: 68f8 ldr r0, [r7, #12]
|
|
8002b80: 3714 adds r7, #20
|
|
8002b82: 46bd mov sp, r7
|
|
8002b84: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002b88: 4770 bx lr
|
|
|
|
08002b8a <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEC1IvEERKSaIT_E>:
|
|
8002b8a: b580 push {r7, lr}
|
|
8002b8c: b082 sub sp, #8
|
|
8002b8e: af00 add r7, sp, #0
|
|
8002b90: 6078 str r0, [r7, #4]
|
|
8002b92: 6039 str r1, [r7, #0]
|
|
8002b94: 6878 ldr r0, [r7, #4]
|
|
8002b96: f000 f8f8 bl 8002d8a <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEC1Ev>
|
|
8002b9a: 687b ldr r3, [r7, #4]
|
|
8002b9c: 4618 mov r0, r3
|
|
8002b9e: 3708 adds r7, #8
|
|
8002ba0: 46bd mov sp, r7
|
|
8002ba2: bd80 pop {r7, pc}
|
|
|
|
08002ba4 <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEED1Ev>:
|
|
~allocator() _GLIBCXX_NOTHROW { }
|
|
8002ba4: b580 push {r7, lr}
|
|
8002ba6: b082 sub sp, #8
|
|
8002ba8: af00 add r7, sp, #0
|
|
8002baa: 6078 str r0, [r7, #4]
|
|
8002bac: 6878 ldr r0, [r7, #4]
|
|
8002bae: f000 f8f7 bl 8002da0 <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEED1Ev>
|
|
8002bb2: 687b ldr r3, [r7, #4]
|
|
8002bb4: 4618 mov r0, r3
|
|
8002bb6: 3708 adds r7, #8
|
|
8002bb8: 46bd mov sp, r7
|
|
8002bba: bd80 pop {r7, pc}
|
|
|
|
08002bbc <_ZSt18__allocate_guardedISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEESt15__allocated_ptrIT_ERS9_>:
|
|
};
|
|
|
|
/// Allocate space for a single object using __a
|
|
template<typename _Alloc>
|
|
__allocated_ptr<_Alloc>
|
|
__allocate_guarded(_Alloc& __a)
|
|
8002bbc: b580 push {r7, lr}
|
|
8002bbe: b082 sub sp, #8
|
|
8002bc0: af00 add r7, sp, #0
|
|
8002bc2: 6078 str r0, [r7, #4]
|
|
8002bc4: 6039 str r1, [r7, #0]
|
|
{
|
|
return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) };
|
|
8002bc6: 2101 movs r1, #1
|
|
8002bc8: 6838 ldr r0, [r7, #0]
|
|
8002bca: f000 f8f4 bl 8002db6 <_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE8allocateERS7_j>
|
|
8002bce: 4603 mov r3, r0
|
|
8002bd0: 461a mov r2, r3
|
|
8002bd2: 6839 ldr r1, [r7, #0]
|
|
8002bd4: 6878 ldr r0, [r7, #4]
|
|
8002bd6: f000 f8fd bl 8002dd4 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEC1ERS7_PS6_>
|
|
}
|
|
8002bda: 6878 ldr r0, [r7, #4]
|
|
8002bdc: 3708 adds r7, #8
|
|
8002bde: 46bd mov sp, r7
|
|
8002be0: bd80 pop {r7, pc}
|
|
|
|
08002be2 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEED1Ev>:
|
|
~__allocated_ptr()
|
|
8002be2: b580 push {r7, lr}
|
|
8002be4: b082 sub sp, #8
|
|
8002be6: af00 add r7, sp, #0
|
|
8002be8: 6078 str r0, [r7, #4]
|
|
if (_M_ptr != nullptr)
|
|
8002bea: 687b ldr r3, [r7, #4]
|
|
8002bec: 685b ldr r3, [r3, #4]
|
|
8002bee: 2b00 cmp r3, #0
|
|
8002bf0: d007 beq.n 8002c02 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEED1Ev+0x20>
|
|
std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1);
|
|
8002bf2: 687b ldr r3, [r7, #4]
|
|
8002bf4: 6818 ldr r0, [r3, #0]
|
|
8002bf6: 687b ldr r3, [r7, #4]
|
|
8002bf8: 685b ldr r3, [r3, #4]
|
|
8002bfa: 2201 movs r2, #1
|
|
8002bfc: 4619 mov r1, r3
|
|
8002bfe: f000 f8fd bl 8002dfc <_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE10deallocateERS7_PS6_j>
|
|
}
|
|
8002c02: 687b ldr r3, [r7, #4]
|
|
8002c04: 4618 mov r0, r3
|
|
8002c06: 3708 adds r7, #8
|
|
8002c08: 46bd mov sp, r7
|
|
8002c0a: bd80 pop {r7, pc}
|
|
|
|
08002c0c <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE3getEv>:
|
|
value_type* get() { return std::__to_address(_M_ptr); }
|
|
8002c0c: b580 push {r7, lr}
|
|
8002c0e: b082 sub sp, #8
|
|
8002c10: af00 add r7, sp, #0
|
|
8002c12: 6078 str r0, [r7, #4]
|
|
8002c14: 687b ldr r3, [r7, #4]
|
|
8002c16: 685b ldr r3, [r3, #4]
|
|
8002c18: 4618 mov r0, r3
|
|
8002c1a: f000 f8fe bl 8002e1a <_ZSt12__to_addressISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEPT_S8_>
|
|
8002c1e: 4603 mov r3, r0
|
|
8002c20: 4618 mov r0, r3
|
|
8002c22: 3708 adds r7, #8
|
|
8002c24: 46bd mov sp, r7
|
|
8002c26: bd80 pop {r7, pc}
|
|
|
|
08002c28 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEC1IJEEES2_DpOT_>:
|
|
_Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args)
|
|
8002c28: b590 push {r4, r7, lr}
|
|
8002c2a: b083 sub sp, #12
|
|
8002c2c: af00 add r7, sp, #0
|
|
8002c2e: 6078 str r0, [r7, #4]
|
|
8002c30: 7039 strb r1, [r7, #0]
|
|
: _M_impl(__a)
|
|
8002c32: 687b ldr r3, [r7, #4]
|
|
8002c34: 4618 mov r0, r3
|
|
8002c36: f000 f8fb bl 8002e30 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EEC1Ev>
|
|
8002c3a: 4a0b ldr r2, [pc, #44] @ (8002c68 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEC1IJEEES2_DpOT_+0x40>)
|
|
8002c3c: 687b ldr r3, [r7, #4]
|
|
8002c3e: 601a str r2, [r3, #0]
|
|
8002c40: 687b ldr r3, [r7, #4]
|
|
8002c42: 330c adds r3, #12
|
|
8002c44: 4621 mov r1, r4
|
|
8002c46: 4618 mov r0, r3
|
|
8002c48: f000 f908 bl 8002e5c <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE5_ImplC1ES2_>
|
|
allocator_traits<_Alloc>::construct(__a, _M_ptr(),
|
|
8002c4c: 6878 ldr r0, [r7, #4]
|
|
8002c4e: f000 f81c bl 8002c8a <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE6_M_ptrEv>
|
|
8002c52: 4602 mov r2, r0
|
|
8002c54: 463b mov r3, r7
|
|
8002c56: 4611 mov r1, r2
|
|
8002c58: 4618 mov r0, r3
|
|
8002c5a: f000 f90e bl 8002e7a <_ZNSt16allocator_traitsISaIvEE9constructIN5tasks8SpamTaskEJEEEvRS0_PT_DpOT0_>
|
|
}
|
|
8002c5e: 687b ldr r3, [r7, #4]
|
|
8002c60: 4618 mov r0, r3
|
|
8002c62: 370c adds r7, #12
|
|
8002c64: 46bd mov sp, r7
|
|
8002c66: bd90 pop {r4, r7, pc}
|
|
8002c68: 08013060 .word 0x08013060
|
|
|
|
08002c6c <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEaSEDn>:
|
|
operator=(std::nullptr_t) noexcept
|
|
8002c6c: b480 push {r7}
|
|
8002c6e: b083 sub sp, #12
|
|
8002c70: af00 add r7, sp, #0
|
|
8002c72: 6078 str r0, [r7, #4]
|
|
8002c74: 6039 str r1, [r7, #0]
|
|
_M_ptr = nullptr;
|
|
8002c76: 687b ldr r3, [r7, #4]
|
|
8002c78: 2200 movs r2, #0
|
|
8002c7a: 605a str r2, [r3, #4]
|
|
return *this;
|
|
8002c7c: 687b ldr r3, [r7, #4]
|
|
}
|
|
8002c7e: 4618 mov r0, r3
|
|
8002c80: 370c adds r7, #12
|
|
8002c82: 46bd mov sp, r7
|
|
8002c84: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002c88: 4770 bx lr
|
|
|
|
08002c8a <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE6_M_ptrEv>:
|
|
_Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); }
|
|
8002c8a: b580 push {r7, lr}
|
|
8002c8c: b082 sub sp, #8
|
|
8002c8e: af00 add r7, sp, #0
|
|
8002c90: 6078 str r0, [r7, #4]
|
|
8002c92: 687b ldr r3, [r7, #4]
|
|
8002c94: 330c adds r3, #12
|
|
8002c96: 4618 mov r0, r3
|
|
8002c98: f000 f8fb bl 8002e92 <_ZN9__gnu_cxx16__aligned_bufferIN5tasks8SpamTaskEE6_M_ptrEv>
|
|
8002c9c: 4603 mov r3, r0
|
|
8002c9e: 4618 mov r0, r3
|
|
8002ca0: 3708 adds r7, #8
|
|
8002ca2: 46bd mov sp, r7
|
|
8002ca4: bd80 pop {r7, pc}
|
|
|
|
08002ca6 <_ZNSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE13_M_clone_nodeILb0ENS5_11_Alloc_nodeEEEPSt13_Rb_tree_nodeItESA_RT0_>:
|
|
_M_clone_node(_Link_type __x, _NodeGen& __node_gen)
|
|
8002ca6: b580 push {r7, lr}
|
|
8002ca8: b086 sub sp, #24
|
|
8002caa: af00 add r7, sp, #0
|
|
8002cac: 60f8 str r0, [r7, #12]
|
|
8002cae: 60b9 str r1, [r7, #8]
|
|
8002cb0: 607a str r2, [r7, #4]
|
|
= __node_gen(_GLIBCXX_FORWARD(_Vp, *__x->_M_valptr()));
|
|
8002cb2: 68b8 ldr r0, [r7, #8]
|
|
8002cb4: f7ff fcbb bl 800262e <_ZNSt13_Rb_tree_nodeItE9_M_valptrEv>
|
|
8002cb8: 4603 mov r3, r0
|
|
8002cba: 4618 mov r0, r3
|
|
8002cbc: f7fe ff17 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8002cc0: 4603 mov r3, r0
|
|
8002cc2: 4619 mov r1, r3
|
|
8002cc4: 6878 ldr r0, [r7, #4]
|
|
8002cc6: f7ff fa1f bl 8002108 <_ZNKSt8_Rb_treeIttSt9_IdentityItESt4lessItESaItEE11_Alloc_nodeclIRKtEEPSt13_Rb_tree_nodeItEOT_>
|
|
8002cca: 6178 str r0, [r7, #20]
|
|
__tmp->_M_color = __x->_M_color;
|
|
8002ccc: 68bb ldr r3, [r7, #8]
|
|
8002cce: 781a ldrb r2, [r3, #0]
|
|
8002cd0: 697b ldr r3, [r7, #20]
|
|
8002cd2: 701a strb r2, [r3, #0]
|
|
__tmp->_M_left = 0;
|
|
8002cd4: 697b ldr r3, [r7, #20]
|
|
8002cd6: 2200 movs r2, #0
|
|
8002cd8: 609a str r2, [r3, #8]
|
|
__tmp->_M_right = 0;
|
|
8002cda: 697b ldr r3, [r7, #20]
|
|
8002cdc: 2200 movs r2, #0
|
|
8002cde: 60da str r2, [r3, #12]
|
|
return __tmp;
|
|
8002ce0: 697b ldr r3, [r7, #20]
|
|
}
|
|
8002ce2: 4618 mov r0, r3
|
|
8002ce4: 3718 adds r7, #24
|
|
8002ce6: 46bd mov sp, r7
|
|
8002ce8: bd80 pop {r7, pc}
|
|
|
|
08002cea <_ZN9__gnu_cxx16__aligned_membufItE7_M_addrEv>:
|
|
_M_addr() noexcept
|
|
8002cea: b480 push {r7}
|
|
8002cec: b083 sub sp, #12
|
|
8002cee: af00 add r7, sp, #0
|
|
8002cf0: 6078 str r0, [r7, #4]
|
|
{ return static_cast<void*>(&_M_storage); }
|
|
8002cf2: 687b ldr r3, [r7, #4]
|
|
8002cf4: 4618 mov r0, r3
|
|
8002cf6: 370c adds r7, #12
|
|
8002cf8: 46bd mov sp, r7
|
|
8002cfa: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002cfe: 4770 bx lr
|
|
|
|
08002d00 <_ZNK9__gnu_cxx16__aligned_membufItE7_M_addrEv>:
|
|
_M_addr() const noexcept
|
|
8002d00: b480 push {r7}
|
|
8002d02: b083 sub sp, #12
|
|
8002d04: af00 add r7, sp, #0
|
|
8002d06: 6078 str r0, [r7, #4]
|
|
{ return static_cast<const void*>(&_M_storage); }
|
|
8002d08: 687b ldr r3, [r7, #4]
|
|
8002d0a: 4618 mov r0, r3
|
|
8002d0c: 370c adds r7, #12
|
|
8002d0e: 46bd mov sp, r7
|
|
8002d10: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002d14: 4770 bx lr
|
|
|
|
08002d16 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE8allocateERS2_j>:
|
|
allocate(allocator_type& __a, size_type __n)
|
|
8002d16: b580 push {r7, lr}
|
|
8002d18: b082 sub sp, #8
|
|
8002d1a: af00 add r7, sp, #0
|
|
8002d1c: 6078 str r0, [r7, #4]
|
|
8002d1e: 6039 str r1, [r7, #0]
|
|
{ return __a.allocate(__n); }
|
|
8002d20: 2200 movs r2, #0
|
|
8002d22: 6839 ldr r1, [r7, #0]
|
|
8002d24: 6878 ldr r0, [r7, #4]
|
|
8002d26: f000 f8c1 bl 8002eac <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE8allocateEjPKv>
|
|
8002d2a: 4603 mov r3, r0
|
|
8002d2c: 4618 mov r0, r3
|
|
8002d2e: 3708 adds r7, #8
|
|
8002d30: 46bd mov sp, r7
|
|
8002d32: bd80 pop {r7, pc}
|
|
|
|
08002d34 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeItEEE9constructItJRKtEEEvRS2_PT_DpOT0_>:
|
|
construct(allocator_type& __a __attribute__((__unused__)), _Up* __p,
|
|
8002d34: b580 push {r7, lr}
|
|
8002d36: b084 sub sp, #16
|
|
8002d38: af00 add r7, sp, #0
|
|
8002d3a: 60f8 str r0, [r7, #12]
|
|
8002d3c: 60b9 str r1, [r7, #8]
|
|
8002d3e: 607a str r2, [r7, #4]
|
|
__a.construct(__p, std::forward<_Args>(__args)...);
|
|
8002d40: 6878 ldr r0, [r7, #4]
|
|
8002d42: f7fe fed4 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8002d46: 4603 mov r3, r0
|
|
8002d48: 461a mov r2, r3
|
|
8002d4a: 68b9 ldr r1, [r7, #8]
|
|
8002d4c: 68f8 ldr r0, [r7, #12]
|
|
8002d4e: f000 f8db bl 8002f08 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE9constructItJRKtEEEvPT_DpOT0_>
|
|
}
|
|
8002d52: bf00 nop
|
|
8002d54: 3710 adds r7, #16
|
|
8002d56: 46bd mov sp, r7
|
|
8002d58: bd80 pop {r7, pc}
|
|
|
|
08002d5a <_ZSt14__copy_move_a2ILb0ESt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEET1_T0_SA_S9_>:
|
|
__copy_move_a2(_II __first, _II __last, _OI __result)
|
|
8002d5a: b082 sub sp, #8
|
|
8002d5c: b580 push {r7, lr}
|
|
8002d5e: b086 sub sp, #24
|
|
8002d60: af02 add r7, sp, #8
|
|
8002d62: 60f8 str r0, [r7, #12]
|
|
8002d64: 60b9 str r1, [r7, #8]
|
|
8002d66: 607a str r2, [r7, #4]
|
|
8002d68: 61fb str r3, [r7, #28]
|
|
_Category>::__copy_m(__first, __last, __result);
|
|
8002d6a: 68f8 ldr r0, [r7, #12]
|
|
8002d6c: 6a3b ldr r3, [r7, #32]
|
|
8002d6e: 9300 str r3, [sp, #0]
|
|
8002d70: 69fb ldr r3, [r7, #28]
|
|
8002d72: 687a ldr r2, [r7, #4]
|
|
8002d74: 68b9 ldr r1, [r7, #8]
|
|
8002d76: f000 f8dd bl 8002f34 <_ZNSt11__copy_moveILb0ELb0ESt26bidirectional_iterator_tagE8__copy_mISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEEET0_T_SD_SC_>
|
|
8002d7a: bf00 nop
|
|
}
|
|
8002d7c: 68f8 ldr r0, [r7, #12]
|
|
8002d7e: 3710 adds r7, #16
|
|
8002d80: 46bd mov sp, r7
|
|
8002d82: e8bd 4080 ldmia.w sp!, {r7, lr}
|
|
8002d86: b002 add sp, #8
|
|
8002d88: 4770 bx lr
|
|
|
|
08002d8a <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEC1Ev>:
|
|
__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
8002d8a: b480 push {r7}
|
|
8002d8c: b083 sub sp, #12
|
|
8002d8e: af00 add r7, sp, #0
|
|
8002d90: 6078 str r0, [r7, #4]
|
|
8002d92: 687b ldr r3, [r7, #4]
|
|
8002d94: 4618 mov r0, r3
|
|
8002d96: 370c adds r7, #12
|
|
8002d98: 46bd mov sp, r7
|
|
8002d9a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002d9e: 4770 bx lr
|
|
|
|
08002da0 <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEED1Ev>:
|
|
~__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
8002da0: b480 push {r7}
|
|
8002da2: b083 sub sp, #12
|
|
8002da4: af00 add r7, sp, #0
|
|
8002da6: 6078 str r0, [r7, #4]
|
|
8002da8: 687b ldr r3, [r7, #4]
|
|
8002daa: 4618 mov r0, r3
|
|
8002dac: 370c adds r7, #12
|
|
8002dae: 46bd mov sp, r7
|
|
8002db0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002db4: 4770 bx lr
|
|
|
|
08002db6 <_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE8allocateERS7_j>:
|
|
allocate(allocator_type& __a, size_type __n)
|
|
8002db6: b580 push {r7, lr}
|
|
8002db8: b082 sub sp, #8
|
|
8002dba: af00 add r7, sp, #0
|
|
8002dbc: 6078 str r0, [r7, #4]
|
|
8002dbe: 6039 str r1, [r7, #0]
|
|
{ return __a.allocate(__n); }
|
|
8002dc0: 2200 movs r2, #0
|
|
8002dc2: 6839 ldr r1, [r7, #0]
|
|
8002dc4: 6878 ldr r0, [r7, #4]
|
|
8002dc6: f000 f8f1 bl 8002fac <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE8allocateEjPKv>
|
|
8002dca: 4603 mov r3, r0
|
|
8002dcc: 4618 mov r0, r3
|
|
8002dce: 3708 adds r7, #8
|
|
8002dd0: 46bd mov sp, r7
|
|
8002dd2: bd80 pop {r7, pc}
|
|
|
|
08002dd4 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEC1ERS7_PS6_>:
|
|
__allocated_ptr(_Alloc& __a, pointer __ptr) noexcept
|
|
8002dd4: b580 push {r7, lr}
|
|
8002dd6: b084 sub sp, #16
|
|
8002dd8: af00 add r7, sp, #0
|
|
8002dda: 60f8 str r0, [r7, #12]
|
|
8002ddc: 60b9 str r1, [r7, #8]
|
|
8002dde: 607a str r2, [r7, #4]
|
|
: _M_alloc(std::__addressof(__a)), _M_ptr(__ptr)
|
|
8002de0: 68b8 ldr r0, [r7, #8]
|
|
8002de2: f000 f911 bl 8003008 <_ZSt11__addressofISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEPT_RS8_>
|
|
8002de6: 4602 mov r2, r0
|
|
8002de8: 68fb ldr r3, [r7, #12]
|
|
8002dea: 601a str r2, [r3, #0]
|
|
8002dec: 68fb ldr r3, [r7, #12]
|
|
8002dee: 687a ldr r2, [r7, #4]
|
|
8002df0: 605a str r2, [r3, #4]
|
|
{ }
|
|
8002df2: 68fb ldr r3, [r7, #12]
|
|
8002df4: 4618 mov r0, r3
|
|
8002df6: 3710 adds r7, #16
|
|
8002df8: 46bd mov sp, r7
|
|
8002dfa: bd80 pop {r7, pc}
|
|
|
|
08002dfc <_ZNSt16allocator_traitsISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEE10deallocateERS7_PS6_j>:
|
|
deallocate(allocator_type& __a, pointer __p, size_type __n)
|
|
8002dfc: b580 push {r7, lr}
|
|
8002dfe: b084 sub sp, #16
|
|
8002e00: af00 add r7, sp, #0
|
|
8002e02: 60f8 str r0, [r7, #12]
|
|
8002e04: 60b9 str r1, [r7, #8]
|
|
8002e06: 607a str r2, [r7, #4]
|
|
{ __a.deallocate(__p, __n); }
|
|
8002e08: 687a ldr r2, [r7, #4]
|
|
8002e0a: 68b9 ldr r1, [r7, #8]
|
|
8002e0c: 68f8 ldr r0, [r7, #12]
|
|
8002e0e: f000 f906 bl 800301e <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE10deallocateEPS6_j>
|
|
8002e12: bf00 nop
|
|
8002e14: 3710 adds r7, #16
|
|
8002e16: 46bd mov sp, r7
|
|
8002e18: bd80 pop {r7, pc}
|
|
|
|
08002e1a <_ZSt12__to_addressISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEPT_S8_>:
|
|
template<typename _Ptr, typename _Tp>
|
|
using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>;
|
|
|
|
template<typename _Tp>
|
|
constexpr _Tp*
|
|
__to_address(_Tp* __ptr) noexcept
|
|
8002e1a: b480 push {r7}
|
|
8002e1c: b083 sub sp, #12
|
|
8002e1e: af00 add r7, sp, #0
|
|
8002e20: 6078 str r0, [r7, #4]
|
|
{
|
|
static_assert(!std::is_function<_Tp>::value, "not a function pointer");
|
|
return __ptr;
|
|
8002e22: 687b ldr r3, [r7, #4]
|
|
}
|
|
8002e24: 4618 mov r0, r3
|
|
8002e26: 370c adds r7, #12
|
|
8002e28: 46bd mov sp, r7
|
|
8002e2a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002e2e: 4770 bx lr
|
|
|
|
08002e30 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EEC1Ev>:
|
|
_Sp_counted_base() noexcept
|
|
8002e30: b480 push {r7}
|
|
8002e32: b083 sub sp, #12
|
|
8002e34: af00 add r7, sp, #0
|
|
8002e36: 6078 str r0, [r7, #4]
|
|
: _M_use_count(1), _M_weak_count(1) { }
|
|
8002e38: 4a07 ldr r2, [pc, #28] @ (8002e58 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EEC1Ev+0x28>)
|
|
8002e3a: 687b ldr r3, [r7, #4]
|
|
8002e3c: 601a str r2, [r3, #0]
|
|
8002e3e: 687b ldr r3, [r7, #4]
|
|
8002e40: 2201 movs r2, #1
|
|
8002e42: 605a str r2, [r3, #4]
|
|
8002e44: 687b ldr r3, [r7, #4]
|
|
8002e46: 2201 movs r2, #1
|
|
8002e48: 609a str r2, [r3, #8]
|
|
8002e4a: 687b ldr r3, [r7, #4]
|
|
8002e4c: 4618 mov r0, r3
|
|
8002e4e: 370c adds r7, #12
|
|
8002e50: 46bd mov sp, r7
|
|
8002e52: f85d 7b04 ldr.w r7, [sp], #4
|
|
8002e56: 4770 bx lr
|
|
8002e58: 0801307c .word 0x0801307c
|
|
|
|
08002e5c <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE5_ImplC1ES2_>:
|
|
explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { }
|
|
8002e5c: b580 push {r7, lr}
|
|
8002e5e: b082 sub sp, #8
|
|
8002e60: af00 add r7, sp, #0
|
|
8002e62: 6078 str r0, [r7, #4]
|
|
8002e64: 7039 strb r1, [r7, #0]
|
|
8002e66: 463b mov r3, r7
|
|
8002e68: 4619 mov r1, r3
|
|
8002e6a: 6878 ldr r0, [r7, #4]
|
|
8002e6c: f000 f8e9 bl 8003042 <_ZNSt14_Sp_ebo_helperILi0ESaIvELb1EEC1ERKS0_>
|
|
8002e70: 687b ldr r3, [r7, #4]
|
|
8002e72: 4618 mov r0, r3
|
|
8002e74: 3708 adds r7, #8
|
|
8002e76: 46bd mov sp, r7
|
|
8002e78: bd80 pop {r7, pc}
|
|
|
|
08002e7a <_ZNSt16allocator_traitsISaIvEE9constructIN5tasks8SpamTaskEJEEEvRS0_PT_DpOT0_>:
|
|
* in C++11, C++14 and C++17. Changed in C++20 to call
|
|
* `std::construct_at(__p, std::forward<_Args>(__args)...)` instead.
|
|
*/
|
|
template<typename _Up, typename... _Args>
|
|
static _GLIBCXX20_CONSTEXPR void
|
|
construct(allocator_type&, _Up* __p, _Args&&... __args)
|
|
8002e7a: b580 push {r7, lr}
|
|
8002e7c: b082 sub sp, #8
|
|
8002e7e: af00 add r7, sp, #0
|
|
8002e80: 6078 str r0, [r7, #4]
|
|
8002e82: 6039 str r1, [r7, #0]
|
|
noexcept(std::is_nothrow_constructible<_Up, _Args...>::value)
|
|
{ std::_Construct(__p, std::forward<_Args>(__args)...); }
|
|
8002e84: 6838 ldr r0, [r7, #0]
|
|
8002e86: f000 f8e8 bl 800305a <_ZSt10_ConstructIN5tasks8SpamTaskEJEEvPT_DpOT0_>
|
|
8002e8a: bf00 nop
|
|
8002e8c: 3708 adds r7, #8
|
|
8002e8e: 46bd mov sp, r7
|
|
8002e90: bd80 pop {r7, pc}
|
|
|
|
08002e92 <_ZN9__gnu_cxx16__aligned_bufferIN5tasks8SpamTaskEE6_M_ptrEv>:
|
|
{
|
|
return static_cast<const void*>(&_M_storage);
|
|
}
|
|
|
|
_Tp*
|
|
_M_ptr() noexcept
|
|
8002e92: b580 push {r7, lr}
|
|
8002e94: b082 sub sp, #8
|
|
8002e96: af00 add r7, sp, #0
|
|
8002e98: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp*>(_M_addr()); }
|
|
8002e9a: 6878 ldr r0, [r7, #4]
|
|
8002e9c: f000 f8ee bl 800307c <_ZN9__gnu_cxx16__aligned_bufferIN5tasks8SpamTaskEE7_M_addrEv>
|
|
8002ea0: 4603 mov r3, r0
|
|
8002ea2: 4618 mov r0, r3
|
|
8002ea4: 3708 adds r7, #8
|
|
8002ea6: 46bd mov sp, r7
|
|
8002ea8: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08002eac <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE8allocateEjPKv>:
|
|
allocate(size_type __n, const void* = static_cast<const void*>(0))
|
|
8002eac: b580 push {r7, lr}
|
|
8002eae: b084 sub sp, #16
|
|
8002eb0: af00 add r7, sp, #0
|
|
8002eb2: 60f8 str r0, [r7, #12]
|
|
8002eb4: 60b9 str r1, [r7, #8]
|
|
8002eb6: 607a str r2, [r7, #4]
|
|
if (__builtin_expect(__n > this->_M_max_size(), false))
|
|
8002eb8: 68f8 ldr r0, [r7, #12]
|
|
8002eba: f000 f8eb bl 8003094 <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeItEE11_M_max_sizeEv>
|
|
8002ebe: 4602 mov r2, r0
|
|
8002ec0: 68bb ldr r3, [r7, #8]
|
|
8002ec2: 4293 cmp r3, r2
|
|
8002ec4: bf8c ite hi
|
|
8002ec6: 2301 movhi r3, #1
|
|
8002ec8: 2300 movls r3, #0
|
|
8002eca: b2db uxtb r3, r3
|
|
8002ecc: 2b00 cmp r3, #0
|
|
8002ece: bf14 ite ne
|
|
8002ed0: 2301 movne r3, #1
|
|
8002ed2: 2300 moveq r3, #0
|
|
8002ed4: b2db uxtb r3, r3
|
|
8002ed6: 2b00 cmp r3, #0
|
|
8002ed8: d007 beq.n 8002eea <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE8allocateEjPKv+0x3e>
|
|
if (__n > (std::size_t(-1) / sizeof(_Tp)))
|
|
8002eda: 68bb ldr r3, [r7, #8]
|
|
8002edc: 4a09 ldr r2, [pc, #36] @ (8002f04 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE8allocateEjPKv+0x58>)
|
|
8002ede: 4293 cmp r3, r2
|
|
8002ee0: d901 bls.n 8002ee6 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE8allocateEjPKv+0x3a>
|
|
std::__throw_bad_array_new_length();
|
|
8002ee2: f00c fcf8 bl 800f8d6 <_ZSt28__throw_bad_array_new_lengthv>
|
|
std::__throw_bad_alloc();
|
|
8002ee6: f00c fcf3 bl 800f8d0 <_ZSt17__throw_bad_allocv>
|
|
return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
|
|
8002eea: 68ba ldr r2, [r7, #8]
|
|
8002eec: 4613 mov r3, r2
|
|
8002eee: 009b lsls r3, r3, #2
|
|
8002ef0: 4413 add r3, r2
|
|
8002ef2: 009b lsls r3, r3, #2
|
|
8002ef4: 4618 mov r0, r3
|
|
8002ef6: f00c fc19 bl 800f72c <_Znwj>
|
|
8002efa: 4603 mov r3, r0
|
|
}
|
|
8002efc: 4618 mov r0, r3
|
|
8002efe: 3710 adds r7, #16
|
|
8002f00: 46bd mov sp, r7
|
|
8002f02: bd80 pop {r7, pc}
|
|
8002f04: 0ccccccc .word 0x0ccccccc
|
|
|
|
08002f08 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeItEE9constructItJRKtEEEvPT_DpOT0_>:
|
|
construct(_Up* __p, _Args&&... __args)
|
|
8002f08: b590 push {r4, r7, lr}
|
|
8002f0a: b085 sub sp, #20
|
|
8002f0c: af00 add r7, sp, #0
|
|
8002f0e: 60f8 str r0, [r7, #12]
|
|
8002f10: 60b9 str r1, [r7, #8]
|
|
8002f12: 607a str r2, [r7, #4]
|
|
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
|
|
8002f14: 68bb ldr r3, [r7, #8]
|
|
8002f16: 4619 mov r1, r3
|
|
8002f18: 2002 movs r0, #2
|
|
8002f1a: f7fd ffcd bl 8000eb8 <_ZnwjPv>
|
|
8002f1e: 4604 mov r4, r0
|
|
8002f20: 6878 ldr r0, [r7, #4]
|
|
8002f22: f7fe fde4 bl 8001aee <_ZSt7forwardIRKtEOT_RNSt16remove_referenceIS2_E4typeE>
|
|
8002f26: 4603 mov r3, r0
|
|
8002f28: 881b ldrh r3, [r3, #0]
|
|
8002f2a: 8023 strh r3, [r4, #0]
|
|
8002f2c: bf00 nop
|
|
8002f2e: 3714 adds r7, #20
|
|
8002f30: 46bd mov sp, r7
|
|
8002f32: bd90 pop {r4, r7, pc}
|
|
|
|
08002f34 <_ZNSt11__copy_moveILb0ELb0ESt26bidirectional_iterator_tagE8__copy_mISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEEET0_T_SD_SC_>:
|
|
__copy_m(_II __first, _II __last, _OI __result)
|
|
8002f34: b082 sub sp, #8
|
|
8002f36: b590 push {r4, r7, lr}
|
|
8002f38: b085 sub sp, #20
|
|
8002f3a: af00 add r7, sp, #0
|
|
8002f3c: 60f8 str r0, [r7, #12]
|
|
8002f3e: 60b9 str r1, [r7, #8]
|
|
8002f40: 607a str r2, [r7, #4]
|
|
8002f42: 627b str r3, [r7, #36] @ 0x24
|
|
for (; __first != __last; ++__result, (void)++__first)
|
|
8002f44: e019 b.n 8002f7a <_ZNSt11__copy_moveILb0ELb0ESt26bidirectional_iterator_tagE8__copy_mISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEEET0_T_SD_SC_+0x46>
|
|
*__result = *__first;
|
|
8002f46: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8002f4a: 4618 mov r0, r3
|
|
8002f4c: f7ff fa8a bl 8002464 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEdeEv>
|
|
8002f50: 4604 mov r4, r0
|
|
8002f52: f107 0308 add.w r3, r7, #8
|
|
8002f56: 4618 mov r0, r3
|
|
8002f58: f7ff fa8f bl 800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>
|
|
8002f5c: 4603 mov r3, r0
|
|
8002f5e: 4619 mov r1, r3
|
|
8002f60: 4620 mov r0, r4
|
|
8002f62: f7ff fa98 bl 8002496 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEaSERKt>
|
|
for (; __first != __last; ++__result, (void)++__first)
|
|
8002f66: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8002f6a: 4618 mov r0, r3
|
|
8002f6c: f7ff fabc bl 80024e8 <_ZNSt15insert_iteratorISt3setItSt4lessItESaItEEEppEv>
|
|
8002f70: f107 0308 add.w r3, r7, #8
|
|
8002f74: 4618 mov r0, r3
|
|
8002f76: f7ff faa6 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
8002f7a: 1d3a adds r2, r7, #4
|
|
8002f7c: f107 0308 add.w r3, r7, #8
|
|
8002f80: 4611 mov r1, r2
|
|
8002f82: 4618 mov r0, r3
|
|
8002f84: f7ff fa3e bl 8002404 <_ZStneRKSt23_Rb_tree_const_iteratorItES2_>
|
|
8002f88: 4603 mov r3, r0
|
|
8002f8a: 2b00 cmp r3, #0
|
|
8002f8c: d1db bne.n 8002f46 <_ZNSt11__copy_moveILb0ELb0ESt26bidirectional_iterator_tagE8__copy_mISt23_Rb_tree_const_iteratorItESt15insert_iteratorISt3setItSt4lessItESaItEEEEET0_T_SD_SC_+0x12>
|
|
return __result;
|
|
8002f8e: 68fb ldr r3, [r7, #12]
|
|
8002f90: 461a mov r2, r3
|
|
8002f92: f107 0324 add.w r3, r7, #36 @ 0x24
|
|
8002f96: e893 0003 ldmia.w r3, {r0, r1}
|
|
8002f9a: e882 0003 stmia.w r2, {r0, r1}
|
|
}
|
|
8002f9e: 68f8 ldr r0, [r7, #12]
|
|
8002fa0: 3714 adds r7, #20
|
|
8002fa2: 46bd mov sp, r7
|
|
8002fa4: e8bd 4090 ldmia.w sp!, {r4, r7, lr}
|
|
8002fa8: b002 add sp, #8
|
|
8002faa: 4770 bx lr
|
|
|
|
08002fac <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE8allocateEjPKv>:
|
|
allocate(size_type __n, const void* = static_cast<const void*>(0))
|
|
8002fac: b580 push {r7, lr}
|
|
8002fae: b084 sub sp, #16
|
|
8002fb0: af00 add r7, sp, #0
|
|
8002fb2: 60f8 str r0, [r7, #12]
|
|
8002fb4: 60b9 str r1, [r7, #8]
|
|
8002fb6: 607a str r2, [r7, #4]
|
|
if (__builtin_expect(__n > this->_M_max_size(), false))
|
|
8002fb8: 68f8 ldr r0, [r7, #12]
|
|
8002fba: f000 f879 bl 80030b0 <_ZNKSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE11_M_max_sizeEv>
|
|
8002fbe: 4602 mov r2, r0
|
|
8002fc0: 68bb ldr r3, [r7, #8]
|
|
8002fc2: 4293 cmp r3, r2
|
|
8002fc4: bf8c ite hi
|
|
8002fc6: 2301 movhi r3, #1
|
|
8002fc8: 2300 movls r3, #0
|
|
8002fca: b2db uxtb r3, r3
|
|
8002fcc: 2b00 cmp r3, #0
|
|
8002fce: bf14 ite ne
|
|
8002fd0: 2301 movne r3, #1
|
|
8002fd2: 2300 moveq r3, #0
|
|
8002fd4: b2db uxtb r3, r3
|
|
8002fd6: 2b00 cmp r3, #0
|
|
8002fd8: d007 beq.n 8002fea <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE8allocateEjPKv+0x3e>
|
|
if (__n > (std::size_t(-1) / sizeof(_Tp)))
|
|
8002fda: 68bb ldr r3, [r7, #8]
|
|
8002fdc: 4a09 ldr r2, [pc, #36] @ (8003004 <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE8allocateEjPKv+0x58>)
|
|
8002fde: 4293 cmp r3, r2
|
|
8002fe0: d901 bls.n 8002fe6 <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE8allocateEjPKv+0x3a>
|
|
std::__throw_bad_array_new_length();
|
|
8002fe2: f00c fc78 bl 800f8d6 <_ZSt28__throw_bad_array_new_lengthv>
|
|
std::__throw_bad_alloc();
|
|
8002fe6: f00c fc73 bl 800f8d0 <_ZSt17__throw_bad_allocv>
|
|
return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
|
|
8002fea: 68bb ldr r3, [r7, #8]
|
|
8002fec: 2268 movs r2, #104 @ 0x68
|
|
8002fee: fb02 f303 mul.w r3, r2, r3
|
|
8002ff2: 4618 mov r0, r3
|
|
8002ff4: f00c fb9a bl 800f72c <_Znwj>
|
|
8002ff8: 4603 mov r3, r0
|
|
}
|
|
8002ffa: 4618 mov r0, r3
|
|
8002ffc: 3710 adds r7, #16
|
|
8002ffe: 46bd mov sp, r7
|
|
8003000: bd80 pop {r7, pc}
|
|
8003002: bf00 nop
|
|
8003004: 02762762 .word 0x02762762
|
|
|
|
08003008 <_ZSt11__addressofISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEPT_RS8_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
8003008: b480 push {r7}
|
|
800300a: b083 sub sp, #12
|
|
800300c: af00 add r7, sp, #0
|
|
800300e: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
8003010: 687b ldr r3, [r7, #4]
|
|
8003012: 4618 mov r0, r3
|
|
8003014: 370c adds r7, #12
|
|
8003016: 46bd mov sp, r7
|
|
8003018: f85d 7b04 ldr.w r7, [sp], #4
|
|
800301c: 4770 bx lr
|
|
|
|
0800301e <_ZNSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE10deallocateEPS6_j>:
|
|
deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
|
|
800301e: b580 push {r7, lr}
|
|
8003020: b084 sub sp, #16
|
|
8003022: af00 add r7, sp, #0
|
|
8003024: 60f8 str r0, [r7, #12]
|
|
8003026: 60b9 str r1, [r7, #8]
|
|
8003028: 607a str r2, [r7, #4]
|
|
_GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
|
|
800302a: 687b ldr r3, [r7, #4]
|
|
800302c: 2268 movs r2, #104 @ 0x68
|
|
800302e: fb02 f303 mul.w r3, r2, r3
|
|
8003032: 4619 mov r1, r3
|
|
8003034: 68b8 ldr r0, [r7, #8]
|
|
8003036: f00c fb75 bl 800f724 <_ZdlPvj>
|
|
}
|
|
800303a: bf00 nop
|
|
800303c: 3710 adds r7, #16
|
|
800303e: 46bd mov sp, r7
|
|
8003040: bd80 pop {r7, pc}
|
|
|
|
08003042 <_ZNSt14_Sp_ebo_helperILi0ESaIvELb1EEC1ERKS0_>:
|
|
explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { }
|
|
8003042: b480 push {r7}
|
|
8003044: b083 sub sp, #12
|
|
8003046: af00 add r7, sp, #0
|
|
8003048: 6078 str r0, [r7, #4]
|
|
800304a: 6039 str r1, [r7, #0]
|
|
800304c: 687b ldr r3, [r7, #4]
|
|
800304e: 4618 mov r0, r3
|
|
8003050: 370c adds r7, #12
|
|
8003052: 46bd mov sp, r7
|
|
8003054: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003058: 4770 bx lr
|
|
|
|
0800305a <_ZSt10_ConstructIN5tasks8SpamTaskEJEEvPT_DpOT0_>:
|
|
*/
|
|
#if __cplusplus >= 201103L
|
|
template<typename _Tp, typename... _Args>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline void
|
|
_Construct(_Tp* __p, _Args&&... __args)
|
|
800305a: b580 push {r7, lr}
|
|
800305c: b082 sub sp, #8
|
|
800305e: af00 add r7, sp, #0
|
|
8003060: 6078 str r0, [r7, #4]
|
|
// Allow std::_Construct to be used in constant expressions.
|
|
std::construct_at(__p, std::forward<_Args>(__args)...);
|
|
return;
|
|
}
|
|
#endif
|
|
::new((void*)__p) _Tp(std::forward<_Args>(__args)...);
|
|
8003062: 687b ldr r3, [r7, #4]
|
|
8003064: 4619 mov r1, r3
|
|
8003066: 205c movs r0, #92 @ 0x5c
|
|
8003068: f7fd ff26 bl 8000eb8 <_ZnwjPv>
|
|
800306c: 4603 mov r3, r0
|
|
800306e: 4618 mov r0, r3
|
|
8003070: f000 f8de bl 8003230 <_ZN5tasks8SpamTaskC1Ev>
|
|
}
|
|
8003074: bf00 nop
|
|
8003076: 3708 adds r7, #8
|
|
8003078: 46bd mov sp, r7
|
|
800307a: bd80 pop {r7, pc}
|
|
|
|
0800307c <_ZN9__gnu_cxx16__aligned_bufferIN5tasks8SpamTaskEE7_M_addrEv>:
|
|
_M_addr() noexcept
|
|
800307c: b480 push {r7}
|
|
800307e: b083 sub sp, #12
|
|
8003080: af00 add r7, sp, #0
|
|
8003082: 6078 str r0, [r7, #4]
|
|
return static_cast<void*>(&_M_storage);
|
|
8003084: 687b ldr r3, [r7, #4]
|
|
}
|
|
8003086: 4618 mov r0, r3
|
|
8003088: 370c adds r7, #12
|
|
800308a: 46bd mov sp, r7
|
|
800308c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003090: 4770 bx lr
|
|
...
|
|
|
|
08003094 <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeItEE11_M_max_sizeEv>:
|
|
{ return false; }
|
|
#endif
|
|
|
|
private:
|
|
_GLIBCXX_CONSTEXPR size_type
|
|
_M_max_size() const _GLIBCXX_USE_NOEXCEPT
|
|
8003094: b480 push {r7}
|
|
8003096: b083 sub sp, #12
|
|
8003098: af00 add r7, sp, #0
|
|
800309a: 6078 str r0, [r7, #4]
|
|
{
|
|
#if __PTRDIFF_MAX__ < __SIZE_MAX__
|
|
return std::size_t(__PTRDIFF_MAX__) / sizeof(_Tp);
|
|
800309c: 4b03 ldr r3, [pc, #12] @ (80030ac <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeItEE11_M_max_sizeEv+0x18>)
|
|
#else
|
|
return std::size_t(-1) / sizeof(_Tp);
|
|
#endif
|
|
}
|
|
800309e: 4618 mov r0, r3
|
|
80030a0: 370c adds r7, #12
|
|
80030a2: 46bd mov sp, r7
|
|
80030a4: f85d 7b04 ldr.w r7, [sp], #4
|
|
80030a8: 4770 bx lr
|
|
80030aa: bf00 nop
|
|
80030ac: 06666666 .word 0x06666666
|
|
|
|
080030b0 <_ZNKSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE11_M_max_sizeEv>:
|
|
_M_max_size() const _GLIBCXX_USE_NOEXCEPT
|
|
80030b0: b480 push {r7}
|
|
80030b2: b083 sub sp, #12
|
|
80030b4: af00 add r7, sp, #0
|
|
80030b6: 6078 str r0, [r7, #4]
|
|
return std::size_t(__PTRDIFF_MAX__) / sizeof(_Tp);
|
|
80030b8: 4b03 ldr r3, [pc, #12] @ (80030c8 <_ZNKSt15__new_allocatorISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEE11_M_max_sizeEv+0x18>)
|
|
}
|
|
80030ba: 4618 mov r0, r3
|
|
80030bc: 370c adds r7, #12
|
|
80030be: 46bd mov sp, r7
|
|
80030c0: f85d 7b04 ldr.w r7, [sp], #4
|
|
80030c4: 4770 bx lr
|
|
80030c6: bf00 nop
|
|
80030c8: 013b13b1 .word 0x013b13b1
|
|
|
|
080030cc <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EED1Ev>:
|
|
~_Sp_counted_ptr_inplace() noexcept { }
|
|
80030cc: b580 push {r7, lr}
|
|
80030ce: b082 sub sp, #8
|
|
80030d0: af00 add r7, sp, #0
|
|
80030d2: 6078 str r0, [r7, #4]
|
|
80030d4: 4a05 ldr r2, [pc, #20] @ (80030ec <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EED1Ev+0x20>)
|
|
80030d6: 687b ldr r3, [r7, #4]
|
|
80030d8: 601a str r2, [r3, #0]
|
|
80030da: 687b ldr r3, [r7, #4]
|
|
80030dc: 4618 mov r0, r3
|
|
80030de: f7fe fa29 bl 8001534 <_ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
80030e2: 687b ldr r3, [r7, #4]
|
|
80030e4: 4618 mov r0, r3
|
|
80030e6: 3708 adds r7, #8
|
|
80030e8: 46bd mov sp, r7
|
|
80030ea: bd80 pop {r7, pc}
|
|
80030ec: 08013060 .word 0x08013060
|
|
|
|
080030f0 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EED0Ev>:
|
|
80030f0: b580 push {r7, lr}
|
|
80030f2: b082 sub sp, #8
|
|
80030f4: af00 add r7, sp, #0
|
|
80030f6: 6078 str r0, [r7, #4]
|
|
80030f8: 6878 ldr r0, [r7, #4]
|
|
80030fa: f7ff ffe7 bl 80030cc <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
80030fe: 2168 movs r1, #104 @ 0x68
|
|
8003100: 6878 ldr r0, [r7, #4]
|
|
8003102: f00c fb0f bl 800f724 <_ZdlPvj>
|
|
8003106: 687b ldr r3, [r7, #4]
|
|
8003108: 4618 mov r0, r3
|
|
800310a: 3708 adds r7, #8
|
|
800310c: 46bd mov sp, r7
|
|
800310e: bd80 pop {r7, pc}
|
|
|
|
08003110 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE10_M_disposeEv>:
|
|
_M_dispose() noexcept
|
|
8003110: b590 push {r4, r7, lr}
|
|
8003112: b083 sub sp, #12
|
|
8003114: af00 add r7, sp, #0
|
|
8003116: 6078 str r0, [r7, #4]
|
|
allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr());
|
|
8003118: 687b ldr r3, [r7, #4]
|
|
800311a: 330c adds r3, #12
|
|
800311c: 4618 mov r0, r3
|
|
800311e: f000 f856 bl 80031ce <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE5_Impl8_M_allocEv>
|
|
8003122: 4604 mov r4, r0
|
|
8003124: 6878 ldr r0, [r7, #4]
|
|
8003126: f7ff fdb0 bl 8002c8a <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE6_M_ptrEv>
|
|
800312a: 4603 mov r3, r0
|
|
800312c: 4619 mov r1, r3
|
|
800312e: 4620 mov r0, r4
|
|
8003130: f000 f859 bl 80031e6 <_ZNSt16allocator_traitsISaIvEE7destroyIN5tasks8SpamTaskEEEvRS0_PT_>
|
|
}
|
|
8003134: bf00 nop
|
|
8003136: 370c adds r7, #12
|
|
8003138: 46bd mov sp, r7
|
|
800313a: bd90 pop {r4, r7, pc}
|
|
|
|
0800313c <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE10_M_destroyEv>:
|
|
_M_destroy() noexcept
|
|
800313c: b580 push {r7, lr}
|
|
800313e: b086 sub sp, #24
|
|
8003140: af00 add r7, sp, #0
|
|
8003142: 6078 str r0, [r7, #4]
|
|
__allocator_type __a(_M_impl._M_alloc());
|
|
8003144: 687b ldr r3, [r7, #4]
|
|
8003146: 330c adds r3, #12
|
|
8003148: 4618 mov r0, r3
|
|
800314a: f000 f840 bl 80031ce <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE5_Impl8_M_allocEv>
|
|
800314e: 4602 mov r2, r0
|
|
8003150: f107 0314 add.w r3, r7, #20
|
|
8003154: 4611 mov r1, r2
|
|
8003156: 4618 mov r0, r3
|
|
8003158: f7ff fd17 bl 8002b8a <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEC1IvEERKSaIT_E>
|
|
__allocated_ptr<__allocator_type> __guard_ptr{ __a, this };
|
|
800315c: f107 0114 add.w r1, r7, #20
|
|
8003160: f107 030c add.w r3, r7, #12
|
|
8003164: 687a ldr r2, [r7, #4]
|
|
8003166: 4618 mov r0, r3
|
|
8003168: f7ff fe34 bl 8002dd4 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEEC1ERS7_PS6_>
|
|
this->~_Sp_counted_ptr_inplace();
|
|
800316c: 6878 ldr r0, [r7, #4]
|
|
800316e: f7ff ffad bl 80030cc <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EED1Ev>
|
|
}
|
|
8003172: f107 030c add.w r3, r7, #12
|
|
8003176: 4618 mov r0, r3
|
|
8003178: f7ff fd33 bl 8002be2 <_ZNSt15__allocated_ptrISaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEEED1Ev>
|
|
800317c: f107 0314 add.w r3, r7, #20
|
|
8003180: 4618 mov r0, r3
|
|
8003182: f7ff fd0f bl 8002ba4 <_ZNSaISt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EEED1Ev>
|
|
8003186: 3718 adds r7, #24
|
|
8003188: 46bd mov sp, r7
|
|
800318a: bd80 pop {r7, pc}
|
|
|
|
0800318c <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info>:
|
|
_M_get_deleter(const std::type_info& __ti) noexcept override
|
|
800318c: b580 push {r7, lr}
|
|
800318e: b084 sub sp, #16
|
|
8003190: af00 add r7, sp, #0
|
|
8003192: 6078 str r0, [r7, #4]
|
|
8003194: 6039 str r1, [r7, #0]
|
|
auto __ptr = const_cast<typename remove_cv<_Tp>::type*>(_M_ptr());
|
|
8003196: 6878 ldr r0, [r7, #4]
|
|
8003198: f7ff fd77 bl 8002c8a <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE6_M_ptrEv>
|
|
800319c: 60f8 str r0, [r7, #12]
|
|
if (&__ti == &_Sp_make_shared_tag::_S_ti()
|
|
800319e: f7fd fedf bl 8000f60 <_ZNSt19_Sp_make_shared_tag5_S_tiEv>
|
|
80031a2: 4602 mov r2, r0
|
|
||
|
|
80031a4: 683b ldr r3, [r7, #0]
|
|
80031a6: 4293 cmp r3, r2
|
|
80031a8: d005 beq.n 80031b6 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info+0x2a>
|
|
_Sp_make_shared_tag::_S_eq(__ti)
|
|
80031aa: 6838 ldr r0, [r7, #0]
|
|
80031ac: f00c fb9c bl 800f8e8 <_ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info>
|
|
80031b0: 4603 mov r3, r0
|
|
||
|
|
80031b2: 2b00 cmp r3, #0
|
|
80031b4: d001 beq.n 80031ba <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info+0x2e>
|
|
80031b6: 2301 movs r3, #1
|
|
80031b8: e000 b.n 80031bc <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info+0x30>
|
|
80031ba: 2300 movs r3, #0
|
|
if (&__ti == &_Sp_make_shared_tag::_S_ti()
|
|
80031bc: 2b00 cmp r3, #0
|
|
80031be: d001 beq.n 80031c4 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info+0x38>
|
|
return __ptr;
|
|
80031c0: 68fb ldr r3, [r7, #12]
|
|
80031c2: e000 b.n 80031c6 <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE14_M_get_deleterERKSt9type_info+0x3a>
|
|
return nullptr;
|
|
80031c4: 2300 movs r3, #0
|
|
}
|
|
80031c6: 4618 mov r0, r3
|
|
80031c8: 3710 adds r7, #16
|
|
80031ca: 46bd mov sp, r7
|
|
80031cc: bd80 pop {r7, pc}
|
|
|
|
080031ce <_ZNSt23_Sp_counted_ptr_inplaceIN5tasks8SpamTaskESaIvELN9__gnu_cxx12_Lock_policyE0EE5_Impl8_M_allocEv>:
|
|
_Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); }
|
|
80031ce: b580 push {r7, lr}
|
|
80031d0: b082 sub sp, #8
|
|
80031d2: af00 add r7, sp, #0
|
|
80031d4: 6078 str r0, [r7, #4]
|
|
80031d6: 6878 ldr r0, [r7, #4]
|
|
80031d8: f000 f811 bl 80031fe <_ZNSt14_Sp_ebo_helperILi0ESaIvELb1EE6_S_getERS1_>
|
|
80031dc: 4603 mov r3, r0
|
|
80031de: 4618 mov r0, r3
|
|
80031e0: 3708 adds r7, #8
|
|
80031e2: 46bd mov sp, r7
|
|
80031e4: bd80 pop {r7, pc}
|
|
|
|
080031e6 <_ZNSt16allocator_traitsISaIvEE7destroyIN5tasks8SpamTaskEEEvRS0_PT_>:
|
|
*
|
|
* Invokes the destructor for `*__p`.
|
|
*/
|
|
template<typename _Up>
|
|
static _GLIBCXX20_CONSTEXPR void
|
|
destroy(allocator_type&, _Up* __p)
|
|
80031e6: b580 push {r7, lr}
|
|
80031e8: b082 sub sp, #8
|
|
80031ea: af00 add r7, sp, #0
|
|
80031ec: 6078 str r0, [r7, #4]
|
|
80031ee: 6039 str r1, [r7, #0]
|
|
noexcept(is_nothrow_destructible<_Up>::value)
|
|
{ std::_Destroy(__p); }
|
|
80031f0: 6838 ldr r0, [r7, #0]
|
|
80031f2: f000 f80f bl 8003214 <_ZSt8_DestroyIN5tasks8SpamTaskEEvPT_>
|
|
80031f6: bf00 nop
|
|
80031f8: 3708 adds r7, #8
|
|
80031fa: 46bd mov sp, r7
|
|
80031fc: bd80 pop {r7, pc}
|
|
|
|
080031fe <_ZNSt14_Sp_ebo_helperILi0ESaIvELb1EE6_S_getERS1_>:
|
|
_S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); }
|
|
80031fe: b480 push {r7}
|
|
8003200: b083 sub sp, #12
|
|
8003202: af00 add r7, sp, #0
|
|
8003204: 6078 str r0, [r7, #4]
|
|
8003206: 687b ldr r3, [r7, #4]
|
|
8003208: 4618 mov r0, r3
|
|
800320a: 370c adds r7, #12
|
|
800320c: 46bd mov sp, r7
|
|
800320e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003212: 4770 bx lr
|
|
|
|
08003214 <_ZSt8_DestroyIN5tasks8SpamTaskEEvPT_>:
|
|
/**
|
|
* Destroy the object pointed to by a pointer type.
|
|
*/
|
|
template<typename _Tp>
|
|
_GLIBCXX14_CONSTEXPR inline void
|
|
_Destroy(_Tp* __pointer)
|
|
8003214: b580 push {r7, lr}
|
|
8003216: b082 sub sp, #8
|
|
8003218: af00 add r7, sp, #0
|
|
800321a: 6078 str r0, [r7, #4]
|
|
{
|
|
#if __cplusplus > 201703L
|
|
std::destroy_at(__pointer);
|
|
#else
|
|
__pointer->~_Tp();
|
|
800321c: 687b ldr r3, [r7, #4]
|
|
800321e: 681b ldr r3, [r3, #0]
|
|
8003220: 3308 adds r3, #8
|
|
8003222: 681b ldr r3, [r3, #0]
|
|
8003224: 6878 ldr r0, [r7, #4]
|
|
8003226: 4798 blx r3
|
|
#endif
|
|
}
|
|
8003228: bf00 nop
|
|
800322a: 3708 adds r7, #8
|
|
800322c: 46bd mov sp, r7
|
|
800322e: bd80 pop {r7, pc}
|
|
|
|
08003230 <_ZN5tasks8SpamTaskC1Ev>:
|
|
#include <tasks/spam_task.hpp>
|
|
#include <sta/debug/debug.hpp>
|
|
|
|
namespace tasks {
|
|
SpamTask::SpamTask() :
|
|
8003230: b580 push {r7, lr}
|
|
8003232: b084 sub sp, #16
|
|
8003234: af02 add r7, sp, #8
|
|
8003236: 6078 str r0, [r7, #4]
|
|
TacosThread("SPAM", osPriorityNormal){}
|
|
8003238: 6878 ldr r0, [r7, #4]
|
|
800323a: 2300 movs r3, #0
|
|
800323c: 9300 str r3, [sp, #0]
|
|
800323e: 2300 movs r3, #0
|
|
8003240: 2218 movs r2, #24
|
|
8003242: 4905 ldr r1, [pc, #20] @ (8003258 <_ZN5tasks8SpamTaskC1Ev+0x28>)
|
|
8003244: f005 fee2 bl 800900c <_ZN3sta5tacos11TacosThreadC1EPKc12osPriority_tmm>
|
|
8003248: 4a04 ldr r2, [pc, #16] @ (800325c <_ZN5tasks8SpamTaskC1Ev+0x2c>)
|
|
800324a: 687b ldr r3, [r7, #4]
|
|
800324c: 601a str r2, [r3, #0]
|
|
800324e: 687b ldr r3, [r7, #4]
|
|
8003250: 4618 mov r0, r3
|
|
8003252: 3708 adds r7, #8
|
|
8003254: 46bd mov sp, r7
|
|
8003256: bd80 pop {r7, pc}
|
|
8003258: 08012a04 .word 0x08012a04
|
|
800325c: 08013098 .word 0x08013098
|
|
|
|
08003260 <_ZN5tasks8SpamTask4initEv>:
|
|
|
|
void SpamTask::init() {
|
|
8003260: b480 push {r7}
|
|
8003262: b083 sub sp, #12
|
|
8003264: af00 add r7, sp, #0
|
|
8003266: 6078 str r0, [r7, #4]
|
|
// Nothing to init...
|
|
}
|
|
8003268: bf00 nop
|
|
800326a: 370c adds r7, #12
|
|
800326c: 46bd mov sp, r7
|
|
800326e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003272: 4770 bx lr
|
|
|
|
08003274 <_ZN5tasks8SpamTask4funcEv>:
|
|
|
|
void SpamTask::func() {
|
|
8003274: b580 push {r7, lr}
|
|
8003276: b082 sub sp, #8
|
|
8003278: af00 add r7, sp, #0
|
|
800327a: 6078 str r0, [r7, #4]
|
|
// Print "Hello World" every second.
|
|
STA_DEBUG_PRINTLN("Hello World");
|
|
800327c: 4b07 ldr r3, [pc, #28] @ (800329c <_ZN5tasks8SpamTask4funcEv+0x28>)
|
|
800327e: 681b ldr r3, [r3, #0]
|
|
8003280: 4907 ldr r1, [pc, #28] @ (80032a0 <_ZN5tasks8SpamTask4funcEv+0x2c>)
|
|
8003282: 4618 mov r0, r3
|
|
8003284: f006 fdc6 bl 8009e14 <_ZN3sta9Printable7printlnEPKc>
|
|
this->periodicDelay(1); // Execute this function with 1 Hz.
|
|
8003288: 687b ldr r3, [r7, #4]
|
|
800328a: 2101 movs r1, #1
|
|
800328c: 4618 mov r0, r3
|
|
800328e: f005 ff6b bl 8009168 <_ZN3sta5tacos11TacosThread13periodicDelayEm>
|
|
}
|
|
8003292: bf00 nop
|
|
8003294: 3708 adds r7, #8
|
|
8003296: 46bd mov sp, r7
|
|
8003298: bd80 pop {r7, pc}
|
|
800329a: bf00 nop
|
|
800329c: 200002f8 .word 0x200002f8
|
|
80032a0: 08012a0c .word 0x08012a0c
|
|
|
|
080032a4 <_ZN5tasks8SpamTaskD1Ev>:
|
|
|
|
#include <sta/tacos.hpp>
|
|
|
|
namespace tasks
|
|
{
|
|
class SpamTask : public sta::tacos::TacosThread {
|
|
80032a4: b580 push {r7, lr}
|
|
80032a6: b082 sub sp, #8
|
|
80032a8: af00 add r7, sp, #0
|
|
80032aa: 6078 str r0, [r7, #4]
|
|
80032ac: 4a05 ldr r2, [pc, #20] @ (80032c4 <_ZN5tasks8SpamTaskD1Ev+0x20>)
|
|
80032ae: 687b ldr r3, [r7, #4]
|
|
80032b0: 601a str r2, [r3, #0]
|
|
80032b2: 687b ldr r3, [r7, #4]
|
|
80032b4: 4618 mov r0, r3
|
|
80032b6: f005 ffa3 bl 8009200 <_ZN3sta5tacos11TacosThreadD1Ev>
|
|
80032ba: 687b ldr r3, [r7, #4]
|
|
80032bc: 4618 mov r0, r3
|
|
80032be: 3708 adds r7, #8
|
|
80032c0: 46bd mov sp, r7
|
|
80032c2: bd80 pop {r7, pc}
|
|
80032c4: 08013098 .word 0x08013098
|
|
|
|
080032c8 <_ZN5tasks8SpamTaskD0Ev>:
|
|
80032c8: b580 push {r7, lr}
|
|
80032ca: b082 sub sp, #8
|
|
80032cc: af00 add r7, sp, #0
|
|
80032ce: 6078 str r0, [r7, #4]
|
|
80032d0: 6878 ldr r0, [r7, #4]
|
|
80032d2: f7ff ffe7 bl 80032a4 <_ZN5tasks8SpamTaskD1Ev>
|
|
80032d6: 215c movs r1, #92 @ 0x5c
|
|
80032d8: 6878 ldr r0, [r7, #4]
|
|
80032da: f00c fa23 bl 800f724 <_ZdlPvj>
|
|
80032de: 687b ldr r3, [r7, #4]
|
|
80032e0: 4618 mov r0, r3
|
|
80032e2: 3708 adds r7, #8
|
|
80032e4: 46bd mov sp, r7
|
|
80032e6: bd80 pop {r7, pc}
|
|
|
|
080032e8 <MX_CAN1_Init>:
|
|
|
|
CAN_HandleTypeDef hcan1;
|
|
|
|
/* CAN1 init function */
|
|
void MX_CAN1_Init(void)
|
|
{
|
|
80032e8: b580 push {r7, lr}
|
|
80032ea: af00 add r7, sp, #0
|
|
/* USER CODE END CAN1_Init 0 */
|
|
|
|
/* USER CODE BEGIN CAN1_Init 1 */
|
|
|
|
/* USER CODE END CAN1_Init 1 */
|
|
hcan1.Instance = CAN1;
|
|
80032ec: 4b16 ldr r3, [pc, #88] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
80032ee: 4a17 ldr r2, [pc, #92] @ (800334c <MX_CAN1_Init+0x64>)
|
|
80032f0: 601a str r2, [r3, #0]
|
|
hcan1.Init.Prescaler = 16;
|
|
80032f2: 4b15 ldr r3, [pc, #84] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
80032f4: 2210 movs r2, #16
|
|
80032f6: 605a str r2, [r3, #4]
|
|
hcan1.Init.Mode = CAN_MODE_NORMAL;
|
|
80032f8: 4b13 ldr r3, [pc, #76] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
80032fa: 2200 movs r2, #0
|
|
80032fc: 609a str r2, [r3, #8]
|
|
hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ;
|
|
80032fe: 4b12 ldr r3, [pc, #72] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003300: 2200 movs r2, #0
|
|
8003302: 60da str r2, [r3, #12]
|
|
hcan1.Init.TimeSeg1 = CAN_BS1_1TQ;
|
|
8003304: 4b10 ldr r3, [pc, #64] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003306: 2200 movs r2, #0
|
|
8003308: 611a str r2, [r3, #16]
|
|
hcan1.Init.TimeSeg2 = CAN_BS2_1TQ;
|
|
800330a: 4b0f ldr r3, [pc, #60] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
800330c: 2200 movs r2, #0
|
|
800330e: 615a str r2, [r3, #20]
|
|
hcan1.Init.TimeTriggeredMode = DISABLE;
|
|
8003310: 4b0d ldr r3, [pc, #52] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003312: 2200 movs r2, #0
|
|
8003314: 761a strb r2, [r3, #24]
|
|
hcan1.Init.AutoBusOff = DISABLE;
|
|
8003316: 4b0c ldr r3, [pc, #48] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003318: 2200 movs r2, #0
|
|
800331a: 765a strb r2, [r3, #25]
|
|
hcan1.Init.AutoWakeUp = DISABLE;
|
|
800331c: 4b0a ldr r3, [pc, #40] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
800331e: 2200 movs r2, #0
|
|
8003320: 769a strb r2, [r3, #26]
|
|
hcan1.Init.AutoRetransmission = DISABLE;
|
|
8003322: 4b09 ldr r3, [pc, #36] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003324: 2200 movs r2, #0
|
|
8003326: 76da strb r2, [r3, #27]
|
|
hcan1.Init.ReceiveFifoLocked = DISABLE;
|
|
8003328: 4b07 ldr r3, [pc, #28] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
800332a: 2200 movs r2, #0
|
|
800332c: 771a strb r2, [r3, #28]
|
|
hcan1.Init.TransmitFifoPriority = DISABLE;
|
|
800332e: 4b06 ldr r3, [pc, #24] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003330: 2200 movs r2, #0
|
|
8003332: 775a strb r2, [r3, #29]
|
|
if (HAL_CAN_Init(&hcan1) != HAL_OK)
|
|
8003334: 4804 ldr r0, [pc, #16] @ (8003348 <MX_CAN1_Init+0x60>)
|
|
8003336: f000 fd0b bl 8003d50 <HAL_CAN_Init>
|
|
800333a: 4603 mov r3, r0
|
|
800333c: 2b00 cmp r3, #0
|
|
800333e: d001 beq.n 8003344 <MX_CAN1_Init+0x5c>
|
|
{
|
|
Error_Handler();
|
|
8003340: f000 f92e bl 80035a0 <Error_Handler>
|
|
}
|
|
/* USER CODE BEGIN CAN1_Init 2 */
|
|
|
|
/* USER CODE END CAN1_Init 2 */
|
|
|
|
}
|
|
8003344: bf00 nop
|
|
8003346: bd80 pop {r7, pc}
|
|
8003348: 20000200 .word 0x20000200
|
|
800334c: 40006400 .word 0x40006400
|
|
|
|
08003350 <HAL_CAN_MspInit>:
|
|
|
|
void HAL_CAN_MspInit(CAN_HandleTypeDef* canHandle)
|
|
{
|
|
8003350: b580 push {r7, lr}
|
|
8003352: b08a sub sp, #40 @ 0x28
|
|
8003354: af00 add r7, sp, #0
|
|
8003356: 6078 str r0, [r7, #4]
|
|
|
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
|
8003358: f107 0314 add.w r3, r7, #20
|
|
800335c: 2200 movs r2, #0
|
|
800335e: 601a str r2, [r3, #0]
|
|
8003360: 605a str r2, [r3, #4]
|
|
8003362: 609a str r2, [r3, #8]
|
|
8003364: 60da str r2, [r3, #12]
|
|
8003366: 611a str r2, [r3, #16]
|
|
if(canHandle->Instance==CAN1)
|
|
8003368: 687b ldr r3, [r7, #4]
|
|
800336a: 681b ldr r3, [r3, #0]
|
|
800336c: 4a19 ldr r2, [pc, #100] @ (80033d4 <HAL_CAN_MspInit+0x84>)
|
|
800336e: 4293 cmp r3, r2
|
|
8003370: d12c bne.n 80033cc <HAL_CAN_MspInit+0x7c>
|
|
{
|
|
/* USER CODE BEGIN CAN1_MspInit 0 */
|
|
|
|
/* USER CODE END CAN1_MspInit 0 */
|
|
/* CAN1 clock enable */
|
|
__HAL_RCC_CAN1_CLK_ENABLE();
|
|
8003372: 2300 movs r3, #0
|
|
8003374: 613b str r3, [r7, #16]
|
|
8003376: 4b18 ldr r3, [pc, #96] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
8003378: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800337a: 4a17 ldr r2, [pc, #92] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
800337c: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
|
|
8003380: 6413 str r3, [r2, #64] @ 0x40
|
|
8003382: 4b15 ldr r3, [pc, #84] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
8003384: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
8003386: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
800338a: 613b str r3, [r7, #16]
|
|
800338c: 693b ldr r3, [r7, #16]
|
|
|
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
|
800338e: 2300 movs r3, #0
|
|
8003390: 60fb str r3, [r7, #12]
|
|
8003392: 4b11 ldr r3, [pc, #68] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
8003394: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
8003396: 4a10 ldr r2, [pc, #64] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
8003398: f043 0301 orr.w r3, r3, #1
|
|
800339c: 6313 str r3, [r2, #48] @ 0x30
|
|
800339e: 4b0e ldr r3, [pc, #56] @ (80033d8 <HAL_CAN_MspInit+0x88>)
|
|
80033a0: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
80033a2: f003 0301 and.w r3, r3, #1
|
|
80033a6: 60fb str r3, [r7, #12]
|
|
80033a8: 68fb ldr r3, [r7, #12]
|
|
/**CAN1 GPIO Configuration
|
|
PA11 ------> CAN1_RX
|
|
PA12 ------> CAN1_TX
|
|
*/
|
|
GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12;
|
|
80033aa: f44f 53c0 mov.w r3, #6144 @ 0x1800
|
|
80033ae: 617b str r3, [r7, #20]
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
|
80033b0: 2302 movs r3, #2
|
|
80033b2: 61bb str r3, [r7, #24]
|
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
80033b4: 2300 movs r3, #0
|
|
80033b6: 61fb str r3, [r7, #28]
|
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
|
80033b8: 2303 movs r3, #3
|
|
80033ba: 623b str r3, [r7, #32]
|
|
GPIO_InitStruct.Alternate = GPIO_AF9_CAN1;
|
|
80033bc: 2309 movs r3, #9
|
|
80033be: 627b str r3, [r7, #36] @ 0x24
|
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
|
80033c0: f107 0314 add.w r3, r7, #20
|
|
80033c4: 4619 mov r1, r3
|
|
80033c6: 4805 ldr r0, [pc, #20] @ (80033dc <HAL_CAN_MspInit+0x8c>)
|
|
80033c8: f001 f99a bl 8004700 <HAL_GPIO_Init>
|
|
|
|
/* USER CODE BEGIN CAN1_MspInit 1 */
|
|
|
|
/* USER CODE END CAN1_MspInit 1 */
|
|
}
|
|
}
|
|
80033cc: bf00 nop
|
|
80033ce: 3728 adds r7, #40 @ 0x28
|
|
80033d0: 46bd mov sp, r7
|
|
80033d2: bd80 pop {r7, pc}
|
|
80033d4: 40006400 .word 0x40006400
|
|
80033d8: 40023800 .word 0x40023800
|
|
80033dc: 40020000 .word 0x40020000
|
|
|
|
080033e0 <vApplicationStackOverflowHook>:
|
|
/* Hook prototypes */
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
|
|
|
|
/* USER CODE BEGIN 4 */
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
|
|
{
|
|
80033e0: b480 push {r7}
|
|
80033e2: b083 sub sp, #12
|
|
80033e4: af00 add r7, sp, #0
|
|
80033e6: 6078 str r0, [r7, #4]
|
|
80033e8: 6039 str r1, [r7, #0]
|
|
/* Run time stack overflow checking is performed if
|
|
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
|
|
called if a stack overflow is detected. */
|
|
}
|
|
80033ea: bf00 nop
|
|
80033ec: 370c adds r7, #12
|
|
80033ee: 46bd mov sp, r7
|
|
80033f0: f85d 7b04 ldr.w r7, [sp], #4
|
|
80033f4: 4770 bx lr
|
|
...
|
|
|
|
080033f8 <MX_FREERTOS_Init>:
|
|
/**
|
|
* @brief FreeRTOS initialization
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void MX_FREERTOS_Init(void) {
|
|
80033f8: b580 push {r7, lr}
|
|
80033fa: af00 add r7, sp, #0
|
|
/* add queues, ... */
|
|
/* USER CODE END RTOS_QUEUES */
|
|
|
|
/* Create the thread(s) */
|
|
/* creation of defaultTask */
|
|
defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
|
|
80033fc: 4a04 ldr r2, [pc, #16] @ (8003410 <MX_FREERTOS_Init+0x18>)
|
|
80033fe: 2100 movs r1, #0
|
|
8003400: 4804 ldr r0, [pc, #16] @ (8003414 <MX_FREERTOS_Init+0x1c>)
|
|
8003402: f007 fb07 bl 800aa14 <osThreadNew>
|
|
8003406: 4603 mov r3, r0
|
|
8003408: 4a03 ldr r2, [pc, #12] @ (8003418 <MX_FREERTOS_Init+0x20>)
|
|
800340a: 6013 str r3, [r2, #0]
|
|
|
|
/* USER CODE BEGIN RTOS_EVENTS */
|
|
/* add events, ... */
|
|
/* USER CODE END RTOS_EVENTS */
|
|
|
|
}
|
|
800340c: bf00 nop
|
|
800340e: bd80 pop {r7, pc}
|
|
8003410: 080130b4 .word 0x080130b4
|
|
8003414: 0800341d .word 0x0800341d
|
|
8003418: 20000228 .word 0x20000228
|
|
|
|
0800341c <StartDefaultTask>:
|
|
* @param argument: Not used
|
|
* @retval None
|
|
*/
|
|
/* USER CODE END Header_StartDefaultTask */
|
|
void StartDefaultTask(void *argument)
|
|
{
|
|
800341c: b580 push {r7, lr}
|
|
800341e: b082 sub sp, #8
|
|
8003420: af00 add r7, sp, #0
|
|
8003422: 6078 str r0, [r7, #4]
|
|
/* USER CODE BEGIN StartDefaultTask */
|
|
extern void startTACOS(void *);
|
|
startTACOS(argument);
|
|
8003424: 6878 ldr r0, [r7, #4]
|
|
8003426: f002 ffd9 bl 80063dc <startTACOS>
|
|
|
|
/* Infinite loop */
|
|
for(;;)
|
|
{
|
|
osDelay(1);
|
|
800342a: 2001 movs r0, #1
|
|
800342c: f007 fc67 bl 800acfe <osDelay>
|
|
8003430: e7fb b.n 800342a <StartDefaultTask+0xe>
|
|
...
|
|
|
|
08003434 <MX_GPIO_Init>:
|
|
* Output
|
|
* EVENT_OUT
|
|
* EXTI
|
|
*/
|
|
void MX_GPIO_Init(void)
|
|
{
|
|
8003434: b480 push {r7}
|
|
8003436: b083 sub sp, #12
|
|
8003438: af00 add r7, sp, #0
|
|
|
|
/* GPIO Ports Clock Enable */
|
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
|
800343a: 2300 movs r3, #0
|
|
800343c: 607b str r3, [r7, #4]
|
|
800343e: 4b10 ldr r3, [pc, #64] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
8003440: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
8003442: 4a0f ldr r2, [pc, #60] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
8003444: f043 0380 orr.w r3, r3, #128 @ 0x80
|
|
8003448: 6313 str r3, [r2, #48] @ 0x30
|
|
800344a: 4b0d ldr r3, [pc, #52] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
800344c: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800344e: f003 0380 and.w r3, r3, #128 @ 0x80
|
|
8003452: 607b str r3, [r7, #4]
|
|
8003454: 687b ldr r3, [r7, #4]
|
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
|
8003456: 2300 movs r3, #0
|
|
8003458: 603b str r3, [r7, #0]
|
|
800345a: 4b09 ldr r3, [pc, #36] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
800345c: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800345e: 4a08 ldr r2, [pc, #32] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
8003460: f043 0301 orr.w r3, r3, #1
|
|
8003464: 6313 str r3, [r2, #48] @ 0x30
|
|
8003466: 4b06 ldr r3, [pc, #24] @ (8003480 <MX_GPIO_Init+0x4c>)
|
|
8003468: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800346a: f003 0301 and.w r3, r3, #1
|
|
800346e: 603b str r3, [r7, #0]
|
|
8003470: 683b ldr r3, [r7, #0]
|
|
|
|
}
|
|
8003472: bf00 nop
|
|
8003474: 370c adds r7, #12
|
|
8003476: 46bd mov sp, r7
|
|
8003478: f85d 7b04 ldr.w r7, [sp], #4
|
|
800347c: 4770 bx lr
|
|
800347e: bf00 nop
|
|
8003480: 40023800 .word 0x40023800
|
|
|
|
08003484 <main>:
|
|
/**
|
|
* @brief The application entry point.
|
|
* @retval int
|
|
*/
|
|
int main(void)
|
|
{
|
|
8003484: b580 push {r7, lr}
|
|
8003486: af00 add r7, sp, #0
|
|
/* USER CODE END 1 */
|
|
|
|
/* MCU Configuration--------------------------------------------------------*/
|
|
|
|
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
|
HAL_Init();
|
|
8003488: f000 fc20 bl 8003ccc <HAL_Init>
|
|
/* USER CODE BEGIN Init */
|
|
|
|
/* USER CODE END Init */
|
|
|
|
/* Configure the system clock */
|
|
SystemClock_Config();
|
|
800348c: f000 f80e bl 80034ac <SystemClock_Config>
|
|
/* USER CODE BEGIN SysInit */
|
|
|
|
/* USER CODE END SysInit */
|
|
|
|
/* Initialize all configured peripherals */
|
|
MX_GPIO_Init();
|
|
8003490: f7ff ffd0 bl 8003434 <MX_GPIO_Init>
|
|
MX_CAN1_Init();
|
|
8003494: f7ff ff28 bl 80032e8 <MX_CAN1_Init>
|
|
MX_USART1_UART_Init();
|
|
8003498: f000 fa24 bl 80038e4 <MX_USART1_UART_Init>
|
|
/* USER CODE BEGIN 2 */
|
|
|
|
/* USER CODE END 2 */
|
|
|
|
/* Init scheduler */
|
|
osKernelInitialize();
|
|
800349c: f007 fa30 bl 800a900 <osKernelInitialize>
|
|
|
|
/* Call init function for freertos objects (in freertos.c) */
|
|
MX_FREERTOS_Init();
|
|
80034a0: f7ff ffaa bl 80033f8 <MX_FREERTOS_Init>
|
|
|
|
/* Start scheduler */
|
|
osKernelStart();
|
|
80034a4: f007 fa72 bl 800a98c <osKernelStart>
|
|
|
|
/* We should never get here as control is now taken by the scheduler */
|
|
/* Infinite loop */
|
|
/* USER CODE BEGIN WHILE */
|
|
while (1)
|
|
80034a8: bf00 nop
|
|
80034aa: e7fd b.n 80034a8 <main+0x24>
|
|
|
|
080034ac <SystemClock_Config>:
|
|
/**
|
|
* @brief System Clock Configuration
|
|
* @retval None
|
|
*/
|
|
void SystemClock_Config(void)
|
|
{
|
|
80034ac: b580 push {r7, lr}
|
|
80034ae: b094 sub sp, #80 @ 0x50
|
|
80034b0: af00 add r7, sp, #0
|
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
|
80034b2: f107 0320 add.w r3, r7, #32
|
|
80034b6: 2230 movs r2, #48 @ 0x30
|
|
80034b8: 2100 movs r1, #0
|
|
80034ba: 4618 mov r0, r3
|
|
80034bc: f00d f9c8 bl 8010850 <memset>
|
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
|
80034c0: f107 030c add.w r3, r7, #12
|
|
80034c4: 2200 movs r2, #0
|
|
80034c6: 601a str r2, [r3, #0]
|
|
80034c8: 605a str r2, [r3, #4]
|
|
80034ca: 609a str r2, [r3, #8]
|
|
80034cc: 60da str r2, [r3, #12]
|
|
80034ce: 611a str r2, [r3, #16]
|
|
|
|
/** Configure the main internal regulator output voltage
|
|
*/
|
|
__HAL_RCC_PWR_CLK_ENABLE();
|
|
80034d0: 2300 movs r3, #0
|
|
80034d2: 60bb str r3, [r7, #8]
|
|
80034d4: 4b27 ldr r3, [pc, #156] @ (8003574 <SystemClock_Config+0xc8>)
|
|
80034d6: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
80034d8: 4a26 ldr r2, [pc, #152] @ (8003574 <SystemClock_Config+0xc8>)
|
|
80034da: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
|
|
80034de: 6413 str r3, [r2, #64] @ 0x40
|
|
80034e0: 4b24 ldr r3, [pc, #144] @ (8003574 <SystemClock_Config+0xc8>)
|
|
80034e2: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
80034e4: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
|
|
80034e8: 60bb str r3, [r7, #8]
|
|
80034ea: 68bb ldr r3, [r7, #8]
|
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
|
80034ec: 2300 movs r3, #0
|
|
80034ee: 607b str r3, [r7, #4]
|
|
80034f0: 4b21 ldr r3, [pc, #132] @ (8003578 <SystemClock_Config+0xcc>)
|
|
80034f2: 681b ldr r3, [r3, #0]
|
|
80034f4: 4a20 ldr r2, [pc, #128] @ (8003578 <SystemClock_Config+0xcc>)
|
|
80034f6: f443 4380 orr.w r3, r3, #16384 @ 0x4000
|
|
80034fa: 6013 str r3, [r2, #0]
|
|
80034fc: 4b1e ldr r3, [pc, #120] @ (8003578 <SystemClock_Config+0xcc>)
|
|
80034fe: 681b ldr r3, [r3, #0]
|
|
8003500: f403 4380 and.w r3, r3, #16384 @ 0x4000
|
|
8003504: 607b str r3, [r7, #4]
|
|
8003506: 687b ldr r3, [r7, #4]
|
|
|
|
/** Initializes the RCC Oscillators according to the specified parameters
|
|
* in the RCC_OscInitTypeDef structure.
|
|
*/
|
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
|
|
8003508: 2302 movs r3, #2
|
|
800350a: 623b str r3, [r7, #32]
|
|
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
|
|
800350c: 2301 movs r3, #1
|
|
800350e: 62fb str r3, [r7, #44] @ 0x2c
|
|
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
|
|
8003510: 2310 movs r3, #16
|
|
8003512: 633b str r3, [r7, #48] @ 0x30
|
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
|
8003514: 2302 movs r3, #2
|
|
8003516: 63bb str r3, [r7, #56] @ 0x38
|
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
|
|
8003518: 2300 movs r3, #0
|
|
800351a: 63fb str r3, [r7, #60] @ 0x3c
|
|
RCC_OscInitStruct.PLL.PLLM = 8;
|
|
800351c: 2308 movs r3, #8
|
|
800351e: 643b str r3, [r7, #64] @ 0x40
|
|
RCC_OscInitStruct.PLL.PLLN = 50;
|
|
8003520: 2332 movs r3, #50 @ 0x32
|
|
8003522: 647b str r3, [r7, #68] @ 0x44
|
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
|
8003524: 2302 movs r3, #2
|
|
8003526: 64bb str r3, [r7, #72] @ 0x48
|
|
RCC_OscInitStruct.PLL.PLLQ = 4;
|
|
8003528: 2304 movs r3, #4
|
|
800352a: 64fb str r3, [r7, #76] @ 0x4c
|
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
|
800352c: f107 0320 add.w r3, r7, #32
|
|
8003530: 4618 mov r0, r3
|
|
8003532: f001 fa81 bl 8004a38 <HAL_RCC_OscConfig>
|
|
8003536: 4603 mov r3, r0
|
|
8003538: 2b00 cmp r3, #0
|
|
800353a: d001 beq.n 8003540 <SystemClock_Config+0x94>
|
|
{
|
|
Error_Handler();
|
|
800353c: f000 f830 bl 80035a0 <Error_Handler>
|
|
}
|
|
|
|
/** Initializes the CPU, AHB and APB buses clocks
|
|
*/
|
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
|
8003540: 230f movs r3, #15
|
|
8003542: 60fb str r3, [r7, #12]
|
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
|
8003544: 2302 movs r3, #2
|
|
8003546: 613b str r3, [r7, #16]
|
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
|
8003548: 2300 movs r3, #0
|
|
800354a: 617b str r3, [r7, #20]
|
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
|
800354c: f44f 5380 mov.w r3, #4096 @ 0x1000
|
|
8003550: 61bb str r3, [r7, #24]
|
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
|
8003552: 2300 movs r3, #0
|
|
8003554: 61fb str r3, [r7, #28]
|
|
|
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK)
|
|
8003556: f107 030c add.w r3, r7, #12
|
|
800355a: 2101 movs r1, #1
|
|
800355c: 4618 mov r0, r3
|
|
800355e: f001 fce3 bl 8004f28 <HAL_RCC_ClockConfig>
|
|
8003562: 4603 mov r3, r0
|
|
8003564: 2b00 cmp r3, #0
|
|
8003566: d001 beq.n 800356c <SystemClock_Config+0xc0>
|
|
{
|
|
Error_Handler();
|
|
8003568: f000 f81a bl 80035a0 <Error_Handler>
|
|
}
|
|
}
|
|
800356c: bf00 nop
|
|
800356e: 3750 adds r7, #80 @ 0x50
|
|
8003570: 46bd mov sp, r7
|
|
8003572: bd80 pop {r7, pc}
|
|
8003574: 40023800 .word 0x40023800
|
|
8003578: 40007000 .word 0x40007000
|
|
|
|
0800357c <HAL_TIM_PeriodElapsedCallback>:
|
|
* a global variable "uwTick" used as application time base.
|
|
* @param htim : TIM handle
|
|
* @retval None
|
|
*/
|
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
800357c: b580 push {r7, lr}
|
|
800357e: b082 sub sp, #8
|
|
8003580: af00 add r7, sp, #0
|
|
8003582: 6078 str r0, [r7, #4]
|
|
/* USER CODE BEGIN Callback 0 */
|
|
|
|
/* USER CODE END Callback 0 */
|
|
if (htim->Instance == TIM1) {
|
|
8003584: 687b ldr r3, [r7, #4]
|
|
8003586: 681b ldr r3, [r3, #0]
|
|
8003588: 4a04 ldr r2, [pc, #16] @ (800359c <HAL_TIM_PeriodElapsedCallback+0x20>)
|
|
800358a: 4293 cmp r3, r2
|
|
800358c: d101 bne.n 8003592 <HAL_TIM_PeriodElapsedCallback+0x16>
|
|
HAL_IncTick();
|
|
800358e: f000 fbbf bl 8003d10 <HAL_IncTick>
|
|
}
|
|
/* USER CODE BEGIN Callback 1 */
|
|
|
|
/* USER CODE END Callback 1 */
|
|
}
|
|
8003592: bf00 nop
|
|
8003594: 3708 adds r7, #8
|
|
8003596: 46bd mov sp, r7
|
|
8003598: bd80 pop {r7, pc}
|
|
800359a: bf00 nop
|
|
800359c: 40010000 .word 0x40010000
|
|
|
|
080035a0 <Error_Handler>:
|
|
/**
|
|
* @brief This function is executed in case of error occurrence.
|
|
* @retval None
|
|
*/
|
|
void Error_Handler(void)
|
|
{
|
|
80035a0: b480 push {r7}
|
|
80035a2: af00 add r7, sp, #0
|
|
\details Disables IRQ interrupts by setting special-purpose register PRIMASK.
|
|
Can only be executed in Privileged modes.
|
|
*/
|
|
__STATIC_FORCEINLINE void __disable_irq(void)
|
|
{
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
80035a4: b672 cpsid i
|
|
}
|
|
80035a6: bf00 nop
|
|
/* USER CODE BEGIN Error_Handler_Debug */
|
|
/* User can add his own implementation to report the HAL error return state */
|
|
__disable_irq();
|
|
while (1)
|
|
80035a8: bf00 nop
|
|
80035aa: e7fd b.n 80035a8 <Error_Handler+0x8>
|
|
|
|
080035ac <HAL_MspInit>:
|
|
/* USER CODE END 0 */
|
|
/**
|
|
* Initializes the Global MSP.
|
|
*/
|
|
void HAL_MspInit(void)
|
|
{
|
|
80035ac: b580 push {r7, lr}
|
|
80035ae: b082 sub sp, #8
|
|
80035b0: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN MspInit 0 */
|
|
|
|
/* USER CODE END MspInit 0 */
|
|
|
|
__HAL_RCC_SYSCFG_CLK_ENABLE();
|
|
80035b2: 2300 movs r3, #0
|
|
80035b4: 607b str r3, [r7, #4]
|
|
80035b6: 4b12 ldr r3, [pc, #72] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035b8: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
80035ba: 4a11 ldr r2, [pc, #68] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035bc: f443 4380 orr.w r3, r3, #16384 @ 0x4000
|
|
80035c0: 6453 str r3, [r2, #68] @ 0x44
|
|
80035c2: 4b0f ldr r3, [pc, #60] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035c4: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
80035c6: f403 4380 and.w r3, r3, #16384 @ 0x4000
|
|
80035ca: 607b str r3, [r7, #4]
|
|
80035cc: 687b ldr r3, [r7, #4]
|
|
__HAL_RCC_PWR_CLK_ENABLE();
|
|
80035ce: 2300 movs r3, #0
|
|
80035d0: 603b str r3, [r7, #0]
|
|
80035d2: 4b0b ldr r3, [pc, #44] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035d4: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
80035d6: 4a0a ldr r2, [pc, #40] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035d8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
|
|
80035dc: 6413 str r3, [r2, #64] @ 0x40
|
|
80035de: 4b08 ldr r3, [pc, #32] @ (8003600 <HAL_MspInit+0x54>)
|
|
80035e0: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
80035e2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
|
|
80035e6: 603b str r3, [r7, #0]
|
|
80035e8: 683b ldr r3, [r7, #0]
|
|
|
|
/* System interrupt init*/
|
|
/* PendSV_IRQn interrupt configuration */
|
|
HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
|
|
80035ea: 2200 movs r2, #0
|
|
80035ec: 210f movs r1, #15
|
|
80035ee: f06f 0001 mvn.w r0, #1
|
|
80035f2: f001 f85b bl 80046ac <HAL_NVIC_SetPriority>
|
|
|
|
/* USER CODE BEGIN MspInit 1 */
|
|
|
|
/* USER CODE END MspInit 1 */
|
|
}
|
|
80035f6: bf00 nop
|
|
80035f8: 3708 adds r7, #8
|
|
80035fa: 46bd mov sp, r7
|
|
80035fc: bd80 pop {r7, pc}
|
|
80035fe: bf00 nop
|
|
8003600: 40023800 .word 0x40023800
|
|
|
|
08003604 <HAL_InitTick>:
|
|
* reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
|
|
* @param TickPriority: Tick interrupt priority.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
|
|
{
|
|
8003604: b580 push {r7, lr}
|
|
8003606: b08c sub sp, #48 @ 0x30
|
|
8003608: af00 add r7, sp, #0
|
|
800360a: 6078 str r0, [r7, #4]
|
|
RCC_ClkInitTypeDef clkconfig;
|
|
uint32_t uwTimclock = 0U;
|
|
800360c: 2300 movs r3, #0
|
|
800360e: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
uint32_t uwPrescalerValue = 0U;
|
|
8003610: 2300 movs r3, #0
|
|
8003612: 627b str r3, [r7, #36] @ 0x24
|
|
uint32_t pFLatency;
|
|
HAL_StatusTypeDef status;
|
|
|
|
/* Enable TIM1 clock */
|
|
__HAL_RCC_TIM1_CLK_ENABLE();
|
|
8003614: 2300 movs r3, #0
|
|
8003616: 60bb str r3, [r7, #8]
|
|
8003618: 4b2e ldr r3, [pc, #184] @ (80036d4 <HAL_InitTick+0xd0>)
|
|
800361a: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
800361c: 4a2d ldr r2, [pc, #180] @ (80036d4 <HAL_InitTick+0xd0>)
|
|
800361e: f043 0301 orr.w r3, r3, #1
|
|
8003622: 6453 str r3, [r2, #68] @ 0x44
|
|
8003624: 4b2b ldr r3, [pc, #172] @ (80036d4 <HAL_InitTick+0xd0>)
|
|
8003626: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
8003628: f003 0301 and.w r3, r3, #1
|
|
800362c: 60bb str r3, [r7, #8]
|
|
800362e: 68bb ldr r3, [r7, #8]
|
|
|
|
/* Get clock configuration */
|
|
HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
|
|
8003630: f107 020c add.w r2, r7, #12
|
|
8003634: f107 0310 add.w r3, r7, #16
|
|
8003638: 4611 mov r1, r2
|
|
800363a: 4618 mov r0, r3
|
|
800363c: f001 fe94 bl 8005368 <HAL_RCC_GetClockConfig>
|
|
|
|
/* Compute TIM1 clock */
|
|
uwTimclock = HAL_RCC_GetPCLK2Freq();
|
|
8003640: f001 fe7e bl 8005340 <HAL_RCC_GetPCLK2Freq>
|
|
8003644: 62b8 str r0, [r7, #40] @ 0x28
|
|
|
|
/* Compute the prescaler value to have TIM1 counter clock equal to 1MHz */
|
|
uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
|
|
8003646: 6abb ldr r3, [r7, #40] @ 0x28
|
|
8003648: 4a23 ldr r2, [pc, #140] @ (80036d8 <HAL_InitTick+0xd4>)
|
|
800364a: fba2 2303 umull r2, r3, r2, r3
|
|
800364e: 0c9b lsrs r3, r3, #18
|
|
8003650: 3b01 subs r3, #1
|
|
8003652: 627b str r3, [r7, #36] @ 0x24
|
|
|
|
/* Initialize TIM1 */
|
|
htim1.Instance = TIM1;
|
|
8003654: 4b21 ldr r3, [pc, #132] @ (80036dc <HAL_InitTick+0xd8>)
|
|
8003656: 4a22 ldr r2, [pc, #136] @ (80036e0 <HAL_InitTick+0xdc>)
|
|
8003658: 601a str r2, [r3, #0]
|
|
+ Period = [(TIM1CLK/1000) - 1]. to have a (1/1000) s time base.
|
|
+ Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
|
|
+ ClockDivision = 0
|
|
+ Counter direction = Up
|
|
*/
|
|
htim1.Init.Period = (1000000U / 1000U) - 1U;
|
|
800365a: 4b20 ldr r3, [pc, #128] @ (80036dc <HAL_InitTick+0xd8>)
|
|
800365c: f240 32e7 movw r2, #999 @ 0x3e7
|
|
8003660: 60da str r2, [r3, #12]
|
|
htim1.Init.Prescaler = uwPrescalerValue;
|
|
8003662: 4a1e ldr r2, [pc, #120] @ (80036dc <HAL_InitTick+0xd8>)
|
|
8003664: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
8003666: 6053 str r3, [r2, #4]
|
|
htim1.Init.ClockDivision = 0;
|
|
8003668: 4b1c ldr r3, [pc, #112] @ (80036dc <HAL_InitTick+0xd8>)
|
|
800366a: 2200 movs r2, #0
|
|
800366c: 611a str r2, [r3, #16]
|
|
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
|
|
800366e: 4b1b ldr r3, [pc, #108] @ (80036dc <HAL_InitTick+0xd8>)
|
|
8003670: 2200 movs r2, #0
|
|
8003672: 609a str r2, [r3, #8]
|
|
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
|
8003674: 4b19 ldr r3, [pc, #100] @ (80036dc <HAL_InitTick+0xd8>)
|
|
8003676: 2200 movs r2, #0
|
|
8003678: 619a str r2, [r3, #24]
|
|
|
|
status = HAL_TIM_Base_Init(&htim1);
|
|
800367a: 4818 ldr r0, [pc, #96] @ (80036dc <HAL_InitTick+0xd8>)
|
|
800367c: f001 fea6 bl 80053cc <HAL_TIM_Base_Init>
|
|
8003680: 4603 mov r3, r0
|
|
8003682: f887 302f strb.w r3, [r7, #47] @ 0x2f
|
|
if (status == HAL_OK)
|
|
8003686: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
|
|
800368a: 2b00 cmp r3, #0
|
|
800368c: d11b bne.n 80036c6 <HAL_InitTick+0xc2>
|
|
{
|
|
/* Start the TIM time Base generation in interrupt mode */
|
|
status = HAL_TIM_Base_Start_IT(&htim1);
|
|
800368e: 4813 ldr r0, [pc, #76] @ (80036dc <HAL_InitTick+0xd8>)
|
|
8003690: f001 fef6 bl 8005480 <HAL_TIM_Base_Start_IT>
|
|
8003694: 4603 mov r3, r0
|
|
8003696: f887 302f strb.w r3, [r7, #47] @ 0x2f
|
|
if (status == HAL_OK)
|
|
800369a: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
|
|
800369e: 2b00 cmp r3, #0
|
|
80036a0: d111 bne.n 80036c6 <HAL_InitTick+0xc2>
|
|
{
|
|
/* Enable the TIM1 global Interrupt */
|
|
HAL_NVIC_EnableIRQ(TIM1_UP_TIM10_IRQn);
|
|
80036a2: 2019 movs r0, #25
|
|
80036a4: f001 f81e bl 80046e4 <HAL_NVIC_EnableIRQ>
|
|
/* Configure the SysTick IRQ priority */
|
|
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
|
|
80036a8: 687b ldr r3, [r7, #4]
|
|
80036aa: 2b0f cmp r3, #15
|
|
80036ac: d808 bhi.n 80036c0 <HAL_InitTick+0xbc>
|
|
{
|
|
/* Configure the TIM IRQ priority */
|
|
HAL_NVIC_SetPriority(TIM1_UP_TIM10_IRQn, TickPriority, 0U);
|
|
80036ae: 2200 movs r2, #0
|
|
80036b0: 6879 ldr r1, [r7, #4]
|
|
80036b2: 2019 movs r0, #25
|
|
80036b4: f000 fffa bl 80046ac <HAL_NVIC_SetPriority>
|
|
uwTickPrio = TickPriority;
|
|
80036b8: 4a0a ldr r2, [pc, #40] @ (80036e4 <HAL_InitTick+0xe0>)
|
|
80036ba: 687b ldr r3, [r7, #4]
|
|
80036bc: 6013 str r3, [r2, #0]
|
|
80036be: e002 b.n 80036c6 <HAL_InitTick+0xc2>
|
|
}
|
|
else
|
|
{
|
|
status = HAL_ERROR;
|
|
80036c0: 2301 movs r3, #1
|
|
80036c2: f887 302f strb.w r3, [r7, #47] @ 0x2f
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Return function status */
|
|
return status;
|
|
80036c6: f897 302f ldrb.w r3, [r7, #47] @ 0x2f
|
|
}
|
|
80036ca: 4618 mov r0, r3
|
|
80036cc: 3730 adds r7, #48 @ 0x30
|
|
80036ce: 46bd mov sp, r7
|
|
80036d0: bd80 pop {r7, pc}
|
|
80036d2: bf00 nop
|
|
80036d4: 40023800 .word 0x40023800
|
|
80036d8: 431bde83 .word 0x431bde83
|
|
80036dc: 2000022c .word 0x2000022c
|
|
80036e0: 40010000 .word 0x40010000
|
|
80036e4: 20000004 .word 0x20000004
|
|
|
|
080036e8 <NMI_Handler>:
|
|
/******************************************************************************/
|
|
/**
|
|
* @brief This function handles Non maskable interrupt.
|
|
*/
|
|
void NMI_Handler(void)
|
|
{
|
|
80036e8: b480 push {r7}
|
|
80036ea: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN NonMaskableInt_IRQn 0 */
|
|
|
|
/* USER CODE END NonMaskableInt_IRQn 0 */
|
|
/* USER CODE BEGIN NonMaskableInt_IRQn 1 */
|
|
while (1)
|
|
80036ec: bf00 nop
|
|
80036ee: e7fd b.n 80036ec <NMI_Handler+0x4>
|
|
|
|
080036f0 <HardFault_Handler>:
|
|
|
|
/**
|
|
* @brief This function handles Hard fault interrupt.
|
|
*/
|
|
void HardFault_Handler(void)
|
|
{
|
|
80036f0: b480 push {r7}
|
|
80036f2: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN HardFault_IRQn 0 */
|
|
|
|
/* USER CODE END HardFault_IRQn 0 */
|
|
while (1)
|
|
80036f4: bf00 nop
|
|
80036f6: e7fd b.n 80036f4 <HardFault_Handler+0x4>
|
|
|
|
080036f8 <MemManage_Handler>:
|
|
|
|
/**
|
|
* @brief This function handles Memory management fault.
|
|
*/
|
|
void MemManage_Handler(void)
|
|
{
|
|
80036f8: b480 push {r7}
|
|
80036fa: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN MemoryManagement_IRQn 0 */
|
|
|
|
/* USER CODE END MemoryManagement_IRQn 0 */
|
|
while (1)
|
|
80036fc: bf00 nop
|
|
80036fe: e7fd b.n 80036fc <MemManage_Handler+0x4>
|
|
|
|
08003700 <BusFault_Handler>:
|
|
|
|
/**
|
|
* @brief This function handles Pre-fetch fault, memory access fault.
|
|
*/
|
|
void BusFault_Handler(void)
|
|
{
|
|
8003700: b480 push {r7}
|
|
8003702: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN BusFault_IRQn 0 */
|
|
|
|
/* USER CODE END BusFault_IRQn 0 */
|
|
while (1)
|
|
8003704: bf00 nop
|
|
8003706: e7fd b.n 8003704 <BusFault_Handler+0x4>
|
|
|
|
08003708 <UsageFault_Handler>:
|
|
|
|
/**
|
|
* @brief This function handles Undefined instruction or illegal state.
|
|
*/
|
|
void UsageFault_Handler(void)
|
|
{
|
|
8003708: b480 push {r7}
|
|
800370a: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN UsageFault_IRQn 0 */
|
|
|
|
/* USER CODE END UsageFault_IRQn 0 */
|
|
while (1)
|
|
800370c: bf00 nop
|
|
800370e: e7fd b.n 800370c <UsageFault_Handler+0x4>
|
|
|
|
08003710 <DebugMon_Handler>:
|
|
|
|
/**
|
|
* @brief This function handles Debug monitor.
|
|
*/
|
|
void DebugMon_Handler(void)
|
|
{
|
|
8003710: b480 push {r7}
|
|
8003712: af00 add r7, sp, #0
|
|
|
|
/* USER CODE END DebugMonitor_IRQn 0 */
|
|
/* USER CODE BEGIN DebugMonitor_IRQn 1 */
|
|
|
|
/* USER CODE END DebugMonitor_IRQn 1 */
|
|
}
|
|
8003714: bf00 nop
|
|
8003716: 46bd mov sp, r7
|
|
8003718: f85d 7b04 ldr.w r7, [sp], #4
|
|
800371c: 4770 bx lr
|
|
...
|
|
|
|
08003720 <TIM1_UP_TIM10_IRQHandler>:
|
|
|
|
/**
|
|
* @brief This function handles TIM1 update interrupt and TIM10 global interrupt.
|
|
*/
|
|
void TIM1_UP_TIM10_IRQHandler(void)
|
|
{
|
|
8003720: b580 push {r7, lr}
|
|
8003722: af00 add r7, sp, #0
|
|
/* USER CODE BEGIN TIM1_UP_TIM10_IRQn 0 */
|
|
|
|
/* USER CODE END TIM1_UP_TIM10_IRQn 0 */
|
|
HAL_TIM_IRQHandler(&htim1);
|
|
8003724: 4802 ldr r0, [pc, #8] @ (8003730 <TIM1_UP_TIM10_IRQHandler+0x10>)
|
|
8003726: f001 ff1b bl 8005560 <HAL_TIM_IRQHandler>
|
|
/* USER CODE BEGIN TIM1_UP_TIM10_IRQn 1 */
|
|
|
|
/* USER CODE END TIM1_UP_TIM10_IRQn 1 */
|
|
}
|
|
800372a: bf00 nop
|
|
800372c: bd80 pop {r7, pc}
|
|
800372e: bf00 nop
|
|
8003730: 2000022c .word 0x2000022c
|
|
|
|
08003734 <_getpid>:
|
|
void initialise_monitor_handles()
|
|
{
|
|
}
|
|
|
|
int _getpid(void)
|
|
{
|
|
8003734: b480 push {r7}
|
|
8003736: af00 add r7, sp, #0
|
|
return 1;
|
|
8003738: 2301 movs r3, #1
|
|
}
|
|
800373a: 4618 mov r0, r3
|
|
800373c: 46bd mov sp, r7
|
|
800373e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003742: 4770 bx lr
|
|
|
|
08003744 <_kill>:
|
|
|
|
int _kill(int pid, int sig)
|
|
{
|
|
8003744: b580 push {r7, lr}
|
|
8003746: b082 sub sp, #8
|
|
8003748: af00 add r7, sp, #0
|
|
800374a: 6078 str r0, [r7, #4]
|
|
800374c: 6039 str r1, [r7, #0]
|
|
(void)pid;
|
|
(void)sig;
|
|
errno = EINVAL;
|
|
800374e: f00d f97b bl 8010a48 <__errno>
|
|
8003752: 4603 mov r3, r0
|
|
8003754: 2216 movs r2, #22
|
|
8003756: 601a str r2, [r3, #0]
|
|
return -1;
|
|
8003758: f04f 33ff mov.w r3, #4294967295
|
|
}
|
|
800375c: 4618 mov r0, r3
|
|
800375e: 3708 adds r7, #8
|
|
8003760: 46bd mov sp, r7
|
|
8003762: bd80 pop {r7, pc}
|
|
|
|
08003764 <_exit>:
|
|
|
|
void _exit (int status)
|
|
{
|
|
8003764: b580 push {r7, lr}
|
|
8003766: b082 sub sp, #8
|
|
8003768: af00 add r7, sp, #0
|
|
800376a: 6078 str r0, [r7, #4]
|
|
_kill(status, -1);
|
|
800376c: f04f 31ff mov.w r1, #4294967295
|
|
8003770: 6878 ldr r0, [r7, #4]
|
|
8003772: f7ff ffe7 bl 8003744 <_kill>
|
|
while (1) {} /* Make sure we hang here */
|
|
8003776: bf00 nop
|
|
8003778: e7fd b.n 8003776 <_exit+0x12>
|
|
|
|
0800377a <_read>:
|
|
}
|
|
|
|
__attribute__((weak)) int _read(int file, char *ptr, int len)
|
|
{
|
|
800377a: b580 push {r7, lr}
|
|
800377c: b086 sub sp, #24
|
|
800377e: af00 add r7, sp, #0
|
|
8003780: 60f8 str r0, [r7, #12]
|
|
8003782: 60b9 str r1, [r7, #8]
|
|
8003784: 607a str r2, [r7, #4]
|
|
(void)file;
|
|
int DataIdx;
|
|
|
|
for (DataIdx = 0; DataIdx < len; DataIdx++)
|
|
8003786: 2300 movs r3, #0
|
|
8003788: 617b str r3, [r7, #20]
|
|
800378a: e00a b.n 80037a2 <_read+0x28>
|
|
{
|
|
*ptr++ = __io_getchar();
|
|
800378c: f3af 8000 nop.w
|
|
8003790: 4601 mov r1, r0
|
|
8003792: 68bb ldr r3, [r7, #8]
|
|
8003794: 1c5a adds r2, r3, #1
|
|
8003796: 60ba str r2, [r7, #8]
|
|
8003798: b2ca uxtb r2, r1
|
|
800379a: 701a strb r2, [r3, #0]
|
|
for (DataIdx = 0; DataIdx < len; DataIdx++)
|
|
800379c: 697b ldr r3, [r7, #20]
|
|
800379e: 3301 adds r3, #1
|
|
80037a0: 617b str r3, [r7, #20]
|
|
80037a2: 697a ldr r2, [r7, #20]
|
|
80037a4: 687b ldr r3, [r7, #4]
|
|
80037a6: 429a cmp r2, r3
|
|
80037a8: dbf0 blt.n 800378c <_read+0x12>
|
|
}
|
|
|
|
return len;
|
|
80037aa: 687b ldr r3, [r7, #4]
|
|
}
|
|
80037ac: 4618 mov r0, r3
|
|
80037ae: 3718 adds r7, #24
|
|
80037b0: 46bd mov sp, r7
|
|
80037b2: bd80 pop {r7, pc}
|
|
|
|
080037b4 <_write>:
|
|
|
|
__attribute__((weak)) int _write(int file, char *ptr, int len)
|
|
{
|
|
80037b4: b580 push {r7, lr}
|
|
80037b6: b086 sub sp, #24
|
|
80037b8: af00 add r7, sp, #0
|
|
80037ba: 60f8 str r0, [r7, #12]
|
|
80037bc: 60b9 str r1, [r7, #8]
|
|
80037be: 607a str r2, [r7, #4]
|
|
(void)file;
|
|
int DataIdx;
|
|
|
|
for (DataIdx = 0; DataIdx < len; DataIdx++)
|
|
80037c0: 2300 movs r3, #0
|
|
80037c2: 617b str r3, [r7, #20]
|
|
80037c4: e009 b.n 80037da <_write+0x26>
|
|
{
|
|
__io_putchar(*ptr++);
|
|
80037c6: 68bb ldr r3, [r7, #8]
|
|
80037c8: 1c5a adds r2, r3, #1
|
|
80037ca: 60ba str r2, [r7, #8]
|
|
80037cc: 781b ldrb r3, [r3, #0]
|
|
80037ce: 4618 mov r0, r3
|
|
80037d0: f3af 8000 nop.w
|
|
for (DataIdx = 0; DataIdx < len; DataIdx++)
|
|
80037d4: 697b ldr r3, [r7, #20]
|
|
80037d6: 3301 adds r3, #1
|
|
80037d8: 617b str r3, [r7, #20]
|
|
80037da: 697a ldr r2, [r7, #20]
|
|
80037dc: 687b ldr r3, [r7, #4]
|
|
80037de: 429a cmp r2, r3
|
|
80037e0: dbf1 blt.n 80037c6 <_write+0x12>
|
|
}
|
|
return len;
|
|
80037e2: 687b ldr r3, [r7, #4]
|
|
}
|
|
80037e4: 4618 mov r0, r3
|
|
80037e6: 3718 adds r7, #24
|
|
80037e8: 46bd mov sp, r7
|
|
80037ea: bd80 pop {r7, pc}
|
|
|
|
080037ec <_close>:
|
|
|
|
int _close(int file)
|
|
{
|
|
80037ec: b480 push {r7}
|
|
80037ee: b083 sub sp, #12
|
|
80037f0: af00 add r7, sp, #0
|
|
80037f2: 6078 str r0, [r7, #4]
|
|
(void)file;
|
|
return -1;
|
|
80037f4: f04f 33ff mov.w r3, #4294967295
|
|
}
|
|
80037f8: 4618 mov r0, r3
|
|
80037fa: 370c adds r7, #12
|
|
80037fc: 46bd mov sp, r7
|
|
80037fe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003802: 4770 bx lr
|
|
|
|
08003804 <_fstat>:
|
|
|
|
|
|
int _fstat(int file, struct stat *st)
|
|
{
|
|
8003804: b480 push {r7}
|
|
8003806: b083 sub sp, #12
|
|
8003808: af00 add r7, sp, #0
|
|
800380a: 6078 str r0, [r7, #4]
|
|
800380c: 6039 str r1, [r7, #0]
|
|
(void)file;
|
|
st->st_mode = S_IFCHR;
|
|
800380e: 683b ldr r3, [r7, #0]
|
|
8003810: f44f 5200 mov.w r2, #8192 @ 0x2000
|
|
8003814: 605a str r2, [r3, #4]
|
|
return 0;
|
|
8003816: 2300 movs r3, #0
|
|
}
|
|
8003818: 4618 mov r0, r3
|
|
800381a: 370c adds r7, #12
|
|
800381c: 46bd mov sp, r7
|
|
800381e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003822: 4770 bx lr
|
|
|
|
08003824 <_isatty>:
|
|
|
|
int _isatty(int file)
|
|
{
|
|
8003824: b480 push {r7}
|
|
8003826: b083 sub sp, #12
|
|
8003828: af00 add r7, sp, #0
|
|
800382a: 6078 str r0, [r7, #4]
|
|
(void)file;
|
|
return 1;
|
|
800382c: 2301 movs r3, #1
|
|
}
|
|
800382e: 4618 mov r0, r3
|
|
8003830: 370c adds r7, #12
|
|
8003832: 46bd mov sp, r7
|
|
8003834: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003838: 4770 bx lr
|
|
|
|
0800383a <_lseek>:
|
|
|
|
int _lseek(int file, int ptr, int dir)
|
|
{
|
|
800383a: b480 push {r7}
|
|
800383c: b085 sub sp, #20
|
|
800383e: af00 add r7, sp, #0
|
|
8003840: 60f8 str r0, [r7, #12]
|
|
8003842: 60b9 str r1, [r7, #8]
|
|
8003844: 607a str r2, [r7, #4]
|
|
(void)file;
|
|
(void)ptr;
|
|
(void)dir;
|
|
return 0;
|
|
8003846: 2300 movs r3, #0
|
|
}
|
|
8003848: 4618 mov r0, r3
|
|
800384a: 3714 adds r7, #20
|
|
800384c: 46bd mov sp, r7
|
|
800384e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003852: 4770 bx lr
|
|
|
|
08003854 <_sbrk>:
|
|
*
|
|
* @param incr Memory size
|
|
* @return Pointer to allocated memory
|
|
*/
|
|
void *_sbrk(ptrdiff_t incr)
|
|
{
|
|
8003854: b580 push {r7, lr}
|
|
8003856: b086 sub sp, #24
|
|
8003858: af00 add r7, sp, #0
|
|
800385a: 6078 str r0, [r7, #4]
|
|
extern uint8_t _end; /* Symbol defined in the linker script */
|
|
extern uint8_t _estack; /* Symbol defined in the linker script */
|
|
extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
|
|
const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
|
|
800385c: 4a14 ldr r2, [pc, #80] @ (80038b0 <_sbrk+0x5c>)
|
|
800385e: 4b15 ldr r3, [pc, #84] @ (80038b4 <_sbrk+0x60>)
|
|
8003860: 1ad3 subs r3, r2, r3
|
|
8003862: 617b str r3, [r7, #20]
|
|
const uint8_t *max_heap = (uint8_t *)stack_limit;
|
|
8003864: 697b ldr r3, [r7, #20]
|
|
8003866: 613b str r3, [r7, #16]
|
|
uint8_t *prev_heap_end;
|
|
|
|
/* Initialize heap end at first call */
|
|
if (NULL == __sbrk_heap_end)
|
|
8003868: 4b13 ldr r3, [pc, #76] @ (80038b8 <_sbrk+0x64>)
|
|
800386a: 681b ldr r3, [r3, #0]
|
|
800386c: 2b00 cmp r3, #0
|
|
800386e: d102 bne.n 8003876 <_sbrk+0x22>
|
|
{
|
|
__sbrk_heap_end = &_end;
|
|
8003870: 4b11 ldr r3, [pc, #68] @ (80038b8 <_sbrk+0x64>)
|
|
8003872: 4a12 ldr r2, [pc, #72] @ (80038bc <_sbrk+0x68>)
|
|
8003874: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Protect heap from growing into the reserved MSP stack */
|
|
if (__sbrk_heap_end + incr > max_heap)
|
|
8003876: 4b10 ldr r3, [pc, #64] @ (80038b8 <_sbrk+0x64>)
|
|
8003878: 681a ldr r2, [r3, #0]
|
|
800387a: 687b ldr r3, [r7, #4]
|
|
800387c: 4413 add r3, r2
|
|
800387e: 693a ldr r2, [r7, #16]
|
|
8003880: 429a cmp r2, r3
|
|
8003882: d207 bcs.n 8003894 <_sbrk+0x40>
|
|
{
|
|
errno = ENOMEM;
|
|
8003884: f00d f8e0 bl 8010a48 <__errno>
|
|
8003888: 4603 mov r3, r0
|
|
800388a: 220c movs r2, #12
|
|
800388c: 601a str r2, [r3, #0]
|
|
return (void *)-1;
|
|
800388e: f04f 33ff mov.w r3, #4294967295
|
|
8003892: e009 b.n 80038a8 <_sbrk+0x54>
|
|
}
|
|
|
|
prev_heap_end = __sbrk_heap_end;
|
|
8003894: 4b08 ldr r3, [pc, #32] @ (80038b8 <_sbrk+0x64>)
|
|
8003896: 681b ldr r3, [r3, #0]
|
|
8003898: 60fb str r3, [r7, #12]
|
|
__sbrk_heap_end += incr;
|
|
800389a: 4b07 ldr r3, [pc, #28] @ (80038b8 <_sbrk+0x64>)
|
|
800389c: 681a ldr r2, [r3, #0]
|
|
800389e: 687b ldr r3, [r7, #4]
|
|
80038a0: 4413 add r3, r2
|
|
80038a2: 4a05 ldr r2, [pc, #20] @ (80038b8 <_sbrk+0x64>)
|
|
80038a4: 6013 str r3, [r2, #0]
|
|
|
|
return (void *)prev_heap_end;
|
|
80038a6: 68fb ldr r3, [r7, #12]
|
|
}
|
|
80038a8: 4618 mov r0, r3
|
|
80038aa: 3718 adds r7, #24
|
|
80038ac: 46bd mov sp, r7
|
|
80038ae: bd80 pop {r7, pc}
|
|
80038b0: 20020000 .word 0x20020000
|
|
80038b4: 00000400 .word 0x00000400
|
|
80038b8: 20000274 .word 0x20000274
|
|
80038bc: 20008a18 .word 0x20008a18
|
|
|
|
080038c0 <SystemInit>:
|
|
* configuration.
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void SystemInit(void)
|
|
{
|
|
80038c0: b480 push {r7}
|
|
80038c2: af00 add r7, sp, #0
|
|
/* FPU settings ------------------------------------------------------------*/
|
|
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
|
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
|
|
80038c4: 4b06 ldr r3, [pc, #24] @ (80038e0 <SystemInit+0x20>)
|
|
80038c6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
|
|
80038ca: 4a05 ldr r2, [pc, #20] @ (80038e0 <SystemInit+0x20>)
|
|
80038cc: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
|
|
80038d0: f8c2 3088 str.w r3, [r2, #136] @ 0x88
|
|
|
|
/* Configure the Vector Table location -------------------------------------*/
|
|
#if defined(USER_VECT_TAB_ADDRESS)
|
|
SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
|
#endif /* USER_VECT_TAB_ADDRESS */
|
|
}
|
|
80038d4: bf00 nop
|
|
80038d6: 46bd mov sp, r7
|
|
80038d8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80038dc: 4770 bx lr
|
|
80038de: bf00 nop
|
|
80038e0: e000ed00 .word 0xe000ed00
|
|
|
|
080038e4 <MX_USART1_UART_Init>:
|
|
UART_HandleTypeDef huart1;
|
|
|
|
/* USART1 init function */
|
|
|
|
void MX_USART1_UART_Init(void)
|
|
{
|
|
80038e4: b580 push {r7, lr}
|
|
80038e6: af00 add r7, sp, #0
|
|
/* USER CODE END USART1_Init 0 */
|
|
|
|
/* USER CODE BEGIN USART1_Init 1 */
|
|
|
|
/* USER CODE END USART1_Init 1 */
|
|
huart1.Instance = USART1;
|
|
80038e8: 4b11 ldr r3, [pc, #68] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
80038ea: 4a12 ldr r2, [pc, #72] @ (8003934 <MX_USART1_UART_Init+0x50>)
|
|
80038ec: 601a str r2, [r3, #0]
|
|
huart1.Init.BaudRate = 115200;
|
|
80038ee: 4b10 ldr r3, [pc, #64] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
80038f0: f44f 32e1 mov.w r2, #115200 @ 0x1c200
|
|
80038f4: 605a str r2, [r3, #4]
|
|
huart1.Init.WordLength = UART_WORDLENGTH_8B;
|
|
80038f6: 4b0e ldr r3, [pc, #56] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
80038f8: 2200 movs r2, #0
|
|
80038fa: 609a str r2, [r3, #8]
|
|
huart1.Init.StopBits = UART_STOPBITS_1;
|
|
80038fc: 4b0c ldr r3, [pc, #48] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
80038fe: 2200 movs r2, #0
|
|
8003900: 60da str r2, [r3, #12]
|
|
huart1.Init.Parity = UART_PARITY_NONE;
|
|
8003902: 4b0b ldr r3, [pc, #44] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
8003904: 2200 movs r2, #0
|
|
8003906: 611a str r2, [r3, #16]
|
|
huart1.Init.Mode = UART_MODE_TX_RX;
|
|
8003908: 4b09 ldr r3, [pc, #36] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
800390a: 220c movs r2, #12
|
|
800390c: 615a str r2, [r3, #20]
|
|
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
|
|
800390e: 4b08 ldr r3, [pc, #32] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
8003910: 2200 movs r2, #0
|
|
8003912: 619a str r2, [r3, #24]
|
|
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
|
|
8003914: 4b06 ldr r3, [pc, #24] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
8003916: 2200 movs r2, #0
|
|
8003918: 61da str r2, [r3, #28]
|
|
if (HAL_UART_Init(&huart1) != HAL_OK)
|
|
800391a: 4805 ldr r0, [pc, #20] @ (8003930 <MX_USART1_UART_Init+0x4c>)
|
|
800391c: f001 fff8 bl 8005910 <HAL_UART_Init>
|
|
8003920: 4603 mov r3, r0
|
|
8003922: 2b00 cmp r3, #0
|
|
8003924: d001 beq.n 800392a <MX_USART1_UART_Init+0x46>
|
|
{
|
|
Error_Handler();
|
|
8003926: f7ff fe3b bl 80035a0 <Error_Handler>
|
|
}
|
|
/* USER CODE BEGIN USART1_Init 2 */
|
|
|
|
/* USER CODE END USART1_Init 2 */
|
|
|
|
}
|
|
800392a: bf00 nop
|
|
800392c: bd80 pop {r7, pc}
|
|
800392e: bf00 nop
|
|
8003930: 20000278 .word 0x20000278
|
|
8003934: 40011000 .word 0x40011000
|
|
|
|
08003938 <HAL_UART_MspInit>:
|
|
|
|
void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
|
|
{
|
|
8003938: b580 push {r7, lr}
|
|
800393a: b08a sub sp, #40 @ 0x28
|
|
800393c: af00 add r7, sp, #0
|
|
800393e: 6078 str r0, [r7, #4]
|
|
|
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
|
8003940: f107 0314 add.w r3, r7, #20
|
|
8003944: 2200 movs r2, #0
|
|
8003946: 601a str r2, [r3, #0]
|
|
8003948: 605a str r2, [r3, #4]
|
|
800394a: 609a str r2, [r3, #8]
|
|
800394c: 60da str r2, [r3, #12]
|
|
800394e: 611a str r2, [r3, #16]
|
|
if(uartHandle->Instance==USART1)
|
|
8003950: 687b ldr r3, [r7, #4]
|
|
8003952: 681b ldr r3, [r3, #0]
|
|
8003954: 4a19 ldr r2, [pc, #100] @ (80039bc <HAL_UART_MspInit+0x84>)
|
|
8003956: 4293 cmp r3, r2
|
|
8003958: d12c bne.n 80039b4 <HAL_UART_MspInit+0x7c>
|
|
{
|
|
/* USER CODE BEGIN USART1_MspInit 0 */
|
|
|
|
/* USER CODE END USART1_MspInit 0 */
|
|
/* USART1 clock enable */
|
|
__HAL_RCC_USART1_CLK_ENABLE();
|
|
800395a: 2300 movs r3, #0
|
|
800395c: 613b str r3, [r7, #16]
|
|
800395e: 4b18 ldr r3, [pc, #96] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
8003960: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
8003962: 4a17 ldr r2, [pc, #92] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
8003964: f043 0310 orr.w r3, r3, #16
|
|
8003968: 6453 str r3, [r2, #68] @ 0x44
|
|
800396a: 4b15 ldr r3, [pc, #84] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
800396c: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
800396e: f003 0310 and.w r3, r3, #16
|
|
8003972: 613b str r3, [r7, #16]
|
|
8003974: 693b ldr r3, [r7, #16]
|
|
|
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
|
8003976: 2300 movs r3, #0
|
|
8003978: 60fb str r3, [r7, #12]
|
|
800397a: 4b11 ldr r3, [pc, #68] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
800397c: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800397e: 4a10 ldr r2, [pc, #64] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
8003980: f043 0301 orr.w r3, r3, #1
|
|
8003984: 6313 str r3, [r2, #48] @ 0x30
|
|
8003986: 4b0e ldr r3, [pc, #56] @ (80039c0 <HAL_UART_MspInit+0x88>)
|
|
8003988: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800398a: f003 0301 and.w r3, r3, #1
|
|
800398e: 60fb str r3, [r7, #12]
|
|
8003990: 68fb ldr r3, [r7, #12]
|
|
/**USART1 GPIO Configuration
|
|
PA9 ------> USART1_TX
|
|
PA10 ------> USART1_RX
|
|
*/
|
|
GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10;
|
|
8003992: f44f 63c0 mov.w r3, #1536 @ 0x600
|
|
8003996: 617b str r3, [r7, #20]
|
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
|
|
8003998: 2302 movs r3, #2
|
|
800399a: 61bb str r3, [r7, #24]
|
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
|
800399c: 2300 movs r3, #0
|
|
800399e: 61fb str r3, [r7, #28]
|
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
|
80039a0: 2303 movs r3, #3
|
|
80039a2: 623b str r3, [r7, #32]
|
|
GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
|
|
80039a4: 2307 movs r3, #7
|
|
80039a6: 627b str r3, [r7, #36] @ 0x24
|
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
|
80039a8: f107 0314 add.w r3, r7, #20
|
|
80039ac: 4619 mov r1, r3
|
|
80039ae: 4805 ldr r0, [pc, #20] @ (80039c4 <HAL_UART_MspInit+0x8c>)
|
|
80039b0: f000 fea6 bl 8004700 <HAL_GPIO_Init>
|
|
|
|
/* USER CODE BEGIN USART1_MspInit 1 */
|
|
|
|
/* USER CODE END USART1_MspInit 1 */
|
|
}
|
|
}
|
|
80039b4: bf00 nop
|
|
80039b6: 3728 adds r7, #40 @ 0x28
|
|
80039b8: 46bd mov sp, r7
|
|
80039ba: bd80 pop {r7, pc}
|
|
80039bc: 40011000 .word 0x40011000
|
|
80039c0: 40023800 .word 0x40023800
|
|
80039c4: 40020000 .word 0x40020000
|
|
|
|
080039c8 <Reset_Handler>:
|
|
|
|
.section .text.Reset_Handler
|
|
.weak Reset_Handler
|
|
.type Reset_Handler, %function
|
|
Reset_Handler:
|
|
ldr sp, =_estack /* set stack pointer */
|
|
80039c8: f8df d034 ldr.w sp, [pc, #52] @ 8003a00 <LoopFillZerobss+0xe>
|
|
|
|
/* Call the clock system initialization function.*/
|
|
bl SystemInit
|
|
80039cc: f7ff ff78 bl 80038c0 <SystemInit>
|
|
|
|
/* Copy the data segment initializers from flash to SRAM */
|
|
ldr r0, =_sdata
|
|
80039d0: 480c ldr r0, [pc, #48] @ (8003a04 <LoopFillZerobss+0x12>)
|
|
ldr r1, =_edata
|
|
80039d2: 490d ldr r1, [pc, #52] @ (8003a08 <LoopFillZerobss+0x16>)
|
|
ldr r2, =_sidata
|
|
80039d4: 4a0d ldr r2, [pc, #52] @ (8003a0c <LoopFillZerobss+0x1a>)
|
|
movs r3, #0
|
|
80039d6: 2300 movs r3, #0
|
|
b LoopCopyDataInit
|
|
80039d8: e002 b.n 80039e0 <LoopCopyDataInit>
|
|
|
|
080039da <CopyDataInit>:
|
|
|
|
CopyDataInit:
|
|
ldr r4, [r2, r3]
|
|
80039da: 58d4 ldr r4, [r2, r3]
|
|
str r4, [r0, r3]
|
|
80039dc: 50c4 str r4, [r0, r3]
|
|
adds r3, r3, #4
|
|
80039de: 3304 adds r3, #4
|
|
|
|
080039e0 <LoopCopyDataInit>:
|
|
|
|
LoopCopyDataInit:
|
|
adds r4, r0, r3
|
|
80039e0: 18c4 adds r4, r0, r3
|
|
cmp r4, r1
|
|
80039e2: 428c cmp r4, r1
|
|
bcc CopyDataInit
|
|
80039e4: d3f9 bcc.n 80039da <CopyDataInit>
|
|
|
|
/* Zero fill the bss segment. */
|
|
ldr r2, =_sbss
|
|
80039e6: 4a0a ldr r2, [pc, #40] @ (8003a10 <LoopFillZerobss+0x1e>)
|
|
ldr r4, =_ebss
|
|
80039e8: 4c0a ldr r4, [pc, #40] @ (8003a14 <LoopFillZerobss+0x22>)
|
|
movs r3, #0
|
|
80039ea: 2300 movs r3, #0
|
|
b LoopFillZerobss
|
|
80039ec: e001 b.n 80039f2 <LoopFillZerobss>
|
|
|
|
080039ee <FillZerobss>:
|
|
|
|
FillZerobss:
|
|
str r3, [r2]
|
|
80039ee: 6013 str r3, [r2, #0]
|
|
adds r2, r2, #4
|
|
80039f0: 3204 adds r2, #4
|
|
|
|
080039f2 <LoopFillZerobss>:
|
|
|
|
LoopFillZerobss:
|
|
cmp r2, r4
|
|
80039f2: 42a2 cmp r2, r4
|
|
bcc FillZerobss
|
|
80039f4: d3fb bcc.n 80039ee <FillZerobss>
|
|
|
|
/* Call static constructors */
|
|
bl __libc_init_array
|
|
80039f6: f00d f82d bl 8010a54 <__libc_init_array>
|
|
/* Call the application's entry point.*/
|
|
bl main
|
|
80039fa: f7ff fd43 bl 8003484 <main>
|
|
bx lr
|
|
80039fe: 4770 bx lr
|
|
ldr sp, =_estack /* set stack pointer */
|
|
8003a00: 20020000 .word 0x20020000
|
|
ldr r0, =_sdata
|
|
8003a04: 20000000 .word 0x20000000
|
|
ldr r1, =_edata
|
|
8003a08: 200001dc .word 0x200001dc
|
|
ldr r2, =_sidata
|
|
8003a0c: 08013754 .word 0x08013754
|
|
ldr r2, =_sbss
|
|
8003a10: 200001dc .word 0x200001dc
|
|
ldr r4, =_ebss
|
|
8003a14: 20008a18 .word 0x20008a18
|
|
|
|
08003a18 <ADC_IRQHandler>:
|
|
* @retval None
|
|
*/
|
|
.section .text.Default_Handler,"ax",%progbits
|
|
Default_Handler:
|
|
Infinite_Loop:
|
|
b Infinite_Loop
|
|
8003a18: e7fe b.n 8003a18 <ADC_IRQHandler>
|
|
|
|
08003a1a <stm32_lock_init>:
|
|
/**
|
|
* @brief Initialize STM32 lock
|
|
* @param lock The lock to init
|
|
*/
|
|
static inline void stm32_lock_init(LockingData_t *lock)
|
|
{
|
|
8003a1a: b580 push {r7, lr}
|
|
8003a1c: b084 sub sp, #16
|
|
8003a1e: af00 add r7, sp, #0
|
|
8003a20: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock);
|
|
8003a22: 687b ldr r3, [r7, #4]
|
|
8003a24: 2b00 cmp r3, #0
|
|
8003a26: d105 bne.n 8003a34 <stm32_lock_init+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003a28: b672 cpsid i
|
|
}
|
|
8003a2a: bf00 nop
|
|
8003a2c: f7ff fdb8 bl 80035a0 <Error_Handler>
|
|
8003a30: bf00 nop
|
|
8003a32: e7fd b.n 8003a30 <stm32_lock_init+0x16>
|
|
for (size_t i = 0; i < STM32_LOCK_ARRAY_SIZE(lock->basepri); i++)
|
|
8003a34: 2300 movs r3, #0
|
|
8003a36: 60fb str r3, [r7, #12]
|
|
8003a38: e007 b.n 8003a4a <stm32_lock_init+0x30>
|
|
{
|
|
lock->basepri[i] = 0;
|
|
8003a3a: 687b ldr r3, [r7, #4]
|
|
8003a3c: 68fa ldr r2, [r7, #12]
|
|
8003a3e: 2100 movs r1, #0
|
|
8003a40: f843 1022 str.w r1, [r3, r2, lsl #2]
|
|
for (size_t i = 0; i < STM32_LOCK_ARRAY_SIZE(lock->basepri); i++)
|
|
8003a44: 68fb ldr r3, [r7, #12]
|
|
8003a46: 3301 adds r3, #1
|
|
8003a48: 60fb str r3, [r7, #12]
|
|
8003a4a: 68fb ldr r3, [r7, #12]
|
|
8003a4c: 2b01 cmp r3, #1
|
|
8003a4e: d9f4 bls.n 8003a3a <stm32_lock_init+0x20>
|
|
}
|
|
lock->nesting_level = 0;
|
|
8003a50: 687b ldr r3, [r7, #4]
|
|
8003a52: 2200 movs r2, #0
|
|
8003a54: 721a strb r2, [r3, #8]
|
|
}
|
|
8003a56: bf00 nop
|
|
8003a58: 3710 adds r7, #16
|
|
8003a5a: 46bd mov sp, r7
|
|
8003a5c: bd80 pop {r7, pc}
|
|
|
|
08003a5e <stm32_lock_acquire>:
|
|
/**
|
|
* @brief Acquire STM32 lock
|
|
* @param lock The lock to acquire
|
|
*/
|
|
static inline void stm32_lock_acquire(LockingData_t *lock)
|
|
{
|
|
8003a5e: b580 push {r7, lr}
|
|
8003a60: b084 sub sp, #16
|
|
8003a62: af00 add r7, sp, #0
|
|
8003a64: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock);
|
|
8003a66: 687b ldr r3, [r7, #4]
|
|
8003a68: 2b00 cmp r3, #0
|
|
8003a6a: d105 bne.n 8003a78 <stm32_lock_acquire+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003a6c: b672 cpsid i
|
|
}
|
|
8003a6e: bf00 nop
|
|
8003a70: f7ff fd96 bl 80035a0 <Error_Handler>
|
|
8003a74: bf00 nop
|
|
8003a76: e7fd b.n 8003a74 <stm32_lock_acquire+0x16>
|
|
STM32_LOCK_ASSERT_VALID_NESTING_LEVEL(lock);
|
|
8003a78: 687b ldr r3, [r7, #4]
|
|
8003a7a: 7a1b ldrb r3, [r3, #8]
|
|
8003a7c: 2b01 cmp r3, #1
|
|
8003a7e: d905 bls.n 8003a8c <stm32_lock_acquire+0x2e>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003a80: b672 cpsid i
|
|
}
|
|
8003a82: bf00 nop
|
|
8003a84: f7ff fd8c bl 80035a0 <Error_Handler>
|
|
8003a88: bf00 nop
|
|
8003a8a: e7fd b.n 8003a88 <stm32_lock_acquire+0x2a>
|
|
lock->basepri[lock->nesting_level++] = taskENTER_CRITICAL_FROM_ISR();
|
|
8003a8c: 687b ldr r3, [r7, #4]
|
|
8003a8e: 7a1b ldrb r3, [r3, #8]
|
|
8003a90: 1c5a adds r2, r3, #1
|
|
8003a92: b2d1 uxtb r1, r2
|
|
8003a94: 687a ldr r2, [r7, #4]
|
|
8003a96: 7211 strb r1, [r2, #8]
|
|
8003a98: 4619 mov r1, r3
|
|
|
|
portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
|
|
{
|
|
uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
|
|
|
|
__asm volatile
|
|
8003a9a: f3ef 8211 mrs r2, BASEPRI
|
|
8003a9e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
8003aa2: f383 8811 msr BASEPRI, r3
|
|
8003aa6: f3bf 8f6f isb sy
|
|
8003aaa: f3bf 8f4f dsb sy
|
|
8003aae: 60fa str r2, [r7, #12]
|
|
8003ab0: 60bb str r3, [r7, #8]
|
|
:"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
|
|
);
|
|
|
|
/* This return will not be reached but is necessary to prevent compiler
|
|
warnings. */
|
|
return ulOriginalBASEPRI;
|
|
8003ab2: 68fa ldr r2, [r7, #12]
|
|
8003ab4: 687b ldr r3, [r7, #4]
|
|
8003ab6: f843 2021 str.w r2, [r3, r1, lsl #2]
|
|
}
|
|
8003aba: bf00 nop
|
|
8003abc: 3710 adds r7, #16
|
|
8003abe: 46bd mov sp, r7
|
|
8003ac0: bd80 pop {r7, pc}
|
|
|
|
08003ac2 <stm32_lock_release>:
|
|
/**
|
|
* @brief Release STM32 lock
|
|
* @param lock The lock to release
|
|
*/
|
|
static inline void stm32_lock_release(LockingData_t *lock)
|
|
{
|
|
8003ac2: b580 push {r7, lr}
|
|
8003ac4: b084 sub sp, #16
|
|
8003ac6: af00 add r7, sp, #0
|
|
8003ac8: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock);
|
|
8003aca: 687b ldr r3, [r7, #4]
|
|
8003acc: 2b00 cmp r3, #0
|
|
8003ace: d105 bne.n 8003adc <stm32_lock_release+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003ad0: b672 cpsid i
|
|
}
|
|
8003ad2: bf00 nop
|
|
8003ad4: f7ff fd64 bl 80035a0 <Error_Handler>
|
|
8003ad8: bf00 nop
|
|
8003ada: e7fd b.n 8003ad8 <stm32_lock_release+0x16>
|
|
lock->nesting_level--;
|
|
8003adc: 687b ldr r3, [r7, #4]
|
|
8003ade: 7a1b ldrb r3, [r3, #8]
|
|
8003ae0: 3b01 subs r3, #1
|
|
8003ae2: b2da uxtb r2, r3
|
|
8003ae4: 687b ldr r3, [r7, #4]
|
|
8003ae6: 721a strb r2, [r3, #8]
|
|
STM32_LOCK_ASSERT_VALID_NESTING_LEVEL(lock);
|
|
8003ae8: 687b ldr r3, [r7, #4]
|
|
8003aea: 7a1b ldrb r3, [r3, #8]
|
|
8003aec: 2b01 cmp r3, #1
|
|
8003aee: d905 bls.n 8003afc <stm32_lock_release+0x3a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003af0: b672 cpsid i
|
|
}
|
|
8003af2: bf00 nop
|
|
8003af4: f7ff fd54 bl 80035a0 <Error_Handler>
|
|
8003af8: bf00 nop
|
|
8003afa: e7fd b.n 8003af8 <stm32_lock_release+0x36>
|
|
taskEXIT_CRITICAL_FROM_ISR(lock->basepri[lock->nesting_level]);
|
|
8003afc: 687b ldr r3, [r7, #4]
|
|
8003afe: 7a1b ldrb r3, [r3, #8]
|
|
8003b00: 461a mov r2, r3
|
|
8003b02: 687b ldr r3, [r7, #4]
|
|
8003b04: f853 3022 ldr.w r3, [r3, r2, lsl #2]
|
|
8003b08: 60fb str r3, [r7, #12]
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
|
|
{
|
|
__asm volatile
|
|
8003b0a: 68fb ldr r3, [r7, #12]
|
|
8003b0c: f383 8811 msr BASEPRI, r3
|
|
(
|
|
" msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
|
|
);
|
|
}
|
|
8003b10: bf00 nop
|
|
}
|
|
8003b12: bf00 nop
|
|
8003b14: 3710 adds r7, #16
|
|
8003b16: 46bd mov sp, r7
|
|
8003b18: bd80 pop {r7, pc}
|
|
|
|
08003b1a <__retarget_lock_init_recursive>:
|
|
/**
|
|
* @brief Initialize recursive lock
|
|
* @param lock The lock
|
|
*/
|
|
void __retarget_lock_init_recursive(_LOCK_T *lock)
|
|
{
|
|
8003b1a: b580 push {r7, lr}
|
|
8003b1c: b082 sub sp, #8
|
|
8003b1e: af00 add r7, sp, #0
|
|
8003b20: 6078 str r0, [r7, #4]
|
|
if (lock == NULL)
|
|
8003b22: 687b ldr r3, [r7, #4]
|
|
8003b24: 2b00 cmp r3, #0
|
|
8003b26: d105 bne.n 8003b34 <__retarget_lock_init_recursive+0x1a>
|
|
{
|
|
errno = EINVAL;
|
|
8003b28: f00c ff8e bl 8010a48 <__errno>
|
|
8003b2c: 4603 mov r3, r0
|
|
8003b2e: 2216 movs r2, #22
|
|
8003b30: 601a str r2, [r3, #0]
|
|
return;
|
|
8003b32: e016 b.n 8003b62 <__retarget_lock_init_recursive+0x48>
|
|
}
|
|
|
|
*lock = (_LOCK_T)malloc(sizeof(struct __lock));
|
|
8003b34: 200c movs r0, #12
|
|
8003b36: f00c f803 bl 800fb40 <malloc>
|
|
8003b3a: 4603 mov r3, r0
|
|
8003b3c: 461a mov r2, r3
|
|
8003b3e: 687b ldr r3, [r7, #4]
|
|
8003b40: 601a str r2, [r3, #0]
|
|
if (*lock != NULL)
|
|
8003b42: 687b ldr r3, [r7, #4]
|
|
8003b44: 681b ldr r3, [r3, #0]
|
|
8003b46: 2b00 cmp r3, #0
|
|
8003b48: d005 beq.n 8003b56 <__retarget_lock_init_recursive+0x3c>
|
|
{
|
|
stm32_lock_init(STM32_LOCK_PARAMETER(*lock));
|
|
8003b4a: 687b ldr r3, [r7, #4]
|
|
8003b4c: 681b ldr r3, [r3, #0]
|
|
8003b4e: 4618 mov r0, r3
|
|
8003b50: f7ff ff63 bl 8003a1a <stm32_lock_init>
|
|
return;
|
|
8003b54: e005 b.n 8003b62 <__retarget_lock_init_recursive+0x48>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003b56: b672 cpsid i
|
|
}
|
|
8003b58: bf00 nop
|
|
}
|
|
|
|
/* Unable to allocate memory */
|
|
STM32_LOCK_BLOCK();
|
|
8003b5a: f7ff fd21 bl 80035a0 <Error_Handler>
|
|
8003b5e: bf00 nop
|
|
8003b60: e7fd b.n 8003b5e <__retarget_lock_init_recursive+0x44>
|
|
}
|
|
8003b62: 3708 adds r7, #8
|
|
8003b64: 46bd mov sp, r7
|
|
8003b66: bd80 pop {r7, pc}
|
|
|
|
08003b68 <__retarget_lock_acquire_recursive>:
|
|
/**
|
|
* @brief Acquire recursive lock
|
|
* @param lock The lock
|
|
*/
|
|
void __retarget_lock_acquire_recursive(_LOCK_T lock)
|
|
{
|
|
8003b68: b580 push {r7, lr}
|
|
8003b6a: b082 sub sp, #8
|
|
8003b6c: af00 add r7, sp, #0
|
|
8003b6e: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock);
|
|
8003b70: 687b ldr r3, [r7, #4]
|
|
8003b72: 2b00 cmp r3, #0
|
|
8003b74: d105 bne.n 8003b82 <__retarget_lock_acquire_recursive+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003b76: b672 cpsid i
|
|
}
|
|
8003b78: bf00 nop
|
|
8003b7a: f7ff fd11 bl 80035a0 <Error_Handler>
|
|
8003b7e: bf00 nop
|
|
8003b80: e7fd b.n 8003b7e <__retarget_lock_acquire_recursive+0x16>
|
|
stm32_lock_acquire(STM32_LOCK_PARAMETER(lock));
|
|
8003b82: 687b ldr r3, [r7, #4]
|
|
8003b84: 4618 mov r0, r3
|
|
8003b86: f7ff ff6a bl 8003a5e <stm32_lock_acquire>
|
|
}
|
|
8003b8a: bf00 nop
|
|
8003b8c: 3708 adds r7, #8
|
|
8003b8e: 46bd mov sp, r7
|
|
8003b90: bd80 pop {r7, pc}
|
|
|
|
08003b92 <__retarget_lock_release_recursive>:
|
|
/**
|
|
* @brief Release recursive lock
|
|
* @param lock The lock
|
|
*/
|
|
void __retarget_lock_release_recursive(_LOCK_T lock)
|
|
{
|
|
8003b92: b580 push {r7, lr}
|
|
8003b94: b082 sub sp, #8
|
|
8003b96: af00 add r7, sp, #0
|
|
8003b98: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(lock);
|
|
8003b9a: 687b ldr r3, [r7, #4]
|
|
8003b9c: 2b00 cmp r3, #0
|
|
8003b9e: d105 bne.n 8003bac <__retarget_lock_release_recursive+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003ba0: b672 cpsid i
|
|
}
|
|
8003ba2: bf00 nop
|
|
8003ba4: f7ff fcfc bl 80035a0 <Error_Handler>
|
|
8003ba8: bf00 nop
|
|
8003baa: e7fd b.n 8003ba8 <__retarget_lock_release_recursive+0x16>
|
|
stm32_lock_release(STM32_LOCK_PARAMETER(lock));
|
|
8003bac: 687b ldr r3, [r7, #4]
|
|
8003bae: 4618 mov r0, r3
|
|
8003bb0: f7ff ff87 bl 8003ac2 <stm32_lock_release>
|
|
}
|
|
8003bb4: bf00 nop
|
|
8003bb6: 3708 adds r7, #8
|
|
8003bb8: 46bd mov sp, r7
|
|
8003bba: bd80 pop {r7, pc}
|
|
|
|
08003bbc <__cxa_guard_acquire>:
|
|
* @brief Acquire __cxa_guard mutex
|
|
* @param guard_object Guard object
|
|
* @return 0 if object is initialized, else initialization of object required
|
|
*/
|
|
int __cxa_guard_acquire(CxaGuardObject_t *guard_object)
|
|
{
|
|
8003bbc: b580 push {r7, lr}
|
|
8003bbe: b086 sub sp, #24
|
|
8003bc0: af00 add r7, sp, #0
|
|
8003bc2: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(guard_object);
|
|
8003bc4: 687b ldr r3, [r7, #4]
|
|
8003bc6: 2b00 cmp r3, #0
|
|
8003bc8: d105 bne.n 8003bd6 <__cxa_guard_acquire+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003bca: b672 cpsid i
|
|
}
|
|
8003bcc: bf00 nop
|
|
8003bce: f7ff fce7 bl 80035a0 <Error_Handler>
|
|
8003bd2: bf00 nop
|
|
8003bd4: e7fd b.n 8003bd2 <__cxa_guard_acquire+0x16>
|
|
|
|
if (atomic_load(&guard_object->initialized) == 0)
|
|
8003bd6: 687b ldr r3, [r7, #4]
|
|
8003bd8: 617b str r3, [r7, #20]
|
|
8003bda: 697b ldr r3, [r7, #20]
|
|
8003bdc: f3bf 8f5b dmb ish
|
|
8003be0: 781b ldrb r3, [r3, #0]
|
|
8003be2: f3bf 8f5b dmb ish
|
|
8003be6: b2db uxtb r3, r3
|
|
8003be8: 73fb strb r3, [r7, #15]
|
|
8003bea: 7bfb ldrb r3, [r7, #15]
|
|
8003bec: 2b00 cmp r3, #0
|
|
8003bee: d121 bne.n 8003c34 <__cxa_guard_acquire+0x78>
|
|
{
|
|
/* Object needs initialization, lock threading context */
|
|
stm32_lock_acquire(&__cxa_guard_mutex);
|
|
8003bf0: 4813 ldr r0, [pc, #76] @ (8003c40 <__cxa_guard_acquire+0x84>)
|
|
8003bf2: f7ff ff34 bl 8003a5e <stm32_lock_acquire>
|
|
if (atomic_load(&guard_object->initialized) == 0)
|
|
8003bf6: 687b ldr r3, [r7, #4]
|
|
8003bf8: 613b str r3, [r7, #16]
|
|
8003bfa: 693b ldr r3, [r7, #16]
|
|
8003bfc: f3bf 8f5b dmb ish
|
|
8003c00: 781b ldrb r3, [r3, #0]
|
|
8003c02: f3bf 8f5b dmb ish
|
|
8003c06: b2db uxtb r3, r3
|
|
8003c08: 73bb strb r3, [r7, #14]
|
|
8003c0a: 7bbb ldrb r3, [r7, #14]
|
|
8003c0c: 2b00 cmp r3, #0
|
|
8003c0e: d10e bne.n 8003c2e <__cxa_guard_acquire+0x72>
|
|
{
|
|
/* Object needs initialization */
|
|
if (guard_object->acquired)
|
|
8003c10: 687b ldr r3, [r7, #4]
|
|
8003c12: 785b ldrb r3, [r3, #1]
|
|
8003c14: 2b00 cmp r3, #0
|
|
8003c16: d005 beq.n 8003c24 <__cxa_guard_acquire+0x68>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003c18: b672 cpsid i
|
|
}
|
|
8003c1a: bf00 nop
|
|
{
|
|
/* Object initialization already in progress */
|
|
STM32_LOCK_BLOCK();
|
|
8003c1c: f7ff fcc0 bl 80035a0 <Error_Handler>
|
|
8003c20: bf00 nop
|
|
8003c22: e7fd b.n 8003c20 <__cxa_guard_acquire+0x64>
|
|
}
|
|
|
|
/* Lock acquired */
|
|
guard_object->acquired = 1;
|
|
8003c24: 687b ldr r3, [r7, #4]
|
|
8003c26: 2201 movs r2, #1
|
|
8003c28: 705a strb r2, [r3, #1]
|
|
return 1;
|
|
8003c2a: 2301 movs r3, #1
|
|
8003c2c: e003 b.n 8003c36 <__cxa_guard_acquire+0x7a>
|
|
}
|
|
else
|
|
{
|
|
/* Object initialized in another thread */
|
|
stm32_lock_release(&__cxa_guard_mutex);
|
|
8003c2e: 4804 ldr r0, [pc, #16] @ (8003c40 <__cxa_guard_acquire+0x84>)
|
|
8003c30: f7ff ff47 bl 8003ac2 <stm32_lock_release>
|
|
}
|
|
}
|
|
|
|
/* Object already initialized */
|
|
return 0;
|
|
8003c34: 2300 movs r3, #0
|
|
}
|
|
8003c36: 4618 mov r0, r3
|
|
8003c38: 3718 adds r7, #24
|
|
8003c3a: 46bd mov sp, r7
|
|
8003c3c: bd80 pop {r7, pc}
|
|
8003c3e: bf00 nop
|
|
8003c40: 200002e4 .word 0x200002e4
|
|
|
|
08003c44 <__cxa_guard_abort>:
|
|
/**
|
|
* @brief Abort __cxa_guard mutex
|
|
* @param guard_object Guard object
|
|
*/
|
|
void __cxa_guard_abort(CxaGuardObject_t *guard_object)
|
|
{
|
|
8003c44: b580 push {r7, lr}
|
|
8003c46: b082 sub sp, #8
|
|
8003c48: af00 add r7, sp, #0
|
|
8003c4a: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(guard_object);
|
|
8003c4c: 687b ldr r3, [r7, #4]
|
|
8003c4e: 2b00 cmp r3, #0
|
|
8003c50: d105 bne.n 8003c5e <__cxa_guard_abort+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003c52: b672 cpsid i
|
|
}
|
|
8003c54: bf00 nop
|
|
8003c56: f7ff fca3 bl 80035a0 <Error_Handler>
|
|
8003c5a: bf00 nop
|
|
8003c5c: e7fd b.n 8003c5a <__cxa_guard_abort+0x16>
|
|
|
|
if (guard_object->acquired)
|
|
8003c5e: 687b ldr r3, [r7, #4]
|
|
8003c60: 785b ldrb r3, [r3, #1]
|
|
8003c62: 2b00 cmp r3, #0
|
|
8003c64: d006 beq.n 8003c74 <__cxa_guard_abort+0x30>
|
|
{
|
|
/* Release lock */
|
|
guard_object->acquired = 0;
|
|
8003c66: 687b ldr r3, [r7, #4]
|
|
8003c68: 2200 movs r2, #0
|
|
8003c6a: 705a strb r2, [r3, #1]
|
|
stm32_lock_release(&__cxa_guard_mutex);
|
|
8003c6c: 4806 ldr r0, [pc, #24] @ (8003c88 <__cxa_guard_abort+0x44>)
|
|
8003c6e: f7ff ff28 bl 8003ac2 <stm32_lock_release>
|
|
else
|
|
{
|
|
/* Trying to release non-acquired lock */
|
|
STM32_LOCK_BLOCK();
|
|
}
|
|
}
|
|
8003c72: e005 b.n 8003c80 <__cxa_guard_abort+0x3c>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003c74: b672 cpsid i
|
|
}
|
|
8003c76: bf00 nop
|
|
STM32_LOCK_BLOCK();
|
|
8003c78: f7ff fc92 bl 80035a0 <Error_Handler>
|
|
8003c7c: bf00 nop
|
|
8003c7e: e7fd b.n 8003c7c <__cxa_guard_abort+0x38>
|
|
}
|
|
8003c80: 3708 adds r7, #8
|
|
8003c82: 46bd mov sp, r7
|
|
8003c84: bd80 pop {r7, pc}
|
|
8003c86: bf00 nop
|
|
8003c88: 200002e4 .word 0x200002e4
|
|
|
|
08003c8c <__cxa_guard_release>:
|
|
/**
|
|
* @brief Release __cxa_guard mutex
|
|
* @param guard_object Guard object
|
|
*/
|
|
void __cxa_guard_release(CxaGuardObject_t *guard_object)
|
|
{
|
|
8003c8c: b580 push {r7, lr}
|
|
8003c8e: b084 sub sp, #16
|
|
8003c90: af00 add r7, sp, #0
|
|
8003c92: 6078 str r0, [r7, #4]
|
|
STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(guard_object);
|
|
8003c94: 687b ldr r3, [r7, #4]
|
|
8003c96: 2b00 cmp r3, #0
|
|
8003c98: d105 bne.n 8003ca6 <__cxa_guard_release+0x1a>
|
|
__ASM volatile ("cpsid i" : : : "memory");
|
|
8003c9a: b672 cpsid i
|
|
}
|
|
8003c9c: bf00 nop
|
|
8003c9e: f7ff fc7f bl 80035a0 <Error_Handler>
|
|
8003ca2: bf00 nop
|
|
8003ca4: e7fd b.n 8003ca2 <__cxa_guard_release+0x16>
|
|
|
|
/* Object initialized */
|
|
atomic_store(&guard_object->initialized, 1);
|
|
8003ca6: 687b ldr r3, [r7, #4]
|
|
8003ca8: 60fb str r3, [r7, #12]
|
|
8003caa: 2301 movs r3, #1
|
|
8003cac: 72fb strb r3, [r7, #11]
|
|
8003cae: 7afa ldrb r2, [r7, #11]
|
|
8003cb0: 68fb ldr r3, [r7, #12]
|
|
8003cb2: f3bf 8f5b dmb ish
|
|
8003cb6: 701a strb r2, [r3, #0]
|
|
8003cb8: f3bf 8f5b dmb ish
|
|
|
|
/* Release lock */
|
|
__cxa_guard_abort(guard_object);
|
|
8003cbc: 6878 ldr r0, [r7, #4]
|
|
8003cbe: f7ff ffc1 bl 8003c44 <__cxa_guard_abort>
|
|
}
|
|
8003cc2: bf00 nop
|
|
8003cc4: 3710 adds r7, #16
|
|
8003cc6: 46bd mov sp, r7
|
|
8003cc8: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08003ccc <HAL_Init>:
|
|
* need to ensure that the SysTick time base is always set to 1 millisecond
|
|
* to have correct HAL operation.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_Init(void)
|
|
{
|
|
8003ccc: b580 push {r7, lr}
|
|
8003cce: af00 add r7, sp, #0
|
|
/* Configure Flash prefetch, Instruction cache, Data cache */
|
|
#if (INSTRUCTION_CACHE_ENABLE != 0U)
|
|
__HAL_FLASH_INSTRUCTION_CACHE_ENABLE();
|
|
8003cd0: 4b0e ldr r3, [pc, #56] @ (8003d0c <HAL_Init+0x40>)
|
|
8003cd2: 681b ldr r3, [r3, #0]
|
|
8003cd4: 4a0d ldr r2, [pc, #52] @ (8003d0c <HAL_Init+0x40>)
|
|
8003cd6: f443 7300 orr.w r3, r3, #512 @ 0x200
|
|
8003cda: 6013 str r3, [r2, #0]
|
|
#endif /* INSTRUCTION_CACHE_ENABLE */
|
|
|
|
#if (DATA_CACHE_ENABLE != 0U)
|
|
__HAL_FLASH_DATA_CACHE_ENABLE();
|
|
8003cdc: 4b0b ldr r3, [pc, #44] @ (8003d0c <HAL_Init+0x40>)
|
|
8003cde: 681b ldr r3, [r3, #0]
|
|
8003ce0: 4a0a ldr r2, [pc, #40] @ (8003d0c <HAL_Init+0x40>)
|
|
8003ce2: f443 6380 orr.w r3, r3, #1024 @ 0x400
|
|
8003ce6: 6013 str r3, [r2, #0]
|
|
#endif /* DATA_CACHE_ENABLE */
|
|
|
|
#if (PREFETCH_ENABLE != 0U)
|
|
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
|
|
8003ce8: 4b08 ldr r3, [pc, #32] @ (8003d0c <HAL_Init+0x40>)
|
|
8003cea: 681b ldr r3, [r3, #0]
|
|
8003cec: 4a07 ldr r2, [pc, #28] @ (8003d0c <HAL_Init+0x40>)
|
|
8003cee: f443 7380 orr.w r3, r3, #256 @ 0x100
|
|
8003cf2: 6013 str r3, [r2, #0]
|
|
#endif /* PREFETCH_ENABLE */
|
|
|
|
/* Set Interrupt Group Priority */
|
|
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
|
|
8003cf4: 2003 movs r0, #3
|
|
8003cf6: f000 fcce bl 8004696 <HAL_NVIC_SetPriorityGrouping>
|
|
|
|
/* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
|
|
HAL_InitTick(TICK_INT_PRIORITY);
|
|
8003cfa: 200f movs r0, #15
|
|
8003cfc: f7ff fc82 bl 8003604 <HAL_InitTick>
|
|
|
|
/* Init the low level hardware */
|
|
HAL_MspInit();
|
|
8003d00: f7ff fc54 bl 80035ac <HAL_MspInit>
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
8003d04: 2300 movs r3, #0
|
|
}
|
|
8003d06: 4618 mov r0, r3
|
|
8003d08: bd80 pop {r7, pc}
|
|
8003d0a: bf00 nop
|
|
8003d0c: 40023c00 .word 0x40023c00
|
|
|
|
08003d10 <HAL_IncTick>:
|
|
* @note This function is declared as __weak to be overwritten in case of other
|
|
* implementations in user file.
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_IncTick(void)
|
|
{
|
|
8003d10: b480 push {r7}
|
|
8003d12: af00 add r7, sp, #0
|
|
uwTick += uwTickFreq;
|
|
8003d14: 4b06 ldr r3, [pc, #24] @ (8003d30 <HAL_IncTick+0x20>)
|
|
8003d16: 781b ldrb r3, [r3, #0]
|
|
8003d18: 461a mov r2, r3
|
|
8003d1a: 4b06 ldr r3, [pc, #24] @ (8003d34 <HAL_IncTick+0x24>)
|
|
8003d1c: 681b ldr r3, [r3, #0]
|
|
8003d1e: 4413 add r3, r2
|
|
8003d20: 4a04 ldr r2, [pc, #16] @ (8003d34 <HAL_IncTick+0x24>)
|
|
8003d22: 6013 str r3, [r2, #0]
|
|
}
|
|
8003d24: bf00 nop
|
|
8003d26: 46bd mov sp, r7
|
|
8003d28: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003d2c: 4770 bx lr
|
|
8003d2e: bf00 nop
|
|
8003d30: 20000008 .word 0x20000008
|
|
8003d34: 200002f0 .word 0x200002f0
|
|
|
|
08003d38 <HAL_GetTick>:
|
|
* @note This function is declared as __weak to be overwritten in case of other
|
|
* implementations in user file.
|
|
* @retval tick value
|
|
*/
|
|
__weak uint32_t HAL_GetTick(void)
|
|
{
|
|
8003d38: b480 push {r7}
|
|
8003d3a: af00 add r7, sp, #0
|
|
return uwTick;
|
|
8003d3c: 4b03 ldr r3, [pc, #12] @ (8003d4c <HAL_GetTick+0x14>)
|
|
8003d3e: 681b ldr r3, [r3, #0]
|
|
}
|
|
8003d40: 4618 mov r0, r3
|
|
8003d42: 46bd mov sp, r7
|
|
8003d44: f85d 7b04 ldr.w r7, [sp], #4
|
|
8003d48: 4770 bx lr
|
|
8003d4a: bf00 nop
|
|
8003d4c: 200002f0 .word 0x200002f0
|
|
|
|
08003d50 <HAL_CAN_Init>:
|
|
* @param hcan pointer to a CAN_HandleTypeDef structure that contains
|
|
* the configuration information for the specified CAN.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan)
|
|
{
|
|
8003d50: b580 push {r7, lr}
|
|
8003d52: b084 sub sp, #16
|
|
8003d54: af00 add r7, sp, #0
|
|
8003d56: 6078 str r0, [r7, #4]
|
|
uint32_t tickstart;
|
|
|
|
/* Check CAN handle */
|
|
if (hcan == NULL)
|
|
8003d58: 687b ldr r3, [r7, #4]
|
|
8003d5a: 2b00 cmp r3, #0
|
|
8003d5c: d101 bne.n 8003d62 <HAL_CAN_Init+0x12>
|
|
{
|
|
return HAL_ERROR;
|
|
8003d5e: 2301 movs r3, #1
|
|
8003d60: e0ed b.n 8003f3e <HAL_CAN_Init+0x1ee>
|
|
/* Init the low level hardware: CLOCK, NVIC */
|
|
hcan->MspInitCallback(hcan);
|
|
}
|
|
|
|
#else
|
|
if (hcan->State == HAL_CAN_STATE_RESET)
|
|
8003d62: 687b ldr r3, [r7, #4]
|
|
8003d64: f893 3020 ldrb.w r3, [r3, #32]
|
|
8003d68: b2db uxtb r3, r3
|
|
8003d6a: 2b00 cmp r3, #0
|
|
8003d6c: d102 bne.n 8003d74 <HAL_CAN_Init+0x24>
|
|
{
|
|
/* Init the low level hardware: CLOCK, NVIC */
|
|
HAL_CAN_MspInit(hcan);
|
|
8003d6e: 6878 ldr r0, [r7, #4]
|
|
8003d70: f7ff faee bl 8003350 <HAL_CAN_MspInit>
|
|
}
|
|
#endif /* USE_HAL_CAN_REGISTER_CALLBACKS */
|
|
|
|
/* Request initialisation */
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ);
|
|
8003d74: 687b ldr r3, [r7, #4]
|
|
8003d76: 681b ldr r3, [r3, #0]
|
|
8003d78: 681a ldr r2, [r3, #0]
|
|
8003d7a: 687b ldr r3, [r7, #4]
|
|
8003d7c: 681b ldr r3, [r3, #0]
|
|
8003d7e: f042 0201 orr.w r2, r2, #1
|
|
8003d82: 601a str r2, [r3, #0]
|
|
|
|
/* Get tick */
|
|
tickstart = HAL_GetTick();
|
|
8003d84: f7ff ffd8 bl 8003d38 <HAL_GetTick>
|
|
8003d88: 60f8 str r0, [r7, #12]
|
|
|
|
/* Wait initialisation acknowledge */
|
|
while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U)
|
|
8003d8a: e012 b.n 8003db2 <HAL_CAN_Init+0x62>
|
|
{
|
|
if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE)
|
|
8003d8c: f7ff ffd4 bl 8003d38 <HAL_GetTick>
|
|
8003d90: 4602 mov r2, r0
|
|
8003d92: 68fb ldr r3, [r7, #12]
|
|
8003d94: 1ad3 subs r3, r2, r3
|
|
8003d96: 2b0a cmp r3, #10
|
|
8003d98: d90b bls.n 8003db2 <HAL_CAN_Init+0x62>
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT;
|
|
8003d9a: 687b ldr r3, [r7, #4]
|
|
8003d9c: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8003d9e: f443 3200 orr.w r2, r3, #131072 @ 0x20000
|
|
8003da2: 687b ldr r3, [r7, #4]
|
|
8003da4: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
/* Change CAN state */
|
|
hcan->State = HAL_CAN_STATE_ERROR;
|
|
8003da6: 687b ldr r3, [r7, #4]
|
|
8003da8: 2205 movs r2, #5
|
|
8003daa: f883 2020 strb.w r2, [r3, #32]
|
|
|
|
return HAL_ERROR;
|
|
8003dae: 2301 movs r3, #1
|
|
8003db0: e0c5 b.n 8003f3e <HAL_CAN_Init+0x1ee>
|
|
while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U)
|
|
8003db2: 687b ldr r3, [r7, #4]
|
|
8003db4: 681b ldr r3, [r3, #0]
|
|
8003db6: 685b ldr r3, [r3, #4]
|
|
8003db8: f003 0301 and.w r3, r3, #1
|
|
8003dbc: 2b00 cmp r3, #0
|
|
8003dbe: d0e5 beq.n 8003d8c <HAL_CAN_Init+0x3c>
|
|
}
|
|
}
|
|
|
|
/* Exit from sleep mode */
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP);
|
|
8003dc0: 687b ldr r3, [r7, #4]
|
|
8003dc2: 681b ldr r3, [r3, #0]
|
|
8003dc4: 681a ldr r2, [r3, #0]
|
|
8003dc6: 687b ldr r3, [r7, #4]
|
|
8003dc8: 681b ldr r3, [r3, #0]
|
|
8003dca: f022 0202 bic.w r2, r2, #2
|
|
8003dce: 601a str r2, [r3, #0]
|
|
|
|
/* Get tick */
|
|
tickstart = HAL_GetTick();
|
|
8003dd0: f7ff ffb2 bl 8003d38 <HAL_GetTick>
|
|
8003dd4: 60f8 str r0, [r7, #12]
|
|
|
|
/* Check Sleep mode leave acknowledge */
|
|
while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U)
|
|
8003dd6: e012 b.n 8003dfe <HAL_CAN_Init+0xae>
|
|
{
|
|
if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE)
|
|
8003dd8: f7ff ffae bl 8003d38 <HAL_GetTick>
|
|
8003ddc: 4602 mov r2, r0
|
|
8003dde: 68fb ldr r3, [r7, #12]
|
|
8003de0: 1ad3 subs r3, r2, r3
|
|
8003de2: 2b0a cmp r3, #10
|
|
8003de4: d90b bls.n 8003dfe <HAL_CAN_Init+0xae>
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT;
|
|
8003de6: 687b ldr r3, [r7, #4]
|
|
8003de8: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8003dea: f443 3200 orr.w r2, r3, #131072 @ 0x20000
|
|
8003dee: 687b ldr r3, [r7, #4]
|
|
8003df0: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
/* Change CAN state */
|
|
hcan->State = HAL_CAN_STATE_ERROR;
|
|
8003df2: 687b ldr r3, [r7, #4]
|
|
8003df4: 2205 movs r2, #5
|
|
8003df6: f883 2020 strb.w r2, [r3, #32]
|
|
|
|
return HAL_ERROR;
|
|
8003dfa: 2301 movs r3, #1
|
|
8003dfc: e09f b.n 8003f3e <HAL_CAN_Init+0x1ee>
|
|
while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U)
|
|
8003dfe: 687b ldr r3, [r7, #4]
|
|
8003e00: 681b ldr r3, [r3, #0]
|
|
8003e02: 685b ldr r3, [r3, #4]
|
|
8003e04: f003 0302 and.w r3, r3, #2
|
|
8003e08: 2b00 cmp r3, #0
|
|
8003e0a: d1e5 bne.n 8003dd8 <HAL_CAN_Init+0x88>
|
|
}
|
|
}
|
|
|
|
/* Set the time triggered communication mode */
|
|
if (hcan->Init.TimeTriggeredMode == ENABLE)
|
|
8003e0c: 687b ldr r3, [r7, #4]
|
|
8003e0e: 7e1b ldrb r3, [r3, #24]
|
|
8003e10: 2b01 cmp r3, #1
|
|
8003e12: d108 bne.n 8003e26 <HAL_CAN_Init+0xd6>
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM);
|
|
8003e14: 687b ldr r3, [r7, #4]
|
|
8003e16: 681b ldr r3, [r3, #0]
|
|
8003e18: 681a ldr r2, [r3, #0]
|
|
8003e1a: 687b ldr r3, [r7, #4]
|
|
8003e1c: 681b ldr r3, [r3, #0]
|
|
8003e1e: f042 0280 orr.w r2, r2, #128 @ 0x80
|
|
8003e22: 601a str r2, [r3, #0]
|
|
8003e24: e007 b.n 8003e36 <HAL_CAN_Init+0xe6>
|
|
}
|
|
else
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM);
|
|
8003e26: 687b ldr r3, [r7, #4]
|
|
8003e28: 681b ldr r3, [r3, #0]
|
|
8003e2a: 681a ldr r2, [r3, #0]
|
|
8003e2c: 687b ldr r3, [r7, #4]
|
|
8003e2e: 681b ldr r3, [r3, #0]
|
|
8003e30: f022 0280 bic.w r2, r2, #128 @ 0x80
|
|
8003e34: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the automatic bus-off management */
|
|
if (hcan->Init.AutoBusOff == ENABLE)
|
|
8003e36: 687b ldr r3, [r7, #4]
|
|
8003e38: 7e5b ldrb r3, [r3, #25]
|
|
8003e3a: 2b01 cmp r3, #1
|
|
8003e3c: d108 bne.n 8003e50 <HAL_CAN_Init+0x100>
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM);
|
|
8003e3e: 687b ldr r3, [r7, #4]
|
|
8003e40: 681b ldr r3, [r3, #0]
|
|
8003e42: 681a ldr r2, [r3, #0]
|
|
8003e44: 687b ldr r3, [r7, #4]
|
|
8003e46: 681b ldr r3, [r3, #0]
|
|
8003e48: f042 0240 orr.w r2, r2, #64 @ 0x40
|
|
8003e4c: 601a str r2, [r3, #0]
|
|
8003e4e: e007 b.n 8003e60 <HAL_CAN_Init+0x110>
|
|
}
|
|
else
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM);
|
|
8003e50: 687b ldr r3, [r7, #4]
|
|
8003e52: 681b ldr r3, [r3, #0]
|
|
8003e54: 681a ldr r2, [r3, #0]
|
|
8003e56: 687b ldr r3, [r7, #4]
|
|
8003e58: 681b ldr r3, [r3, #0]
|
|
8003e5a: f022 0240 bic.w r2, r2, #64 @ 0x40
|
|
8003e5e: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the automatic wake-up mode */
|
|
if (hcan->Init.AutoWakeUp == ENABLE)
|
|
8003e60: 687b ldr r3, [r7, #4]
|
|
8003e62: 7e9b ldrb r3, [r3, #26]
|
|
8003e64: 2b01 cmp r3, #1
|
|
8003e66: d108 bne.n 8003e7a <HAL_CAN_Init+0x12a>
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM);
|
|
8003e68: 687b ldr r3, [r7, #4]
|
|
8003e6a: 681b ldr r3, [r3, #0]
|
|
8003e6c: 681a ldr r2, [r3, #0]
|
|
8003e6e: 687b ldr r3, [r7, #4]
|
|
8003e70: 681b ldr r3, [r3, #0]
|
|
8003e72: f042 0220 orr.w r2, r2, #32
|
|
8003e76: 601a str r2, [r3, #0]
|
|
8003e78: e007 b.n 8003e8a <HAL_CAN_Init+0x13a>
|
|
}
|
|
else
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM);
|
|
8003e7a: 687b ldr r3, [r7, #4]
|
|
8003e7c: 681b ldr r3, [r3, #0]
|
|
8003e7e: 681a ldr r2, [r3, #0]
|
|
8003e80: 687b ldr r3, [r7, #4]
|
|
8003e82: 681b ldr r3, [r3, #0]
|
|
8003e84: f022 0220 bic.w r2, r2, #32
|
|
8003e88: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the automatic retransmission */
|
|
if (hcan->Init.AutoRetransmission == ENABLE)
|
|
8003e8a: 687b ldr r3, [r7, #4]
|
|
8003e8c: 7edb ldrb r3, [r3, #27]
|
|
8003e8e: 2b01 cmp r3, #1
|
|
8003e90: d108 bne.n 8003ea4 <HAL_CAN_Init+0x154>
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART);
|
|
8003e92: 687b ldr r3, [r7, #4]
|
|
8003e94: 681b ldr r3, [r3, #0]
|
|
8003e96: 681a ldr r2, [r3, #0]
|
|
8003e98: 687b ldr r3, [r7, #4]
|
|
8003e9a: 681b ldr r3, [r3, #0]
|
|
8003e9c: f022 0210 bic.w r2, r2, #16
|
|
8003ea0: 601a str r2, [r3, #0]
|
|
8003ea2: e007 b.n 8003eb4 <HAL_CAN_Init+0x164>
|
|
}
|
|
else
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_NART);
|
|
8003ea4: 687b ldr r3, [r7, #4]
|
|
8003ea6: 681b ldr r3, [r3, #0]
|
|
8003ea8: 681a ldr r2, [r3, #0]
|
|
8003eaa: 687b ldr r3, [r7, #4]
|
|
8003eac: 681b ldr r3, [r3, #0]
|
|
8003eae: f042 0210 orr.w r2, r2, #16
|
|
8003eb2: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the receive FIFO locked mode */
|
|
if (hcan->Init.ReceiveFifoLocked == ENABLE)
|
|
8003eb4: 687b ldr r3, [r7, #4]
|
|
8003eb6: 7f1b ldrb r3, [r3, #28]
|
|
8003eb8: 2b01 cmp r3, #1
|
|
8003eba: d108 bne.n 8003ece <HAL_CAN_Init+0x17e>
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM);
|
|
8003ebc: 687b ldr r3, [r7, #4]
|
|
8003ebe: 681b ldr r3, [r3, #0]
|
|
8003ec0: 681a ldr r2, [r3, #0]
|
|
8003ec2: 687b ldr r3, [r7, #4]
|
|
8003ec4: 681b ldr r3, [r3, #0]
|
|
8003ec6: f042 0208 orr.w r2, r2, #8
|
|
8003eca: 601a str r2, [r3, #0]
|
|
8003ecc: e007 b.n 8003ede <HAL_CAN_Init+0x18e>
|
|
}
|
|
else
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM);
|
|
8003ece: 687b ldr r3, [r7, #4]
|
|
8003ed0: 681b ldr r3, [r3, #0]
|
|
8003ed2: 681a ldr r2, [r3, #0]
|
|
8003ed4: 687b ldr r3, [r7, #4]
|
|
8003ed6: 681b ldr r3, [r3, #0]
|
|
8003ed8: f022 0208 bic.w r2, r2, #8
|
|
8003edc: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the transmit FIFO priority */
|
|
if (hcan->Init.TransmitFifoPriority == ENABLE)
|
|
8003ede: 687b ldr r3, [r7, #4]
|
|
8003ee0: 7f5b ldrb r3, [r3, #29]
|
|
8003ee2: 2b01 cmp r3, #1
|
|
8003ee4: d108 bne.n 8003ef8 <HAL_CAN_Init+0x1a8>
|
|
{
|
|
SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP);
|
|
8003ee6: 687b ldr r3, [r7, #4]
|
|
8003ee8: 681b ldr r3, [r3, #0]
|
|
8003eea: 681a ldr r2, [r3, #0]
|
|
8003eec: 687b ldr r3, [r7, #4]
|
|
8003eee: 681b ldr r3, [r3, #0]
|
|
8003ef0: f042 0204 orr.w r2, r2, #4
|
|
8003ef4: 601a str r2, [r3, #0]
|
|
8003ef6: e007 b.n 8003f08 <HAL_CAN_Init+0x1b8>
|
|
}
|
|
else
|
|
{
|
|
CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP);
|
|
8003ef8: 687b ldr r3, [r7, #4]
|
|
8003efa: 681b ldr r3, [r3, #0]
|
|
8003efc: 681a ldr r2, [r3, #0]
|
|
8003efe: 687b ldr r3, [r7, #4]
|
|
8003f00: 681b ldr r3, [r3, #0]
|
|
8003f02: f022 0204 bic.w r2, r2, #4
|
|
8003f06: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set the bit timing register */
|
|
WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode |
|
|
8003f08: 687b ldr r3, [r7, #4]
|
|
8003f0a: 689a ldr r2, [r3, #8]
|
|
8003f0c: 687b ldr r3, [r7, #4]
|
|
8003f0e: 68db ldr r3, [r3, #12]
|
|
8003f10: 431a orrs r2, r3
|
|
8003f12: 687b ldr r3, [r7, #4]
|
|
8003f14: 691b ldr r3, [r3, #16]
|
|
8003f16: 431a orrs r2, r3
|
|
8003f18: 687b ldr r3, [r7, #4]
|
|
8003f1a: 695b ldr r3, [r3, #20]
|
|
8003f1c: ea42 0103 orr.w r1, r2, r3
|
|
8003f20: 687b ldr r3, [r7, #4]
|
|
8003f22: 685b ldr r3, [r3, #4]
|
|
8003f24: 1e5a subs r2, r3, #1
|
|
8003f26: 687b ldr r3, [r7, #4]
|
|
8003f28: 681b ldr r3, [r3, #0]
|
|
8003f2a: 430a orrs r2, r1
|
|
8003f2c: 61da str r2, [r3, #28]
|
|
hcan->Init.TimeSeg1 |
|
|
hcan->Init.TimeSeg2 |
|
|
(hcan->Init.Prescaler - 1U)));
|
|
|
|
/* Initialize the error code */
|
|
hcan->ErrorCode = HAL_CAN_ERROR_NONE;
|
|
8003f2e: 687b ldr r3, [r7, #4]
|
|
8003f30: 2200 movs r2, #0
|
|
8003f32: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
/* Initialize the CAN state */
|
|
hcan->State = HAL_CAN_STATE_READY;
|
|
8003f34: 687b ldr r3, [r7, #4]
|
|
8003f36: 2201 movs r2, #1
|
|
8003f38: f883 2020 strb.w r2, [r3, #32]
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
8003f3c: 2300 movs r3, #0
|
|
}
|
|
8003f3e: 4618 mov r0, r3
|
|
8003f40: 3710 adds r7, #16
|
|
8003f42: 46bd mov sp, r7
|
|
8003f44: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08003f48 <HAL_CAN_ConfigFilter>:
|
|
* @param sFilterConfig pointer to a CAN_FilterTypeDef structure that
|
|
* contains the filter configuration information.
|
|
* @retval None
|
|
*/
|
|
HAL_StatusTypeDef HAL_CAN_ConfigFilter(CAN_HandleTypeDef *hcan, const CAN_FilterTypeDef *sFilterConfig)
|
|
{
|
|
8003f48: b480 push {r7}
|
|
8003f4a: b087 sub sp, #28
|
|
8003f4c: af00 add r7, sp, #0
|
|
8003f4e: 6078 str r0, [r7, #4]
|
|
8003f50: 6039 str r1, [r7, #0]
|
|
uint32_t filternbrbitpos;
|
|
CAN_TypeDef *can_ip = hcan->Instance;
|
|
8003f52: 687b ldr r3, [r7, #4]
|
|
8003f54: 681b ldr r3, [r3, #0]
|
|
8003f56: 617b str r3, [r7, #20]
|
|
HAL_CAN_StateTypeDef state = hcan->State;
|
|
8003f58: 687b ldr r3, [r7, #4]
|
|
8003f5a: f893 3020 ldrb.w r3, [r3, #32]
|
|
8003f5e: 74fb strb r3, [r7, #19]
|
|
|
|
if ((state == HAL_CAN_STATE_READY) ||
|
|
8003f60: 7cfb ldrb r3, [r7, #19]
|
|
8003f62: 2b01 cmp r3, #1
|
|
8003f64: d003 beq.n 8003f6e <HAL_CAN_ConfigFilter+0x26>
|
|
8003f66: 7cfb ldrb r3, [r7, #19]
|
|
8003f68: 2b02 cmp r3, #2
|
|
8003f6a: f040 80be bne.w 80040ea <HAL_CAN_ConfigFilter+0x1a2>
|
|
assert_param(IS_CAN_FILTER_BANK_DUAL(sFilterConfig->SlaveStartFilterBank));
|
|
}
|
|
#elif defined(CAN2)
|
|
/* CAN1 and CAN2 are dual instances with 28 common filters banks */
|
|
/* Select master instance to access the filter banks */
|
|
can_ip = CAN1;
|
|
8003f6e: 4b65 ldr r3, [pc, #404] @ (8004104 <HAL_CAN_ConfigFilter+0x1bc>)
|
|
8003f70: 617b str r3, [r7, #20]
|
|
/* Check the parameters */
|
|
assert_param(IS_CAN_FILTER_BANK_SINGLE(sFilterConfig->FilterBank));
|
|
#endif /* CAN3 */
|
|
|
|
/* Initialisation mode for the filter */
|
|
SET_BIT(can_ip->FMR, CAN_FMR_FINIT);
|
|
8003f72: 697b ldr r3, [r7, #20]
|
|
8003f74: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
|
|
8003f78: f043 0201 orr.w r2, r3, #1
|
|
8003f7c: 697b ldr r3, [r7, #20]
|
|
8003f7e: f8c3 2200 str.w r2, [r3, #512] @ 0x200
|
|
SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos);
|
|
}
|
|
|
|
#elif defined(CAN2)
|
|
/* Select the start filter number of CAN2 slave instance */
|
|
CLEAR_BIT(can_ip->FMR, CAN_FMR_CAN2SB);
|
|
8003f82: 697b ldr r3, [r7, #20]
|
|
8003f84: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
|
|
8003f88: f423 527c bic.w r2, r3, #16128 @ 0x3f00
|
|
8003f8c: 697b ldr r3, [r7, #20]
|
|
8003f8e: f8c3 2200 str.w r2, [r3, #512] @ 0x200
|
|
SET_BIT(can_ip->FMR, sFilterConfig->SlaveStartFilterBank << CAN_FMR_CAN2SB_Pos);
|
|
8003f92: 697b ldr r3, [r7, #20]
|
|
8003f94: f8d3 2200 ldr.w r2, [r3, #512] @ 0x200
|
|
8003f98: 683b ldr r3, [r7, #0]
|
|
8003f9a: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8003f9c: 021b lsls r3, r3, #8
|
|
8003f9e: 431a orrs r2, r3
|
|
8003fa0: 697b ldr r3, [r7, #20]
|
|
8003fa2: f8c3 2200 str.w r2, [r3, #512] @ 0x200
|
|
|
|
#endif /* CAN3 */
|
|
/* Convert filter number into bit position */
|
|
filternbrbitpos = (uint32_t)1 << (sFilterConfig->FilterBank & 0x1FU);
|
|
8003fa6: 683b ldr r3, [r7, #0]
|
|
8003fa8: 695b ldr r3, [r3, #20]
|
|
8003faa: f003 031f and.w r3, r3, #31
|
|
8003fae: 2201 movs r2, #1
|
|
8003fb0: fa02 f303 lsl.w r3, r2, r3
|
|
8003fb4: 60fb str r3, [r7, #12]
|
|
|
|
/* Filter Deactivation */
|
|
CLEAR_BIT(can_ip->FA1R, filternbrbitpos);
|
|
8003fb6: 697b ldr r3, [r7, #20]
|
|
8003fb8: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c
|
|
8003fbc: 68fb ldr r3, [r7, #12]
|
|
8003fbe: 43db mvns r3, r3
|
|
8003fc0: 401a ands r2, r3
|
|
8003fc2: 697b ldr r3, [r7, #20]
|
|
8003fc4: f8c3 221c str.w r2, [r3, #540] @ 0x21c
|
|
|
|
/* Filter Scale */
|
|
if (sFilterConfig->FilterScale == CAN_FILTERSCALE_16BIT)
|
|
8003fc8: 683b ldr r3, [r7, #0]
|
|
8003fca: 69db ldr r3, [r3, #28]
|
|
8003fcc: 2b00 cmp r3, #0
|
|
8003fce: d123 bne.n 8004018 <HAL_CAN_ConfigFilter+0xd0>
|
|
{
|
|
/* 16-bit scale for the filter */
|
|
CLEAR_BIT(can_ip->FS1R, filternbrbitpos);
|
|
8003fd0: 697b ldr r3, [r7, #20]
|
|
8003fd2: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c
|
|
8003fd6: 68fb ldr r3, [r7, #12]
|
|
8003fd8: 43db mvns r3, r3
|
|
8003fda: 401a ands r2, r3
|
|
8003fdc: 697b ldr r3, [r7, #20]
|
|
8003fde: f8c3 220c str.w r2, [r3, #524] @ 0x20c
|
|
|
|
/* First 16-bit identifier and First 16-bit mask */
|
|
/* Or First 16-bit identifier and Second 16-bit identifier */
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) |
|
|
8003fe2: 683b ldr r3, [r7, #0]
|
|
8003fe4: 68db ldr r3, [r3, #12]
|
|
8003fe6: 0419 lsls r1, r3, #16
|
|
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow);
|
|
8003fe8: 683b ldr r3, [r7, #0]
|
|
8003fea: 685b ldr r3, [r3, #4]
|
|
8003fec: b29b uxth r3, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
8003fee: 683a ldr r2, [r7, #0]
|
|
8003ff0: 6952 ldr r2, [r2, #20]
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow) << 16U) |
|
|
8003ff2: 4319 orrs r1, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
8003ff4: 697b ldr r3, [r7, #20]
|
|
8003ff6: 3248 adds r2, #72 @ 0x48
|
|
8003ff8: f843 1032 str.w r1, [r3, r2, lsl #3]
|
|
|
|
/* Second 16-bit identifier and Second 16-bit mask */
|
|
/* Or Third 16-bit identifier and Fourth 16-bit identifier */
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) |
|
|
8003ffc: 683b ldr r3, [r7, #0]
|
|
8003ffe: 689b ldr r3, [r3, #8]
|
|
8004000: 0419 lsls r1, r3, #16
|
|
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh);
|
|
8004002: 683b ldr r3, [r7, #0]
|
|
8004004: 681b ldr r3, [r3, #0]
|
|
8004006: b29a uxth r2, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
8004008: 683b ldr r3, [r7, #0]
|
|
800400a: 695b ldr r3, [r3, #20]
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) |
|
|
800400c: 430a orrs r2, r1
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
800400e: 6979 ldr r1, [r7, #20]
|
|
8004010: 3348 adds r3, #72 @ 0x48
|
|
8004012: 00db lsls r3, r3, #3
|
|
8004014: 440b add r3, r1
|
|
8004016: 605a str r2, [r3, #4]
|
|
}
|
|
|
|
if (sFilterConfig->FilterScale == CAN_FILTERSCALE_32BIT)
|
|
8004018: 683b ldr r3, [r7, #0]
|
|
800401a: 69db ldr r3, [r3, #28]
|
|
800401c: 2b01 cmp r3, #1
|
|
800401e: d122 bne.n 8004066 <HAL_CAN_ConfigFilter+0x11e>
|
|
{
|
|
/* 32-bit scale for the filter */
|
|
SET_BIT(can_ip->FS1R, filternbrbitpos);
|
|
8004020: 697b ldr r3, [r7, #20]
|
|
8004022: f8d3 220c ldr.w r2, [r3, #524] @ 0x20c
|
|
8004026: 68fb ldr r3, [r7, #12]
|
|
8004028: 431a orrs r2, r3
|
|
800402a: 697b ldr r3, [r7, #20]
|
|
800402c: f8c3 220c str.w r2, [r3, #524] @ 0x20c
|
|
|
|
/* 32-bit identifier or First 32-bit identifier */
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) |
|
|
8004030: 683b ldr r3, [r7, #0]
|
|
8004032: 681b ldr r3, [r3, #0]
|
|
8004034: 0419 lsls r1, r3, #16
|
|
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow);
|
|
8004036: 683b ldr r3, [r7, #0]
|
|
8004038: 685b ldr r3, [r3, #4]
|
|
800403a: b29b uxth r3, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
800403c: 683a ldr r2, [r7, #0]
|
|
800403e: 6952 ldr r2, [r2, #20]
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) |
|
|
8004040: 4319 orrs r1, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR1 =
|
|
8004042: 697b ldr r3, [r7, #20]
|
|
8004044: 3248 adds r2, #72 @ 0x48
|
|
8004046: f843 1032 str.w r1, [r3, r2, lsl #3]
|
|
|
|
/* 32-bit mask or Second 32-bit identifier */
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) |
|
|
800404a: 683b ldr r3, [r7, #0]
|
|
800404c: 689b ldr r3, [r3, #8]
|
|
800404e: 0419 lsls r1, r3, #16
|
|
(0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdLow);
|
|
8004050: 683b ldr r3, [r7, #0]
|
|
8004052: 68db ldr r3, [r3, #12]
|
|
8004054: b29a uxth r2, r3
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
8004056: 683b ldr r3, [r7, #0]
|
|
8004058: 695b ldr r3, [r3, #20]
|
|
((0x0000FFFFU & (uint32_t)sFilterConfig->FilterMaskIdHigh) << 16U) |
|
|
800405a: 430a orrs r2, r1
|
|
can_ip->sFilterRegister[sFilterConfig->FilterBank].FR2 =
|
|
800405c: 6979 ldr r1, [r7, #20]
|
|
800405e: 3348 adds r3, #72 @ 0x48
|
|
8004060: 00db lsls r3, r3, #3
|
|
8004062: 440b add r3, r1
|
|
8004064: 605a str r2, [r3, #4]
|
|
}
|
|
|
|
/* Filter Mode */
|
|
if (sFilterConfig->FilterMode == CAN_FILTERMODE_IDMASK)
|
|
8004066: 683b ldr r3, [r7, #0]
|
|
8004068: 699b ldr r3, [r3, #24]
|
|
800406a: 2b00 cmp r3, #0
|
|
800406c: d109 bne.n 8004082 <HAL_CAN_ConfigFilter+0x13a>
|
|
{
|
|
/* Id/Mask mode for the filter*/
|
|
CLEAR_BIT(can_ip->FM1R, filternbrbitpos);
|
|
800406e: 697b ldr r3, [r7, #20]
|
|
8004070: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204
|
|
8004074: 68fb ldr r3, [r7, #12]
|
|
8004076: 43db mvns r3, r3
|
|
8004078: 401a ands r2, r3
|
|
800407a: 697b ldr r3, [r7, #20]
|
|
800407c: f8c3 2204 str.w r2, [r3, #516] @ 0x204
|
|
8004080: e007 b.n 8004092 <HAL_CAN_ConfigFilter+0x14a>
|
|
}
|
|
else /* CAN_FilterInitStruct->CAN_FilterMode == CAN_FilterMode_IdList */
|
|
{
|
|
/* Identifier list mode for the filter*/
|
|
SET_BIT(can_ip->FM1R, filternbrbitpos);
|
|
8004082: 697b ldr r3, [r7, #20]
|
|
8004084: f8d3 2204 ldr.w r2, [r3, #516] @ 0x204
|
|
8004088: 68fb ldr r3, [r7, #12]
|
|
800408a: 431a orrs r2, r3
|
|
800408c: 697b ldr r3, [r7, #20]
|
|
800408e: f8c3 2204 str.w r2, [r3, #516] @ 0x204
|
|
}
|
|
|
|
/* Filter FIFO assignment */
|
|
if (sFilterConfig->FilterFIFOAssignment == CAN_FILTER_FIFO0)
|
|
8004092: 683b ldr r3, [r7, #0]
|
|
8004094: 691b ldr r3, [r3, #16]
|
|
8004096: 2b00 cmp r3, #0
|
|
8004098: d109 bne.n 80040ae <HAL_CAN_ConfigFilter+0x166>
|
|
{
|
|
/* FIFO 0 assignation for the filter */
|
|
CLEAR_BIT(can_ip->FFA1R, filternbrbitpos);
|
|
800409a: 697b ldr r3, [r7, #20]
|
|
800409c: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214
|
|
80040a0: 68fb ldr r3, [r7, #12]
|
|
80040a2: 43db mvns r3, r3
|
|
80040a4: 401a ands r2, r3
|
|
80040a6: 697b ldr r3, [r7, #20]
|
|
80040a8: f8c3 2214 str.w r2, [r3, #532] @ 0x214
|
|
80040ac: e007 b.n 80040be <HAL_CAN_ConfigFilter+0x176>
|
|
}
|
|
else
|
|
{
|
|
/* FIFO 1 assignation for the filter */
|
|
SET_BIT(can_ip->FFA1R, filternbrbitpos);
|
|
80040ae: 697b ldr r3, [r7, #20]
|
|
80040b0: f8d3 2214 ldr.w r2, [r3, #532] @ 0x214
|
|
80040b4: 68fb ldr r3, [r7, #12]
|
|
80040b6: 431a orrs r2, r3
|
|
80040b8: 697b ldr r3, [r7, #20]
|
|
80040ba: f8c3 2214 str.w r2, [r3, #532] @ 0x214
|
|
}
|
|
|
|
/* Filter activation */
|
|
if (sFilterConfig->FilterActivation == CAN_FILTER_ENABLE)
|
|
80040be: 683b ldr r3, [r7, #0]
|
|
80040c0: 6a1b ldr r3, [r3, #32]
|
|
80040c2: 2b01 cmp r3, #1
|
|
80040c4: d107 bne.n 80040d6 <HAL_CAN_ConfigFilter+0x18e>
|
|
{
|
|
SET_BIT(can_ip->FA1R, filternbrbitpos);
|
|
80040c6: 697b ldr r3, [r7, #20]
|
|
80040c8: f8d3 221c ldr.w r2, [r3, #540] @ 0x21c
|
|
80040cc: 68fb ldr r3, [r7, #12]
|
|
80040ce: 431a orrs r2, r3
|
|
80040d0: 697b ldr r3, [r7, #20]
|
|
80040d2: f8c3 221c str.w r2, [r3, #540] @ 0x21c
|
|
}
|
|
|
|
/* Leave the initialisation mode for the filter */
|
|
CLEAR_BIT(can_ip->FMR, CAN_FMR_FINIT);
|
|
80040d6: 697b ldr r3, [r7, #20]
|
|
80040d8: f8d3 3200 ldr.w r3, [r3, #512] @ 0x200
|
|
80040dc: f023 0201 bic.w r2, r3, #1
|
|
80040e0: 697b ldr r3, [r7, #20]
|
|
80040e2: f8c3 2200 str.w r2, [r3, #512] @ 0x200
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
80040e6: 2300 movs r3, #0
|
|
80040e8: e006 b.n 80040f8 <HAL_CAN_ConfigFilter+0x1b0>
|
|
}
|
|
else
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED;
|
|
80040ea: 687b ldr r3, [r7, #4]
|
|
80040ec: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
80040ee: f443 2280 orr.w r2, r3, #262144 @ 0x40000
|
|
80040f2: 687b ldr r3, [r7, #4]
|
|
80040f4: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
80040f6: 2301 movs r3, #1
|
|
}
|
|
}
|
|
80040f8: 4618 mov r0, r3
|
|
80040fa: 371c adds r7, #28
|
|
80040fc: 46bd mov sp, r7
|
|
80040fe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8004102: 4770 bx lr
|
|
8004104: 40006400 .word 0x40006400
|
|
|
|
08004108 <HAL_CAN_AddTxMessage>:
|
|
* This parameter can be a value of @arg CAN_Tx_Mailboxes.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, const CAN_TxHeaderTypeDef *pHeader,
|
|
const uint8_t aData[], uint32_t *pTxMailbox)
|
|
{
|
|
8004108: b480 push {r7}
|
|
800410a: b089 sub sp, #36 @ 0x24
|
|
800410c: af00 add r7, sp, #0
|
|
800410e: 60f8 str r0, [r7, #12]
|
|
8004110: 60b9 str r1, [r7, #8]
|
|
8004112: 607a str r2, [r7, #4]
|
|
8004114: 603b str r3, [r7, #0]
|
|
uint32_t transmitmailbox;
|
|
HAL_CAN_StateTypeDef state = hcan->State;
|
|
8004116: 68fb ldr r3, [r7, #12]
|
|
8004118: f893 3020 ldrb.w r3, [r3, #32]
|
|
800411c: 77fb strb r3, [r7, #31]
|
|
uint32_t tsr = READ_REG(hcan->Instance->TSR);
|
|
800411e: 68fb ldr r3, [r7, #12]
|
|
8004120: 681b ldr r3, [r3, #0]
|
|
8004122: 689b ldr r3, [r3, #8]
|
|
8004124: 61bb str r3, [r7, #24]
|
|
{
|
|
assert_param(IS_CAN_EXTID(pHeader->ExtId));
|
|
}
|
|
assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime));
|
|
|
|
if ((state == HAL_CAN_STATE_READY) ||
|
|
8004126: 7ffb ldrb r3, [r7, #31]
|
|
8004128: 2b01 cmp r3, #1
|
|
800412a: d003 beq.n 8004134 <HAL_CAN_AddTxMessage+0x2c>
|
|
800412c: 7ffb ldrb r3, [r7, #31]
|
|
800412e: 2b02 cmp r3, #2
|
|
8004130: f040 80ad bne.w 800428e <HAL_CAN_AddTxMessage+0x186>
|
|
(state == HAL_CAN_STATE_LISTENING))
|
|
{
|
|
/* Check that all the Tx mailboxes are not full */
|
|
if (((tsr & CAN_TSR_TME0) != 0U) ||
|
|
8004134: 69bb ldr r3, [r7, #24]
|
|
8004136: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
|
|
800413a: 2b00 cmp r3, #0
|
|
800413c: d10a bne.n 8004154 <HAL_CAN_AddTxMessage+0x4c>
|
|
((tsr & CAN_TSR_TME1) != 0U) ||
|
|
800413e: 69bb ldr r3, [r7, #24]
|
|
8004140: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
|
|
if (((tsr & CAN_TSR_TME0) != 0U) ||
|
|
8004144: 2b00 cmp r3, #0
|
|
8004146: d105 bne.n 8004154 <HAL_CAN_AddTxMessage+0x4c>
|
|
((tsr & CAN_TSR_TME2) != 0U))
|
|
8004148: 69bb ldr r3, [r7, #24]
|
|
800414a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
|
|
((tsr & CAN_TSR_TME1) != 0U) ||
|
|
800414e: 2b00 cmp r3, #0
|
|
8004150: f000 8095 beq.w 800427e <HAL_CAN_AddTxMessage+0x176>
|
|
{
|
|
/* Select an empty transmit mailbox */
|
|
transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos;
|
|
8004154: 69bb ldr r3, [r7, #24]
|
|
8004156: 0e1b lsrs r3, r3, #24
|
|
8004158: f003 0303 and.w r3, r3, #3
|
|
800415c: 617b str r3, [r7, #20]
|
|
|
|
/* Store the Tx mailbox */
|
|
*pTxMailbox = (uint32_t)1 << transmitmailbox;
|
|
800415e: 2201 movs r2, #1
|
|
8004160: 697b ldr r3, [r7, #20]
|
|
8004162: 409a lsls r2, r3
|
|
8004164: 683b ldr r3, [r7, #0]
|
|
8004166: 601a str r2, [r3, #0]
|
|
|
|
/* Set up the Id */
|
|
if (pHeader->IDE == CAN_ID_STD)
|
|
8004168: 68bb ldr r3, [r7, #8]
|
|
800416a: 689b ldr r3, [r3, #8]
|
|
800416c: 2b00 cmp r3, #0
|
|
800416e: d10d bne.n 800418c <HAL_CAN_AddTxMessage+0x84>
|
|
{
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) |
|
|
8004170: 68bb ldr r3, [r7, #8]
|
|
8004172: 681b ldr r3, [r3, #0]
|
|
8004174: 055a lsls r2, r3, #21
|
|
pHeader->RTR);
|
|
8004176: 68bb ldr r3, [r7, #8]
|
|
8004178: 68db ldr r3, [r3, #12]
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) |
|
|
800417a: 68f9 ldr r1, [r7, #12]
|
|
800417c: 6809 ldr r1, [r1, #0]
|
|
800417e: 431a orrs r2, r3
|
|
8004180: 697b ldr r3, [r7, #20]
|
|
8004182: 3318 adds r3, #24
|
|
8004184: 011b lsls r3, r3, #4
|
|
8004186: 440b add r3, r1
|
|
8004188: 601a str r2, [r3, #0]
|
|
800418a: e00f b.n 80041ac <HAL_CAN_AddTxMessage+0xa4>
|
|
}
|
|
else
|
|
{
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) |
|
|
800418c: 68bb ldr r3, [r7, #8]
|
|
800418e: 685b ldr r3, [r3, #4]
|
|
8004190: 00da lsls r2, r3, #3
|
|
pHeader->IDE |
|
|
8004192: 68bb ldr r3, [r7, #8]
|
|
8004194: 689b ldr r3, [r3, #8]
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) |
|
|
8004196: 431a orrs r2, r3
|
|
pHeader->RTR);
|
|
8004198: 68bb ldr r3, [r7, #8]
|
|
800419a: 68db ldr r3, [r3, #12]
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) |
|
|
800419c: 68f9 ldr r1, [r7, #12]
|
|
800419e: 6809 ldr r1, [r1, #0]
|
|
pHeader->IDE |
|
|
80041a0: 431a orrs r2, r3
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) |
|
|
80041a2: 697b ldr r3, [r7, #20]
|
|
80041a4: 3318 adds r3, #24
|
|
80041a6: 011b lsls r3, r3, #4
|
|
80041a8: 440b add r3, r1
|
|
80041aa: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set up the DLC */
|
|
hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC);
|
|
80041ac: 68fb ldr r3, [r7, #12]
|
|
80041ae: 6819 ldr r1, [r3, #0]
|
|
80041b0: 68bb ldr r3, [r7, #8]
|
|
80041b2: 691a ldr r2, [r3, #16]
|
|
80041b4: 697b ldr r3, [r7, #20]
|
|
80041b6: 3318 adds r3, #24
|
|
80041b8: 011b lsls r3, r3, #4
|
|
80041ba: 440b add r3, r1
|
|
80041bc: 3304 adds r3, #4
|
|
80041be: 601a str r2, [r3, #0]
|
|
|
|
/* Set up the Transmit Global Time mode */
|
|
if (pHeader->TransmitGlobalTime == ENABLE)
|
|
80041c0: 68bb ldr r3, [r7, #8]
|
|
80041c2: 7d1b ldrb r3, [r3, #20]
|
|
80041c4: 2b01 cmp r3, #1
|
|
80041c6: d111 bne.n 80041ec <HAL_CAN_AddTxMessage+0xe4>
|
|
{
|
|
SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT);
|
|
80041c8: 68fb ldr r3, [r7, #12]
|
|
80041ca: 681a ldr r2, [r3, #0]
|
|
80041cc: 697b ldr r3, [r7, #20]
|
|
80041ce: 3318 adds r3, #24
|
|
80041d0: 011b lsls r3, r3, #4
|
|
80041d2: 4413 add r3, r2
|
|
80041d4: 3304 adds r3, #4
|
|
80041d6: 681b ldr r3, [r3, #0]
|
|
80041d8: 68fa ldr r2, [r7, #12]
|
|
80041da: 6811 ldr r1, [r2, #0]
|
|
80041dc: f443 7280 orr.w r2, r3, #256 @ 0x100
|
|
80041e0: 697b ldr r3, [r7, #20]
|
|
80041e2: 3318 adds r3, #24
|
|
80041e4: 011b lsls r3, r3, #4
|
|
80041e6: 440b add r3, r1
|
|
80041e8: 3304 adds r3, #4
|
|
80041ea: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Set up the data field */
|
|
WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR,
|
|
80041ec: 687b ldr r3, [r7, #4]
|
|
80041ee: 3307 adds r3, #7
|
|
80041f0: 781b ldrb r3, [r3, #0]
|
|
80041f2: 061a lsls r2, r3, #24
|
|
80041f4: 687b ldr r3, [r7, #4]
|
|
80041f6: 3306 adds r3, #6
|
|
80041f8: 781b ldrb r3, [r3, #0]
|
|
80041fa: 041b lsls r3, r3, #16
|
|
80041fc: 431a orrs r2, r3
|
|
80041fe: 687b ldr r3, [r7, #4]
|
|
8004200: 3305 adds r3, #5
|
|
8004202: 781b ldrb r3, [r3, #0]
|
|
8004204: 021b lsls r3, r3, #8
|
|
8004206: 4313 orrs r3, r2
|
|
8004208: 687a ldr r2, [r7, #4]
|
|
800420a: 3204 adds r2, #4
|
|
800420c: 7812 ldrb r2, [r2, #0]
|
|
800420e: 4610 mov r0, r2
|
|
8004210: 68fa ldr r2, [r7, #12]
|
|
8004212: 6811 ldr r1, [r2, #0]
|
|
8004214: ea43 0200 orr.w r2, r3, r0
|
|
8004218: 697b ldr r3, [r7, #20]
|
|
800421a: 011b lsls r3, r3, #4
|
|
800421c: 440b add r3, r1
|
|
800421e: f503 73c6 add.w r3, r3, #396 @ 0x18c
|
|
8004222: 601a str r2, [r3, #0]
|
|
((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) |
|
|
((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) |
|
|
((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) |
|
|
((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos));
|
|
WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR,
|
|
8004224: 687b ldr r3, [r7, #4]
|
|
8004226: 3303 adds r3, #3
|
|
8004228: 781b ldrb r3, [r3, #0]
|
|
800422a: 061a lsls r2, r3, #24
|
|
800422c: 687b ldr r3, [r7, #4]
|
|
800422e: 3302 adds r3, #2
|
|
8004230: 781b ldrb r3, [r3, #0]
|
|
8004232: 041b lsls r3, r3, #16
|
|
8004234: 431a orrs r2, r3
|
|
8004236: 687b ldr r3, [r7, #4]
|
|
8004238: 3301 adds r3, #1
|
|
800423a: 781b ldrb r3, [r3, #0]
|
|
800423c: 021b lsls r3, r3, #8
|
|
800423e: 4313 orrs r3, r2
|
|
8004240: 687a ldr r2, [r7, #4]
|
|
8004242: 7812 ldrb r2, [r2, #0]
|
|
8004244: 4610 mov r0, r2
|
|
8004246: 68fa ldr r2, [r7, #12]
|
|
8004248: 6811 ldr r1, [r2, #0]
|
|
800424a: ea43 0200 orr.w r2, r3, r0
|
|
800424e: 697b ldr r3, [r7, #20]
|
|
8004250: 011b lsls r3, r3, #4
|
|
8004252: 440b add r3, r1
|
|
8004254: f503 73c4 add.w r3, r3, #392 @ 0x188
|
|
8004258: 601a str r2, [r3, #0]
|
|
((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) |
|
|
((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) |
|
|
((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos));
|
|
|
|
/* Request transmission */
|
|
SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ);
|
|
800425a: 68fb ldr r3, [r7, #12]
|
|
800425c: 681a ldr r2, [r3, #0]
|
|
800425e: 697b ldr r3, [r7, #20]
|
|
8004260: 3318 adds r3, #24
|
|
8004262: 011b lsls r3, r3, #4
|
|
8004264: 4413 add r3, r2
|
|
8004266: 681b ldr r3, [r3, #0]
|
|
8004268: 68fa ldr r2, [r7, #12]
|
|
800426a: 6811 ldr r1, [r2, #0]
|
|
800426c: f043 0201 orr.w r2, r3, #1
|
|
8004270: 697b ldr r3, [r7, #20]
|
|
8004272: 3318 adds r3, #24
|
|
8004274: 011b lsls r3, r3, #4
|
|
8004276: 440b add r3, r1
|
|
8004278: 601a str r2, [r3, #0]
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
800427a: 2300 movs r3, #0
|
|
800427c: e00e b.n 800429c <HAL_CAN_AddTxMessage+0x194>
|
|
}
|
|
else
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_PARAM;
|
|
800427e: 68fb ldr r3, [r7, #12]
|
|
8004280: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8004282: f443 1200 orr.w r2, r3, #2097152 @ 0x200000
|
|
8004286: 68fb ldr r3, [r7, #12]
|
|
8004288: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
800428a: 2301 movs r3, #1
|
|
800428c: e006 b.n 800429c <HAL_CAN_AddTxMessage+0x194>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED;
|
|
800428e: 68fb ldr r3, [r7, #12]
|
|
8004290: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8004292: f443 2280 orr.w r2, r3, #262144 @ 0x40000
|
|
8004296: 68fb ldr r3, [r7, #12]
|
|
8004298: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
800429a: 2301 movs r3, #1
|
|
}
|
|
}
|
|
800429c: 4618 mov r0, r3
|
|
800429e: 3724 adds r7, #36 @ 0x24
|
|
80042a0: 46bd mov sp, r7
|
|
80042a2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80042a6: 4770 bx lr
|
|
|
|
080042a8 <HAL_CAN_GetRxMessage>:
|
|
* @param aData array where the payload of the Rx frame will be stored.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_CAN_GetRxMessage(CAN_HandleTypeDef *hcan, uint32_t RxFifo,
|
|
CAN_RxHeaderTypeDef *pHeader, uint8_t aData[])
|
|
{
|
|
80042a8: b480 push {r7}
|
|
80042aa: b087 sub sp, #28
|
|
80042ac: af00 add r7, sp, #0
|
|
80042ae: 60f8 str r0, [r7, #12]
|
|
80042b0: 60b9 str r1, [r7, #8]
|
|
80042b2: 607a str r2, [r7, #4]
|
|
80042b4: 603b str r3, [r7, #0]
|
|
HAL_CAN_StateTypeDef state = hcan->State;
|
|
80042b6: 68fb ldr r3, [r7, #12]
|
|
80042b8: f893 3020 ldrb.w r3, [r3, #32]
|
|
80042bc: 75fb strb r3, [r7, #23]
|
|
|
|
assert_param(IS_CAN_RX_FIFO(RxFifo));
|
|
|
|
if ((state == HAL_CAN_STATE_READY) ||
|
|
80042be: 7dfb ldrb r3, [r7, #23]
|
|
80042c0: 2b01 cmp r3, #1
|
|
80042c2: d003 beq.n 80042cc <HAL_CAN_GetRxMessage+0x24>
|
|
80042c4: 7dfb ldrb r3, [r7, #23]
|
|
80042c6: 2b02 cmp r3, #2
|
|
80042c8: f040 8103 bne.w 80044d2 <HAL_CAN_GetRxMessage+0x22a>
|
|
(state == HAL_CAN_STATE_LISTENING))
|
|
{
|
|
/* Check the Rx FIFO */
|
|
if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */
|
|
80042cc: 68bb ldr r3, [r7, #8]
|
|
80042ce: 2b00 cmp r3, #0
|
|
80042d0: d10e bne.n 80042f0 <HAL_CAN_GetRxMessage+0x48>
|
|
{
|
|
/* Check that the Rx FIFO 0 is not empty */
|
|
if ((hcan->Instance->RF0R & CAN_RF0R_FMP0) == 0U)
|
|
80042d2: 68fb ldr r3, [r7, #12]
|
|
80042d4: 681b ldr r3, [r3, #0]
|
|
80042d6: 68db ldr r3, [r3, #12]
|
|
80042d8: f003 0303 and.w r3, r3, #3
|
|
80042dc: 2b00 cmp r3, #0
|
|
80042de: d116 bne.n 800430e <HAL_CAN_GetRxMessage+0x66>
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_PARAM;
|
|
80042e0: 68fb ldr r3, [r7, #12]
|
|
80042e2: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
80042e4: f443 1200 orr.w r2, r3, #2097152 @ 0x200000
|
|
80042e8: 68fb ldr r3, [r7, #12]
|
|
80042ea: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
80042ec: 2301 movs r3, #1
|
|
80042ee: e0f7 b.n 80044e0 <HAL_CAN_GetRxMessage+0x238>
|
|
}
|
|
}
|
|
else /* Rx element is assigned to Rx FIFO 1 */
|
|
{
|
|
/* Check that the Rx FIFO 1 is not empty */
|
|
if ((hcan->Instance->RF1R & CAN_RF1R_FMP1) == 0U)
|
|
80042f0: 68fb ldr r3, [r7, #12]
|
|
80042f2: 681b ldr r3, [r3, #0]
|
|
80042f4: 691b ldr r3, [r3, #16]
|
|
80042f6: f003 0303 and.w r3, r3, #3
|
|
80042fa: 2b00 cmp r3, #0
|
|
80042fc: d107 bne.n 800430e <HAL_CAN_GetRxMessage+0x66>
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_PARAM;
|
|
80042fe: 68fb ldr r3, [r7, #12]
|
|
8004300: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8004302: f443 1200 orr.w r2, r3, #2097152 @ 0x200000
|
|
8004306: 68fb ldr r3, [r7, #12]
|
|
8004308: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
800430a: 2301 movs r3, #1
|
|
800430c: e0e8 b.n 80044e0 <HAL_CAN_GetRxMessage+0x238>
|
|
}
|
|
}
|
|
|
|
/* Get the header */
|
|
pHeader->IDE = CAN_RI0R_IDE & hcan->Instance->sFIFOMailBox[RxFifo].RIR;
|
|
800430e: 68fb ldr r3, [r7, #12]
|
|
8004310: 681a ldr r2, [r3, #0]
|
|
8004312: 68bb ldr r3, [r7, #8]
|
|
8004314: 331b adds r3, #27
|
|
8004316: 011b lsls r3, r3, #4
|
|
8004318: 4413 add r3, r2
|
|
800431a: 681b ldr r3, [r3, #0]
|
|
800431c: f003 0204 and.w r2, r3, #4
|
|
8004320: 687b ldr r3, [r7, #4]
|
|
8004322: 609a str r2, [r3, #8]
|
|
if (pHeader->IDE == CAN_ID_STD)
|
|
8004324: 687b ldr r3, [r7, #4]
|
|
8004326: 689b ldr r3, [r3, #8]
|
|
8004328: 2b00 cmp r3, #0
|
|
800432a: d10c bne.n 8004346 <HAL_CAN_GetRxMessage+0x9e>
|
|
{
|
|
pHeader->StdId = (CAN_RI0R_STID & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_TI0R_STID_Pos;
|
|
800432c: 68fb ldr r3, [r7, #12]
|
|
800432e: 681a ldr r2, [r3, #0]
|
|
8004330: 68bb ldr r3, [r7, #8]
|
|
8004332: 331b adds r3, #27
|
|
8004334: 011b lsls r3, r3, #4
|
|
8004336: 4413 add r3, r2
|
|
8004338: 681b ldr r3, [r3, #0]
|
|
800433a: 0d5b lsrs r3, r3, #21
|
|
800433c: f3c3 020a ubfx r2, r3, #0, #11
|
|
8004340: 687b ldr r3, [r7, #4]
|
|
8004342: 601a str r2, [r3, #0]
|
|
8004344: e00b b.n 800435e <HAL_CAN_GetRxMessage+0xb6>
|
|
}
|
|
else
|
|
{
|
|
pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) &
|
|
hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_EXID_Pos;
|
|
8004346: 68fb ldr r3, [r7, #12]
|
|
8004348: 681a ldr r2, [r3, #0]
|
|
800434a: 68bb ldr r3, [r7, #8]
|
|
800434c: 331b adds r3, #27
|
|
800434e: 011b lsls r3, r3, #4
|
|
8004350: 4413 add r3, r2
|
|
8004352: 681b ldr r3, [r3, #0]
|
|
8004354: 08db lsrs r3, r3, #3
|
|
8004356: f023 4260 bic.w r2, r3, #3758096384 @ 0xe0000000
|
|
pHeader->ExtId = ((CAN_RI0R_EXID | CAN_RI0R_STID) &
|
|
800435a: 687b ldr r3, [r7, #4]
|
|
800435c: 605a str r2, [r3, #4]
|
|
}
|
|
pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR);
|
|
800435e: 68fb ldr r3, [r7, #12]
|
|
8004360: 681a ldr r2, [r3, #0]
|
|
8004362: 68bb ldr r3, [r7, #8]
|
|
8004364: 331b adds r3, #27
|
|
8004366: 011b lsls r3, r3, #4
|
|
8004368: 4413 add r3, r2
|
|
800436a: 681b ldr r3, [r3, #0]
|
|
800436c: f003 0202 and.w r2, r3, #2
|
|
8004370: 687b ldr r3, [r7, #4]
|
|
8004372: 60da str r2, [r3, #12]
|
|
if (((CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos) >= 8U)
|
|
8004374: 68fb ldr r3, [r7, #12]
|
|
8004376: 681a ldr r2, [r3, #0]
|
|
8004378: 68bb ldr r3, [r7, #8]
|
|
800437a: 331b adds r3, #27
|
|
800437c: 011b lsls r3, r3, #4
|
|
800437e: 4413 add r3, r2
|
|
8004380: 3304 adds r3, #4
|
|
8004382: 681b ldr r3, [r3, #0]
|
|
8004384: f003 0308 and.w r3, r3, #8
|
|
8004388: 2b00 cmp r3, #0
|
|
800438a: d003 beq.n 8004394 <HAL_CAN_GetRxMessage+0xec>
|
|
{
|
|
/* Truncate DLC to 8 if received field is over range */
|
|
pHeader->DLC = 8U;
|
|
800438c: 687b ldr r3, [r7, #4]
|
|
800438e: 2208 movs r2, #8
|
|
8004390: 611a str r2, [r3, #16]
|
|
8004392: e00b b.n 80043ac <HAL_CAN_GetRxMessage+0x104>
|
|
}
|
|
else
|
|
{
|
|
pHeader->DLC = (CAN_RDT0R_DLC & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_DLC_Pos;
|
|
8004394: 68fb ldr r3, [r7, #12]
|
|
8004396: 681a ldr r2, [r3, #0]
|
|
8004398: 68bb ldr r3, [r7, #8]
|
|
800439a: 331b adds r3, #27
|
|
800439c: 011b lsls r3, r3, #4
|
|
800439e: 4413 add r3, r2
|
|
80043a0: 3304 adds r3, #4
|
|
80043a2: 681b ldr r3, [r3, #0]
|
|
80043a4: f003 020f and.w r2, r3, #15
|
|
80043a8: 687b ldr r3, [r7, #4]
|
|
80043aa: 611a str r2, [r3, #16]
|
|
}
|
|
pHeader->FilterMatchIndex = (CAN_RDT0R_FMI & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_FMI_Pos;
|
|
80043ac: 68fb ldr r3, [r7, #12]
|
|
80043ae: 681a ldr r2, [r3, #0]
|
|
80043b0: 68bb ldr r3, [r7, #8]
|
|
80043b2: 331b adds r3, #27
|
|
80043b4: 011b lsls r3, r3, #4
|
|
80043b6: 4413 add r3, r2
|
|
80043b8: 3304 adds r3, #4
|
|
80043ba: 681b ldr r3, [r3, #0]
|
|
80043bc: 0a1b lsrs r3, r3, #8
|
|
80043be: b2da uxtb r2, r3
|
|
80043c0: 687b ldr r3, [r7, #4]
|
|
80043c2: 619a str r2, [r3, #24]
|
|
pHeader->Timestamp = (CAN_RDT0R_TIME & hcan->Instance->sFIFOMailBox[RxFifo].RDTR) >> CAN_RDT0R_TIME_Pos;
|
|
80043c4: 68fb ldr r3, [r7, #12]
|
|
80043c6: 681a ldr r2, [r3, #0]
|
|
80043c8: 68bb ldr r3, [r7, #8]
|
|
80043ca: 331b adds r3, #27
|
|
80043cc: 011b lsls r3, r3, #4
|
|
80043ce: 4413 add r3, r2
|
|
80043d0: 3304 adds r3, #4
|
|
80043d2: 681b ldr r3, [r3, #0]
|
|
80043d4: 0c1b lsrs r3, r3, #16
|
|
80043d6: b29a uxth r2, r3
|
|
80043d8: 687b ldr r3, [r7, #4]
|
|
80043da: 615a str r2, [r3, #20]
|
|
|
|
/* Get the data */
|
|
aData[0] = (uint8_t)((CAN_RDL0R_DATA0 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA0_Pos);
|
|
80043dc: 68fb ldr r3, [r7, #12]
|
|
80043de: 681a ldr r2, [r3, #0]
|
|
80043e0: 68bb ldr r3, [r7, #8]
|
|
80043e2: 011b lsls r3, r3, #4
|
|
80043e4: 4413 add r3, r2
|
|
80043e6: f503 73dc add.w r3, r3, #440 @ 0x1b8
|
|
80043ea: 681b ldr r3, [r3, #0]
|
|
80043ec: b2da uxtb r2, r3
|
|
80043ee: 683b ldr r3, [r7, #0]
|
|
80043f0: 701a strb r2, [r3, #0]
|
|
aData[1] = (uint8_t)((CAN_RDL0R_DATA1 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA1_Pos);
|
|
80043f2: 68fb ldr r3, [r7, #12]
|
|
80043f4: 681a ldr r2, [r3, #0]
|
|
80043f6: 68bb ldr r3, [r7, #8]
|
|
80043f8: 011b lsls r3, r3, #4
|
|
80043fa: 4413 add r3, r2
|
|
80043fc: f503 73dc add.w r3, r3, #440 @ 0x1b8
|
|
8004400: 681b ldr r3, [r3, #0]
|
|
8004402: 0a1a lsrs r2, r3, #8
|
|
8004404: 683b ldr r3, [r7, #0]
|
|
8004406: 3301 adds r3, #1
|
|
8004408: b2d2 uxtb r2, r2
|
|
800440a: 701a strb r2, [r3, #0]
|
|
aData[2] = (uint8_t)((CAN_RDL0R_DATA2 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA2_Pos);
|
|
800440c: 68fb ldr r3, [r7, #12]
|
|
800440e: 681a ldr r2, [r3, #0]
|
|
8004410: 68bb ldr r3, [r7, #8]
|
|
8004412: 011b lsls r3, r3, #4
|
|
8004414: 4413 add r3, r2
|
|
8004416: f503 73dc add.w r3, r3, #440 @ 0x1b8
|
|
800441a: 681b ldr r3, [r3, #0]
|
|
800441c: 0c1a lsrs r2, r3, #16
|
|
800441e: 683b ldr r3, [r7, #0]
|
|
8004420: 3302 adds r3, #2
|
|
8004422: b2d2 uxtb r2, r2
|
|
8004424: 701a strb r2, [r3, #0]
|
|
aData[3] = (uint8_t)((CAN_RDL0R_DATA3 & hcan->Instance->sFIFOMailBox[RxFifo].RDLR) >> CAN_RDL0R_DATA3_Pos);
|
|
8004426: 68fb ldr r3, [r7, #12]
|
|
8004428: 681a ldr r2, [r3, #0]
|
|
800442a: 68bb ldr r3, [r7, #8]
|
|
800442c: 011b lsls r3, r3, #4
|
|
800442e: 4413 add r3, r2
|
|
8004430: f503 73dc add.w r3, r3, #440 @ 0x1b8
|
|
8004434: 681b ldr r3, [r3, #0]
|
|
8004436: 0e1a lsrs r2, r3, #24
|
|
8004438: 683b ldr r3, [r7, #0]
|
|
800443a: 3303 adds r3, #3
|
|
800443c: b2d2 uxtb r2, r2
|
|
800443e: 701a strb r2, [r3, #0]
|
|
aData[4] = (uint8_t)((CAN_RDH0R_DATA4 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA4_Pos);
|
|
8004440: 68fb ldr r3, [r7, #12]
|
|
8004442: 681a ldr r2, [r3, #0]
|
|
8004444: 68bb ldr r3, [r7, #8]
|
|
8004446: 011b lsls r3, r3, #4
|
|
8004448: 4413 add r3, r2
|
|
800444a: f503 73de add.w r3, r3, #444 @ 0x1bc
|
|
800444e: 681a ldr r2, [r3, #0]
|
|
8004450: 683b ldr r3, [r7, #0]
|
|
8004452: 3304 adds r3, #4
|
|
8004454: b2d2 uxtb r2, r2
|
|
8004456: 701a strb r2, [r3, #0]
|
|
aData[5] = (uint8_t)((CAN_RDH0R_DATA5 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA5_Pos);
|
|
8004458: 68fb ldr r3, [r7, #12]
|
|
800445a: 681a ldr r2, [r3, #0]
|
|
800445c: 68bb ldr r3, [r7, #8]
|
|
800445e: 011b lsls r3, r3, #4
|
|
8004460: 4413 add r3, r2
|
|
8004462: f503 73de add.w r3, r3, #444 @ 0x1bc
|
|
8004466: 681b ldr r3, [r3, #0]
|
|
8004468: 0a1a lsrs r2, r3, #8
|
|
800446a: 683b ldr r3, [r7, #0]
|
|
800446c: 3305 adds r3, #5
|
|
800446e: b2d2 uxtb r2, r2
|
|
8004470: 701a strb r2, [r3, #0]
|
|
aData[6] = (uint8_t)((CAN_RDH0R_DATA6 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA6_Pos);
|
|
8004472: 68fb ldr r3, [r7, #12]
|
|
8004474: 681a ldr r2, [r3, #0]
|
|
8004476: 68bb ldr r3, [r7, #8]
|
|
8004478: 011b lsls r3, r3, #4
|
|
800447a: 4413 add r3, r2
|
|
800447c: f503 73de add.w r3, r3, #444 @ 0x1bc
|
|
8004480: 681b ldr r3, [r3, #0]
|
|
8004482: 0c1a lsrs r2, r3, #16
|
|
8004484: 683b ldr r3, [r7, #0]
|
|
8004486: 3306 adds r3, #6
|
|
8004488: b2d2 uxtb r2, r2
|
|
800448a: 701a strb r2, [r3, #0]
|
|
aData[7] = (uint8_t)((CAN_RDH0R_DATA7 & hcan->Instance->sFIFOMailBox[RxFifo].RDHR) >> CAN_RDH0R_DATA7_Pos);
|
|
800448c: 68fb ldr r3, [r7, #12]
|
|
800448e: 681a ldr r2, [r3, #0]
|
|
8004490: 68bb ldr r3, [r7, #8]
|
|
8004492: 011b lsls r3, r3, #4
|
|
8004494: 4413 add r3, r2
|
|
8004496: f503 73de add.w r3, r3, #444 @ 0x1bc
|
|
800449a: 681b ldr r3, [r3, #0]
|
|
800449c: 0e1a lsrs r2, r3, #24
|
|
800449e: 683b ldr r3, [r7, #0]
|
|
80044a0: 3307 adds r3, #7
|
|
80044a2: b2d2 uxtb r2, r2
|
|
80044a4: 701a strb r2, [r3, #0]
|
|
|
|
/* Release the FIFO */
|
|
if (RxFifo == CAN_RX_FIFO0) /* Rx element is assigned to Rx FIFO 0 */
|
|
80044a6: 68bb ldr r3, [r7, #8]
|
|
80044a8: 2b00 cmp r3, #0
|
|
80044aa: d108 bne.n 80044be <HAL_CAN_GetRxMessage+0x216>
|
|
{
|
|
/* Release RX FIFO 0 */
|
|
SET_BIT(hcan->Instance->RF0R, CAN_RF0R_RFOM0);
|
|
80044ac: 68fb ldr r3, [r7, #12]
|
|
80044ae: 681b ldr r3, [r3, #0]
|
|
80044b0: 68da ldr r2, [r3, #12]
|
|
80044b2: 68fb ldr r3, [r7, #12]
|
|
80044b4: 681b ldr r3, [r3, #0]
|
|
80044b6: f042 0220 orr.w r2, r2, #32
|
|
80044ba: 60da str r2, [r3, #12]
|
|
80044bc: e007 b.n 80044ce <HAL_CAN_GetRxMessage+0x226>
|
|
}
|
|
else /* Rx element is assigned to Rx FIFO 1 */
|
|
{
|
|
/* Release RX FIFO 1 */
|
|
SET_BIT(hcan->Instance->RF1R, CAN_RF1R_RFOM1);
|
|
80044be: 68fb ldr r3, [r7, #12]
|
|
80044c0: 681b ldr r3, [r3, #0]
|
|
80044c2: 691a ldr r2, [r3, #16]
|
|
80044c4: 68fb ldr r3, [r7, #12]
|
|
80044c6: 681b ldr r3, [r3, #0]
|
|
80044c8: f042 0220 orr.w r2, r2, #32
|
|
80044cc: 611a str r2, [r3, #16]
|
|
}
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
80044ce: 2300 movs r3, #0
|
|
80044d0: e006 b.n 80044e0 <HAL_CAN_GetRxMessage+0x238>
|
|
}
|
|
else
|
|
{
|
|
/* Update error code */
|
|
hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED;
|
|
80044d2: 68fb ldr r3, [r7, #12]
|
|
80044d4: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
80044d6: f443 2280 orr.w r2, r3, #262144 @ 0x40000
|
|
80044da: 68fb ldr r3, [r7, #12]
|
|
80044dc: 625a str r2, [r3, #36] @ 0x24
|
|
|
|
return HAL_ERROR;
|
|
80044de: 2301 movs r3, #1
|
|
}
|
|
}
|
|
80044e0: 4618 mov r0, r3
|
|
80044e2: 371c adds r7, #28
|
|
80044e4: 46bd mov sp, r7
|
|
80044e6: f85d 7b04 ldr.w r7, [sp], #4
|
|
80044ea: 4770 bx lr
|
|
|
|
080044ec <HAL_CAN_GetRxFifoFillLevel>:
|
|
* @param RxFifo Rx FIFO.
|
|
* This parameter can be a value of @arg CAN_receive_FIFO_number.
|
|
* @retval Number of messages available in Rx FIFO.
|
|
*/
|
|
uint32_t HAL_CAN_GetRxFifoFillLevel(const CAN_HandleTypeDef *hcan, uint32_t RxFifo)
|
|
{
|
|
80044ec: b480 push {r7}
|
|
80044ee: b085 sub sp, #20
|
|
80044f0: af00 add r7, sp, #0
|
|
80044f2: 6078 str r0, [r7, #4]
|
|
80044f4: 6039 str r1, [r7, #0]
|
|
uint32_t filllevel = 0U;
|
|
80044f6: 2300 movs r3, #0
|
|
80044f8: 60fb str r3, [r7, #12]
|
|
HAL_CAN_StateTypeDef state = hcan->State;
|
|
80044fa: 687b ldr r3, [r7, #4]
|
|
80044fc: f893 3020 ldrb.w r3, [r3, #32]
|
|
8004500: 72fb strb r3, [r7, #11]
|
|
|
|
/* Check function parameters */
|
|
assert_param(IS_CAN_RX_FIFO(RxFifo));
|
|
|
|
if ((state == HAL_CAN_STATE_READY) ||
|
|
8004502: 7afb ldrb r3, [r7, #11]
|
|
8004504: 2b01 cmp r3, #1
|
|
8004506: d002 beq.n 800450e <HAL_CAN_GetRxFifoFillLevel+0x22>
|
|
8004508: 7afb ldrb r3, [r7, #11]
|
|
800450a: 2b02 cmp r3, #2
|
|
800450c: d10f bne.n 800452e <HAL_CAN_GetRxFifoFillLevel+0x42>
|
|
(state == HAL_CAN_STATE_LISTENING))
|
|
{
|
|
if (RxFifo == CAN_RX_FIFO0)
|
|
800450e: 683b ldr r3, [r7, #0]
|
|
8004510: 2b00 cmp r3, #0
|
|
8004512: d106 bne.n 8004522 <HAL_CAN_GetRxFifoFillLevel+0x36>
|
|
{
|
|
filllevel = hcan->Instance->RF0R & CAN_RF0R_FMP0;
|
|
8004514: 687b ldr r3, [r7, #4]
|
|
8004516: 681b ldr r3, [r3, #0]
|
|
8004518: 68db ldr r3, [r3, #12]
|
|
800451a: f003 0303 and.w r3, r3, #3
|
|
800451e: 60fb str r3, [r7, #12]
|
|
8004520: e005 b.n 800452e <HAL_CAN_GetRxFifoFillLevel+0x42>
|
|
}
|
|
else /* RxFifo == CAN_RX_FIFO1 */
|
|
{
|
|
filllevel = hcan->Instance->RF1R & CAN_RF1R_FMP1;
|
|
8004522: 687b ldr r3, [r7, #4]
|
|
8004524: 681b ldr r3, [r3, #0]
|
|
8004526: 691b ldr r3, [r3, #16]
|
|
8004528: f003 0303 and.w r3, r3, #3
|
|
800452c: 60fb str r3, [r7, #12]
|
|
}
|
|
}
|
|
|
|
/* Return Rx FIFO fill level */
|
|
return filllevel;
|
|
800452e: 68fb ldr r3, [r7, #12]
|
|
}
|
|
8004530: 4618 mov r0, r3
|
|
8004532: 3714 adds r7, #20
|
|
8004534: 46bd mov sp, r7
|
|
8004536: f85d 7b04 ldr.w r7, [sp], #4
|
|
800453a: 4770 bx lr
|
|
|
|
0800453c <__NVIC_SetPriorityGrouping>:
|
|
In case of a conflict between priority grouping and available
|
|
priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.
|
|
\param [in] PriorityGroup Priority grouping field.
|
|
*/
|
|
__STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
|
|
{
|
|
800453c: b480 push {r7}
|
|
800453e: b085 sub sp, #20
|
|
8004540: af00 add r7, sp, #0
|
|
8004542: 6078 str r0, [r7, #4]
|
|
uint32_t reg_value;
|
|
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
|
|
8004544: 687b ldr r3, [r7, #4]
|
|
8004546: f003 0307 and.w r3, r3, #7
|
|
800454a: 60fb str r3, [r7, #12]
|
|
|
|
reg_value = SCB->AIRCR; /* read old register configuration */
|
|
800454c: 4b0c ldr r3, [pc, #48] @ (8004580 <__NVIC_SetPriorityGrouping+0x44>)
|
|
800454e: 68db ldr r3, [r3, #12]
|
|
8004550: 60bb str r3, [r7, #8]
|
|
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
|
|
8004552: 68ba ldr r2, [r7, #8]
|
|
8004554: f64f 03ff movw r3, #63743 @ 0xf8ff
|
|
8004558: 4013 ands r3, r2
|
|
800455a: 60bb str r3, [r7, #8]
|
|
reg_value = (reg_value |
|
|
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
|
|
(PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */
|
|
800455c: 68fb ldr r3, [r7, #12]
|
|
800455e: 021a lsls r2, r3, #8
|
|
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
|
|
8004560: 68bb ldr r3, [r7, #8]
|
|
8004562: 4313 orrs r3, r2
|
|
reg_value = (reg_value |
|
|
8004564: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000
|
|
8004568: f443 3300 orr.w r3, r3, #131072 @ 0x20000
|
|
800456c: 60bb str r3, [r7, #8]
|
|
SCB->AIRCR = reg_value;
|
|
800456e: 4a04 ldr r2, [pc, #16] @ (8004580 <__NVIC_SetPriorityGrouping+0x44>)
|
|
8004570: 68bb ldr r3, [r7, #8]
|
|
8004572: 60d3 str r3, [r2, #12]
|
|
}
|
|
8004574: bf00 nop
|
|
8004576: 3714 adds r7, #20
|
|
8004578: 46bd mov sp, r7
|
|
800457a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800457e: 4770 bx lr
|
|
8004580: e000ed00 .word 0xe000ed00
|
|
|
|
08004584 <__NVIC_GetPriorityGrouping>:
|
|
\brief Get Priority Grouping
|
|
\details Reads the priority grouping field from the NVIC Interrupt Controller.
|
|
\return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field).
|
|
*/
|
|
__STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void)
|
|
{
|
|
8004584: b480 push {r7}
|
|
8004586: af00 add r7, sp, #0
|
|
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
|
|
8004588: 4b04 ldr r3, [pc, #16] @ (800459c <__NVIC_GetPriorityGrouping+0x18>)
|
|
800458a: 68db ldr r3, [r3, #12]
|
|
800458c: 0a1b lsrs r3, r3, #8
|
|
800458e: f003 0307 and.w r3, r3, #7
|
|
}
|
|
8004592: 4618 mov r0, r3
|
|
8004594: 46bd mov sp, r7
|
|
8004596: f85d 7b04 ldr.w r7, [sp], #4
|
|
800459a: 4770 bx lr
|
|
800459c: e000ed00 .word 0xe000ed00
|
|
|
|
080045a0 <__NVIC_EnableIRQ>:
|
|
\details Enables a device specific interrupt in the NVIC interrupt controller.
|
|
\param [in] IRQn Device specific interrupt number.
|
|
\note IRQn must not be negative.
|
|
*/
|
|
__STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn)
|
|
{
|
|
80045a0: b480 push {r7}
|
|
80045a2: b083 sub sp, #12
|
|
80045a4: af00 add r7, sp, #0
|
|
80045a6: 4603 mov r3, r0
|
|
80045a8: 71fb strb r3, [r7, #7]
|
|
if ((int32_t)(IRQn) >= 0)
|
|
80045aa: f997 3007 ldrsb.w r3, [r7, #7]
|
|
80045ae: 2b00 cmp r3, #0
|
|
80045b0: db0b blt.n 80045ca <__NVIC_EnableIRQ+0x2a>
|
|
{
|
|
__COMPILER_BARRIER();
|
|
NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
|
|
80045b2: 79fb ldrb r3, [r7, #7]
|
|
80045b4: f003 021f and.w r2, r3, #31
|
|
80045b8: 4907 ldr r1, [pc, #28] @ (80045d8 <__NVIC_EnableIRQ+0x38>)
|
|
80045ba: f997 3007 ldrsb.w r3, [r7, #7]
|
|
80045be: 095b lsrs r3, r3, #5
|
|
80045c0: 2001 movs r0, #1
|
|
80045c2: fa00 f202 lsl.w r2, r0, r2
|
|
80045c6: f841 2023 str.w r2, [r1, r3, lsl #2]
|
|
__COMPILER_BARRIER();
|
|
}
|
|
}
|
|
80045ca: bf00 nop
|
|
80045cc: 370c adds r7, #12
|
|
80045ce: 46bd mov sp, r7
|
|
80045d0: f85d 7b04 ldr.w r7, [sp], #4
|
|
80045d4: 4770 bx lr
|
|
80045d6: bf00 nop
|
|
80045d8: e000e100 .word 0xe000e100
|
|
|
|
080045dc <__NVIC_SetPriority>:
|
|
\param [in] IRQn Interrupt number.
|
|
\param [in] priority Priority to set.
|
|
\note The priority cannot be set for every processor exception.
|
|
*/
|
|
__STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
|
|
{
|
|
80045dc: b480 push {r7}
|
|
80045de: b083 sub sp, #12
|
|
80045e0: af00 add r7, sp, #0
|
|
80045e2: 4603 mov r3, r0
|
|
80045e4: 6039 str r1, [r7, #0]
|
|
80045e6: 71fb strb r3, [r7, #7]
|
|
if ((int32_t)(IRQn) >= 0)
|
|
80045e8: f997 3007 ldrsb.w r3, [r7, #7]
|
|
80045ec: 2b00 cmp r3, #0
|
|
80045ee: db0a blt.n 8004606 <__NVIC_SetPriority+0x2a>
|
|
{
|
|
NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
|
|
80045f0: 683b ldr r3, [r7, #0]
|
|
80045f2: b2da uxtb r2, r3
|
|
80045f4: 490c ldr r1, [pc, #48] @ (8004628 <__NVIC_SetPriority+0x4c>)
|
|
80045f6: f997 3007 ldrsb.w r3, [r7, #7]
|
|
80045fa: 0112 lsls r2, r2, #4
|
|
80045fc: b2d2 uxtb r2, r2
|
|
80045fe: 440b add r3, r1
|
|
8004600: f883 2300 strb.w r2, [r3, #768] @ 0x300
|
|
}
|
|
else
|
|
{
|
|
SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
|
|
}
|
|
}
|
|
8004604: e00a b.n 800461c <__NVIC_SetPriority+0x40>
|
|
SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
|
|
8004606: 683b ldr r3, [r7, #0]
|
|
8004608: b2da uxtb r2, r3
|
|
800460a: 4908 ldr r1, [pc, #32] @ (800462c <__NVIC_SetPriority+0x50>)
|
|
800460c: 79fb ldrb r3, [r7, #7]
|
|
800460e: f003 030f and.w r3, r3, #15
|
|
8004612: 3b04 subs r3, #4
|
|
8004614: 0112 lsls r2, r2, #4
|
|
8004616: b2d2 uxtb r2, r2
|
|
8004618: 440b add r3, r1
|
|
800461a: 761a strb r2, [r3, #24]
|
|
}
|
|
800461c: bf00 nop
|
|
800461e: 370c adds r7, #12
|
|
8004620: 46bd mov sp, r7
|
|
8004622: f85d 7b04 ldr.w r7, [sp], #4
|
|
8004626: 4770 bx lr
|
|
8004628: e000e100 .word 0xe000e100
|
|
800462c: e000ed00 .word 0xe000ed00
|
|
|
|
08004630 <NVIC_EncodePriority>:
|
|
\param [in] PreemptPriority Preemptive priority value (starting from 0).
|
|
\param [in] SubPriority Subpriority value (starting from 0).
|
|
\return Encoded priority. Value can be used in the function \ref NVIC_SetPriority().
|
|
*/
|
|
__STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)
|
|
{
|
|
8004630: b480 push {r7}
|
|
8004632: b089 sub sp, #36 @ 0x24
|
|
8004634: af00 add r7, sp, #0
|
|
8004636: 60f8 str r0, [r7, #12]
|
|
8004638: 60b9 str r1, [r7, #8]
|
|
800463a: 607a str r2, [r7, #4]
|
|
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
|
|
800463c: 68fb ldr r3, [r7, #12]
|
|
800463e: f003 0307 and.w r3, r3, #7
|
|
8004642: 61fb str r3, [r7, #28]
|
|
uint32_t PreemptPriorityBits;
|
|
uint32_t SubPriorityBits;
|
|
|
|
PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp);
|
|
8004644: 69fb ldr r3, [r7, #28]
|
|
8004646: f1c3 0307 rsb r3, r3, #7
|
|
800464a: 2b04 cmp r3, #4
|
|
800464c: bf28 it cs
|
|
800464e: 2304 movcs r3, #4
|
|
8004650: 61bb str r3, [r7, #24]
|
|
SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS));
|
|
8004652: 69fb ldr r3, [r7, #28]
|
|
8004654: 3304 adds r3, #4
|
|
8004656: 2b06 cmp r3, #6
|
|
8004658: d902 bls.n 8004660 <NVIC_EncodePriority+0x30>
|
|
800465a: 69fb ldr r3, [r7, #28]
|
|
800465c: 3b03 subs r3, #3
|
|
800465e: e000 b.n 8004662 <NVIC_EncodePriority+0x32>
|
|
8004660: 2300 movs r3, #0
|
|
8004662: 617b str r3, [r7, #20]
|
|
|
|
return (
|
|
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
|
|
8004664: f04f 32ff mov.w r2, #4294967295
|
|
8004668: 69bb ldr r3, [r7, #24]
|
|
800466a: fa02 f303 lsl.w r3, r2, r3
|
|
800466e: 43da mvns r2, r3
|
|
8004670: 68bb ldr r3, [r7, #8]
|
|
8004672: 401a ands r2, r3
|
|
8004674: 697b ldr r3, [r7, #20]
|
|
8004676: 409a lsls r2, r3
|
|
((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
|
|
8004678: f04f 31ff mov.w r1, #4294967295
|
|
800467c: 697b ldr r3, [r7, #20]
|
|
800467e: fa01 f303 lsl.w r3, r1, r3
|
|
8004682: 43d9 mvns r1, r3
|
|
8004684: 687b ldr r3, [r7, #4]
|
|
8004686: 400b ands r3, r1
|
|
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
|
|
8004688: 4313 orrs r3, r2
|
|
);
|
|
}
|
|
800468a: 4618 mov r0, r3
|
|
800468c: 3724 adds r7, #36 @ 0x24
|
|
800468e: 46bd mov sp, r7
|
|
8004690: f85d 7b04 ldr.w r7, [sp], #4
|
|
8004694: 4770 bx lr
|
|
|
|
08004696 <HAL_NVIC_SetPriorityGrouping>:
|
|
* @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible.
|
|
* The pending IRQ priority will be managed only by the subpriority.
|
|
* @retval None
|
|
*/
|
|
void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup)
|
|
{
|
|
8004696: b580 push {r7, lr}
|
|
8004698: b082 sub sp, #8
|
|
800469a: af00 add r7, sp, #0
|
|
800469c: 6078 str r0, [r7, #4]
|
|
/* Check the parameters */
|
|
assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup));
|
|
|
|
/* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */
|
|
NVIC_SetPriorityGrouping(PriorityGroup);
|
|
800469e: 6878 ldr r0, [r7, #4]
|
|
80046a0: f7ff ff4c bl 800453c <__NVIC_SetPriorityGrouping>
|
|
}
|
|
80046a4: bf00 nop
|
|
80046a6: 3708 adds r7, #8
|
|
80046a8: 46bd mov sp, r7
|
|
80046aa: bd80 pop {r7, pc}
|
|
|
|
080046ac <HAL_NVIC_SetPriority>:
|
|
* This parameter can be a value between 0 and 15
|
|
* A lower priority value indicates a higher priority.
|
|
* @retval None
|
|
*/
|
|
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
|
|
{
|
|
80046ac: b580 push {r7, lr}
|
|
80046ae: b086 sub sp, #24
|
|
80046b0: af00 add r7, sp, #0
|
|
80046b2: 4603 mov r3, r0
|
|
80046b4: 60b9 str r1, [r7, #8]
|
|
80046b6: 607a str r2, [r7, #4]
|
|
80046b8: 73fb strb r3, [r7, #15]
|
|
uint32_t prioritygroup = 0x00U;
|
|
80046ba: 2300 movs r3, #0
|
|
80046bc: 617b str r3, [r7, #20]
|
|
|
|
/* Check the parameters */
|
|
assert_param(IS_NVIC_SUB_PRIORITY(SubPriority));
|
|
assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority));
|
|
|
|
prioritygroup = NVIC_GetPriorityGrouping();
|
|
80046be: f7ff ff61 bl 8004584 <__NVIC_GetPriorityGrouping>
|
|
80046c2: 6178 str r0, [r7, #20]
|
|
|
|
NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
|
|
80046c4: 687a ldr r2, [r7, #4]
|
|
80046c6: 68b9 ldr r1, [r7, #8]
|
|
80046c8: 6978 ldr r0, [r7, #20]
|
|
80046ca: f7ff ffb1 bl 8004630 <NVIC_EncodePriority>
|
|
80046ce: 4602 mov r2, r0
|
|
80046d0: f997 300f ldrsb.w r3, [r7, #15]
|
|
80046d4: 4611 mov r1, r2
|
|
80046d6: 4618 mov r0, r3
|
|
80046d8: f7ff ff80 bl 80045dc <__NVIC_SetPriority>
|
|
}
|
|
80046dc: bf00 nop
|
|
80046de: 3718 adds r7, #24
|
|
80046e0: 46bd mov sp, r7
|
|
80046e2: bd80 pop {r7, pc}
|
|
|
|
080046e4 <HAL_NVIC_EnableIRQ>:
|
|
* This parameter can be an enumerator of IRQn_Type enumeration
|
|
* (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
|
|
* @retval None
|
|
*/
|
|
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
|
|
{
|
|
80046e4: b580 push {r7, lr}
|
|
80046e6: b082 sub sp, #8
|
|
80046e8: af00 add r7, sp, #0
|
|
80046ea: 4603 mov r3, r0
|
|
80046ec: 71fb strb r3, [r7, #7]
|
|
/* Check the parameters */
|
|
assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
|
|
|
|
/* Enable interrupt */
|
|
NVIC_EnableIRQ(IRQn);
|
|
80046ee: f997 3007 ldrsb.w r3, [r7, #7]
|
|
80046f2: 4618 mov r0, r3
|
|
80046f4: f7ff ff54 bl 80045a0 <__NVIC_EnableIRQ>
|
|
}
|
|
80046f8: bf00 nop
|
|
80046fa: 3708 adds r7, #8
|
|
80046fc: 46bd mov sp, r7
|
|
80046fe: bd80 pop {r7, pc}
|
|
|
|
08004700 <HAL_GPIO_Init>:
|
|
* @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains
|
|
* the configuration information for the specified GPIO peripheral.
|
|
* @retval None
|
|
*/
|
|
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
|
|
{
|
|
8004700: b480 push {r7}
|
|
8004702: b089 sub sp, #36 @ 0x24
|
|
8004704: af00 add r7, sp, #0
|
|
8004706: 6078 str r0, [r7, #4]
|
|
8004708: 6039 str r1, [r7, #0]
|
|
uint32_t position;
|
|
uint32_t ioposition = 0x00U;
|
|
800470a: 2300 movs r3, #0
|
|
800470c: 617b str r3, [r7, #20]
|
|
uint32_t iocurrent = 0x00U;
|
|
800470e: 2300 movs r3, #0
|
|
8004710: 613b str r3, [r7, #16]
|
|
uint32_t temp = 0x00U;
|
|
8004712: 2300 movs r3, #0
|
|
8004714: 61bb str r3, [r7, #24]
|
|
assert_param(IS_GPIO_ALL_INSTANCE(GPIOx));
|
|
assert_param(IS_GPIO_PIN(GPIO_Init->Pin));
|
|
assert_param(IS_GPIO_MODE(GPIO_Init->Mode));
|
|
|
|
/* Configure the port pins */
|
|
for(position = 0U; position < GPIO_NUMBER; position++)
|
|
8004716: 2300 movs r3, #0
|
|
8004718: 61fb str r3, [r7, #28]
|
|
800471a: e16b b.n 80049f4 <HAL_GPIO_Init+0x2f4>
|
|
{
|
|
/* Get the IO position */
|
|
ioposition = 0x01U << position;
|
|
800471c: 2201 movs r2, #1
|
|
800471e: 69fb ldr r3, [r7, #28]
|
|
8004720: fa02 f303 lsl.w r3, r2, r3
|
|
8004724: 617b str r3, [r7, #20]
|
|
/* Get the current IO position */
|
|
iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
|
|
8004726: 683b ldr r3, [r7, #0]
|
|
8004728: 681b ldr r3, [r3, #0]
|
|
800472a: 697a ldr r2, [r7, #20]
|
|
800472c: 4013 ands r3, r2
|
|
800472e: 613b str r3, [r7, #16]
|
|
|
|
if(iocurrent == ioposition)
|
|
8004730: 693a ldr r2, [r7, #16]
|
|
8004732: 697b ldr r3, [r7, #20]
|
|
8004734: 429a cmp r2, r3
|
|
8004736: f040 815a bne.w 80049ee <HAL_GPIO_Init+0x2ee>
|
|
{
|
|
/*--------------------- GPIO Mode Configuration ------------------------*/
|
|
/* In case of Output or Alternate function mode selection */
|
|
if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \
|
|
800473a: 683b ldr r3, [r7, #0]
|
|
800473c: 685b ldr r3, [r3, #4]
|
|
800473e: f003 0303 and.w r3, r3, #3
|
|
8004742: 2b01 cmp r3, #1
|
|
8004744: d005 beq.n 8004752 <HAL_GPIO_Init+0x52>
|
|
(GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
|
|
8004746: 683b ldr r3, [r7, #0]
|
|
8004748: 685b ldr r3, [r3, #4]
|
|
800474a: f003 0303 and.w r3, r3, #3
|
|
if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \
|
|
800474e: 2b02 cmp r3, #2
|
|
8004750: d130 bne.n 80047b4 <HAL_GPIO_Init+0xb4>
|
|
{
|
|
/* Check the Speed parameter */
|
|
assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
|
|
/* Configure the IO Speed */
|
|
temp = GPIOx->OSPEEDR;
|
|
8004752: 687b ldr r3, [r7, #4]
|
|
8004754: 689b ldr r3, [r3, #8]
|
|
8004756: 61bb str r3, [r7, #24]
|
|
temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U));
|
|
8004758: 69fb ldr r3, [r7, #28]
|
|
800475a: 005b lsls r3, r3, #1
|
|
800475c: 2203 movs r2, #3
|
|
800475e: fa02 f303 lsl.w r3, r2, r3
|
|
8004762: 43db mvns r3, r3
|
|
8004764: 69ba ldr r2, [r7, #24]
|
|
8004766: 4013 ands r3, r2
|
|
8004768: 61bb str r3, [r7, #24]
|
|
temp |= (GPIO_Init->Speed << (position * 2U));
|
|
800476a: 683b ldr r3, [r7, #0]
|
|
800476c: 68da ldr r2, [r3, #12]
|
|
800476e: 69fb ldr r3, [r7, #28]
|
|
8004770: 005b lsls r3, r3, #1
|
|
8004772: fa02 f303 lsl.w r3, r2, r3
|
|
8004776: 69ba ldr r2, [r7, #24]
|
|
8004778: 4313 orrs r3, r2
|
|
800477a: 61bb str r3, [r7, #24]
|
|
GPIOx->OSPEEDR = temp;
|
|
800477c: 687b ldr r3, [r7, #4]
|
|
800477e: 69ba ldr r2, [r7, #24]
|
|
8004780: 609a str r2, [r3, #8]
|
|
|
|
/* Configure the IO Output Type */
|
|
temp = GPIOx->OTYPER;
|
|
8004782: 687b ldr r3, [r7, #4]
|
|
8004784: 685b ldr r3, [r3, #4]
|
|
8004786: 61bb str r3, [r7, #24]
|
|
temp &= ~(GPIO_OTYPER_OT_0 << position) ;
|
|
8004788: 2201 movs r2, #1
|
|
800478a: 69fb ldr r3, [r7, #28]
|
|
800478c: fa02 f303 lsl.w r3, r2, r3
|
|
8004790: 43db mvns r3, r3
|
|
8004792: 69ba ldr r2, [r7, #24]
|
|
8004794: 4013 ands r3, r2
|
|
8004796: 61bb str r3, [r7, #24]
|
|
temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
|
|
8004798: 683b ldr r3, [r7, #0]
|
|
800479a: 685b ldr r3, [r3, #4]
|
|
800479c: 091b lsrs r3, r3, #4
|
|
800479e: f003 0201 and.w r2, r3, #1
|
|
80047a2: 69fb ldr r3, [r7, #28]
|
|
80047a4: fa02 f303 lsl.w r3, r2, r3
|
|
80047a8: 69ba ldr r2, [r7, #24]
|
|
80047aa: 4313 orrs r3, r2
|
|
80047ac: 61bb str r3, [r7, #24]
|
|
GPIOx->OTYPER = temp;
|
|
80047ae: 687b ldr r3, [r7, #4]
|
|
80047b0: 69ba ldr r2, [r7, #24]
|
|
80047b2: 605a str r2, [r3, #4]
|
|
}
|
|
|
|
if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
|
|
80047b4: 683b ldr r3, [r7, #0]
|
|
80047b6: 685b ldr r3, [r3, #4]
|
|
80047b8: f003 0303 and.w r3, r3, #3
|
|
80047bc: 2b03 cmp r3, #3
|
|
80047be: d017 beq.n 80047f0 <HAL_GPIO_Init+0xf0>
|
|
{
|
|
/* Check the parameters */
|
|
assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
|
|
|
|
/* Activate the Pull-up or Pull down resistor for the current IO */
|
|
temp = GPIOx->PUPDR;
|
|
80047c0: 687b ldr r3, [r7, #4]
|
|
80047c2: 68db ldr r3, [r3, #12]
|
|
80047c4: 61bb str r3, [r7, #24]
|
|
temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U));
|
|
80047c6: 69fb ldr r3, [r7, #28]
|
|
80047c8: 005b lsls r3, r3, #1
|
|
80047ca: 2203 movs r2, #3
|
|
80047cc: fa02 f303 lsl.w r3, r2, r3
|
|
80047d0: 43db mvns r3, r3
|
|
80047d2: 69ba ldr r2, [r7, #24]
|
|
80047d4: 4013 ands r3, r2
|
|
80047d6: 61bb str r3, [r7, #24]
|
|
temp |= ((GPIO_Init->Pull) << (position * 2U));
|
|
80047d8: 683b ldr r3, [r7, #0]
|
|
80047da: 689a ldr r2, [r3, #8]
|
|
80047dc: 69fb ldr r3, [r7, #28]
|
|
80047de: 005b lsls r3, r3, #1
|
|
80047e0: fa02 f303 lsl.w r3, r2, r3
|
|
80047e4: 69ba ldr r2, [r7, #24]
|
|
80047e6: 4313 orrs r3, r2
|
|
80047e8: 61bb str r3, [r7, #24]
|
|
GPIOx->PUPDR = temp;
|
|
80047ea: 687b ldr r3, [r7, #4]
|
|
80047ec: 69ba ldr r2, [r7, #24]
|
|
80047ee: 60da str r2, [r3, #12]
|
|
}
|
|
|
|
/* In case of Alternate function mode selection */
|
|
if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
|
|
80047f0: 683b ldr r3, [r7, #0]
|
|
80047f2: 685b ldr r3, [r3, #4]
|
|
80047f4: f003 0303 and.w r3, r3, #3
|
|
80047f8: 2b02 cmp r3, #2
|
|
80047fa: d123 bne.n 8004844 <HAL_GPIO_Init+0x144>
|
|
{
|
|
/* Check the Alternate function parameter */
|
|
assert_param(IS_GPIO_AF(GPIO_Init->Alternate));
|
|
/* Configure Alternate function mapped with the current IO */
|
|
temp = GPIOx->AFR[position >> 3U];
|
|
80047fc: 69fb ldr r3, [r7, #28]
|
|
80047fe: 08da lsrs r2, r3, #3
|
|
8004800: 687b ldr r3, [r7, #4]
|
|
8004802: 3208 adds r2, #8
|
|
8004804: f853 3022 ldr.w r3, [r3, r2, lsl #2]
|
|
8004808: 61bb str r3, [r7, #24]
|
|
temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ;
|
|
800480a: 69fb ldr r3, [r7, #28]
|
|
800480c: f003 0307 and.w r3, r3, #7
|
|
8004810: 009b lsls r3, r3, #2
|
|
8004812: 220f movs r2, #15
|
|
8004814: fa02 f303 lsl.w r3, r2, r3
|
|
8004818: 43db mvns r3, r3
|
|
800481a: 69ba ldr r2, [r7, #24]
|
|
800481c: 4013 ands r3, r2
|
|
800481e: 61bb str r3, [r7, #24]
|
|
temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U));
|
|
8004820: 683b ldr r3, [r7, #0]
|
|
8004822: 691a ldr r2, [r3, #16]
|
|
8004824: 69fb ldr r3, [r7, #28]
|
|
8004826: f003 0307 and.w r3, r3, #7
|
|
800482a: 009b lsls r3, r3, #2
|
|
800482c: fa02 f303 lsl.w r3, r2, r3
|
|
8004830: 69ba ldr r2, [r7, #24]
|
|
8004832: 4313 orrs r3, r2
|
|
8004834: 61bb str r3, [r7, #24]
|
|
GPIOx->AFR[position >> 3U] = temp;
|
|
8004836: 69fb ldr r3, [r7, #28]
|
|
8004838: 08da lsrs r2, r3, #3
|
|
800483a: 687b ldr r3, [r7, #4]
|
|
800483c: 3208 adds r2, #8
|
|
800483e: 69b9 ldr r1, [r7, #24]
|
|
8004840: f843 1022 str.w r1, [r3, r2, lsl #2]
|
|
}
|
|
|
|
/* Configure IO Direction mode (Input, Output, Alternate or Analog) */
|
|
temp = GPIOx->MODER;
|
|
8004844: 687b ldr r3, [r7, #4]
|
|
8004846: 681b ldr r3, [r3, #0]
|
|
8004848: 61bb str r3, [r7, #24]
|
|
temp &= ~(GPIO_MODER_MODER0 << (position * 2U));
|
|
800484a: 69fb ldr r3, [r7, #28]
|
|
800484c: 005b lsls r3, r3, #1
|
|
800484e: 2203 movs r2, #3
|
|
8004850: fa02 f303 lsl.w r3, r2, r3
|
|
8004854: 43db mvns r3, r3
|
|
8004856: 69ba ldr r2, [r7, #24]
|
|
8004858: 4013 ands r3, r2
|
|
800485a: 61bb str r3, [r7, #24]
|
|
temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
|
|
800485c: 683b ldr r3, [r7, #0]
|
|
800485e: 685b ldr r3, [r3, #4]
|
|
8004860: f003 0203 and.w r2, r3, #3
|
|
8004864: 69fb ldr r3, [r7, #28]
|
|
8004866: 005b lsls r3, r3, #1
|
|
8004868: fa02 f303 lsl.w r3, r2, r3
|
|
800486c: 69ba ldr r2, [r7, #24]
|
|
800486e: 4313 orrs r3, r2
|
|
8004870: 61bb str r3, [r7, #24]
|
|
GPIOx->MODER = temp;
|
|
8004872: 687b ldr r3, [r7, #4]
|
|
8004874: 69ba ldr r2, [r7, #24]
|
|
8004876: 601a str r2, [r3, #0]
|
|
|
|
/*--------------------- EXTI Mode Configuration ------------------------*/
|
|
/* Configure the External Interrupt or event for the current IO */
|
|
if((GPIO_Init->Mode & EXTI_MODE) != 0x00U)
|
|
8004878: 683b ldr r3, [r7, #0]
|
|
800487a: 685b ldr r3, [r3, #4]
|
|
800487c: f403 3340 and.w r3, r3, #196608 @ 0x30000
|
|
8004880: 2b00 cmp r3, #0
|
|
8004882: f000 80b4 beq.w 80049ee <HAL_GPIO_Init+0x2ee>
|
|
{
|
|
/* Enable SYSCFG Clock */
|
|
__HAL_RCC_SYSCFG_CLK_ENABLE();
|
|
8004886: 2300 movs r3, #0
|
|
8004888: 60fb str r3, [r7, #12]
|
|
800488a: 4b60 ldr r3, [pc, #384] @ (8004a0c <HAL_GPIO_Init+0x30c>)
|
|
800488c: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
800488e: 4a5f ldr r2, [pc, #380] @ (8004a0c <HAL_GPIO_Init+0x30c>)
|
|
8004890: f443 4380 orr.w r3, r3, #16384 @ 0x4000
|
|
8004894: 6453 str r3, [r2, #68] @ 0x44
|
|
8004896: 4b5d ldr r3, [pc, #372] @ (8004a0c <HAL_GPIO_Init+0x30c>)
|
|
8004898: 6c5b ldr r3, [r3, #68] @ 0x44
|
|
800489a: f403 4380 and.w r3, r3, #16384 @ 0x4000
|
|
800489e: 60fb str r3, [r7, #12]
|
|
80048a0: 68fb ldr r3, [r7, #12]
|
|
|
|
temp = SYSCFG->EXTICR[position >> 2U];
|
|
80048a2: 4a5b ldr r2, [pc, #364] @ (8004a10 <HAL_GPIO_Init+0x310>)
|
|
80048a4: 69fb ldr r3, [r7, #28]
|
|
80048a6: 089b lsrs r3, r3, #2
|
|
80048a8: 3302 adds r3, #2
|
|
80048aa: f852 3023 ldr.w r3, [r2, r3, lsl #2]
|
|
80048ae: 61bb str r3, [r7, #24]
|
|
temp &= ~(0x0FU << (4U * (position & 0x03U)));
|
|
80048b0: 69fb ldr r3, [r7, #28]
|
|
80048b2: f003 0303 and.w r3, r3, #3
|
|
80048b6: 009b lsls r3, r3, #2
|
|
80048b8: 220f movs r2, #15
|
|
80048ba: fa02 f303 lsl.w r3, r2, r3
|
|
80048be: 43db mvns r3, r3
|
|
80048c0: 69ba ldr r2, [r7, #24]
|
|
80048c2: 4013 ands r3, r2
|
|
80048c4: 61bb str r3, [r7, #24]
|
|
temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)));
|
|
80048c6: 687b ldr r3, [r7, #4]
|
|
80048c8: 4a52 ldr r2, [pc, #328] @ (8004a14 <HAL_GPIO_Init+0x314>)
|
|
80048ca: 4293 cmp r3, r2
|
|
80048cc: d02b beq.n 8004926 <HAL_GPIO_Init+0x226>
|
|
80048ce: 687b ldr r3, [r7, #4]
|
|
80048d0: 4a51 ldr r2, [pc, #324] @ (8004a18 <HAL_GPIO_Init+0x318>)
|
|
80048d2: 4293 cmp r3, r2
|
|
80048d4: d025 beq.n 8004922 <HAL_GPIO_Init+0x222>
|
|
80048d6: 687b ldr r3, [r7, #4]
|
|
80048d8: 4a50 ldr r2, [pc, #320] @ (8004a1c <HAL_GPIO_Init+0x31c>)
|
|
80048da: 4293 cmp r3, r2
|
|
80048dc: d01f beq.n 800491e <HAL_GPIO_Init+0x21e>
|
|
80048de: 687b ldr r3, [r7, #4]
|
|
80048e0: 4a4f ldr r2, [pc, #316] @ (8004a20 <HAL_GPIO_Init+0x320>)
|
|
80048e2: 4293 cmp r3, r2
|
|
80048e4: d019 beq.n 800491a <HAL_GPIO_Init+0x21a>
|
|
80048e6: 687b ldr r3, [r7, #4]
|
|
80048e8: 4a4e ldr r2, [pc, #312] @ (8004a24 <HAL_GPIO_Init+0x324>)
|
|
80048ea: 4293 cmp r3, r2
|
|
80048ec: d013 beq.n 8004916 <HAL_GPIO_Init+0x216>
|
|
80048ee: 687b ldr r3, [r7, #4]
|
|
80048f0: 4a4d ldr r2, [pc, #308] @ (8004a28 <HAL_GPIO_Init+0x328>)
|
|
80048f2: 4293 cmp r3, r2
|
|
80048f4: d00d beq.n 8004912 <HAL_GPIO_Init+0x212>
|
|
80048f6: 687b ldr r3, [r7, #4]
|
|
80048f8: 4a4c ldr r2, [pc, #304] @ (8004a2c <HAL_GPIO_Init+0x32c>)
|
|
80048fa: 4293 cmp r3, r2
|
|
80048fc: d007 beq.n 800490e <HAL_GPIO_Init+0x20e>
|
|
80048fe: 687b ldr r3, [r7, #4]
|
|
8004900: 4a4b ldr r2, [pc, #300] @ (8004a30 <HAL_GPIO_Init+0x330>)
|
|
8004902: 4293 cmp r3, r2
|
|
8004904: d101 bne.n 800490a <HAL_GPIO_Init+0x20a>
|
|
8004906: 2307 movs r3, #7
|
|
8004908: e00e b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
800490a: 2308 movs r3, #8
|
|
800490c: e00c b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
800490e: 2306 movs r3, #6
|
|
8004910: e00a b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
8004912: 2305 movs r3, #5
|
|
8004914: e008 b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
8004916: 2304 movs r3, #4
|
|
8004918: e006 b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
800491a: 2303 movs r3, #3
|
|
800491c: e004 b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
800491e: 2302 movs r3, #2
|
|
8004920: e002 b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
8004922: 2301 movs r3, #1
|
|
8004924: e000 b.n 8004928 <HAL_GPIO_Init+0x228>
|
|
8004926: 2300 movs r3, #0
|
|
8004928: 69fa ldr r2, [r7, #28]
|
|
800492a: f002 0203 and.w r2, r2, #3
|
|
800492e: 0092 lsls r2, r2, #2
|
|
8004930: 4093 lsls r3, r2
|
|
8004932: 69ba ldr r2, [r7, #24]
|
|
8004934: 4313 orrs r3, r2
|
|
8004936: 61bb str r3, [r7, #24]
|
|
SYSCFG->EXTICR[position >> 2U] = temp;
|
|
8004938: 4935 ldr r1, [pc, #212] @ (8004a10 <HAL_GPIO_Init+0x310>)
|
|
800493a: 69fb ldr r3, [r7, #28]
|
|
800493c: 089b lsrs r3, r3, #2
|
|
800493e: 3302 adds r3, #2
|
|
8004940: 69ba ldr r2, [r7, #24]
|
|
8004942: f841 2023 str.w r2, [r1, r3, lsl #2]
|
|
|
|
/* Clear Rising Falling edge configuration */
|
|
temp = EXTI->RTSR;
|
|
8004946: 4b3b ldr r3, [pc, #236] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
8004948: 689b ldr r3, [r3, #8]
|
|
800494a: 61bb str r3, [r7, #24]
|
|
temp &= ~((uint32_t)iocurrent);
|
|
800494c: 693b ldr r3, [r7, #16]
|
|
800494e: 43db mvns r3, r3
|
|
8004950: 69ba ldr r2, [r7, #24]
|
|
8004952: 4013 ands r3, r2
|
|
8004954: 61bb str r3, [r7, #24]
|
|
if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
|
|
8004956: 683b ldr r3, [r7, #0]
|
|
8004958: 685b ldr r3, [r3, #4]
|
|
800495a: f403 1380 and.w r3, r3, #1048576 @ 0x100000
|
|
800495e: 2b00 cmp r3, #0
|
|
8004960: d003 beq.n 800496a <HAL_GPIO_Init+0x26a>
|
|
{
|
|
temp |= iocurrent;
|
|
8004962: 69ba ldr r2, [r7, #24]
|
|
8004964: 693b ldr r3, [r7, #16]
|
|
8004966: 4313 orrs r3, r2
|
|
8004968: 61bb str r3, [r7, #24]
|
|
}
|
|
EXTI->RTSR = temp;
|
|
800496a: 4a32 ldr r2, [pc, #200] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
800496c: 69bb ldr r3, [r7, #24]
|
|
800496e: 6093 str r3, [r2, #8]
|
|
|
|
temp = EXTI->FTSR;
|
|
8004970: 4b30 ldr r3, [pc, #192] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
8004972: 68db ldr r3, [r3, #12]
|
|
8004974: 61bb str r3, [r7, #24]
|
|
temp &= ~((uint32_t)iocurrent);
|
|
8004976: 693b ldr r3, [r7, #16]
|
|
8004978: 43db mvns r3, r3
|
|
800497a: 69ba ldr r2, [r7, #24]
|
|
800497c: 4013 ands r3, r2
|
|
800497e: 61bb str r3, [r7, #24]
|
|
if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
|
|
8004980: 683b ldr r3, [r7, #0]
|
|
8004982: 685b ldr r3, [r3, #4]
|
|
8004984: f403 1300 and.w r3, r3, #2097152 @ 0x200000
|
|
8004988: 2b00 cmp r3, #0
|
|
800498a: d003 beq.n 8004994 <HAL_GPIO_Init+0x294>
|
|
{
|
|
temp |= iocurrent;
|
|
800498c: 69ba ldr r2, [r7, #24]
|
|
800498e: 693b ldr r3, [r7, #16]
|
|
8004990: 4313 orrs r3, r2
|
|
8004992: 61bb str r3, [r7, #24]
|
|
}
|
|
EXTI->FTSR = temp;
|
|
8004994: 4a27 ldr r2, [pc, #156] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
8004996: 69bb ldr r3, [r7, #24]
|
|
8004998: 60d3 str r3, [r2, #12]
|
|
|
|
temp = EXTI->EMR;
|
|
800499a: 4b26 ldr r3, [pc, #152] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
800499c: 685b ldr r3, [r3, #4]
|
|
800499e: 61bb str r3, [r7, #24]
|
|
temp &= ~((uint32_t)iocurrent);
|
|
80049a0: 693b ldr r3, [r7, #16]
|
|
80049a2: 43db mvns r3, r3
|
|
80049a4: 69ba ldr r2, [r7, #24]
|
|
80049a6: 4013 ands r3, r2
|
|
80049a8: 61bb str r3, [r7, #24]
|
|
if((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
|
|
80049aa: 683b ldr r3, [r7, #0]
|
|
80049ac: 685b ldr r3, [r3, #4]
|
|
80049ae: f403 3300 and.w r3, r3, #131072 @ 0x20000
|
|
80049b2: 2b00 cmp r3, #0
|
|
80049b4: d003 beq.n 80049be <HAL_GPIO_Init+0x2be>
|
|
{
|
|
temp |= iocurrent;
|
|
80049b6: 69ba ldr r2, [r7, #24]
|
|
80049b8: 693b ldr r3, [r7, #16]
|
|
80049ba: 4313 orrs r3, r2
|
|
80049bc: 61bb str r3, [r7, #24]
|
|
}
|
|
EXTI->EMR = temp;
|
|
80049be: 4a1d ldr r2, [pc, #116] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
80049c0: 69bb ldr r3, [r7, #24]
|
|
80049c2: 6053 str r3, [r2, #4]
|
|
|
|
/* Clear EXTI line configuration */
|
|
temp = EXTI->IMR;
|
|
80049c4: 4b1b ldr r3, [pc, #108] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
80049c6: 681b ldr r3, [r3, #0]
|
|
80049c8: 61bb str r3, [r7, #24]
|
|
temp &= ~((uint32_t)iocurrent);
|
|
80049ca: 693b ldr r3, [r7, #16]
|
|
80049cc: 43db mvns r3, r3
|
|
80049ce: 69ba ldr r2, [r7, #24]
|
|
80049d0: 4013 ands r3, r2
|
|
80049d2: 61bb str r3, [r7, #24]
|
|
if((GPIO_Init->Mode & EXTI_IT) != 0x00U)
|
|
80049d4: 683b ldr r3, [r7, #0]
|
|
80049d6: 685b ldr r3, [r3, #4]
|
|
80049d8: f403 3380 and.w r3, r3, #65536 @ 0x10000
|
|
80049dc: 2b00 cmp r3, #0
|
|
80049de: d003 beq.n 80049e8 <HAL_GPIO_Init+0x2e8>
|
|
{
|
|
temp |= iocurrent;
|
|
80049e0: 69ba ldr r2, [r7, #24]
|
|
80049e2: 693b ldr r3, [r7, #16]
|
|
80049e4: 4313 orrs r3, r2
|
|
80049e6: 61bb str r3, [r7, #24]
|
|
}
|
|
EXTI->IMR = temp;
|
|
80049e8: 4a12 ldr r2, [pc, #72] @ (8004a34 <HAL_GPIO_Init+0x334>)
|
|
80049ea: 69bb ldr r3, [r7, #24]
|
|
80049ec: 6013 str r3, [r2, #0]
|
|
for(position = 0U; position < GPIO_NUMBER; position++)
|
|
80049ee: 69fb ldr r3, [r7, #28]
|
|
80049f0: 3301 adds r3, #1
|
|
80049f2: 61fb str r3, [r7, #28]
|
|
80049f4: 69fb ldr r3, [r7, #28]
|
|
80049f6: 2b0f cmp r3, #15
|
|
80049f8: f67f ae90 bls.w 800471c <HAL_GPIO_Init+0x1c>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
80049fc: bf00 nop
|
|
80049fe: bf00 nop
|
|
8004a00: 3724 adds r7, #36 @ 0x24
|
|
8004a02: 46bd mov sp, r7
|
|
8004a04: f85d 7b04 ldr.w r7, [sp], #4
|
|
8004a08: 4770 bx lr
|
|
8004a0a: bf00 nop
|
|
8004a0c: 40023800 .word 0x40023800
|
|
8004a10: 40013800 .word 0x40013800
|
|
8004a14: 40020000 .word 0x40020000
|
|
8004a18: 40020400 .word 0x40020400
|
|
8004a1c: 40020800 .word 0x40020800
|
|
8004a20: 40020c00 .word 0x40020c00
|
|
8004a24: 40021000 .word 0x40021000
|
|
8004a28: 40021400 .word 0x40021400
|
|
8004a2c: 40021800 .word 0x40021800
|
|
8004a30: 40021c00 .word 0x40021c00
|
|
8004a34: 40013c00 .word 0x40013c00
|
|
|
|
08004a38 <HAL_RCC_OscConfig>:
|
|
* supported by this API. User should request a transition to HSE Off
|
|
* first and then HSE On or HSE Bypass.
|
|
* @retval HAL status
|
|
*/
|
|
__weak HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
|
|
{
|
|
8004a38: b580 push {r7, lr}
|
|
8004a3a: b086 sub sp, #24
|
|
8004a3c: af00 add r7, sp, #0
|
|
8004a3e: 6078 str r0, [r7, #4]
|
|
uint32_t tickstart, pll_config;
|
|
|
|
/* Check Null pointer */
|
|
if(RCC_OscInitStruct == NULL)
|
|
8004a40: 687b ldr r3, [r7, #4]
|
|
8004a42: 2b00 cmp r3, #0
|
|
8004a44: d101 bne.n 8004a4a <HAL_RCC_OscConfig+0x12>
|
|
{
|
|
return HAL_ERROR;
|
|
8004a46: 2301 movs r3, #1
|
|
8004a48: e267 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
}
|
|
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
|
|
/*------------------------------- HSE Configuration ------------------------*/
|
|
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
|
|
8004a4a: 687b ldr r3, [r7, #4]
|
|
8004a4c: 681b ldr r3, [r3, #0]
|
|
8004a4e: f003 0301 and.w r3, r3, #1
|
|
8004a52: 2b00 cmp r3, #0
|
|
8004a54: d075 beq.n 8004b42 <HAL_RCC_OscConfig+0x10a>
|
|
{
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
|
|
/* When the HSE is used as system clock or clock source for PLL in these cases HSE will not disabled */
|
|
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\
|
|
8004a56: 4b88 ldr r3, [pc, #544] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004a58: 689b ldr r3, [r3, #8]
|
|
8004a5a: f003 030c and.w r3, r3, #12
|
|
8004a5e: 2b04 cmp r3, #4
|
|
8004a60: d00c beq.n 8004a7c <HAL_RCC_OscConfig+0x44>
|
|
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
|
|
8004a62: 4b85 ldr r3, [pc, #532] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004a64: 689b ldr r3, [r3, #8]
|
|
8004a66: f003 030c and.w r3, r3, #12
|
|
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) ||\
|
|
8004a6a: 2b08 cmp r3, #8
|
|
8004a6c: d112 bne.n 8004a94 <HAL_RCC_OscConfig+0x5c>
|
|
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
|
|
8004a6e: 4b82 ldr r3, [pc, #520] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004a70: 685b ldr r3, [r3, #4]
|
|
8004a72: f403 0380 and.w r3, r3, #4194304 @ 0x400000
|
|
8004a76: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
|
|
8004a7a: d10b bne.n 8004a94 <HAL_RCC_OscConfig+0x5c>
|
|
{
|
|
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
|
|
8004a7c: 4b7e ldr r3, [pc, #504] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004a7e: 681b ldr r3, [r3, #0]
|
|
8004a80: f403 3300 and.w r3, r3, #131072 @ 0x20000
|
|
8004a84: 2b00 cmp r3, #0
|
|
8004a86: d05b beq.n 8004b40 <HAL_RCC_OscConfig+0x108>
|
|
8004a88: 687b ldr r3, [r7, #4]
|
|
8004a8a: 685b ldr r3, [r3, #4]
|
|
8004a8c: 2b00 cmp r3, #0
|
|
8004a8e: d157 bne.n 8004b40 <HAL_RCC_OscConfig+0x108>
|
|
{
|
|
return HAL_ERROR;
|
|
8004a90: 2301 movs r3, #1
|
|
8004a92: e242 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Set the new HSE configuration ---------------------------------------*/
|
|
__HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
|
|
8004a94: 687b ldr r3, [r7, #4]
|
|
8004a96: 685b ldr r3, [r3, #4]
|
|
8004a98: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
|
|
8004a9c: d106 bne.n 8004aac <HAL_RCC_OscConfig+0x74>
|
|
8004a9e: 4b76 ldr r3, [pc, #472] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004aa0: 681b ldr r3, [r3, #0]
|
|
8004aa2: 4a75 ldr r2, [pc, #468] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004aa4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
|
|
8004aa8: 6013 str r3, [r2, #0]
|
|
8004aaa: e01d b.n 8004ae8 <HAL_RCC_OscConfig+0xb0>
|
|
8004aac: 687b ldr r3, [r7, #4]
|
|
8004aae: 685b ldr r3, [r3, #4]
|
|
8004ab0: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
|
|
8004ab4: d10c bne.n 8004ad0 <HAL_RCC_OscConfig+0x98>
|
|
8004ab6: 4b70 ldr r3, [pc, #448] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ab8: 681b ldr r3, [r3, #0]
|
|
8004aba: 4a6f ldr r2, [pc, #444] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004abc: f443 2380 orr.w r3, r3, #262144 @ 0x40000
|
|
8004ac0: 6013 str r3, [r2, #0]
|
|
8004ac2: 4b6d ldr r3, [pc, #436] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ac4: 681b ldr r3, [r3, #0]
|
|
8004ac6: 4a6c ldr r2, [pc, #432] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ac8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
|
|
8004acc: 6013 str r3, [r2, #0]
|
|
8004ace: e00b b.n 8004ae8 <HAL_RCC_OscConfig+0xb0>
|
|
8004ad0: 4b69 ldr r3, [pc, #420] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ad2: 681b ldr r3, [r3, #0]
|
|
8004ad4: 4a68 ldr r2, [pc, #416] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ad6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
|
|
8004ada: 6013 str r3, [r2, #0]
|
|
8004adc: 4b66 ldr r3, [pc, #408] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ade: 681b ldr r3, [r3, #0]
|
|
8004ae0: 4a65 ldr r2, [pc, #404] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004ae2: f423 2380 bic.w r3, r3, #262144 @ 0x40000
|
|
8004ae6: 6013 str r3, [r2, #0]
|
|
|
|
/* Check the HSE State */
|
|
if((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF)
|
|
8004ae8: 687b ldr r3, [r7, #4]
|
|
8004aea: 685b ldr r3, [r3, #4]
|
|
8004aec: 2b00 cmp r3, #0
|
|
8004aee: d013 beq.n 8004b18 <HAL_RCC_OscConfig+0xe0>
|
|
{
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004af0: f7ff f922 bl 8003d38 <HAL_GetTick>
|
|
8004af4: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till HSE is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
|
|
8004af6: e008 b.n 8004b0a <HAL_RCC_OscConfig+0xd2>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
|
|
8004af8: f7ff f91e bl 8003d38 <HAL_GetTick>
|
|
8004afc: 4602 mov r2, r0
|
|
8004afe: 693b ldr r3, [r7, #16]
|
|
8004b00: 1ad3 subs r3, r2, r3
|
|
8004b02: 2b64 cmp r3, #100 @ 0x64
|
|
8004b04: d901 bls.n 8004b0a <HAL_RCC_OscConfig+0xd2>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004b06: 2303 movs r3, #3
|
|
8004b08: e207 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
|
|
8004b0a: 4b5b ldr r3, [pc, #364] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b0c: 681b ldr r3, [r3, #0]
|
|
8004b0e: f403 3300 and.w r3, r3, #131072 @ 0x20000
|
|
8004b12: 2b00 cmp r3, #0
|
|
8004b14: d0f0 beq.n 8004af8 <HAL_RCC_OscConfig+0xc0>
|
|
8004b16: e014 b.n 8004b42 <HAL_RCC_OscConfig+0x10a>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004b18: f7ff f90e bl 8003d38 <HAL_GetTick>
|
|
8004b1c: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till HSE is bypassed or disabled */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
|
|
8004b1e: e008 b.n 8004b32 <HAL_RCC_OscConfig+0xfa>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE)
|
|
8004b20: f7ff f90a bl 8003d38 <HAL_GetTick>
|
|
8004b24: 4602 mov r2, r0
|
|
8004b26: 693b ldr r3, [r7, #16]
|
|
8004b28: 1ad3 subs r3, r2, r3
|
|
8004b2a: 2b64 cmp r3, #100 @ 0x64
|
|
8004b2c: d901 bls.n 8004b32 <HAL_RCC_OscConfig+0xfa>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004b2e: 2303 movs r3, #3
|
|
8004b30: e1f3 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
|
|
8004b32: 4b51 ldr r3, [pc, #324] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b34: 681b ldr r3, [r3, #0]
|
|
8004b36: f403 3300 and.w r3, r3, #131072 @ 0x20000
|
|
8004b3a: 2b00 cmp r3, #0
|
|
8004b3c: d1f0 bne.n 8004b20 <HAL_RCC_OscConfig+0xe8>
|
|
8004b3e: e000 b.n 8004b42 <HAL_RCC_OscConfig+0x10a>
|
|
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
|
|
8004b40: bf00 nop
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/*----------------------------- HSI Configuration --------------------------*/
|
|
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
|
|
8004b42: 687b ldr r3, [r7, #4]
|
|
8004b44: 681b ldr r3, [r3, #0]
|
|
8004b46: f003 0302 and.w r3, r3, #2
|
|
8004b4a: 2b00 cmp r3, #0
|
|
8004b4c: d063 beq.n 8004c16 <HAL_RCC_OscConfig+0x1de>
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
|
|
assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
|
|
|
|
/* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
|
|
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\
|
|
8004b4e: 4b4a ldr r3, [pc, #296] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b50: 689b ldr r3, [r3, #8]
|
|
8004b52: f003 030c and.w r3, r3, #12
|
|
8004b56: 2b00 cmp r3, #0
|
|
8004b58: d00b beq.n 8004b72 <HAL_RCC_OscConfig+0x13a>
|
|
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
|
|
8004b5a: 4b47 ldr r3, [pc, #284] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b5c: 689b ldr r3, [r3, #8]
|
|
8004b5e: f003 030c and.w r3, r3, #12
|
|
if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) ||\
|
|
8004b62: 2b08 cmp r3, #8
|
|
8004b64: d11c bne.n 8004ba0 <HAL_RCC_OscConfig+0x168>
|
|
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
|
|
8004b66: 4b44 ldr r3, [pc, #272] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b68: 685b ldr r3, [r3, #4]
|
|
8004b6a: f403 0380 and.w r3, r3, #4194304 @ 0x400000
|
|
8004b6e: 2b00 cmp r3, #0
|
|
8004b70: d116 bne.n 8004ba0 <HAL_RCC_OscConfig+0x168>
|
|
{
|
|
/* When HSI is used as system clock it will not disabled */
|
|
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
|
|
8004b72: 4b41 ldr r3, [pc, #260] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b74: 681b ldr r3, [r3, #0]
|
|
8004b76: f003 0302 and.w r3, r3, #2
|
|
8004b7a: 2b00 cmp r3, #0
|
|
8004b7c: d005 beq.n 8004b8a <HAL_RCC_OscConfig+0x152>
|
|
8004b7e: 687b ldr r3, [r7, #4]
|
|
8004b80: 68db ldr r3, [r3, #12]
|
|
8004b82: 2b01 cmp r3, #1
|
|
8004b84: d001 beq.n 8004b8a <HAL_RCC_OscConfig+0x152>
|
|
{
|
|
return HAL_ERROR;
|
|
8004b86: 2301 movs r3, #1
|
|
8004b88: e1c7 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
}
|
|
/* Otherwise, just the calibration is allowed */
|
|
else
|
|
{
|
|
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
|
|
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
|
|
8004b8a: 4b3b ldr r3, [pc, #236] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b8c: 681b ldr r3, [r3, #0]
|
|
8004b8e: f023 02f8 bic.w r2, r3, #248 @ 0xf8
|
|
8004b92: 687b ldr r3, [r7, #4]
|
|
8004b94: 691b ldr r3, [r3, #16]
|
|
8004b96: 00db lsls r3, r3, #3
|
|
8004b98: 4937 ldr r1, [pc, #220] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004b9a: 4313 orrs r3, r2
|
|
8004b9c: 600b str r3, [r1, #0]
|
|
if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
|
|
8004b9e: e03a b.n 8004c16 <HAL_RCC_OscConfig+0x1de>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Check the HSI State */
|
|
if((RCC_OscInitStruct->HSIState)!= RCC_HSI_OFF)
|
|
8004ba0: 687b ldr r3, [r7, #4]
|
|
8004ba2: 68db ldr r3, [r3, #12]
|
|
8004ba4: 2b00 cmp r3, #0
|
|
8004ba6: d020 beq.n 8004bea <HAL_RCC_OscConfig+0x1b2>
|
|
{
|
|
/* Enable the Internal High Speed oscillator (HSI). */
|
|
__HAL_RCC_HSI_ENABLE();
|
|
8004ba8: 4b34 ldr r3, [pc, #208] @ (8004c7c <HAL_RCC_OscConfig+0x244>)
|
|
8004baa: 2201 movs r2, #1
|
|
8004bac: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick*/
|
|
tickstart = HAL_GetTick();
|
|
8004bae: f7ff f8c3 bl 8003d38 <HAL_GetTick>
|
|
8004bb2: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till HSI is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
|
|
8004bb4: e008 b.n 8004bc8 <HAL_RCC_OscConfig+0x190>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
|
|
8004bb6: f7ff f8bf bl 8003d38 <HAL_GetTick>
|
|
8004bba: 4602 mov r2, r0
|
|
8004bbc: 693b ldr r3, [r7, #16]
|
|
8004bbe: 1ad3 subs r3, r2, r3
|
|
8004bc0: 2b02 cmp r3, #2
|
|
8004bc2: d901 bls.n 8004bc8 <HAL_RCC_OscConfig+0x190>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004bc4: 2303 movs r3, #3
|
|
8004bc6: e1a8 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
|
|
8004bc8: 4b2b ldr r3, [pc, #172] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004bca: 681b ldr r3, [r3, #0]
|
|
8004bcc: f003 0302 and.w r3, r3, #2
|
|
8004bd0: 2b00 cmp r3, #0
|
|
8004bd2: d0f0 beq.n 8004bb6 <HAL_RCC_OscConfig+0x17e>
|
|
}
|
|
}
|
|
|
|
/* Adjusts the Internal High Speed oscillator (HSI) calibration value. */
|
|
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
|
|
8004bd4: 4b28 ldr r3, [pc, #160] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004bd6: 681b ldr r3, [r3, #0]
|
|
8004bd8: f023 02f8 bic.w r2, r3, #248 @ 0xf8
|
|
8004bdc: 687b ldr r3, [r7, #4]
|
|
8004bde: 691b ldr r3, [r3, #16]
|
|
8004be0: 00db lsls r3, r3, #3
|
|
8004be2: 4925 ldr r1, [pc, #148] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004be4: 4313 orrs r3, r2
|
|
8004be6: 600b str r3, [r1, #0]
|
|
8004be8: e015 b.n 8004c16 <HAL_RCC_OscConfig+0x1de>
|
|
}
|
|
else
|
|
{
|
|
/* Disable the Internal High Speed oscillator (HSI). */
|
|
__HAL_RCC_HSI_DISABLE();
|
|
8004bea: 4b24 ldr r3, [pc, #144] @ (8004c7c <HAL_RCC_OscConfig+0x244>)
|
|
8004bec: 2200 movs r2, #0
|
|
8004bee: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick*/
|
|
tickstart = HAL_GetTick();
|
|
8004bf0: f7ff f8a2 bl 8003d38 <HAL_GetTick>
|
|
8004bf4: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till HSI is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
|
|
8004bf6: e008 b.n 8004c0a <HAL_RCC_OscConfig+0x1d2>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE)
|
|
8004bf8: f7ff f89e bl 8003d38 <HAL_GetTick>
|
|
8004bfc: 4602 mov r2, r0
|
|
8004bfe: 693b ldr r3, [r7, #16]
|
|
8004c00: 1ad3 subs r3, r2, r3
|
|
8004c02: 2b02 cmp r3, #2
|
|
8004c04: d901 bls.n 8004c0a <HAL_RCC_OscConfig+0x1d2>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004c06: 2303 movs r3, #3
|
|
8004c08: e187 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
|
|
8004c0a: 4b1b ldr r3, [pc, #108] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004c0c: 681b ldr r3, [r3, #0]
|
|
8004c0e: f003 0302 and.w r3, r3, #2
|
|
8004c12: 2b00 cmp r3, #0
|
|
8004c14: d1f0 bne.n 8004bf8 <HAL_RCC_OscConfig+0x1c0>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/*------------------------------ LSI Configuration -------------------------*/
|
|
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
|
|
8004c16: 687b ldr r3, [r7, #4]
|
|
8004c18: 681b ldr r3, [r3, #0]
|
|
8004c1a: f003 0308 and.w r3, r3, #8
|
|
8004c1e: 2b00 cmp r3, #0
|
|
8004c20: d036 beq.n 8004c90 <HAL_RCC_OscConfig+0x258>
|
|
{
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
|
|
|
|
/* Check the LSI State */
|
|
if((RCC_OscInitStruct->LSIState)!= RCC_LSI_OFF)
|
|
8004c22: 687b ldr r3, [r7, #4]
|
|
8004c24: 695b ldr r3, [r3, #20]
|
|
8004c26: 2b00 cmp r3, #0
|
|
8004c28: d016 beq.n 8004c58 <HAL_RCC_OscConfig+0x220>
|
|
{
|
|
/* Enable the Internal Low Speed oscillator (LSI). */
|
|
__HAL_RCC_LSI_ENABLE();
|
|
8004c2a: 4b15 ldr r3, [pc, #84] @ (8004c80 <HAL_RCC_OscConfig+0x248>)
|
|
8004c2c: 2201 movs r2, #1
|
|
8004c2e: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick*/
|
|
tickstart = HAL_GetTick();
|
|
8004c30: f7ff f882 bl 8003d38 <HAL_GetTick>
|
|
8004c34: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till LSI is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
|
|
8004c36: e008 b.n 8004c4a <HAL_RCC_OscConfig+0x212>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
|
|
8004c38: f7ff f87e bl 8003d38 <HAL_GetTick>
|
|
8004c3c: 4602 mov r2, r0
|
|
8004c3e: 693b ldr r3, [r7, #16]
|
|
8004c40: 1ad3 subs r3, r2, r3
|
|
8004c42: 2b02 cmp r3, #2
|
|
8004c44: d901 bls.n 8004c4a <HAL_RCC_OscConfig+0x212>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004c46: 2303 movs r3, #3
|
|
8004c48: e167 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
|
|
8004c4a: 4b0b ldr r3, [pc, #44] @ (8004c78 <HAL_RCC_OscConfig+0x240>)
|
|
8004c4c: 6f5b ldr r3, [r3, #116] @ 0x74
|
|
8004c4e: f003 0302 and.w r3, r3, #2
|
|
8004c52: 2b00 cmp r3, #0
|
|
8004c54: d0f0 beq.n 8004c38 <HAL_RCC_OscConfig+0x200>
|
|
8004c56: e01b b.n 8004c90 <HAL_RCC_OscConfig+0x258>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Disable the Internal Low Speed oscillator (LSI). */
|
|
__HAL_RCC_LSI_DISABLE();
|
|
8004c58: 4b09 ldr r3, [pc, #36] @ (8004c80 <HAL_RCC_OscConfig+0x248>)
|
|
8004c5a: 2200 movs r2, #0
|
|
8004c5c: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004c5e: f7ff f86b bl 8003d38 <HAL_GetTick>
|
|
8004c62: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till LSI is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
|
|
8004c64: e00e b.n 8004c84 <HAL_RCC_OscConfig+0x24c>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE)
|
|
8004c66: f7ff f867 bl 8003d38 <HAL_GetTick>
|
|
8004c6a: 4602 mov r2, r0
|
|
8004c6c: 693b ldr r3, [r7, #16]
|
|
8004c6e: 1ad3 subs r3, r2, r3
|
|
8004c70: 2b02 cmp r3, #2
|
|
8004c72: d907 bls.n 8004c84 <HAL_RCC_OscConfig+0x24c>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004c74: 2303 movs r3, #3
|
|
8004c76: e150 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
8004c78: 40023800 .word 0x40023800
|
|
8004c7c: 42470000 .word 0x42470000
|
|
8004c80: 42470e80 .word 0x42470e80
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
|
|
8004c84: 4b88 ldr r3, [pc, #544] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004c86: 6f5b ldr r3, [r3, #116] @ 0x74
|
|
8004c88: f003 0302 and.w r3, r3, #2
|
|
8004c8c: 2b00 cmp r3, #0
|
|
8004c8e: d1ea bne.n 8004c66 <HAL_RCC_OscConfig+0x22e>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/*------------------------------ LSE Configuration -------------------------*/
|
|
if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
|
|
8004c90: 687b ldr r3, [r7, #4]
|
|
8004c92: 681b ldr r3, [r3, #0]
|
|
8004c94: f003 0304 and.w r3, r3, #4
|
|
8004c98: 2b00 cmp r3, #0
|
|
8004c9a: f000 8097 beq.w 8004dcc <HAL_RCC_OscConfig+0x394>
|
|
{
|
|
FlagStatus pwrclkchanged = RESET;
|
|
8004c9e: 2300 movs r3, #0
|
|
8004ca0: 75fb strb r3, [r7, #23]
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState));
|
|
|
|
/* Update LSE configuration in Backup Domain control register */
|
|
/* Requires to enable write access to Backup Domain of necessary */
|
|
if(__HAL_RCC_PWR_IS_CLK_DISABLED())
|
|
8004ca2: 4b81 ldr r3, [pc, #516] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004ca4: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
8004ca6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
|
|
8004caa: 2b00 cmp r3, #0
|
|
8004cac: d10f bne.n 8004cce <HAL_RCC_OscConfig+0x296>
|
|
{
|
|
__HAL_RCC_PWR_CLK_ENABLE();
|
|
8004cae: 2300 movs r3, #0
|
|
8004cb0: 60bb str r3, [r7, #8]
|
|
8004cb2: 4b7d ldr r3, [pc, #500] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004cb4: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
8004cb6: 4a7c ldr r2, [pc, #496] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004cb8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
|
|
8004cbc: 6413 str r3, [r2, #64] @ 0x40
|
|
8004cbe: 4b7a ldr r3, [pc, #488] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004cc0: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
8004cc2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
|
|
8004cc6: 60bb str r3, [r7, #8]
|
|
8004cc8: 68bb ldr r3, [r7, #8]
|
|
pwrclkchanged = SET;
|
|
8004cca: 2301 movs r3, #1
|
|
8004ccc: 75fb strb r3, [r7, #23]
|
|
}
|
|
|
|
if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
|
|
8004cce: 4b77 ldr r3, [pc, #476] @ (8004eac <HAL_RCC_OscConfig+0x474>)
|
|
8004cd0: 681b ldr r3, [r3, #0]
|
|
8004cd2: f403 7380 and.w r3, r3, #256 @ 0x100
|
|
8004cd6: 2b00 cmp r3, #0
|
|
8004cd8: d118 bne.n 8004d0c <HAL_RCC_OscConfig+0x2d4>
|
|
{
|
|
/* Enable write access to Backup domain */
|
|
SET_BIT(PWR->CR, PWR_CR_DBP);
|
|
8004cda: 4b74 ldr r3, [pc, #464] @ (8004eac <HAL_RCC_OscConfig+0x474>)
|
|
8004cdc: 681b ldr r3, [r3, #0]
|
|
8004cde: 4a73 ldr r2, [pc, #460] @ (8004eac <HAL_RCC_OscConfig+0x474>)
|
|
8004ce0: f443 7380 orr.w r3, r3, #256 @ 0x100
|
|
8004ce4: 6013 str r3, [r2, #0]
|
|
|
|
/* Wait for Backup domain Write protection disable */
|
|
tickstart = HAL_GetTick();
|
|
8004ce6: f7ff f827 bl 8003d38 <HAL_GetTick>
|
|
8004cea: 6138 str r0, [r7, #16]
|
|
|
|
while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
|
|
8004cec: e008 b.n 8004d00 <HAL_RCC_OscConfig+0x2c8>
|
|
{
|
|
if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
|
|
8004cee: f7ff f823 bl 8003d38 <HAL_GetTick>
|
|
8004cf2: 4602 mov r2, r0
|
|
8004cf4: 693b ldr r3, [r7, #16]
|
|
8004cf6: 1ad3 subs r3, r2, r3
|
|
8004cf8: 2b02 cmp r3, #2
|
|
8004cfa: d901 bls.n 8004d00 <HAL_RCC_OscConfig+0x2c8>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004cfc: 2303 movs r3, #3
|
|
8004cfe: e10c b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
|
|
8004d00: 4b6a ldr r3, [pc, #424] @ (8004eac <HAL_RCC_OscConfig+0x474>)
|
|
8004d02: 681b ldr r3, [r3, #0]
|
|
8004d04: f403 7380 and.w r3, r3, #256 @ 0x100
|
|
8004d08: 2b00 cmp r3, #0
|
|
8004d0a: d0f0 beq.n 8004cee <HAL_RCC_OscConfig+0x2b6>
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Set the new LSE configuration -----------------------------------------*/
|
|
__HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
|
|
8004d0c: 687b ldr r3, [r7, #4]
|
|
8004d0e: 689b ldr r3, [r3, #8]
|
|
8004d10: 2b01 cmp r3, #1
|
|
8004d12: d106 bne.n 8004d22 <HAL_RCC_OscConfig+0x2ea>
|
|
8004d14: 4b64 ldr r3, [pc, #400] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d16: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d18: 4a63 ldr r2, [pc, #396] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d1a: f043 0301 orr.w r3, r3, #1
|
|
8004d1e: 6713 str r3, [r2, #112] @ 0x70
|
|
8004d20: e01c b.n 8004d5c <HAL_RCC_OscConfig+0x324>
|
|
8004d22: 687b ldr r3, [r7, #4]
|
|
8004d24: 689b ldr r3, [r3, #8]
|
|
8004d26: 2b05 cmp r3, #5
|
|
8004d28: d10c bne.n 8004d44 <HAL_RCC_OscConfig+0x30c>
|
|
8004d2a: 4b5f ldr r3, [pc, #380] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d2c: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d2e: 4a5e ldr r2, [pc, #376] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d30: f043 0304 orr.w r3, r3, #4
|
|
8004d34: 6713 str r3, [r2, #112] @ 0x70
|
|
8004d36: 4b5c ldr r3, [pc, #368] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d38: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d3a: 4a5b ldr r2, [pc, #364] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d3c: f043 0301 orr.w r3, r3, #1
|
|
8004d40: 6713 str r3, [r2, #112] @ 0x70
|
|
8004d42: e00b b.n 8004d5c <HAL_RCC_OscConfig+0x324>
|
|
8004d44: 4b58 ldr r3, [pc, #352] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d46: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d48: 4a57 ldr r2, [pc, #348] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d4a: f023 0301 bic.w r3, r3, #1
|
|
8004d4e: 6713 str r3, [r2, #112] @ 0x70
|
|
8004d50: 4b55 ldr r3, [pc, #340] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d52: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d54: 4a54 ldr r2, [pc, #336] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d56: f023 0304 bic.w r3, r3, #4
|
|
8004d5a: 6713 str r3, [r2, #112] @ 0x70
|
|
/* Check the LSE State */
|
|
if((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
|
|
8004d5c: 687b ldr r3, [r7, #4]
|
|
8004d5e: 689b ldr r3, [r3, #8]
|
|
8004d60: 2b00 cmp r3, #0
|
|
8004d62: d015 beq.n 8004d90 <HAL_RCC_OscConfig+0x358>
|
|
{
|
|
/* Get Start Tick*/
|
|
tickstart = HAL_GetTick();
|
|
8004d64: f7fe ffe8 bl 8003d38 <HAL_GetTick>
|
|
8004d68: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till LSE is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
|
|
8004d6a: e00a b.n 8004d82 <HAL_RCC_OscConfig+0x34a>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
|
|
8004d6c: f7fe ffe4 bl 8003d38 <HAL_GetTick>
|
|
8004d70: 4602 mov r2, r0
|
|
8004d72: 693b ldr r3, [r7, #16]
|
|
8004d74: 1ad3 subs r3, r2, r3
|
|
8004d76: f241 3288 movw r2, #5000 @ 0x1388
|
|
8004d7a: 4293 cmp r3, r2
|
|
8004d7c: d901 bls.n 8004d82 <HAL_RCC_OscConfig+0x34a>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004d7e: 2303 movs r3, #3
|
|
8004d80: e0cb b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
|
|
8004d82: 4b49 ldr r3, [pc, #292] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004d84: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004d86: f003 0302 and.w r3, r3, #2
|
|
8004d8a: 2b00 cmp r3, #0
|
|
8004d8c: d0ee beq.n 8004d6c <HAL_RCC_OscConfig+0x334>
|
|
8004d8e: e014 b.n 8004dba <HAL_RCC_OscConfig+0x382>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004d90: f7fe ffd2 bl 8003d38 <HAL_GetTick>
|
|
8004d94: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till LSE is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
|
|
8004d96: e00a b.n 8004dae <HAL_RCC_OscConfig+0x376>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
|
|
8004d98: f7fe ffce bl 8003d38 <HAL_GetTick>
|
|
8004d9c: 4602 mov r2, r0
|
|
8004d9e: 693b ldr r3, [r7, #16]
|
|
8004da0: 1ad3 subs r3, r2, r3
|
|
8004da2: f241 3288 movw r2, #5000 @ 0x1388
|
|
8004da6: 4293 cmp r3, r2
|
|
8004da8: d901 bls.n 8004dae <HAL_RCC_OscConfig+0x376>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004daa: 2303 movs r3, #3
|
|
8004dac: e0b5 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
|
|
8004dae: 4b3e ldr r3, [pc, #248] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004db0: 6f1b ldr r3, [r3, #112] @ 0x70
|
|
8004db2: f003 0302 and.w r3, r3, #2
|
|
8004db6: 2b00 cmp r3, #0
|
|
8004db8: d1ee bne.n 8004d98 <HAL_RCC_OscConfig+0x360>
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Restore clock configuration if changed */
|
|
if(pwrclkchanged == SET)
|
|
8004dba: 7dfb ldrb r3, [r7, #23]
|
|
8004dbc: 2b01 cmp r3, #1
|
|
8004dbe: d105 bne.n 8004dcc <HAL_RCC_OscConfig+0x394>
|
|
{
|
|
__HAL_RCC_PWR_CLK_DISABLE();
|
|
8004dc0: 4b39 ldr r3, [pc, #228] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004dc2: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
8004dc4: 4a38 ldr r2, [pc, #224] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004dc6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
|
|
8004dca: 6413 str r3, [r2, #64] @ 0x40
|
|
}
|
|
}
|
|
/*-------------------------------- PLL Configuration -----------------------*/
|
|
/* Check the parameters */
|
|
assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState));
|
|
if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE)
|
|
8004dcc: 687b ldr r3, [r7, #4]
|
|
8004dce: 699b ldr r3, [r3, #24]
|
|
8004dd0: 2b00 cmp r3, #0
|
|
8004dd2: f000 80a1 beq.w 8004f18 <HAL_RCC_OscConfig+0x4e0>
|
|
{
|
|
/* Check if the PLL is used as system clock or not */
|
|
if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL)
|
|
8004dd6: 4b34 ldr r3, [pc, #208] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004dd8: 689b ldr r3, [r3, #8]
|
|
8004dda: f003 030c and.w r3, r3, #12
|
|
8004dde: 2b08 cmp r3, #8
|
|
8004de0: d05c beq.n 8004e9c <HAL_RCC_OscConfig+0x464>
|
|
{
|
|
if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
|
|
8004de2: 687b ldr r3, [r7, #4]
|
|
8004de4: 699b ldr r3, [r3, #24]
|
|
8004de6: 2b02 cmp r3, #2
|
|
8004de8: d141 bne.n 8004e6e <HAL_RCC_OscConfig+0x436>
|
|
assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN));
|
|
assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP));
|
|
assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
|
|
|
|
/* Disable the main PLL. */
|
|
__HAL_RCC_PLL_DISABLE();
|
|
8004dea: 4b31 ldr r3, [pc, #196] @ (8004eb0 <HAL_RCC_OscConfig+0x478>)
|
|
8004dec: 2200 movs r2, #0
|
|
8004dee: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004df0: f7fe ffa2 bl 8003d38 <HAL_GetTick>
|
|
8004df4: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till PLL is disabled */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
|
|
8004df6: e008 b.n 8004e0a <HAL_RCC_OscConfig+0x3d2>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
|
|
8004df8: f7fe ff9e bl 8003d38 <HAL_GetTick>
|
|
8004dfc: 4602 mov r2, r0
|
|
8004dfe: 693b ldr r3, [r7, #16]
|
|
8004e00: 1ad3 subs r3, r2, r3
|
|
8004e02: 2b02 cmp r3, #2
|
|
8004e04: d901 bls.n 8004e0a <HAL_RCC_OscConfig+0x3d2>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004e06: 2303 movs r3, #3
|
|
8004e08: e087 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
|
|
8004e0a: 4b27 ldr r3, [pc, #156] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004e0c: 681b ldr r3, [r3, #0]
|
|
8004e0e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
8004e12: 2b00 cmp r3, #0
|
|
8004e14: d1f0 bne.n 8004df8 <HAL_RCC_OscConfig+0x3c0>
|
|
}
|
|
}
|
|
|
|
/* Configure the main PLL clock source, multiplication and division factors. */
|
|
WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \
|
|
8004e16: 687b ldr r3, [r7, #4]
|
|
8004e18: 69da ldr r2, [r3, #28]
|
|
8004e1a: 687b ldr r3, [r7, #4]
|
|
8004e1c: 6a1b ldr r3, [r3, #32]
|
|
8004e1e: 431a orrs r2, r3
|
|
8004e20: 687b ldr r3, [r7, #4]
|
|
8004e22: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
8004e24: 019b lsls r3, r3, #6
|
|
8004e26: 431a orrs r2, r3
|
|
8004e28: 687b ldr r3, [r7, #4]
|
|
8004e2a: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
8004e2c: 085b lsrs r3, r3, #1
|
|
8004e2e: 3b01 subs r3, #1
|
|
8004e30: 041b lsls r3, r3, #16
|
|
8004e32: 431a orrs r2, r3
|
|
8004e34: 687b ldr r3, [r7, #4]
|
|
8004e36: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
8004e38: 061b lsls r3, r3, #24
|
|
8004e3a: 491b ldr r1, [pc, #108] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004e3c: 4313 orrs r3, r2
|
|
8004e3e: 604b str r3, [r1, #4]
|
|
RCC_OscInitStruct->PLL.PLLM | \
|
|
(RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \
|
|
(((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \
|
|
(RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)));
|
|
/* Enable the main PLL. */
|
|
__HAL_RCC_PLL_ENABLE();
|
|
8004e40: 4b1b ldr r3, [pc, #108] @ (8004eb0 <HAL_RCC_OscConfig+0x478>)
|
|
8004e42: 2201 movs r2, #1
|
|
8004e44: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004e46: f7fe ff77 bl 8003d38 <HAL_GetTick>
|
|
8004e4a: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till PLL is ready */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
|
|
8004e4c: e008 b.n 8004e60 <HAL_RCC_OscConfig+0x428>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
|
|
8004e4e: f7fe ff73 bl 8003d38 <HAL_GetTick>
|
|
8004e52: 4602 mov r2, r0
|
|
8004e54: 693b ldr r3, [r7, #16]
|
|
8004e56: 1ad3 subs r3, r2, r3
|
|
8004e58: 2b02 cmp r3, #2
|
|
8004e5a: d901 bls.n 8004e60 <HAL_RCC_OscConfig+0x428>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004e5c: 2303 movs r3, #3
|
|
8004e5e: e05c b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
|
|
8004e60: 4b11 ldr r3, [pc, #68] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004e62: 681b ldr r3, [r3, #0]
|
|
8004e64: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
8004e68: 2b00 cmp r3, #0
|
|
8004e6a: d0f0 beq.n 8004e4e <HAL_RCC_OscConfig+0x416>
|
|
8004e6c: e054 b.n 8004f18 <HAL_RCC_OscConfig+0x4e0>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Disable the main PLL. */
|
|
__HAL_RCC_PLL_DISABLE();
|
|
8004e6e: 4b10 ldr r3, [pc, #64] @ (8004eb0 <HAL_RCC_OscConfig+0x478>)
|
|
8004e70: 2200 movs r2, #0
|
|
8004e72: 601a str r2, [r3, #0]
|
|
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8004e74: f7fe ff60 bl 8003d38 <HAL_GetTick>
|
|
8004e78: 6138 str r0, [r7, #16]
|
|
|
|
/* Wait till PLL is disabled */
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
|
|
8004e7a: e008 b.n 8004e8e <HAL_RCC_OscConfig+0x456>
|
|
{
|
|
if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE)
|
|
8004e7c: f7fe ff5c bl 8003d38 <HAL_GetTick>
|
|
8004e80: 4602 mov r2, r0
|
|
8004e82: 693b ldr r3, [r7, #16]
|
|
8004e84: 1ad3 subs r3, r2, r3
|
|
8004e86: 2b02 cmp r3, #2
|
|
8004e88: d901 bls.n 8004e8e <HAL_RCC_OscConfig+0x456>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8004e8a: 2303 movs r3, #3
|
|
8004e8c: e045 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
|
|
8004e8e: 4b06 ldr r3, [pc, #24] @ (8004ea8 <HAL_RCC_OscConfig+0x470>)
|
|
8004e90: 681b ldr r3, [r3, #0]
|
|
8004e92: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
8004e96: 2b00 cmp r3, #0
|
|
8004e98: d1f0 bne.n 8004e7c <HAL_RCC_OscConfig+0x444>
|
|
8004e9a: e03d b.n 8004f18 <HAL_RCC_OscConfig+0x4e0>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Check if there is a request to disable the PLL used as System clock source */
|
|
if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
|
|
8004e9c: 687b ldr r3, [r7, #4]
|
|
8004e9e: 699b ldr r3, [r3, #24]
|
|
8004ea0: 2b01 cmp r3, #1
|
|
8004ea2: d107 bne.n 8004eb4 <HAL_RCC_OscConfig+0x47c>
|
|
{
|
|
return HAL_ERROR;
|
|
8004ea4: 2301 movs r3, #1
|
|
8004ea6: e038 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
8004ea8: 40023800 .word 0x40023800
|
|
8004eac: 40007000 .word 0x40007000
|
|
8004eb0: 42470060 .word 0x42470060
|
|
}
|
|
else
|
|
{
|
|
/* Do not return HAL_ERROR if request repeats the current configuration */
|
|
pll_config = RCC->PLLCFGR;
|
|
8004eb4: 4b1b ldr r3, [pc, #108] @ (8004f24 <HAL_RCC_OscConfig+0x4ec>)
|
|
8004eb6: 685b ldr r3, [r3, #4]
|
|
8004eb8: 60fb str r3, [r7, #12]
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) ||
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) ||
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) ||
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos)))
|
|
#else
|
|
if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
|
|
8004eba: 687b ldr r3, [r7, #4]
|
|
8004ebc: 699b ldr r3, [r3, #24]
|
|
8004ebe: 2b01 cmp r3, #1
|
|
8004ec0: d028 beq.n 8004f14 <HAL_RCC_OscConfig+0x4dc>
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
|
|
8004ec2: 68fb ldr r3, [r7, #12]
|
|
8004ec4: f403 0280 and.w r2, r3, #4194304 @ 0x400000
|
|
8004ec8: 687b ldr r3, [r7, #4]
|
|
8004eca: 69db ldr r3, [r3, #28]
|
|
if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
|
|
8004ecc: 429a cmp r2, r3
|
|
8004ece: d121 bne.n 8004f14 <HAL_RCC_OscConfig+0x4dc>
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) ||
|
|
8004ed0: 68fb ldr r3, [r7, #12]
|
|
8004ed2: f003 023f and.w r2, r3, #63 @ 0x3f
|
|
8004ed6: 687b ldr r3, [r7, #4]
|
|
8004ed8: 6a1b ldr r3, [r3, #32]
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
|
|
8004eda: 429a cmp r2, r3
|
|
8004edc: d11a bne.n 8004f14 <HAL_RCC_OscConfig+0x4dc>
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) ||
|
|
8004ede: 68fa ldr r2, [r7, #12]
|
|
8004ee0: f647 73c0 movw r3, #32704 @ 0x7fc0
|
|
8004ee4: 4013 ands r3, r2
|
|
8004ee6: 687a ldr r2, [r7, #4]
|
|
8004ee8: 6a52 ldr r2, [r2, #36] @ 0x24
|
|
8004eea: 0192 lsls r2, r2, #6
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) ||
|
|
8004eec: 4293 cmp r3, r2
|
|
8004eee: d111 bne.n 8004f14 <HAL_RCC_OscConfig+0x4dc>
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) ||
|
|
8004ef0: 68fb ldr r3, [r7, #12]
|
|
8004ef2: f403 3240 and.w r2, r3, #196608 @ 0x30000
|
|
8004ef6: 687b ldr r3, [r7, #4]
|
|
8004ef8: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
8004efa: 085b lsrs r3, r3, #1
|
|
8004efc: 3b01 subs r3, #1
|
|
8004efe: 041b lsls r3, r3, #16
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) ||
|
|
8004f00: 429a cmp r2, r3
|
|
8004f02: d107 bne.n 8004f14 <HAL_RCC_OscConfig+0x4dc>
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)))
|
|
8004f04: 68fb ldr r3, [r7, #12]
|
|
8004f06: f003 6270 and.w r2, r3, #251658240 @ 0xf000000
|
|
8004f0a: 687b ldr r3, [r7, #4]
|
|
8004f0c: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
8004f0e: 061b lsls r3, r3, #24
|
|
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) ||
|
|
8004f10: 429a cmp r2, r3
|
|
8004f12: d001 beq.n 8004f18 <HAL_RCC_OscConfig+0x4e0>
|
|
#endif
|
|
{
|
|
return HAL_ERROR;
|
|
8004f14: 2301 movs r3, #1
|
|
8004f16: e000 b.n 8004f1a <HAL_RCC_OscConfig+0x4e2>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return HAL_OK;
|
|
8004f18: 2300 movs r3, #0
|
|
}
|
|
8004f1a: 4618 mov r0, r3
|
|
8004f1c: 3718 adds r7, #24
|
|
8004f1e: 46bd mov sp, r7
|
|
8004f20: bd80 pop {r7, pc}
|
|
8004f22: bf00 nop
|
|
8004f24: 40023800 .word 0x40023800
|
|
|
|
08004f28 <HAL_RCC_ClockConfig>:
|
|
* HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency
|
|
* (for more details refer to section above "Initialization/de-initialization functions")
|
|
* @retval None
|
|
*/
|
|
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
|
|
{
|
|
8004f28: b580 push {r7, lr}
|
|
8004f2a: b084 sub sp, #16
|
|
8004f2c: af00 add r7, sp, #0
|
|
8004f2e: 6078 str r0, [r7, #4]
|
|
8004f30: 6039 str r1, [r7, #0]
|
|
uint32_t tickstart;
|
|
|
|
/* Check Null pointer */
|
|
if(RCC_ClkInitStruct == NULL)
|
|
8004f32: 687b ldr r3, [r7, #4]
|
|
8004f34: 2b00 cmp r3, #0
|
|
8004f36: d101 bne.n 8004f3c <HAL_RCC_ClockConfig+0x14>
|
|
{
|
|
return HAL_ERROR;
|
|
8004f38: 2301 movs r3, #1
|
|
8004f3a: e0cc b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
/* To correctly read data from FLASH memory, the number of wait states (LATENCY)
|
|
must be correctly programmed according to the frequency of the CPU clock
|
|
(HCLK) and the supply voltage of the device. */
|
|
|
|
/* Increasing the number of wait states because of higher CPU frequency */
|
|
if(FLatency > __HAL_FLASH_GET_LATENCY())
|
|
8004f3c: 4b68 ldr r3, [pc, #416] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
8004f3e: 681b ldr r3, [r3, #0]
|
|
8004f40: f003 0307 and.w r3, r3, #7
|
|
8004f44: 683a ldr r2, [r7, #0]
|
|
8004f46: 429a cmp r2, r3
|
|
8004f48: d90c bls.n 8004f64 <HAL_RCC_ClockConfig+0x3c>
|
|
{
|
|
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
|
|
__HAL_FLASH_SET_LATENCY(FLatency);
|
|
8004f4a: 4b65 ldr r3, [pc, #404] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
8004f4c: 683a ldr r2, [r7, #0]
|
|
8004f4e: b2d2 uxtb r2, r2
|
|
8004f50: 701a strb r2, [r3, #0]
|
|
|
|
/* Check that the new number of wait states is taken into account to access the Flash
|
|
memory by reading the FLASH_ACR register */
|
|
if(__HAL_FLASH_GET_LATENCY() != FLatency)
|
|
8004f52: 4b63 ldr r3, [pc, #396] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
8004f54: 681b ldr r3, [r3, #0]
|
|
8004f56: f003 0307 and.w r3, r3, #7
|
|
8004f5a: 683a ldr r2, [r7, #0]
|
|
8004f5c: 429a cmp r2, r3
|
|
8004f5e: d001 beq.n 8004f64 <HAL_RCC_ClockConfig+0x3c>
|
|
{
|
|
return HAL_ERROR;
|
|
8004f60: 2301 movs r3, #1
|
|
8004f62: e0b8 b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
}
|
|
}
|
|
|
|
/*-------------------------- HCLK Configuration --------------------------*/
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
|
|
8004f64: 687b ldr r3, [r7, #4]
|
|
8004f66: 681b ldr r3, [r3, #0]
|
|
8004f68: f003 0302 and.w r3, r3, #2
|
|
8004f6c: 2b00 cmp r3, #0
|
|
8004f6e: d020 beq.n 8004fb2 <HAL_RCC_ClockConfig+0x8a>
|
|
{
|
|
/* Set the highest APBx dividers in order to ensure that we do not go through
|
|
a non-spec phase whatever we decrease or increase HCLK. */
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
|
|
8004f70: 687b ldr r3, [r7, #4]
|
|
8004f72: 681b ldr r3, [r3, #0]
|
|
8004f74: f003 0304 and.w r3, r3, #4
|
|
8004f78: 2b00 cmp r3, #0
|
|
8004f7a: d005 beq.n 8004f88 <HAL_RCC_ClockConfig+0x60>
|
|
{
|
|
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
|
|
8004f7c: 4b59 ldr r3, [pc, #356] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004f7e: 689b ldr r3, [r3, #8]
|
|
8004f80: 4a58 ldr r2, [pc, #352] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004f82: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00
|
|
8004f86: 6093 str r3, [r2, #8]
|
|
}
|
|
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
|
|
8004f88: 687b ldr r3, [r7, #4]
|
|
8004f8a: 681b ldr r3, [r3, #0]
|
|
8004f8c: f003 0308 and.w r3, r3, #8
|
|
8004f90: 2b00 cmp r3, #0
|
|
8004f92: d005 beq.n 8004fa0 <HAL_RCC_ClockConfig+0x78>
|
|
{
|
|
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
|
|
8004f94: 4b53 ldr r3, [pc, #332] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004f96: 689b ldr r3, [r3, #8]
|
|
8004f98: 4a52 ldr r2, [pc, #328] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004f9a: f443 4360 orr.w r3, r3, #57344 @ 0xe000
|
|
8004f9e: 6093 str r3, [r2, #8]
|
|
}
|
|
|
|
assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
|
|
MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
|
|
8004fa0: 4b50 ldr r3, [pc, #320] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004fa2: 689b ldr r3, [r3, #8]
|
|
8004fa4: f023 02f0 bic.w r2, r3, #240 @ 0xf0
|
|
8004fa8: 687b ldr r3, [r7, #4]
|
|
8004faa: 689b ldr r3, [r3, #8]
|
|
8004fac: 494d ldr r1, [pc, #308] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004fae: 4313 orrs r3, r2
|
|
8004fb0: 608b str r3, [r1, #8]
|
|
}
|
|
|
|
/*------------------------- SYSCLK Configuration ---------------------------*/
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
|
|
8004fb2: 687b ldr r3, [r7, #4]
|
|
8004fb4: 681b ldr r3, [r3, #0]
|
|
8004fb6: f003 0301 and.w r3, r3, #1
|
|
8004fba: 2b00 cmp r3, #0
|
|
8004fbc: d044 beq.n 8005048 <HAL_RCC_ClockConfig+0x120>
|
|
{
|
|
assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
|
|
|
|
/* HSE is selected as System Clock Source */
|
|
if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
|
|
8004fbe: 687b ldr r3, [r7, #4]
|
|
8004fc0: 685b ldr r3, [r3, #4]
|
|
8004fc2: 2b01 cmp r3, #1
|
|
8004fc4: d107 bne.n 8004fd6 <HAL_RCC_ClockConfig+0xae>
|
|
{
|
|
/* Check the HSE ready flag */
|
|
if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
|
|
8004fc6: 4b47 ldr r3, [pc, #284] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004fc8: 681b ldr r3, [r3, #0]
|
|
8004fca: f403 3300 and.w r3, r3, #131072 @ 0x20000
|
|
8004fce: 2b00 cmp r3, #0
|
|
8004fd0: d119 bne.n 8005006 <HAL_RCC_ClockConfig+0xde>
|
|
{
|
|
return HAL_ERROR;
|
|
8004fd2: 2301 movs r3, #1
|
|
8004fd4: e07f b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
}
|
|
}
|
|
/* PLL is selected as System Clock Source */
|
|
else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) ||
|
|
8004fd6: 687b ldr r3, [r7, #4]
|
|
8004fd8: 685b ldr r3, [r3, #4]
|
|
8004fda: 2b02 cmp r3, #2
|
|
8004fdc: d003 beq.n 8004fe6 <HAL_RCC_ClockConfig+0xbe>
|
|
(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK))
|
|
8004fde: 687b ldr r3, [r7, #4]
|
|
8004fe0: 685b ldr r3, [r3, #4]
|
|
else if((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) ||
|
|
8004fe2: 2b03 cmp r3, #3
|
|
8004fe4: d107 bne.n 8004ff6 <HAL_RCC_ClockConfig+0xce>
|
|
{
|
|
/* Check the PLL ready flag */
|
|
if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
|
|
8004fe6: 4b3f ldr r3, [pc, #252] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004fe8: 681b ldr r3, [r3, #0]
|
|
8004fea: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
8004fee: 2b00 cmp r3, #0
|
|
8004ff0: d109 bne.n 8005006 <HAL_RCC_ClockConfig+0xde>
|
|
{
|
|
return HAL_ERROR;
|
|
8004ff2: 2301 movs r3, #1
|
|
8004ff4: e06f b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
}
|
|
/* HSI is selected as System Clock Source */
|
|
else
|
|
{
|
|
/* Check the HSI ready flag */
|
|
if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
|
|
8004ff6: 4b3b ldr r3, [pc, #236] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8004ff8: 681b ldr r3, [r3, #0]
|
|
8004ffa: f003 0302 and.w r3, r3, #2
|
|
8004ffe: 2b00 cmp r3, #0
|
|
8005000: d101 bne.n 8005006 <HAL_RCC_ClockConfig+0xde>
|
|
{
|
|
return HAL_ERROR;
|
|
8005002: 2301 movs r3, #1
|
|
8005004: e067 b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
}
|
|
}
|
|
|
|
__HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
|
|
8005006: 4b37 ldr r3, [pc, #220] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8005008: 689b ldr r3, [r3, #8]
|
|
800500a: f023 0203 bic.w r2, r3, #3
|
|
800500e: 687b ldr r3, [r7, #4]
|
|
8005010: 685b ldr r3, [r3, #4]
|
|
8005012: 4934 ldr r1, [pc, #208] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8005014: 4313 orrs r3, r2
|
|
8005016: 608b str r3, [r1, #8]
|
|
|
|
/* Get Start Tick */
|
|
tickstart = HAL_GetTick();
|
|
8005018: f7fe fe8e bl 8003d38 <HAL_GetTick>
|
|
800501c: 60f8 str r0, [r7, #12]
|
|
|
|
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
|
|
800501e: e00a b.n 8005036 <HAL_RCC_ClockConfig+0x10e>
|
|
{
|
|
if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
|
|
8005020: f7fe fe8a bl 8003d38 <HAL_GetTick>
|
|
8005024: 4602 mov r2, r0
|
|
8005026: 68fb ldr r3, [r7, #12]
|
|
8005028: 1ad3 subs r3, r2, r3
|
|
800502a: f241 3288 movw r2, #5000 @ 0x1388
|
|
800502e: 4293 cmp r3, r2
|
|
8005030: d901 bls.n 8005036 <HAL_RCC_ClockConfig+0x10e>
|
|
{
|
|
return HAL_TIMEOUT;
|
|
8005032: 2303 movs r3, #3
|
|
8005034: e04f b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
|
|
8005036: 4b2b ldr r3, [pc, #172] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
8005038: 689b ldr r3, [r3, #8]
|
|
800503a: f003 020c and.w r2, r3, #12
|
|
800503e: 687b ldr r3, [r7, #4]
|
|
8005040: 685b ldr r3, [r3, #4]
|
|
8005042: 009b lsls r3, r3, #2
|
|
8005044: 429a cmp r2, r3
|
|
8005046: d1eb bne.n 8005020 <HAL_RCC_ClockConfig+0xf8>
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Decreasing the number of wait states because of lower CPU frequency */
|
|
if(FLatency < __HAL_FLASH_GET_LATENCY())
|
|
8005048: 4b25 ldr r3, [pc, #148] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
800504a: 681b ldr r3, [r3, #0]
|
|
800504c: f003 0307 and.w r3, r3, #7
|
|
8005050: 683a ldr r2, [r7, #0]
|
|
8005052: 429a cmp r2, r3
|
|
8005054: d20c bcs.n 8005070 <HAL_RCC_ClockConfig+0x148>
|
|
{
|
|
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
|
|
__HAL_FLASH_SET_LATENCY(FLatency);
|
|
8005056: 4b22 ldr r3, [pc, #136] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
8005058: 683a ldr r2, [r7, #0]
|
|
800505a: b2d2 uxtb r2, r2
|
|
800505c: 701a strb r2, [r3, #0]
|
|
|
|
/* Check that the new number of wait states is taken into account to access the Flash
|
|
memory by reading the FLASH_ACR register */
|
|
if(__HAL_FLASH_GET_LATENCY() != FLatency)
|
|
800505e: 4b20 ldr r3, [pc, #128] @ (80050e0 <HAL_RCC_ClockConfig+0x1b8>)
|
|
8005060: 681b ldr r3, [r3, #0]
|
|
8005062: f003 0307 and.w r3, r3, #7
|
|
8005066: 683a ldr r2, [r7, #0]
|
|
8005068: 429a cmp r2, r3
|
|
800506a: d001 beq.n 8005070 <HAL_RCC_ClockConfig+0x148>
|
|
{
|
|
return HAL_ERROR;
|
|
800506c: 2301 movs r3, #1
|
|
800506e: e032 b.n 80050d6 <HAL_RCC_ClockConfig+0x1ae>
|
|
}
|
|
}
|
|
|
|
/*-------------------------- PCLK1 Configuration ---------------------------*/
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
|
|
8005070: 687b ldr r3, [r7, #4]
|
|
8005072: 681b ldr r3, [r3, #0]
|
|
8005074: f003 0304 and.w r3, r3, #4
|
|
8005078: 2b00 cmp r3, #0
|
|
800507a: d008 beq.n 800508e <HAL_RCC_ClockConfig+0x166>
|
|
{
|
|
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
|
|
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
|
|
800507c: 4b19 ldr r3, [pc, #100] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
800507e: 689b ldr r3, [r3, #8]
|
|
8005080: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00
|
|
8005084: 687b ldr r3, [r7, #4]
|
|
8005086: 68db ldr r3, [r3, #12]
|
|
8005088: 4916 ldr r1, [pc, #88] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
800508a: 4313 orrs r3, r2
|
|
800508c: 608b str r3, [r1, #8]
|
|
}
|
|
|
|
/*-------------------------- PCLK2 Configuration ---------------------------*/
|
|
if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
|
|
800508e: 687b ldr r3, [r7, #4]
|
|
8005090: 681b ldr r3, [r3, #0]
|
|
8005092: f003 0308 and.w r3, r3, #8
|
|
8005096: 2b00 cmp r3, #0
|
|
8005098: d009 beq.n 80050ae <HAL_RCC_ClockConfig+0x186>
|
|
{
|
|
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
|
|
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U));
|
|
800509a: 4b12 ldr r3, [pc, #72] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
800509c: 689b ldr r3, [r3, #8]
|
|
800509e: f423 4260 bic.w r2, r3, #57344 @ 0xe000
|
|
80050a2: 687b ldr r3, [r7, #4]
|
|
80050a4: 691b ldr r3, [r3, #16]
|
|
80050a6: 00db lsls r3, r3, #3
|
|
80050a8: 490e ldr r1, [pc, #56] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
80050aa: 4313 orrs r3, r2
|
|
80050ac: 608b str r3, [r1, #8]
|
|
}
|
|
|
|
/* Update the SystemCoreClock global variable */
|
|
SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_Pos];
|
|
80050ae: f000 f821 bl 80050f4 <HAL_RCC_GetSysClockFreq>
|
|
80050b2: 4602 mov r2, r0
|
|
80050b4: 4b0b ldr r3, [pc, #44] @ (80050e4 <HAL_RCC_ClockConfig+0x1bc>)
|
|
80050b6: 689b ldr r3, [r3, #8]
|
|
80050b8: 091b lsrs r3, r3, #4
|
|
80050ba: f003 030f and.w r3, r3, #15
|
|
80050be: 490a ldr r1, [pc, #40] @ (80050e8 <HAL_RCC_ClockConfig+0x1c0>)
|
|
80050c0: 5ccb ldrb r3, [r1, r3]
|
|
80050c2: fa22 f303 lsr.w r3, r2, r3
|
|
80050c6: 4a09 ldr r2, [pc, #36] @ (80050ec <HAL_RCC_ClockConfig+0x1c4>)
|
|
80050c8: 6013 str r3, [r2, #0]
|
|
|
|
/* Configure the source of time base considering new system clocks settings */
|
|
HAL_InitTick (uwTickPrio);
|
|
80050ca: 4b09 ldr r3, [pc, #36] @ (80050f0 <HAL_RCC_ClockConfig+0x1c8>)
|
|
80050cc: 681b ldr r3, [r3, #0]
|
|
80050ce: 4618 mov r0, r3
|
|
80050d0: f7fe fa98 bl 8003604 <HAL_InitTick>
|
|
|
|
return HAL_OK;
|
|
80050d4: 2300 movs r3, #0
|
|
}
|
|
80050d6: 4618 mov r0, r3
|
|
80050d8: 3710 adds r7, #16
|
|
80050da: 46bd mov sp, r7
|
|
80050dc: bd80 pop {r7, pc}
|
|
80050de: bf00 nop
|
|
80050e0: 40023c00 .word 0x40023c00
|
|
80050e4: 40023800 .word 0x40023800
|
|
80050e8: 080130d8 .word 0x080130d8
|
|
80050ec: 20000000 .word 0x20000000
|
|
80050f0: 20000004 .word 0x20000004
|
|
|
|
080050f4 <HAL_RCC_GetSysClockFreq>:
|
|
*
|
|
*
|
|
* @retval SYSCLK frequency
|
|
*/
|
|
__weak uint32_t HAL_RCC_GetSysClockFreq(void)
|
|
{
|
|
80050f4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
|
|
80050f8: b094 sub sp, #80 @ 0x50
|
|
80050fa: af00 add r7, sp, #0
|
|
uint32_t pllm = 0U, pllvco = 0U, pllp = 0U;
|
|
80050fc: 2300 movs r3, #0
|
|
80050fe: 647b str r3, [r7, #68] @ 0x44
|
|
8005100: 2300 movs r3, #0
|
|
8005102: 64fb str r3, [r7, #76] @ 0x4c
|
|
8005104: 2300 movs r3, #0
|
|
8005106: 643b str r3, [r7, #64] @ 0x40
|
|
uint32_t sysclockfreq = 0U;
|
|
8005108: 2300 movs r3, #0
|
|
800510a: 64bb str r3, [r7, #72] @ 0x48
|
|
|
|
/* Get SYSCLK source -------------------------------------------------------*/
|
|
switch (RCC->CFGR & RCC_CFGR_SWS)
|
|
800510c: 4b79 ldr r3, [pc, #484] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
800510e: 689b ldr r3, [r3, #8]
|
|
8005110: f003 030c and.w r3, r3, #12
|
|
8005114: 2b08 cmp r3, #8
|
|
8005116: d00d beq.n 8005134 <HAL_RCC_GetSysClockFreq+0x40>
|
|
8005118: 2b08 cmp r3, #8
|
|
800511a: f200 80e1 bhi.w 80052e0 <HAL_RCC_GetSysClockFreq+0x1ec>
|
|
800511e: 2b00 cmp r3, #0
|
|
8005120: d002 beq.n 8005128 <HAL_RCC_GetSysClockFreq+0x34>
|
|
8005122: 2b04 cmp r3, #4
|
|
8005124: d003 beq.n 800512e <HAL_RCC_GetSysClockFreq+0x3a>
|
|
8005126: e0db b.n 80052e0 <HAL_RCC_GetSysClockFreq+0x1ec>
|
|
{
|
|
case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
|
|
{
|
|
sysclockfreq = HSI_VALUE;
|
|
8005128: 4b73 ldr r3, [pc, #460] @ (80052f8 <HAL_RCC_GetSysClockFreq+0x204>)
|
|
800512a: 64bb str r3, [r7, #72] @ 0x48
|
|
break;
|
|
800512c: e0db b.n 80052e6 <HAL_RCC_GetSysClockFreq+0x1f2>
|
|
}
|
|
case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
|
|
{
|
|
sysclockfreq = HSE_VALUE;
|
|
800512e: 4b73 ldr r3, [pc, #460] @ (80052fc <HAL_RCC_GetSysClockFreq+0x208>)
|
|
8005130: 64bb str r3, [r7, #72] @ 0x48
|
|
break;
|
|
8005132: e0d8 b.n 80052e6 <HAL_RCC_GetSysClockFreq+0x1f2>
|
|
}
|
|
case RCC_CFGR_SWS_PLL: /* PLL used as system clock source */
|
|
{
|
|
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN
|
|
SYSCLK = PLL_VCO / PLLP */
|
|
pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
|
|
8005134: 4b6f ldr r3, [pc, #444] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
8005136: 685b ldr r3, [r3, #4]
|
|
8005138: f003 033f and.w r3, r3, #63 @ 0x3f
|
|
800513c: 647b str r3, [r7, #68] @ 0x44
|
|
if(__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI)
|
|
800513e: 4b6d ldr r3, [pc, #436] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
8005140: 685b ldr r3, [r3, #4]
|
|
8005142: f403 0380 and.w r3, r3, #4194304 @ 0x400000
|
|
8005146: 2b00 cmp r3, #0
|
|
8005148: d063 beq.n 8005212 <HAL_RCC_GetSysClockFreq+0x11e>
|
|
{
|
|
/* HSE used as PLL clock source */
|
|
pllvco = (uint32_t) ((((uint64_t) HSE_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm);
|
|
800514a: 4b6a ldr r3, [pc, #424] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
800514c: 685b ldr r3, [r3, #4]
|
|
800514e: 099b lsrs r3, r3, #6
|
|
8005150: 2200 movs r2, #0
|
|
8005152: 63bb str r3, [r7, #56] @ 0x38
|
|
8005154: 63fa str r2, [r7, #60] @ 0x3c
|
|
8005156: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
8005158: f3c3 0308 ubfx r3, r3, #0, #9
|
|
800515c: 633b str r3, [r7, #48] @ 0x30
|
|
800515e: 2300 movs r3, #0
|
|
8005160: 637b str r3, [r7, #52] @ 0x34
|
|
8005162: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30
|
|
8005166: 4622 mov r2, r4
|
|
8005168: 462b mov r3, r5
|
|
800516a: f04f 0000 mov.w r0, #0
|
|
800516e: f04f 0100 mov.w r1, #0
|
|
8005172: 0159 lsls r1, r3, #5
|
|
8005174: ea41 61d2 orr.w r1, r1, r2, lsr #27
|
|
8005178: 0150 lsls r0, r2, #5
|
|
800517a: 4602 mov r2, r0
|
|
800517c: 460b mov r3, r1
|
|
800517e: 4621 mov r1, r4
|
|
8005180: 1a51 subs r1, r2, r1
|
|
8005182: 6139 str r1, [r7, #16]
|
|
8005184: 4629 mov r1, r5
|
|
8005186: eb63 0301 sbc.w r3, r3, r1
|
|
800518a: 617b str r3, [r7, #20]
|
|
800518c: f04f 0200 mov.w r2, #0
|
|
8005190: f04f 0300 mov.w r3, #0
|
|
8005194: e9d7 ab04 ldrd sl, fp, [r7, #16]
|
|
8005198: 4659 mov r1, fp
|
|
800519a: 018b lsls r3, r1, #6
|
|
800519c: 4651 mov r1, sl
|
|
800519e: ea43 6391 orr.w r3, r3, r1, lsr #26
|
|
80051a2: 4651 mov r1, sl
|
|
80051a4: 018a lsls r2, r1, #6
|
|
80051a6: 4651 mov r1, sl
|
|
80051a8: ebb2 0801 subs.w r8, r2, r1
|
|
80051ac: 4659 mov r1, fp
|
|
80051ae: eb63 0901 sbc.w r9, r3, r1
|
|
80051b2: f04f 0200 mov.w r2, #0
|
|
80051b6: f04f 0300 mov.w r3, #0
|
|
80051ba: ea4f 03c9 mov.w r3, r9, lsl #3
|
|
80051be: ea43 7358 orr.w r3, r3, r8, lsr #29
|
|
80051c2: ea4f 02c8 mov.w r2, r8, lsl #3
|
|
80051c6: 4690 mov r8, r2
|
|
80051c8: 4699 mov r9, r3
|
|
80051ca: 4623 mov r3, r4
|
|
80051cc: eb18 0303 adds.w r3, r8, r3
|
|
80051d0: 60bb str r3, [r7, #8]
|
|
80051d2: 462b mov r3, r5
|
|
80051d4: eb49 0303 adc.w r3, r9, r3
|
|
80051d8: 60fb str r3, [r7, #12]
|
|
80051da: f04f 0200 mov.w r2, #0
|
|
80051de: f04f 0300 mov.w r3, #0
|
|
80051e2: e9d7 4502 ldrd r4, r5, [r7, #8]
|
|
80051e6: 4629 mov r1, r5
|
|
80051e8: 024b lsls r3, r1, #9
|
|
80051ea: 4621 mov r1, r4
|
|
80051ec: ea43 53d1 orr.w r3, r3, r1, lsr #23
|
|
80051f0: 4621 mov r1, r4
|
|
80051f2: 024a lsls r2, r1, #9
|
|
80051f4: 4610 mov r0, r2
|
|
80051f6: 4619 mov r1, r3
|
|
80051f8: 6c7b ldr r3, [r7, #68] @ 0x44
|
|
80051fa: 2200 movs r2, #0
|
|
80051fc: 62bb str r3, [r7, #40] @ 0x28
|
|
80051fe: 62fa str r2, [r7, #44] @ 0x2c
|
|
8005200: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28
|
|
8005204: f7fb fce0 bl 8000bc8 <__aeabi_uldivmod>
|
|
8005208: 4602 mov r2, r0
|
|
800520a: 460b mov r3, r1
|
|
800520c: 4613 mov r3, r2
|
|
800520e: 64fb str r3, [r7, #76] @ 0x4c
|
|
8005210: e058 b.n 80052c4 <HAL_RCC_GetSysClockFreq+0x1d0>
|
|
}
|
|
else
|
|
{
|
|
/* HSI used as PLL clock source */
|
|
pllvco = (uint32_t) ((((uint64_t) HSI_VALUE * ((uint64_t) ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm);
|
|
8005212: 4b38 ldr r3, [pc, #224] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
8005214: 685b ldr r3, [r3, #4]
|
|
8005216: 099b lsrs r3, r3, #6
|
|
8005218: 2200 movs r2, #0
|
|
800521a: 4618 mov r0, r3
|
|
800521c: 4611 mov r1, r2
|
|
800521e: f3c0 0308 ubfx r3, r0, #0, #9
|
|
8005222: 623b str r3, [r7, #32]
|
|
8005224: 2300 movs r3, #0
|
|
8005226: 627b str r3, [r7, #36] @ 0x24
|
|
8005228: e9d7 8908 ldrd r8, r9, [r7, #32]
|
|
800522c: 4642 mov r2, r8
|
|
800522e: 464b mov r3, r9
|
|
8005230: f04f 0000 mov.w r0, #0
|
|
8005234: f04f 0100 mov.w r1, #0
|
|
8005238: 0159 lsls r1, r3, #5
|
|
800523a: ea41 61d2 orr.w r1, r1, r2, lsr #27
|
|
800523e: 0150 lsls r0, r2, #5
|
|
8005240: 4602 mov r2, r0
|
|
8005242: 460b mov r3, r1
|
|
8005244: 4641 mov r1, r8
|
|
8005246: ebb2 0a01 subs.w sl, r2, r1
|
|
800524a: 4649 mov r1, r9
|
|
800524c: eb63 0b01 sbc.w fp, r3, r1
|
|
8005250: f04f 0200 mov.w r2, #0
|
|
8005254: f04f 0300 mov.w r3, #0
|
|
8005258: ea4f 138b mov.w r3, fp, lsl #6
|
|
800525c: ea43 639a orr.w r3, r3, sl, lsr #26
|
|
8005260: ea4f 128a mov.w r2, sl, lsl #6
|
|
8005264: ebb2 040a subs.w r4, r2, sl
|
|
8005268: eb63 050b sbc.w r5, r3, fp
|
|
800526c: f04f 0200 mov.w r2, #0
|
|
8005270: f04f 0300 mov.w r3, #0
|
|
8005274: 00eb lsls r3, r5, #3
|
|
8005276: ea43 7354 orr.w r3, r3, r4, lsr #29
|
|
800527a: 00e2 lsls r2, r4, #3
|
|
800527c: 4614 mov r4, r2
|
|
800527e: 461d mov r5, r3
|
|
8005280: 4643 mov r3, r8
|
|
8005282: 18e3 adds r3, r4, r3
|
|
8005284: 603b str r3, [r7, #0]
|
|
8005286: 464b mov r3, r9
|
|
8005288: eb45 0303 adc.w r3, r5, r3
|
|
800528c: 607b str r3, [r7, #4]
|
|
800528e: f04f 0200 mov.w r2, #0
|
|
8005292: f04f 0300 mov.w r3, #0
|
|
8005296: e9d7 4500 ldrd r4, r5, [r7]
|
|
800529a: 4629 mov r1, r5
|
|
800529c: 028b lsls r3, r1, #10
|
|
800529e: 4621 mov r1, r4
|
|
80052a0: ea43 5391 orr.w r3, r3, r1, lsr #22
|
|
80052a4: 4621 mov r1, r4
|
|
80052a6: 028a lsls r2, r1, #10
|
|
80052a8: 4610 mov r0, r2
|
|
80052aa: 4619 mov r1, r3
|
|
80052ac: 6c7b ldr r3, [r7, #68] @ 0x44
|
|
80052ae: 2200 movs r2, #0
|
|
80052b0: 61bb str r3, [r7, #24]
|
|
80052b2: 61fa str r2, [r7, #28]
|
|
80052b4: e9d7 2306 ldrd r2, r3, [r7, #24]
|
|
80052b8: f7fb fc86 bl 8000bc8 <__aeabi_uldivmod>
|
|
80052bc: 4602 mov r2, r0
|
|
80052be: 460b mov r3, r1
|
|
80052c0: 4613 mov r3, r2
|
|
80052c2: 64fb str r3, [r7, #76] @ 0x4c
|
|
}
|
|
pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) *2U);
|
|
80052c4: 4b0b ldr r3, [pc, #44] @ (80052f4 <HAL_RCC_GetSysClockFreq+0x200>)
|
|
80052c6: 685b ldr r3, [r3, #4]
|
|
80052c8: 0c1b lsrs r3, r3, #16
|
|
80052ca: f003 0303 and.w r3, r3, #3
|
|
80052ce: 3301 adds r3, #1
|
|
80052d0: 005b lsls r3, r3, #1
|
|
80052d2: 643b str r3, [r7, #64] @ 0x40
|
|
|
|
sysclockfreq = pllvco/pllp;
|
|
80052d4: 6cfa ldr r2, [r7, #76] @ 0x4c
|
|
80052d6: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
80052d8: fbb2 f3f3 udiv r3, r2, r3
|
|
80052dc: 64bb str r3, [r7, #72] @ 0x48
|
|
break;
|
|
80052de: e002 b.n 80052e6 <HAL_RCC_GetSysClockFreq+0x1f2>
|
|
}
|
|
default:
|
|
{
|
|
sysclockfreq = HSI_VALUE;
|
|
80052e0: 4b05 ldr r3, [pc, #20] @ (80052f8 <HAL_RCC_GetSysClockFreq+0x204>)
|
|
80052e2: 64bb str r3, [r7, #72] @ 0x48
|
|
break;
|
|
80052e4: bf00 nop
|
|
}
|
|
}
|
|
return sysclockfreq;
|
|
80052e6: 6cbb ldr r3, [r7, #72] @ 0x48
|
|
}
|
|
80052e8: 4618 mov r0, r3
|
|
80052ea: 3750 adds r7, #80 @ 0x50
|
|
80052ec: 46bd mov sp, r7
|
|
80052ee: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
|
|
80052f2: bf00 nop
|
|
80052f4: 40023800 .word 0x40023800
|
|
80052f8: 00f42400 .word 0x00f42400
|
|
80052fc: 007a1200 .word 0x007a1200
|
|
|
|
08005300 <HAL_RCC_GetHCLKFreq>:
|
|
* @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency
|
|
* and updated within this function
|
|
* @retval HCLK frequency
|
|
*/
|
|
uint32_t HAL_RCC_GetHCLKFreq(void)
|
|
{
|
|
8005300: b480 push {r7}
|
|
8005302: af00 add r7, sp, #0
|
|
return SystemCoreClock;
|
|
8005304: 4b03 ldr r3, [pc, #12] @ (8005314 <HAL_RCC_GetHCLKFreq+0x14>)
|
|
8005306: 681b ldr r3, [r3, #0]
|
|
}
|
|
8005308: 4618 mov r0, r3
|
|
800530a: 46bd mov sp, r7
|
|
800530c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8005310: 4770 bx lr
|
|
8005312: bf00 nop
|
|
8005314: 20000000 .word 0x20000000
|
|
|
|
08005318 <HAL_RCC_GetPCLK1Freq>:
|
|
* @note Each time PCLK1 changes, this function must be called to update the
|
|
* right PCLK1 value. Otherwise, any configuration based on this function will be incorrect.
|
|
* @retval PCLK1 frequency
|
|
*/
|
|
uint32_t HAL_RCC_GetPCLK1Freq(void)
|
|
{
|
|
8005318: b580 push {r7, lr}
|
|
800531a: af00 add r7, sp, #0
|
|
/* Get HCLK source and Compute PCLK1 frequency ---------------------------*/
|
|
return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1)>> RCC_CFGR_PPRE1_Pos]);
|
|
800531c: f7ff fff0 bl 8005300 <HAL_RCC_GetHCLKFreq>
|
|
8005320: 4602 mov r2, r0
|
|
8005322: 4b05 ldr r3, [pc, #20] @ (8005338 <HAL_RCC_GetPCLK1Freq+0x20>)
|
|
8005324: 689b ldr r3, [r3, #8]
|
|
8005326: 0a9b lsrs r3, r3, #10
|
|
8005328: f003 0307 and.w r3, r3, #7
|
|
800532c: 4903 ldr r1, [pc, #12] @ (800533c <HAL_RCC_GetPCLK1Freq+0x24>)
|
|
800532e: 5ccb ldrb r3, [r1, r3]
|
|
8005330: fa22 f303 lsr.w r3, r2, r3
|
|
}
|
|
8005334: 4618 mov r0, r3
|
|
8005336: bd80 pop {r7, pc}
|
|
8005338: 40023800 .word 0x40023800
|
|
800533c: 080130e8 .word 0x080130e8
|
|
|
|
08005340 <HAL_RCC_GetPCLK2Freq>:
|
|
* @note Each time PCLK2 changes, this function must be called to update the
|
|
* right PCLK2 value. Otherwise, any configuration based on this function will be incorrect.
|
|
* @retval PCLK2 frequency
|
|
*/
|
|
uint32_t HAL_RCC_GetPCLK2Freq(void)
|
|
{
|
|
8005340: b580 push {r7, lr}
|
|
8005342: af00 add r7, sp, #0
|
|
/* Get HCLK source and Compute PCLK2 frequency ---------------------------*/
|
|
return (HAL_RCC_GetHCLKFreq()>> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2)>> RCC_CFGR_PPRE2_Pos]);
|
|
8005344: f7ff ffdc bl 8005300 <HAL_RCC_GetHCLKFreq>
|
|
8005348: 4602 mov r2, r0
|
|
800534a: 4b05 ldr r3, [pc, #20] @ (8005360 <HAL_RCC_GetPCLK2Freq+0x20>)
|
|
800534c: 689b ldr r3, [r3, #8]
|
|
800534e: 0b5b lsrs r3, r3, #13
|
|
8005350: f003 0307 and.w r3, r3, #7
|
|
8005354: 4903 ldr r1, [pc, #12] @ (8005364 <HAL_RCC_GetPCLK2Freq+0x24>)
|
|
8005356: 5ccb ldrb r3, [r1, r3]
|
|
8005358: fa22 f303 lsr.w r3, r2, r3
|
|
}
|
|
800535c: 4618 mov r0, r3
|
|
800535e: bd80 pop {r7, pc}
|
|
8005360: 40023800 .word 0x40023800
|
|
8005364: 080130e8 .word 0x080130e8
|
|
|
|
08005368 <HAL_RCC_GetClockConfig>:
|
|
* will be configured.
|
|
* @param pFLatency Pointer on the Flash Latency.
|
|
* @retval None
|
|
*/
|
|
void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
|
|
{
|
|
8005368: b480 push {r7}
|
|
800536a: b083 sub sp, #12
|
|
800536c: af00 add r7, sp, #0
|
|
800536e: 6078 str r0, [r7, #4]
|
|
8005370: 6039 str r1, [r7, #0]
|
|
/* Set all possible values for the Clock type parameter --------------------*/
|
|
RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
|
|
8005372: 687b ldr r3, [r7, #4]
|
|
8005374: 220f movs r2, #15
|
|
8005376: 601a str r2, [r3, #0]
|
|
|
|
/* Get the SYSCLK configuration --------------------------------------------*/
|
|
RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
|
|
8005378: 4b12 ldr r3, [pc, #72] @ (80053c4 <HAL_RCC_GetClockConfig+0x5c>)
|
|
800537a: 689b ldr r3, [r3, #8]
|
|
800537c: f003 0203 and.w r2, r3, #3
|
|
8005380: 687b ldr r3, [r7, #4]
|
|
8005382: 605a str r2, [r3, #4]
|
|
|
|
/* Get the HCLK configuration ----------------------------------------------*/
|
|
RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
|
|
8005384: 4b0f ldr r3, [pc, #60] @ (80053c4 <HAL_RCC_GetClockConfig+0x5c>)
|
|
8005386: 689b ldr r3, [r3, #8]
|
|
8005388: f003 02f0 and.w r2, r3, #240 @ 0xf0
|
|
800538c: 687b ldr r3, [r7, #4]
|
|
800538e: 609a str r2, [r3, #8]
|
|
|
|
/* Get the APB1 configuration ----------------------------------------------*/
|
|
RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
|
|
8005390: 4b0c ldr r3, [pc, #48] @ (80053c4 <HAL_RCC_GetClockConfig+0x5c>)
|
|
8005392: 689b ldr r3, [r3, #8]
|
|
8005394: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
|
|
8005398: 687b ldr r3, [r7, #4]
|
|
800539a: 60da str r2, [r3, #12]
|
|
|
|
/* Get the APB2 configuration ----------------------------------------------*/
|
|
RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3U);
|
|
800539c: 4b09 ldr r3, [pc, #36] @ (80053c4 <HAL_RCC_GetClockConfig+0x5c>)
|
|
800539e: 689b ldr r3, [r3, #8]
|
|
80053a0: 08db lsrs r3, r3, #3
|
|
80053a2: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
|
|
80053a6: 687b ldr r3, [r7, #4]
|
|
80053a8: 611a str r2, [r3, #16]
|
|
|
|
/* Get the Flash Wait State (Latency) configuration ------------------------*/
|
|
*pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
|
|
80053aa: 4b07 ldr r3, [pc, #28] @ (80053c8 <HAL_RCC_GetClockConfig+0x60>)
|
|
80053ac: 681b ldr r3, [r3, #0]
|
|
80053ae: f003 0207 and.w r2, r3, #7
|
|
80053b2: 683b ldr r3, [r7, #0]
|
|
80053b4: 601a str r2, [r3, #0]
|
|
}
|
|
80053b6: bf00 nop
|
|
80053b8: 370c adds r7, #12
|
|
80053ba: 46bd mov sp, r7
|
|
80053bc: f85d 7b04 ldr.w r7, [sp], #4
|
|
80053c0: 4770 bx lr
|
|
80053c2: bf00 nop
|
|
80053c4: 40023800 .word 0x40023800
|
|
80053c8: 40023c00 .word 0x40023c00
|
|
|
|
080053cc <HAL_TIM_Base_Init>:
|
|
* Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
|
|
* @param htim TIM Base handle
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
|
|
{
|
|
80053cc: b580 push {r7, lr}
|
|
80053ce: b082 sub sp, #8
|
|
80053d0: af00 add r7, sp, #0
|
|
80053d2: 6078 str r0, [r7, #4]
|
|
/* Check the TIM handle allocation */
|
|
if (htim == NULL)
|
|
80053d4: 687b ldr r3, [r7, #4]
|
|
80053d6: 2b00 cmp r3, #0
|
|
80053d8: d101 bne.n 80053de <HAL_TIM_Base_Init+0x12>
|
|
{
|
|
return HAL_ERROR;
|
|
80053da: 2301 movs r3, #1
|
|
80053dc: e041 b.n 8005462 <HAL_TIM_Base_Init+0x96>
|
|
assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode));
|
|
assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));
|
|
assert_param(IS_TIM_PERIOD(htim, htim->Init.Period));
|
|
assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload));
|
|
|
|
if (htim->State == HAL_TIM_STATE_RESET)
|
|
80053de: 687b ldr r3, [r7, #4]
|
|
80053e0: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
|
|
80053e4: b2db uxtb r3, r3
|
|
80053e6: 2b00 cmp r3, #0
|
|
80053e8: d106 bne.n 80053f8 <HAL_TIM_Base_Init+0x2c>
|
|
{
|
|
/* Allocate lock resource and initialize it */
|
|
htim->Lock = HAL_UNLOCKED;
|
|
80053ea: 687b ldr r3, [r7, #4]
|
|
80053ec: 2200 movs r2, #0
|
|
80053ee: f883 203c strb.w r2, [r3, #60] @ 0x3c
|
|
}
|
|
/* Init the low level hardware : GPIO, CLOCK, NVIC */
|
|
htim->Base_MspInitCallback(htim);
|
|
#else
|
|
/* Init the low level hardware : GPIO, CLOCK, NVIC */
|
|
HAL_TIM_Base_MspInit(htim);
|
|
80053f2: 6878 ldr r0, [r7, #4]
|
|
80053f4: f000 f839 bl 800546a <HAL_TIM_Base_MspInit>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
|
|
/* Set the TIM state */
|
|
htim->State = HAL_TIM_STATE_BUSY;
|
|
80053f8: 687b ldr r3, [r7, #4]
|
|
80053fa: 2202 movs r2, #2
|
|
80053fc: f883 203d strb.w r2, [r3, #61] @ 0x3d
|
|
|
|
/* Set the Time Base configuration */
|
|
TIM_Base_SetConfig(htim->Instance, &htim->Init);
|
|
8005400: 687b ldr r3, [r7, #4]
|
|
8005402: 681a ldr r2, [r3, #0]
|
|
8005404: 687b ldr r3, [r7, #4]
|
|
8005406: 3304 adds r3, #4
|
|
8005408: 4619 mov r1, r3
|
|
800540a: 4610 mov r0, r2
|
|
800540c: f000 f9c0 bl 8005790 <TIM_Base_SetConfig>
|
|
|
|
/* Initialize the DMA burst operation state */
|
|
htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
|
|
8005410: 687b ldr r3, [r7, #4]
|
|
8005412: 2201 movs r2, #1
|
|
8005414: f883 2046 strb.w r2, [r3, #70] @ 0x46
|
|
|
|
/* Initialize the TIM channels state */
|
|
TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
|
|
8005418: 687b ldr r3, [r7, #4]
|
|
800541a: 2201 movs r2, #1
|
|
800541c: f883 203e strb.w r2, [r3, #62] @ 0x3e
|
|
8005420: 687b ldr r3, [r7, #4]
|
|
8005422: 2201 movs r2, #1
|
|
8005424: f883 203f strb.w r2, [r3, #63] @ 0x3f
|
|
8005428: 687b ldr r3, [r7, #4]
|
|
800542a: 2201 movs r2, #1
|
|
800542c: f883 2040 strb.w r2, [r3, #64] @ 0x40
|
|
8005430: 687b ldr r3, [r7, #4]
|
|
8005432: 2201 movs r2, #1
|
|
8005434: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
|
|
8005438: 687b ldr r3, [r7, #4]
|
|
800543a: 2201 movs r2, #1
|
|
800543c: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
8005440: 687b ldr r3, [r7, #4]
|
|
8005442: 2201 movs r2, #1
|
|
8005444: f883 2043 strb.w r2, [r3, #67] @ 0x43
|
|
8005448: 687b ldr r3, [r7, #4]
|
|
800544a: 2201 movs r2, #1
|
|
800544c: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
8005450: 687b ldr r3, [r7, #4]
|
|
8005452: 2201 movs r2, #1
|
|
8005454: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
|
|
/* Initialize the TIM state*/
|
|
htim->State = HAL_TIM_STATE_READY;
|
|
8005458: 687b ldr r3, [r7, #4]
|
|
800545a: 2201 movs r2, #1
|
|
800545c: f883 203d strb.w r2, [r3, #61] @ 0x3d
|
|
|
|
return HAL_OK;
|
|
8005460: 2300 movs r3, #0
|
|
}
|
|
8005462: 4618 mov r0, r3
|
|
8005464: 3708 adds r7, #8
|
|
8005466: 46bd mov sp, r7
|
|
8005468: bd80 pop {r7, pc}
|
|
|
|
0800546a <HAL_TIM_Base_MspInit>:
|
|
* @brief Initializes the TIM Base MSP.
|
|
* @param htim TIM Base handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
|
|
{
|
|
800546a: b480 push {r7}
|
|
800546c: b083 sub sp, #12
|
|
800546e: af00 add r7, sp, #0
|
|
8005470: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIM_Base_MspInit could be implemented in the user file
|
|
*/
|
|
}
|
|
8005472: bf00 nop
|
|
8005474: 370c adds r7, #12
|
|
8005476: 46bd mov sp, r7
|
|
8005478: f85d 7b04 ldr.w r7, [sp], #4
|
|
800547c: 4770 bx lr
|
|
...
|
|
|
|
08005480 <HAL_TIM_Base_Start_IT>:
|
|
* @brief Starts the TIM Base generation in interrupt mode.
|
|
* @param htim TIM Base handle
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
|
|
{
|
|
8005480: b480 push {r7}
|
|
8005482: b085 sub sp, #20
|
|
8005484: af00 add r7, sp, #0
|
|
8005486: 6078 str r0, [r7, #4]
|
|
|
|
/* Check the parameters */
|
|
assert_param(IS_TIM_INSTANCE(htim->Instance));
|
|
|
|
/* Check the TIM state */
|
|
if (htim->State != HAL_TIM_STATE_READY)
|
|
8005488: 687b ldr r3, [r7, #4]
|
|
800548a: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
|
|
800548e: b2db uxtb r3, r3
|
|
8005490: 2b01 cmp r3, #1
|
|
8005492: d001 beq.n 8005498 <HAL_TIM_Base_Start_IT+0x18>
|
|
{
|
|
return HAL_ERROR;
|
|
8005494: 2301 movs r3, #1
|
|
8005496: e04e b.n 8005536 <HAL_TIM_Base_Start_IT+0xb6>
|
|
}
|
|
|
|
/* Set the TIM state */
|
|
htim->State = HAL_TIM_STATE_BUSY;
|
|
8005498: 687b ldr r3, [r7, #4]
|
|
800549a: 2202 movs r2, #2
|
|
800549c: f883 203d strb.w r2, [r3, #61] @ 0x3d
|
|
|
|
/* Enable the TIM Update interrupt */
|
|
__HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
|
|
80054a0: 687b ldr r3, [r7, #4]
|
|
80054a2: 681b ldr r3, [r3, #0]
|
|
80054a4: 68da ldr r2, [r3, #12]
|
|
80054a6: 687b ldr r3, [r7, #4]
|
|
80054a8: 681b ldr r3, [r3, #0]
|
|
80054aa: f042 0201 orr.w r2, r2, #1
|
|
80054ae: 60da str r2, [r3, #12]
|
|
|
|
/* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
|
|
if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
|
|
80054b0: 687b ldr r3, [r7, #4]
|
|
80054b2: 681b ldr r3, [r3, #0]
|
|
80054b4: 4a23 ldr r2, [pc, #140] @ (8005544 <HAL_TIM_Base_Start_IT+0xc4>)
|
|
80054b6: 4293 cmp r3, r2
|
|
80054b8: d022 beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054ba: 687b ldr r3, [r7, #4]
|
|
80054bc: 681b ldr r3, [r3, #0]
|
|
80054be: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
|
|
80054c2: d01d beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054c4: 687b ldr r3, [r7, #4]
|
|
80054c6: 681b ldr r3, [r3, #0]
|
|
80054c8: 4a1f ldr r2, [pc, #124] @ (8005548 <HAL_TIM_Base_Start_IT+0xc8>)
|
|
80054ca: 4293 cmp r3, r2
|
|
80054cc: d018 beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054ce: 687b ldr r3, [r7, #4]
|
|
80054d0: 681b ldr r3, [r3, #0]
|
|
80054d2: 4a1e ldr r2, [pc, #120] @ (800554c <HAL_TIM_Base_Start_IT+0xcc>)
|
|
80054d4: 4293 cmp r3, r2
|
|
80054d6: d013 beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054d8: 687b ldr r3, [r7, #4]
|
|
80054da: 681b ldr r3, [r3, #0]
|
|
80054dc: 4a1c ldr r2, [pc, #112] @ (8005550 <HAL_TIM_Base_Start_IT+0xd0>)
|
|
80054de: 4293 cmp r3, r2
|
|
80054e0: d00e beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054e2: 687b ldr r3, [r7, #4]
|
|
80054e4: 681b ldr r3, [r3, #0]
|
|
80054e6: 4a1b ldr r2, [pc, #108] @ (8005554 <HAL_TIM_Base_Start_IT+0xd4>)
|
|
80054e8: 4293 cmp r3, r2
|
|
80054ea: d009 beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054ec: 687b ldr r3, [r7, #4]
|
|
80054ee: 681b ldr r3, [r3, #0]
|
|
80054f0: 4a19 ldr r2, [pc, #100] @ (8005558 <HAL_TIM_Base_Start_IT+0xd8>)
|
|
80054f2: 4293 cmp r3, r2
|
|
80054f4: d004 beq.n 8005500 <HAL_TIM_Base_Start_IT+0x80>
|
|
80054f6: 687b ldr r3, [r7, #4]
|
|
80054f8: 681b ldr r3, [r3, #0]
|
|
80054fa: 4a18 ldr r2, [pc, #96] @ (800555c <HAL_TIM_Base_Start_IT+0xdc>)
|
|
80054fc: 4293 cmp r3, r2
|
|
80054fe: d111 bne.n 8005524 <HAL_TIM_Base_Start_IT+0xa4>
|
|
{
|
|
tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
|
|
8005500: 687b ldr r3, [r7, #4]
|
|
8005502: 681b ldr r3, [r3, #0]
|
|
8005504: 689b ldr r3, [r3, #8]
|
|
8005506: f003 0307 and.w r3, r3, #7
|
|
800550a: 60fb str r3, [r7, #12]
|
|
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
|
|
800550c: 68fb ldr r3, [r7, #12]
|
|
800550e: 2b06 cmp r3, #6
|
|
8005510: d010 beq.n 8005534 <HAL_TIM_Base_Start_IT+0xb4>
|
|
{
|
|
__HAL_TIM_ENABLE(htim);
|
|
8005512: 687b ldr r3, [r7, #4]
|
|
8005514: 681b ldr r3, [r3, #0]
|
|
8005516: 681a ldr r2, [r3, #0]
|
|
8005518: 687b ldr r3, [r7, #4]
|
|
800551a: 681b ldr r3, [r3, #0]
|
|
800551c: f042 0201 orr.w r2, r2, #1
|
|
8005520: 601a str r2, [r3, #0]
|
|
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
|
|
8005522: e007 b.n 8005534 <HAL_TIM_Base_Start_IT+0xb4>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
__HAL_TIM_ENABLE(htim);
|
|
8005524: 687b ldr r3, [r7, #4]
|
|
8005526: 681b ldr r3, [r3, #0]
|
|
8005528: 681a ldr r2, [r3, #0]
|
|
800552a: 687b ldr r3, [r7, #4]
|
|
800552c: 681b ldr r3, [r3, #0]
|
|
800552e: f042 0201 orr.w r2, r2, #1
|
|
8005532: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Return function status */
|
|
return HAL_OK;
|
|
8005534: 2300 movs r3, #0
|
|
}
|
|
8005536: 4618 mov r0, r3
|
|
8005538: 3714 adds r7, #20
|
|
800553a: 46bd mov sp, r7
|
|
800553c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8005540: 4770 bx lr
|
|
8005542: bf00 nop
|
|
8005544: 40010000 .word 0x40010000
|
|
8005548: 40000400 .word 0x40000400
|
|
800554c: 40000800 .word 0x40000800
|
|
8005550: 40000c00 .word 0x40000c00
|
|
8005554: 40010400 .word 0x40010400
|
|
8005558: 40014000 .word 0x40014000
|
|
800555c: 40001800 .word 0x40001800
|
|
|
|
08005560 <HAL_TIM_IRQHandler>:
|
|
* @brief This function handles TIM interrupts requests.
|
|
* @param htim TIM handle
|
|
* @retval None
|
|
*/
|
|
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
|
|
{
|
|
8005560: b580 push {r7, lr}
|
|
8005562: b084 sub sp, #16
|
|
8005564: af00 add r7, sp, #0
|
|
8005566: 6078 str r0, [r7, #4]
|
|
uint32_t itsource = htim->Instance->DIER;
|
|
8005568: 687b ldr r3, [r7, #4]
|
|
800556a: 681b ldr r3, [r3, #0]
|
|
800556c: 68db ldr r3, [r3, #12]
|
|
800556e: 60fb str r3, [r7, #12]
|
|
uint32_t itflag = htim->Instance->SR;
|
|
8005570: 687b ldr r3, [r7, #4]
|
|
8005572: 681b ldr r3, [r3, #0]
|
|
8005574: 691b ldr r3, [r3, #16]
|
|
8005576: 60bb str r3, [r7, #8]
|
|
|
|
/* Capture compare 1 event */
|
|
if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
|
|
8005578: 68bb ldr r3, [r7, #8]
|
|
800557a: f003 0302 and.w r3, r3, #2
|
|
800557e: 2b00 cmp r3, #0
|
|
8005580: d020 beq.n 80055c4 <HAL_TIM_IRQHandler+0x64>
|
|
{
|
|
if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
|
|
8005582: 68fb ldr r3, [r7, #12]
|
|
8005584: f003 0302 and.w r3, r3, #2
|
|
8005588: 2b00 cmp r3, #0
|
|
800558a: d01b beq.n 80055c4 <HAL_TIM_IRQHandler+0x64>
|
|
{
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
|
|
800558c: 687b ldr r3, [r7, #4]
|
|
800558e: 681b ldr r3, [r3, #0]
|
|
8005590: f06f 0202 mvn.w r2, #2
|
|
8005594: 611a str r2, [r3, #16]
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
|
|
8005596: 687b ldr r3, [r7, #4]
|
|
8005598: 2201 movs r2, #1
|
|
800559a: 771a strb r2, [r3, #28]
|
|
|
|
/* Input capture event */
|
|
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
|
|
800559c: 687b ldr r3, [r7, #4]
|
|
800559e: 681b ldr r3, [r3, #0]
|
|
80055a0: 699b ldr r3, [r3, #24]
|
|
80055a2: f003 0303 and.w r3, r3, #3
|
|
80055a6: 2b00 cmp r3, #0
|
|
80055a8: d003 beq.n 80055b2 <HAL_TIM_IRQHandler+0x52>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->IC_CaptureCallback(htim);
|
|
#else
|
|
HAL_TIM_IC_CaptureCallback(htim);
|
|
80055aa: 6878 ldr r0, [r7, #4]
|
|
80055ac: f000 f8d2 bl 8005754 <HAL_TIM_IC_CaptureCallback>
|
|
80055b0: e005 b.n 80055be <HAL_TIM_IRQHandler+0x5e>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->OC_DelayElapsedCallback(htim);
|
|
htim->PWM_PulseFinishedCallback(htim);
|
|
#else
|
|
HAL_TIM_OC_DelayElapsedCallback(htim);
|
|
80055b2: 6878 ldr r0, [r7, #4]
|
|
80055b4: f000 f8c4 bl 8005740 <HAL_TIM_OC_DelayElapsedCallback>
|
|
HAL_TIM_PWM_PulseFinishedCallback(htim);
|
|
80055b8: 6878 ldr r0, [r7, #4]
|
|
80055ba: f000 f8d5 bl 8005768 <HAL_TIM_PWM_PulseFinishedCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
|
|
80055be: 687b ldr r3, [r7, #4]
|
|
80055c0: 2200 movs r2, #0
|
|
80055c2: 771a strb r2, [r3, #28]
|
|
}
|
|
}
|
|
}
|
|
/* Capture compare 2 event */
|
|
if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
|
|
80055c4: 68bb ldr r3, [r7, #8]
|
|
80055c6: f003 0304 and.w r3, r3, #4
|
|
80055ca: 2b00 cmp r3, #0
|
|
80055cc: d020 beq.n 8005610 <HAL_TIM_IRQHandler+0xb0>
|
|
{
|
|
if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
|
|
80055ce: 68fb ldr r3, [r7, #12]
|
|
80055d0: f003 0304 and.w r3, r3, #4
|
|
80055d4: 2b00 cmp r3, #0
|
|
80055d6: d01b beq.n 8005610 <HAL_TIM_IRQHandler+0xb0>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
|
|
80055d8: 687b ldr r3, [r7, #4]
|
|
80055da: 681b ldr r3, [r3, #0]
|
|
80055dc: f06f 0204 mvn.w r2, #4
|
|
80055e0: 611a str r2, [r3, #16]
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
|
|
80055e2: 687b ldr r3, [r7, #4]
|
|
80055e4: 2202 movs r2, #2
|
|
80055e6: 771a strb r2, [r3, #28]
|
|
/* Input capture event */
|
|
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
|
|
80055e8: 687b ldr r3, [r7, #4]
|
|
80055ea: 681b ldr r3, [r3, #0]
|
|
80055ec: 699b ldr r3, [r3, #24]
|
|
80055ee: f403 7340 and.w r3, r3, #768 @ 0x300
|
|
80055f2: 2b00 cmp r3, #0
|
|
80055f4: d003 beq.n 80055fe <HAL_TIM_IRQHandler+0x9e>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->IC_CaptureCallback(htim);
|
|
#else
|
|
HAL_TIM_IC_CaptureCallback(htim);
|
|
80055f6: 6878 ldr r0, [r7, #4]
|
|
80055f8: f000 f8ac bl 8005754 <HAL_TIM_IC_CaptureCallback>
|
|
80055fc: e005 b.n 800560a <HAL_TIM_IRQHandler+0xaa>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->OC_DelayElapsedCallback(htim);
|
|
htim->PWM_PulseFinishedCallback(htim);
|
|
#else
|
|
HAL_TIM_OC_DelayElapsedCallback(htim);
|
|
80055fe: 6878 ldr r0, [r7, #4]
|
|
8005600: f000 f89e bl 8005740 <HAL_TIM_OC_DelayElapsedCallback>
|
|
HAL_TIM_PWM_PulseFinishedCallback(htim);
|
|
8005604: 6878 ldr r0, [r7, #4]
|
|
8005606: f000 f8af bl 8005768 <HAL_TIM_PWM_PulseFinishedCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
|
|
800560a: 687b ldr r3, [r7, #4]
|
|
800560c: 2200 movs r2, #0
|
|
800560e: 771a strb r2, [r3, #28]
|
|
}
|
|
}
|
|
/* Capture compare 3 event */
|
|
if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
|
|
8005610: 68bb ldr r3, [r7, #8]
|
|
8005612: f003 0308 and.w r3, r3, #8
|
|
8005616: 2b00 cmp r3, #0
|
|
8005618: d020 beq.n 800565c <HAL_TIM_IRQHandler+0xfc>
|
|
{
|
|
if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
|
|
800561a: 68fb ldr r3, [r7, #12]
|
|
800561c: f003 0308 and.w r3, r3, #8
|
|
8005620: 2b00 cmp r3, #0
|
|
8005622: d01b beq.n 800565c <HAL_TIM_IRQHandler+0xfc>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
|
|
8005624: 687b ldr r3, [r7, #4]
|
|
8005626: 681b ldr r3, [r3, #0]
|
|
8005628: f06f 0208 mvn.w r2, #8
|
|
800562c: 611a str r2, [r3, #16]
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
|
|
800562e: 687b ldr r3, [r7, #4]
|
|
8005630: 2204 movs r2, #4
|
|
8005632: 771a strb r2, [r3, #28]
|
|
/* Input capture event */
|
|
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
|
|
8005634: 687b ldr r3, [r7, #4]
|
|
8005636: 681b ldr r3, [r3, #0]
|
|
8005638: 69db ldr r3, [r3, #28]
|
|
800563a: f003 0303 and.w r3, r3, #3
|
|
800563e: 2b00 cmp r3, #0
|
|
8005640: d003 beq.n 800564a <HAL_TIM_IRQHandler+0xea>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->IC_CaptureCallback(htim);
|
|
#else
|
|
HAL_TIM_IC_CaptureCallback(htim);
|
|
8005642: 6878 ldr r0, [r7, #4]
|
|
8005644: f000 f886 bl 8005754 <HAL_TIM_IC_CaptureCallback>
|
|
8005648: e005 b.n 8005656 <HAL_TIM_IRQHandler+0xf6>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->OC_DelayElapsedCallback(htim);
|
|
htim->PWM_PulseFinishedCallback(htim);
|
|
#else
|
|
HAL_TIM_OC_DelayElapsedCallback(htim);
|
|
800564a: 6878 ldr r0, [r7, #4]
|
|
800564c: f000 f878 bl 8005740 <HAL_TIM_OC_DelayElapsedCallback>
|
|
HAL_TIM_PWM_PulseFinishedCallback(htim);
|
|
8005650: 6878 ldr r0, [r7, #4]
|
|
8005652: f000 f889 bl 8005768 <HAL_TIM_PWM_PulseFinishedCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
|
|
8005656: 687b ldr r3, [r7, #4]
|
|
8005658: 2200 movs r2, #0
|
|
800565a: 771a strb r2, [r3, #28]
|
|
}
|
|
}
|
|
/* Capture compare 4 event */
|
|
if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
|
|
800565c: 68bb ldr r3, [r7, #8]
|
|
800565e: f003 0310 and.w r3, r3, #16
|
|
8005662: 2b00 cmp r3, #0
|
|
8005664: d020 beq.n 80056a8 <HAL_TIM_IRQHandler+0x148>
|
|
{
|
|
if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
|
|
8005666: 68fb ldr r3, [r7, #12]
|
|
8005668: f003 0310 and.w r3, r3, #16
|
|
800566c: 2b00 cmp r3, #0
|
|
800566e: d01b beq.n 80056a8 <HAL_TIM_IRQHandler+0x148>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
|
|
8005670: 687b ldr r3, [r7, #4]
|
|
8005672: 681b ldr r3, [r3, #0]
|
|
8005674: f06f 0210 mvn.w r2, #16
|
|
8005678: 611a str r2, [r3, #16]
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
|
|
800567a: 687b ldr r3, [r7, #4]
|
|
800567c: 2208 movs r2, #8
|
|
800567e: 771a strb r2, [r3, #28]
|
|
/* Input capture event */
|
|
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
|
|
8005680: 687b ldr r3, [r7, #4]
|
|
8005682: 681b ldr r3, [r3, #0]
|
|
8005684: 69db ldr r3, [r3, #28]
|
|
8005686: f403 7340 and.w r3, r3, #768 @ 0x300
|
|
800568a: 2b00 cmp r3, #0
|
|
800568c: d003 beq.n 8005696 <HAL_TIM_IRQHandler+0x136>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->IC_CaptureCallback(htim);
|
|
#else
|
|
HAL_TIM_IC_CaptureCallback(htim);
|
|
800568e: 6878 ldr r0, [r7, #4]
|
|
8005690: f000 f860 bl 8005754 <HAL_TIM_IC_CaptureCallback>
|
|
8005694: e005 b.n 80056a2 <HAL_TIM_IRQHandler+0x142>
|
|
{
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->OC_DelayElapsedCallback(htim);
|
|
htim->PWM_PulseFinishedCallback(htim);
|
|
#else
|
|
HAL_TIM_OC_DelayElapsedCallback(htim);
|
|
8005696: 6878 ldr r0, [r7, #4]
|
|
8005698: f000 f852 bl 8005740 <HAL_TIM_OC_DelayElapsedCallback>
|
|
HAL_TIM_PWM_PulseFinishedCallback(htim);
|
|
800569c: 6878 ldr r0, [r7, #4]
|
|
800569e: f000 f863 bl 8005768 <HAL_TIM_PWM_PulseFinishedCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
|
|
80056a2: 687b ldr r3, [r7, #4]
|
|
80056a4: 2200 movs r2, #0
|
|
80056a6: 771a strb r2, [r3, #28]
|
|
}
|
|
}
|
|
/* TIM Update event */
|
|
if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
|
|
80056a8: 68bb ldr r3, [r7, #8]
|
|
80056aa: f003 0301 and.w r3, r3, #1
|
|
80056ae: 2b00 cmp r3, #0
|
|
80056b0: d00c beq.n 80056cc <HAL_TIM_IRQHandler+0x16c>
|
|
{
|
|
if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
|
|
80056b2: 68fb ldr r3, [r7, #12]
|
|
80056b4: f003 0301 and.w r3, r3, #1
|
|
80056b8: 2b00 cmp r3, #0
|
|
80056ba: d007 beq.n 80056cc <HAL_TIM_IRQHandler+0x16c>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
|
|
80056bc: 687b ldr r3, [r7, #4]
|
|
80056be: 681b ldr r3, [r3, #0]
|
|
80056c0: f06f 0201 mvn.w r2, #1
|
|
80056c4: 611a str r2, [r3, #16]
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->PeriodElapsedCallback(htim);
|
|
#else
|
|
HAL_TIM_PeriodElapsedCallback(htim);
|
|
80056c6: 6878 ldr r0, [r7, #4]
|
|
80056c8: f7fd ff58 bl 800357c <HAL_TIM_PeriodElapsedCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
}
|
|
/* TIM Break input event */
|
|
if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK))
|
|
80056cc: 68bb ldr r3, [r7, #8]
|
|
80056ce: f003 0380 and.w r3, r3, #128 @ 0x80
|
|
80056d2: 2b00 cmp r3, #0
|
|
80056d4: d00c beq.n 80056f0 <HAL_TIM_IRQHandler+0x190>
|
|
{
|
|
if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
|
|
80056d6: 68fb ldr r3, [r7, #12]
|
|
80056d8: f003 0380 and.w r3, r3, #128 @ 0x80
|
|
80056dc: 2b00 cmp r3, #0
|
|
80056de: d007 beq.n 80056f0 <HAL_TIM_IRQHandler+0x190>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK);
|
|
80056e0: 687b ldr r3, [r7, #4]
|
|
80056e2: 681b ldr r3, [r3, #0]
|
|
80056e4: f06f 0280 mvn.w r2, #128 @ 0x80
|
|
80056e8: 611a str r2, [r3, #16]
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->BreakCallback(htim);
|
|
#else
|
|
HAL_TIMEx_BreakCallback(htim);
|
|
80056ea: 6878 ldr r0, [r7, #4]
|
|
80056ec: f000 f906 bl 80058fc <HAL_TIMEx_BreakCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
}
|
|
/* TIM Trigger detection event */
|
|
if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
|
|
80056f0: 68bb ldr r3, [r7, #8]
|
|
80056f2: f003 0340 and.w r3, r3, #64 @ 0x40
|
|
80056f6: 2b00 cmp r3, #0
|
|
80056f8: d00c beq.n 8005714 <HAL_TIM_IRQHandler+0x1b4>
|
|
{
|
|
if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
|
|
80056fa: 68fb ldr r3, [r7, #12]
|
|
80056fc: f003 0340 and.w r3, r3, #64 @ 0x40
|
|
8005700: 2b00 cmp r3, #0
|
|
8005702: d007 beq.n 8005714 <HAL_TIM_IRQHandler+0x1b4>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
|
|
8005704: 687b ldr r3, [r7, #4]
|
|
8005706: 681b ldr r3, [r3, #0]
|
|
8005708: f06f 0240 mvn.w r2, #64 @ 0x40
|
|
800570c: 611a str r2, [r3, #16]
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->TriggerCallback(htim);
|
|
#else
|
|
HAL_TIM_TriggerCallback(htim);
|
|
800570e: 6878 ldr r0, [r7, #4]
|
|
8005710: f000 f834 bl 800577c <HAL_TIM_TriggerCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
}
|
|
/* TIM commutation event */
|
|
if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
|
|
8005714: 68bb ldr r3, [r7, #8]
|
|
8005716: f003 0320 and.w r3, r3, #32
|
|
800571a: 2b00 cmp r3, #0
|
|
800571c: d00c beq.n 8005738 <HAL_TIM_IRQHandler+0x1d8>
|
|
{
|
|
if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
|
|
800571e: 68fb ldr r3, [r7, #12]
|
|
8005720: f003 0320 and.w r3, r3, #32
|
|
8005724: 2b00 cmp r3, #0
|
|
8005726: d007 beq.n 8005738 <HAL_TIM_IRQHandler+0x1d8>
|
|
{
|
|
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
|
|
8005728: 687b ldr r3, [r7, #4]
|
|
800572a: 681b ldr r3, [r3, #0]
|
|
800572c: f06f 0220 mvn.w r2, #32
|
|
8005730: 611a str r2, [r3, #16]
|
|
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
|
|
htim->CommutationCallback(htim);
|
|
#else
|
|
HAL_TIMEx_CommutCallback(htim);
|
|
8005732: 6878 ldr r0, [r7, #4]
|
|
8005734: f000 f8d8 bl 80058e8 <HAL_TIMEx_CommutCallback>
|
|
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
|
|
}
|
|
}
|
|
}
|
|
8005738: bf00 nop
|
|
800573a: 3710 adds r7, #16
|
|
800573c: 46bd mov sp, r7
|
|
800573e: bd80 pop {r7, pc}
|
|
|
|
08005740 <HAL_TIM_OC_DelayElapsedCallback>:
|
|
* @brief Output Compare callback in non-blocking mode
|
|
* @param htim TIM OC handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
8005740: b480 push {r7}
|
|
8005742: b083 sub sp, #12
|
|
8005744: af00 add r7, sp, #0
|
|
8005746: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
8005748: bf00 nop
|
|
800574a: 370c adds r7, #12
|
|
800574c: 46bd mov sp, r7
|
|
800574e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8005752: 4770 bx lr
|
|
|
|
08005754 <HAL_TIM_IC_CaptureCallback>:
|
|
* @brief Input Capture callback in non-blocking mode
|
|
* @param htim TIM IC handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
8005754: b480 push {r7}
|
|
8005756: b083 sub sp, #12
|
|
8005758: af00 add r7, sp, #0
|
|
800575a: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIM_IC_CaptureCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
800575c: bf00 nop
|
|
800575e: 370c adds r7, #12
|
|
8005760: 46bd mov sp, r7
|
|
8005762: f85d 7b04 ldr.w r7, [sp], #4
|
|
8005766: 4770 bx lr
|
|
|
|
08005768 <HAL_TIM_PWM_PulseFinishedCallback>:
|
|
* @brief PWM Pulse finished callback in non-blocking mode
|
|
* @param htim TIM handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
8005768: b480 push {r7}
|
|
800576a: b083 sub sp, #12
|
|
800576c: af00 add r7, sp, #0
|
|
800576e: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
8005770: bf00 nop
|
|
8005772: 370c adds r7, #12
|
|
8005774: 46bd mov sp, r7
|
|
8005776: f85d 7b04 ldr.w r7, [sp], #4
|
|
800577a: 4770 bx lr
|
|
|
|
0800577c <HAL_TIM_TriggerCallback>:
|
|
* @brief Hall Trigger detection callback in non-blocking mode
|
|
* @param htim TIM handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
800577c: b480 push {r7}
|
|
800577e: b083 sub sp, #12
|
|
8005780: af00 add r7, sp, #0
|
|
8005782: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIM_TriggerCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
8005784: bf00 nop
|
|
8005786: 370c adds r7, #12
|
|
8005788: 46bd mov sp, r7
|
|
800578a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800578e: 4770 bx lr
|
|
|
|
08005790 <TIM_Base_SetConfig>:
|
|
* @param TIMx TIM peripheral
|
|
* @param Structure TIM Base configuration structure
|
|
* @retval None
|
|
*/
|
|
void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
|
|
{
|
|
8005790: b480 push {r7}
|
|
8005792: b085 sub sp, #20
|
|
8005794: af00 add r7, sp, #0
|
|
8005796: 6078 str r0, [r7, #4]
|
|
8005798: 6039 str r1, [r7, #0]
|
|
uint32_t tmpcr1;
|
|
tmpcr1 = TIMx->CR1;
|
|
800579a: 687b ldr r3, [r7, #4]
|
|
800579c: 681b ldr r3, [r3, #0]
|
|
800579e: 60fb str r3, [r7, #12]
|
|
|
|
/* Set TIM Time Base Unit parameters ---------------------------------------*/
|
|
if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
|
|
80057a0: 687b ldr r3, [r7, #4]
|
|
80057a2: 4a46 ldr r2, [pc, #280] @ (80058bc <TIM_Base_SetConfig+0x12c>)
|
|
80057a4: 4293 cmp r3, r2
|
|
80057a6: d013 beq.n 80057d0 <TIM_Base_SetConfig+0x40>
|
|
80057a8: 687b ldr r3, [r7, #4]
|
|
80057aa: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
|
|
80057ae: d00f beq.n 80057d0 <TIM_Base_SetConfig+0x40>
|
|
80057b0: 687b ldr r3, [r7, #4]
|
|
80057b2: 4a43 ldr r2, [pc, #268] @ (80058c0 <TIM_Base_SetConfig+0x130>)
|
|
80057b4: 4293 cmp r3, r2
|
|
80057b6: d00b beq.n 80057d0 <TIM_Base_SetConfig+0x40>
|
|
80057b8: 687b ldr r3, [r7, #4]
|
|
80057ba: 4a42 ldr r2, [pc, #264] @ (80058c4 <TIM_Base_SetConfig+0x134>)
|
|
80057bc: 4293 cmp r3, r2
|
|
80057be: d007 beq.n 80057d0 <TIM_Base_SetConfig+0x40>
|
|
80057c0: 687b ldr r3, [r7, #4]
|
|
80057c2: 4a41 ldr r2, [pc, #260] @ (80058c8 <TIM_Base_SetConfig+0x138>)
|
|
80057c4: 4293 cmp r3, r2
|
|
80057c6: d003 beq.n 80057d0 <TIM_Base_SetConfig+0x40>
|
|
80057c8: 687b ldr r3, [r7, #4]
|
|
80057ca: 4a40 ldr r2, [pc, #256] @ (80058cc <TIM_Base_SetConfig+0x13c>)
|
|
80057cc: 4293 cmp r3, r2
|
|
80057ce: d108 bne.n 80057e2 <TIM_Base_SetConfig+0x52>
|
|
{
|
|
/* Select the Counter Mode */
|
|
tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
|
|
80057d0: 68fb ldr r3, [r7, #12]
|
|
80057d2: f023 0370 bic.w r3, r3, #112 @ 0x70
|
|
80057d6: 60fb str r3, [r7, #12]
|
|
tmpcr1 |= Structure->CounterMode;
|
|
80057d8: 683b ldr r3, [r7, #0]
|
|
80057da: 685b ldr r3, [r3, #4]
|
|
80057dc: 68fa ldr r2, [r7, #12]
|
|
80057de: 4313 orrs r3, r2
|
|
80057e0: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
|
|
80057e2: 687b ldr r3, [r7, #4]
|
|
80057e4: 4a35 ldr r2, [pc, #212] @ (80058bc <TIM_Base_SetConfig+0x12c>)
|
|
80057e6: 4293 cmp r3, r2
|
|
80057e8: d02b beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
80057ea: 687b ldr r3, [r7, #4]
|
|
80057ec: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
|
|
80057f0: d027 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
80057f2: 687b ldr r3, [r7, #4]
|
|
80057f4: 4a32 ldr r2, [pc, #200] @ (80058c0 <TIM_Base_SetConfig+0x130>)
|
|
80057f6: 4293 cmp r3, r2
|
|
80057f8: d023 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
80057fa: 687b ldr r3, [r7, #4]
|
|
80057fc: 4a31 ldr r2, [pc, #196] @ (80058c4 <TIM_Base_SetConfig+0x134>)
|
|
80057fe: 4293 cmp r3, r2
|
|
8005800: d01f beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
8005802: 687b ldr r3, [r7, #4]
|
|
8005804: 4a30 ldr r2, [pc, #192] @ (80058c8 <TIM_Base_SetConfig+0x138>)
|
|
8005806: 4293 cmp r3, r2
|
|
8005808: d01b beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
800580a: 687b ldr r3, [r7, #4]
|
|
800580c: 4a2f ldr r2, [pc, #188] @ (80058cc <TIM_Base_SetConfig+0x13c>)
|
|
800580e: 4293 cmp r3, r2
|
|
8005810: d017 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
8005812: 687b ldr r3, [r7, #4]
|
|
8005814: 4a2e ldr r2, [pc, #184] @ (80058d0 <TIM_Base_SetConfig+0x140>)
|
|
8005816: 4293 cmp r3, r2
|
|
8005818: d013 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
800581a: 687b ldr r3, [r7, #4]
|
|
800581c: 4a2d ldr r2, [pc, #180] @ (80058d4 <TIM_Base_SetConfig+0x144>)
|
|
800581e: 4293 cmp r3, r2
|
|
8005820: d00f beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
8005822: 687b ldr r3, [r7, #4]
|
|
8005824: 4a2c ldr r2, [pc, #176] @ (80058d8 <TIM_Base_SetConfig+0x148>)
|
|
8005826: 4293 cmp r3, r2
|
|
8005828: d00b beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
800582a: 687b ldr r3, [r7, #4]
|
|
800582c: 4a2b ldr r2, [pc, #172] @ (80058dc <TIM_Base_SetConfig+0x14c>)
|
|
800582e: 4293 cmp r3, r2
|
|
8005830: d007 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
8005832: 687b ldr r3, [r7, #4]
|
|
8005834: 4a2a ldr r2, [pc, #168] @ (80058e0 <TIM_Base_SetConfig+0x150>)
|
|
8005836: 4293 cmp r3, r2
|
|
8005838: d003 beq.n 8005842 <TIM_Base_SetConfig+0xb2>
|
|
800583a: 687b ldr r3, [r7, #4]
|
|
800583c: 4a29 ldr r2, [pc, #164] @ (80058e4 <TIM_Base_SetConfig+0x154>)
|
|
800583e: 4293 cmp r3, r2
|
|
8005840: d108 bne.n 8005854 <TIM_Base_SetConfig+0xc4>
|
|
{
|
|
/* Set the clock division */
|
|
tmpcr1 &= ~TIM_CR1_CKD;
|
|
8005842: 68fb ldr r3, [r7, #12]
|
|
8005844: f423 7340 bic.w r3, r3, #768 @ 0x300
|
|
8005848: 60fb str r3, [r7, #12]
|
|
tmpcr1 |= (uint32_t)Structure->ClockDivision;
|
|
800584a: 683b ldr r3, [r7, #0]
|
|
800584c: 68db ldr r3, [r3, #12]
|
|
800584e: 68fa ldr r2, [r7, #12]
|
|
8005850: 4313 orrs r3, r2
|
|
8005852: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
/* Set the auto-reload preload */
|
|
MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
|
|
8005854: 68fb ldr r3, [r7, #12]
|
|
8005856: f023 0280 bic.w r2, r3, #128 @ 0x80
|
|
800585a: 683b ldr r3, [r7, #0]
|
|
800585c: 695b ldr r3, [r3, #20]
|
|
800585e: 4313 orrs r3, r2
|
|
8005860: 60fb str r3, [r7, #12]
|
|
|
|
TIMx->CR1 = tmpcr1;
|
|
8005862: 687b ldr r3, [r7, #4]
|
|
8005864: 68fa ldr r2, [r7, #12]
|
|
8005866: 601a str r2, [r3, #0]
|
|
|
|
/* Set the Autoreload value */
|
|
TIMx->ARR = (uint32_t)Structure->Period ;
|
|
8005868: 683b ldr r3, [r7, #0]
|
|
800586a: 689a ldr r2, [r3, #8]
|
|
800586c: 687b ldr r3, [r7, #4]
|
|
800586e: 62da str r2, [r3, #44] @ 0x2c
|
|
|
|
/* Set the Prescaler value */
|
|
TIMx->PSC = Structure->Prescaler;
|
|
8005870: 683b ldr r3, [r7, #0]
|
|
8005872: 681a ldr r2, [r3, #0]
|
|
8005874: 687b ldr r3, [r7, #4]
|
|
8005876: 629a str r2, [r3, #40] @ 0x28
|
|
|
|
if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
|
|
8005878: 687b ldr r3, [r7, #4]
|
|
800587a: 4a10 ldr r2, [pc, #64] @ (80058bc <TIM_Base_SetConfig+0x12c>)
|
|
800587c: 4293 cmp r3, r2
|
|
800587e: d003 beq.n 8005888 <TIM_Base_SetConfig+0xf8>
|
|
8005880: 687b ldr r3, [r7, #4]
|
|
8005882: 4a12 ldr r2, [pc, #72] @ (80058cc <TIM_Base_SetConfig+0x13c>)
|
|
8005884: 4293 cmp r3, r2
|
|
8005886: d103 bne.n 8005890 <TIM_Base_SetConfig+0x100>
|
|
{
|
|
/* Set the Repetition Counter value */
|
|
TIMx->RCR = Structure->RepetitionCounter;
|
|
8005888: 683b ldr r3, [r7, #0]
|
|
800588a: 691a ldr r2, [r3, #16]
|
|
800588c: 687b ldr r3, [r7, #4]
|
|
800588e: 631a str r2, [r3, #48] @ 0x30
|
|
}
|
|
|
|
/* Generate an update event to reload the Prescaler
|
|
and the repetition counter (only for advanced timer) value immediately */
|
|
TIMx->EGR = TIM_EGR_UG;
|
|
8005890: 687b ldr r3, [r7, #4]
|
|
8005892: 2201 movs r2, #1
|
|
8005894: 615a str r2, [r3, #20]
|
|
|
|
/* Check if the update flag is set after the Update Generation, if so clear the UIF flag */
|
|
if (HAL_IS_BIT_SET(TIMx->SR, TIM_FLAG_UPDATE))
|
|
8005896: 687b ldr r3, [r7, #4]
|
|
8005898: 691b ldr r3, [r3, #16]
|
|
800589a: f003 0301 and.w r3, r3, #1
|
|
800589e: 2b01 cmp r3, #1
|
|
80058a0: d105 bne.n 80058ae <TIM_Base_SetConfig+0x11e>
|
|
{
|
|
/* Clear the update flag */
|
|
CLEAR_BIT(TIMx->SR, TIM_FLAG_UPDATE);
|
|
80058a2: 687b ldr r3, [r7, #4]
|
|
80058a4: 691b ldr r3, [r3, #16]
|
|
80058a6: f023 0201 bic.w r2, r3, #1
|
|
80058aa: 687b ldr r3, [r7, #4]
|
|
80058ac: 611a str r2, [r3, #16]
|
|
}
|
|
}
|
|
80058ae: bf00 nop
|
|
80058b0: 3714 adds r7, #20
|
|
80058b2: 46bd mov sp, r7
|
|
80058b4: f85d 7b04 ldr.w r7, [sp], #4
|
|
80058b8: 4770 bx lr
|
|
80058ba: bf00 nop
|
|
80058bc: 40010000 .word 0x40010000
|
|
80058c0: 40000400 .word 0x40000400
|
|
80058c4: 40000800 .word 0x40000800
|
|
80058c8: 40000c00 .word 0x40000c00
|
|
80058cc: 40010400 .word 0x40010400
|
|
80058d0: 40014000 .word 0x40014000
|
|
80058d4: 40014400 .word 0x40014400
|
|
80058d8: 40014800 .word 0x40014800
|
|
80058dc: 40001800 .word 0x40001800
|
|
80058e0: 40001c00 .word 0x40001c00
|
|
80058e4: 40002000 .word 0x40002000
|
|
|
|
080058e8 <HAL_TIMEx_CommutCallback>:
|
|
* @brief Commutation callback in non-blocking mode
|
|
* @param htim TIM handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
80058e8: b480 push {r7}
|
|
80058ea: b083 sub sp, #12
|
|
80058ec: af00 add r7, sp, #0
|
|
80058ee: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIMEx_CommutCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
80058f0: bf00 nop
|
|
80058f2: 370c adds r7, #12
|
|
80058f4: 46bd mov sp, r7
|
|
80058f6: f85d 7b04 ldr.w r7, [sp], #4
|
|
80058fa: 4770 bx lr
|
|
|
|
080058fc <HAL_TIMEx_BreakCallback>:
|
|
* @brief Break detection callback in non-blocking mode
|
|
* @param htim TIM handle
|
|
* @retval None
|
|
*/
|
|
__weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
|
|
{
|
|
80058fc: b480 push {r7}
|
|
80058fe: b083 sub sp, #12
|
|
8005900: af00 add r7, sp, #0
|
|
8005902: 6078 str r0, [r7, #4]
|
|
UNUSED(htim);
|
|
|
|
/* NOTE : This function should not be modified, when the callback is needed,
|
|
the HAL_TIMEx_BreakCallback could be implemented in the user file
|
|
*/
|
|
}
|
|
8005904: bf00 nop
|
|
8005906: 370c adds r7, #12
|
|
8005908: 46bd mov sp, r7
|
|
800590a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800590e: 4770 bx lr
|
|
|
|
08005910 <HAL_UART_Init>:
|
|
* @param huart Pointer to a UART_HandleTypeDef structure that contains
|
|
* the configuration information for the specified UART module.
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
|
|
{
|
|
8005910: b580 push {r7, lr}
|
|
8005912: b082 sub sp, #8
|
|
8005914: af00 add r7, sp, #0
|
|
8005916: 6078 str r0, [r7, #4]
|
|
/* Check the UART handle allocation */
|
|
if (huart == NULL)
|
|
8005918: 687b ldr r3, [r7, #4]
|
|
800591a: 2b00 cmp r3, #0
|
|
800591c: d101 bne.n 8005922 <HAL_UART_Init+0x12>
|
|
{
|
|
return HAL_ERROR;
|
|
800591e: 2301 movs r3, #1
|
|
8005920: e042 b.n 80059a8 <HAL_UART_Init+0x98>
|
|
assert_param(IS_UART_INSTANCE(huart->Instance));
|
|
}
|
|
assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength));
|
|
assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling));
|
|
|
|
if (huart->gState == HAL_UART_STATE_RESET)
|
|
8005922: 687b ldr r3, [r7, #4]
|
|
8005924: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
|
|
8005928: b2db uxtb r3, r3
|
|
800592a: 2b00 cmp r3, #0
|
|
800592c: d106 bne.n 800593c <HAL_UART_Init+0x2c>
|
|
{
|
|
/* Allocate lock resource and initialize it */
|
|
huart->Lock = HAL_UNLOCKED;
|
|
800592e: 687b ldr r3, [r7, #4]
|
|
8005930: 2200 movs r2, #0
|
|
8005932: f883 2040 strb.w r2, [r3, #64] @ 0x40
|
|
|
|
/* Init the low level hardware */
|
|
huart->MspInitCallback(huart);
|
|
#else
|
|
/* Init the low level hardware : GPIO, CLOCK */
|
|
HAL_UART_MspInit(huart);
|
|
8005936: 6878 ldr r0, [r7, #4]
|
|
8005938: f7fd fffe bl 8003938 <HAL_UART_MspInit>
|
|
#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
|
|
}
|
|
|
|
huart->gState = HAL_UART_STATE_BUSY;
|
|
800593c: 687b ldr r3, [r7, #4]
|
|
800593e: 2224 movs r2, #36 @ 0x24
|
|
8005940: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
|
|
/* Disable the peripheral */
|
|
__HAL_UART_DISABLE(huart);
|
|
8005944: 687b ldr r3, [r7, #4]
|
|
8005946: 681b ldr r3, [r3, #0]
|
|
8005948: 68da ldr r2, [r3, #12]
|
|
800594a: 687b ldr r3, [r7, #4]
|
|
800594c: 681b ldr r3, [r3, #0]
|
|
800594e: f422 5200 bic.w r2, r2, #8192 @ 0x2000
|
|
8005952: 60da str r2, [r3, #12]
|
|
|
|
/* Set the UART Communication parameters */
|
|
UART_SetConfig(huart);
|
|
8005954: 6878 ldr r0, [r7, #4]
|
|
8005956: f000 fa09 bl 8005d6c <UART_SetConfig>
|
|
|
|
/* In asynchronous mode, the following bits must be kept cleared:
|
|
- LINEN and CLKEN bits in the USART_CR2 register,
|
|
- SCEN, HDSEL and IREN bits in the USART_CR3 register.*/
|
|
CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN));
|
|
800595a: 687b ldr r3, [r7, #4]
|
|
800595c: 681b ldr r3, [r3, #0]
|
|
800595e: 691a ldr r2, [r3, #16]
|
|
8005960: 687b ldr r3, [r7, #4]
|
|
8005962: 681b ldr r3, [r3, #0]
|
|
8005964: f422 4290 bic.w r2, r2, #18432 @ 0x4800
|
|
8005968: 611a str r2, [r3, #16]
|
|
CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
|
|
800596a: 687b ldr r3, [r7, #4]
|
|
800596c: 681b ldr r3, [r3, #0]
|
|
800596e: 695a ldr r2, [r3, #20]
|
|
8005970: 687b ldr r3, [r7, #4]
|
|
8005972: 681b ldr r3, [r3, #0]
|
|
8005974: f022 022a bic.w r2, r2, #42 @ 0x2a
|
|
8005978: 615a str r2, [r3, #20]
|
|
|
|
/* Enable the peripheral */
|
|
__HAL_UART_ENABLE(huart);
|
|
800597a: 687b ldr r3, [r7, #4]
|
|
800597c: 681b ldr r3, [r3, #0]
|
|
800597e: 68da ldr r2, [r3, #12]
|
|
8005980: 687b ldr r3, [r7, #4]
|
|
8005982: 681b ldr r3, [r3, #0]
|
|
8005984: f442 5200 orr.w r2, r2, #8192 @ 0x2000
|
|
8005988: 60da str r2, [r3, #12]
|
|
|
|
/* Initialize the UART state */
|
|
huart->ErrorCode = HAL_UART_ERROR_NONE;
|
|
800598a: 687b ldr r3, [r7, #4]
|
|
800598c: 2200 movs r2, #0
|
|
800598e: 645a str r2, [r3, #68] @ 0x44
|
|
huart->gState = HAL_UART_STATE_READY;
|
|
8005990: 687b ldr r3, [r7, #4]
|
|
8005992: 2220 movs r2, #32
|
|
8005994: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
huart->RxState = HAL_UART_STATE_READY;
|
|
8005998: 687b ldr r3, [r7, #4]
|
|
800599a: 2220 movs r2, #32
|
|
800599c: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
huart->RxEventType = HAL_UART_RXEVENT_TC;
|
|
80059a0: 687b ldr r3, [r7, #4]
|
|
80059a2: 2200 movs r2, #0
|
|
80059a4: 635a str r2, [r3, #52] @ 0x34
|
|
|
|
return HAL_OK;
|
|
80059a6: 2300 movs r3, #0
|
|
}
|
|
80059a8: 4618 mov r0, r3
|
|
80059aa: 3708 adds r7, #8
|
|
80059ac: 46bd mov sp, r7
|
|
80059ae: bd80 pop {r7, pc}
|
|
|
|
080059b0 <HAL_UART_Transmit>:
|
|
* @param Size Amount of data elements (u8 or u16) to be sent
|
|
* @param Timeout Timeout duration
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
|
|
{
|
|
80059b0: b580 push {r7, lr}
|
|
80059b2: b08a sub sp, #40 @ 0x28
|
|
80059b4: af02 add r7, sp, #8
|
|
80059b6: 60f8 str r0, [r7, #12]
|
|
80059b8: 60b9 str r1, [r7, #8]
|
|
80059ba: 603b str r3, [r7, #0]
|
|
80059bc: 4613 mov r3, r2
|
|
80059be: 80fb strh r3, [r7, #6]
|
|
const uint8_t *pdata8bits;
|
|
const uint16_t *pdata16bits;
|
|
uint32_t tickstart = 0U;
|
|
80059c0: 2300 movs r3, #0
|
|
80059c2: 617b str r3, [r7, #20]
|
|
|
|
/* Check that a Tx process is not already ongoing */
|
|
if (huart->gState == HAL_UART_STATE_READY)
|
|
80059c4: 68fb ldr r3, [r7, #12]
|
|
80059c6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
|
|
80059ca: b2db uxtb r3, r3
|
|
80059cc: 2b20 cmp r3, #32
|
|
80059ce: d175 bne.n 8005abc <HAL_UART_Transmit+0x10c>
|
|
{
|
|
if ((pData == NULL) || (Size == 0U))
|
|
80059d0: 68bb ldr r3, [r7, #8]
|
|
80059d2: 2b00 cmp r3, #0
|
|
80059d4: d002 beq.n 80059dc <HAL_UART_Transmit+0x2c>
|
|
80059d6: 88fb ldrh r3, [r7, #6]
|
|
80059d8: 2b00 cmp r3, #0
|
|
80059da: d101 bne.n 80059e0 <HAL_UART_Transmit+0x30>
|
|
{
|
|
return HAL_ERROR;
|
|
80059dc: 2301 movs r3, #1
|
|
80059de: e06e b.n 8005abe <HAL_UART_Transmit+0x10e>
|
|
}
|
|
|
|
huart->ErrorCode = HAL_UART_ERROR_NONE;
|
|
80059e0: 68fb ldr r3, [r7, #12]
|
|
80059e2: 2200 movs r2, #0
|
|
80059e4: 645a str r2, [r3, #68] @ 0x44
|
|
huart->gState = HAL_UART_STATE_BUSY_TX;
|
|
80059e6: 68fb ldr r3, [r7, #12]
|
|
80059e8: 2221 movs r2, #33 @ 0x21
|
|
80059ea: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
|
|
/* Init tickstart for timeout management */
|
|
tickstart = HAL_GetTick();
|
|
80059ee: f7fe f9a3 bl 8003d38 <HAL_GetTick>
|
|
80059f2: 6178 str r0, [r7, #20]
|
|
|
|
huart->TxXferSize = Size;
|
|
80059f4: 68fb ldr r3, [r7, #12]
|
|
80059f6: 88fa ldrh r2, [r7, #6]
|
|
80059f8: 849a strh r2, [r3, #36] @ 0x24
|
|
huart->TxXferCount = Size;
|
|
80059fa: 68fb ldr r3, [r7, #12]
|
|
80059fc: 88fa ldrh r2, [r7, #6]
|
|
80059fe: 84da strh r2, [r3, #38] @ 0x26
|
|
|
|
/* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
|
|
if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
|
|
8005a00: 68fb ldr r3, [r7, #12]
|
|
8005a02: 689b ldr r3, [r3, #8]
|
|
8005a04: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
|
|
8005a08: d108 bne.n 8005a1c <HAL_UART_Transmit+0x6c>
|
|
8005a0a: 68fb ldr r3, [r7, #12]
|
|
8005a0c: 691b ldr r3, [r3, #16]
|
|
8005a0e: 2b00 cmp r3, #0
|
|
8005a10: d104 bne.n 8005a1c <HAL_UART_Transmit+0x6c>
|
|
{
|
|
pdata8bits = NULL;
|
|
8005a12: 2300 movs r3, #0
|
|
8005a14: 61fb str r3, [r7, #28]
|
|
pdata16bits = (const uint16_t *) pData;
|
|
8005a16: 68bb ldr r3, [r7, #8]
|
|
8005a18: 61bb str r3, [r7, #24]
|
|
8005a1a: e003 b.n 8005a24 <HAL_UART_Transmit+0x74>
|
|
}
|
|
else
|
|
{
|
|
pdata8bits = pData;
|
|
8005a1c: 68bb ldr r3, [r7, #8]
|
|
8005a1e: 61fb str r3, [r7, #28]
|
|
pdata16bits = NULL;
|
|
8005a20: 2300 movs r3, #0
|
|
8005a22: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
while (huart->TxXferCount > 0U)
|
|
8005a24: e02e b.n 8005a84 <HAL_UART_Transmit+0xd4>
|
|
{
|
|
if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
|
|
8005a26: 683b ldr r3, [r7, #0]
|
|
8005a28: 9300 str r3, [sp, #0]
|
|
8005a2a: 697b ldr r3, [r7, #20]
|
|
8005a2c: 2200 movs r2, #0
|
|
8005a2e: 2180 movs r1, #128 @ 0x80
|
|
8005a30: 68f8 ldr r0, [r7, #12]
|
|
8005a32: f000 f8df bl 8005bf4 <UART_WaitOnFlagUntilTimeout>
|
|
8005a36: 4603 mov r3, r0
|
|
8005a38: 2b00 cmp r3, #0
|
|
8005a3a: d005 beq.n 8005a48 <HAL_UART_Transmit+0x98>
|
|
{
|
|
huart->gState = HAL_UART_STATE_READY;
|
|
8005a3c: 68fb ldr r3, [r7, #12]
|
|
8005a3e: 2220 movs r2, #32
|
|
8005a40: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
|
|
return HAL_TIMEOUT;
|
|
8005a44: 2303 movs r3, #3
|
|
8005a46: e03a b.n 8005abe <HAL_UART_Transmit+0x10e>
|
|
}
|
|
if (pdata8bits == NULL)
|
|
8005a48: 69fb ldr r3, [r7, #28]
|
|
8005a4a: 2b00 cmp r3, #0
|
|
8005a4c: d10b bne.n 8005a66 <HAL_UART_Transmit+0xb6>
|
|
{
|
|
huart->Instance->DR = (uint16_t)(*pdata16bits & 0x01FFU);
|
|
8005a4e: 69bb ldr r3, [r7, #24]
|
|
8005a50: 881b ldrh r3, [r3, #0]
|
|
8005a52: 461a mov r2, r3
|
|
8005a54: 68fb ldr r3, [r7, #12]
|
|
8005a56: 681b ldr r3, [r3, #0]
|
|
8005a58: f3c2 0208 ubfx r2, r2, #0, #9
|
|
8005a5c: 605a str r2, [r3, #4]
|
|
pdata16bits++;
|
|
8005a5e: 69bb ldr r3, [r7, #24]
|
|
8005a60: 3302 adds r3, #2
|
|
8005a62: 61bb str r3, [r7, #24]
|
|
8005a64: e007 b.n 8005a76 <HAL_UART_Transmit+0xc6>
|
|
}
|
|
else
|
|
{
|
|
huart->Instance->DR = (uint8_t)(*pdata8bits & 0xFFU);
|
|
8005a66: 69fb ldr r3, [r7, #28]
|
|
8005a68: 781a ldrb r2, [r3, #0]
|
|
8005a6a: 68fb ldr r3, [r7, #12]
|
|
8005a6c: 681b ldr r3, [r3, #0]
|
|
8005a6e: 605a str r2, [r3, #4]
|
|
pdata8bits++;
|
|
8005a70: 69fb ldr r3, [r7, #28]
|
|
8005a72: 3301 adds r3, #1
|
|
8005a74: 61fb str r3, [r7, #28]
|
|
}
|
|
huart->TxXferCount--;
|
|
8005a76: 68fb ldr r3, [r7, #12]
|
|
8005a78: 8cdb ldrh r3, [r3, #38] @ 0x26
|
|
8005a7a: b29b uxth r3, r3
|
|
8005a7c: 3b01 subs r3, #1
|
|
8005a7e: b29a uxth r2, r3
|
|
8005a80: 68fb ldr r3, [r7, #12]
|
|
8005a82: 84da strh r2, [r3, #38] @ 0x26
|
|
while (huart->TxXferCount > 0U)
|
|
8005a84: 68fb ldr r3, [r7, #12]
|
|
8005a86: 8cdb ldrh r3, [r3, #38] @ 0x26
|
|
8005a88: b29b uxth r3, r3
|
|
8005a8a: 2b00 cmp r3, #0
|
|
8005a8c: d1cb bne.n 8005a26 <HAL_UART_Transmit+0x76>
|
|
}
|
|
|
|
if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
|
|
8005a8e: 683b ldr r3, [r7, #0]
|
|
8005a90: 9300 str r3, [sp, #0]
|
|
8005a92: 697b ldr r3, [r7, #20]
|
|
8005a94: 2200 movs r2, #0
|
|
8005a96: 2140 movs r1, #64 @ 0x40
|
|
8005a98: 68f8 ldr r0, [r7, #12]
|
|
8005a9a: f000 f8ab bl 8005bf4 <UART_WaitOnFlagUntilTimeout>
|
|
8005a9e: 4603 mov r3, r0
|
|
8005aa0: 2b00 cmp r3, #0
|
|
8005aa2: d005 beq.n 8005ab0 <HAL_UART_Transmit+0x100>
|
|
{
|
|
huart->gState = HAL_UART_STATE_READY;
|
|
8005aa4: 68fb ldr r3, [r7, #12]
|
|
8005aa6: 2220 movs r2, #32
|
|
8005aa8: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
|
|
return HAL_TIMEOUT;
|
|
8005aac: 2303 movs r3, #3
|
|
8005aae: e006 b.n 8005abe <HAL_UART_Transmit+0x10e>
|
|
}
|
|
|
|
/* At end of Tx process, restore huart->gState to Ready */
|
|
huart->gState = HAL_UART_STATE_READY;
|
|
8005ab0: 68fb ldr r3, [r7, #12]
|
|
8005ab2: 2220 movs r2, #32
|
|
8005ab4: f883 2041 strb.w r2, [r3, #65] @ 0x41
|
|
|
|
return HAL_OK;
|
|
8005ab8: 2300 movs r3, #0
|
|
8005aba: e000 b.n 8005abe <HAL_UART_Transmit+0x10e>
|
|
}
|
|
else
|
|
{
|
|
return HAL_BUSY;
|
|
8005abc: 2302 movs r3, #2
|
|
}
|
|
}
|
|
8005abe: 4618 mov r0, r3
|
|
8005ac0: 3720 adds r7, #32
|
|
8005ac2: 46bd mov sp, r7
|
|
8005ac4: bd80 pop {r7, pc}
|
|
|
|
08005ac6 <HAL_UART_Receive>:
|
|
* @param Size Amount of data elements (u8 or u16) to be received.
|
|
* @param Timeout Timeout duration
|
|
* @retval HAL status
|
|
*/
|
|
HAL_StatusTypeDef HAL_UART_Receive(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
|
|
{
|
|
8005ac6: b580 push {r7, lr}
|
|
8005ac8: b08a sub sp, #40 @ 0x28
|
|
8005aca: af02 add r7, sp, #8
|
|
8005acc: 60f8 str r0, [r7, #12]
|
|
8005ace: 60b9 str r1, [r7, #8]
|
|
8005ad0: 603b str r3, [r7, #0]
|
|
8005ad2: 4613 mov r3, r2
|
|
8005ad4: 80fb strh r3, [r7, #6]
|
|
uint8_t *pdata8bits;
|
|
uint16_t *pdata16bits;
|
|
uint32_t tickstart = 0U;
|
|
8005ad6: 2300 movs r3, #0
|
|
8005ad8: 617b str r3, [r7, #20]
|
|
|
|
/* Check that a Rx process is not already ongoing */
|
|
if (huart->RxState == HAL_UART_STATE_READY)
|
|
8005ada: 68fb ldr r3, [r7, #12]
|
|
8005adc: f893 3042 ldrb.w r3, [r3, #66] @ 0x42
|
|
8005ae0: b2db uxtb r3, r3
|
|
8005ae2: 2b20 cmp r3, #32
|
|
8005ae4: f040 8081 bne.w 8005bea <HAL_UART_Receive+0x124>
|
|
{
|
|
if ((pData == NULL) || (Size == 0U))
|
|
8005ae8: 68bb ldr r3, [r7, #8]
|
|
8005aea: 2b00 cmp r3, #0
|
|
8005aec: d002 beq.n 8005af4 <HAL_UART_Receive+0x2e>
|
|
8005aee: 88fb ldrh r3, [r7, #6]
|
|
8005af0: 2b00 cmp r3, #0
|
|
8005af2: d101 bne.n 8005af8 <HAL_UART_Receive+0x32>
|
|
{
|
|
return HAL_ERROR;
|
|
8005af4: 2301 movs r3, #1
|
|
8005af6: e079 b.n 8005bec <HAL_UART_Receive+0x126>
|
|
}
|
|
|
|
huart->ErrorCode = HAL_UART_ERROR_NONE;
|
|
8005af8: 68fb ldr r3, [r7, #12]
|
|
8005afa: 2200 movs r2, #0
|
|
8005afc: 645a str r2, [r3, #68] @ 0x44
|
|
huart->RxState = HAL_UART_STATE_BUSY_RX;
|
|
8005afe: 68fb ldr r3, [r7, #12]
|
|
8005b00: 2222 movs r2, #34 @ 0x22
|
|
8005b02: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
|
|
8005b06: 68fb ldr r3, [r7, #12]
|
|
8005b08: 2200 movs r2, #0
|
|
8005b0a: 631a str r2, [r3, #48] @ 0x30
|
|
|
|
/* Init tickstart for timeout management */
|
|
tickstart = HAL_GetTick();
|
|
8005b0c: f7fe f914 bl 8003d38 <HAL_GetTick>
|
|
8005b10: 6178 str r0, [r7, #20]
|
|
|
|
huart->RxXferSize = Size;
|
|
8005b12: 68fb ldr r3, [r7, #12]
|
|
8005b14: 88fa ldrh r2, [r7, #6]
|
|
8005b16: 859a strh r2, [r3, #44] @ 0x2c
|
|
huart->RxXferCount = Size;
|
|
8005b18: 68fb ldr r3, [r7, #12]
|
|
8005b1a: 88fa ldrh r2, [r7, #6]
|
|
8005b1c: 85da strh r2, [r3, #46] @ 0x2e
|
|
|
|
/* In case of 9bits/No Parity transfer, pRxData needs to be handled as a uint16_t pointer */
|
|
if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
|
|
8005b1e: 68fb ldr r3, [r7, #12]
|
|
8005b20: 689b ldr r3, [r3, #8]
|
|
8005b22: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
|
|
8005b26: d108 bne.n 8005b3a <HAL_UART_Receive+0x74>
|
|
8005b28: 68fb ldr r3, [r7, #12]
|
|
8005b2a: 691b ldr r3, [r3, #16]
|
|
8005b2c: 2b00 cmp r3, #0
|
|
8005b2e: d104 bne.n 8005b3a <HAL_UART_Receive+0x74>
|
|
{
|
|
pdata8bits = NULL;
|
|
8005b30: 2300 movs r3, #0
|
|
8005b32: 61fb str r3, [r7, #28]
|
|
pdata16bits = (uint16_t *) pData;
|
|
8005b34: 68bb ldr r3, [r7, #8]
|
|
8005b36: 61bb str r3, [r7, #24]
|
|
8005b38: e003 b.n 8005b42 <HAL_UART_Receive+0x7c>
|
|
}
|
|
else
|
|
{
|
|
pdata8bits = pData;
|
|
8005b3a: 68bb ldr r3, [r7, #8]
|
|
8005b3c: 61fb str r3, [r7, #28]
|
|
pdata16bits = NULL;
|
|
8005b3e: 2300 movs r3, #0
|
|
8005b40: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
/* Check the remain data to be received */
|
|
while (huart->RxXferCount > 0U)
|
|
8005b42: e047 b.n 8005bd4 <HAL_UART_Receive+0x10e>
|
|
{
|
|
if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_RXNE, RESET, tickstart, Timeout) != HAL_OK)
|
|
8005b44: 683b ldr r3, [r7, #0]
|
|
8005b46: 9300 str r3, [sp, #0]
|
|
8005b48: 697b ldr r3, [r7, #20]
|
|
8005b4a: 2200 movs r2, #0
|
|
8005b4c: 2120 movs r1, #32
|
|
8005b4e: 68f8 ldr r0, [r7, #12]
|
|
8005b50: f000 f850 bl 8005bf4 <UART_WaitOnFlagUntilTimeout>
|
|
8005b54: 4603 mov r3, r0
|
|
8005b56: 2b00 cmp r3, #0
|
|
8005b58: d005 beq.n 8005b66 <HAL_UART_Receive+0xa0>
|
|
{
|
|
huart->RxState = HAL_UART_STATE_READY;
|
|
8005b5a: 68fb ldr r3, [r7, #12]
|
|
8005b5c: 2220 movs r2, #32
|
|
8005b5e: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
|
|
return HAL_TIMEOUT;
|
|
8005b62: 2303 movs r3, #3
|
|
8005b64: e042 b.n 8005bec <HAL_UART_Receive+0x126>
|
|
}
|
|
if (pdata8bits == NULL)
|
|
8005b66: 69fb ldr r3, [r7, #28]
|
|
8005b68: 2b00 cmp r3, #0
|
|
8005b6a: d10c bne.n 8005b86 <HAL_UART_Receive+0xc0>
|
|
{
|
|
*pdata16bits = (uint16_t)(huart->Instance->DR & 0x01FF);
|
|
8005b6c: 68fb ldr r3, [r7, #12]
|
|
8005b6e: 681b ldr r3, [r3, #0]
|
|
8005b70: 685b ldr r3, [r3, #4]
|
|
8005b72: b29b uxth r3, r3
|
|
8005b74: f3c3 0308 ubfx r3, r3, #0, #9
|
|
8005b78: b29a uxth r2, r3
|
|
8005b7a: 69bb ldr r3, [r7, #24]
|
|
8005b7c: 801a strh r2, [r3, #0]
|
|
pdata16bits++;
|
|
8005b7e: 69bb ldr r3, [r7, #24]
|
|
8005b80: 3302 adds r3, #2
|
|
8005b82: 61bb str r3, [r7, #24]
|
|
8005b84: e01f b.n 8005bc6 <HAL_UART_Receive+0x100>
|
|
}
|
|
else
|
|
{
|
|
if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE)))
|
|
8005b86: 68fb ldr r3, [r7, #12]
|
|
8005b88: 689b ldr r3, [r3, #8]
|
|
8005b8a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
|
|
8005b8e: d007 beq.n 8005ba0 <HAL_UART_Receive+0xda>
|
|
8005b90: 68fb ldr r3, [r7, #12]
|
|
8005b92: 689b ldr r3, [r3, #8]
|
|
8005b94: 2b00 cmp r3, #0
|
|
8005b96: d10a bne.n 8005bae <HAL_UART_Receive+0xe8>
|
|
8005b98: 68fb ldr r3, [r7, #12]
|
|
8005b9a: 691b ldr r3, [r3, #16]
|
|
8005b9c: 2b00 cmp r3, #0
|
|
8005b9e: d106 bne.n 8005bae <HAL_UART_Receive+0xe8>
|
|
{
|
|
*pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF);
|
|
8005ba0: 68fb ldr r3, [r7, #12]
|
|
8005ba2: 681b ldr r3, [r3, #0]
|
|
8005ba4: 685b ldr r3, [r3, #4]
|
|
8005ba6: b2da uxtb r2, r3
|
|
8005ba8: 69fb ldr r3, [r7, #28]
|
|
8005baa: 701a strb r2, [r3, #0]
|
|
8005bac: e008 b.n 8005bc0 <HAL_UART_Receive+0xfa>
|
|
}
|
|
else
|
|
{
|
|
*pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F);
|
|
8005bae: 68fb ldr r3, [r7, #12]
|
|
8005bb0: 681b ldr r3, [r3, #0]
|
|
8005bb2: 685b ldr r3, [r3, #4]
|
|
8005bb4: b2db uxtb r3, r3
|
|
8005bb6: f003 037f and.w r3, r3, #127 @ 0x7f
|
|
8005bba: b2da uxtb r2, r3
|
|
8005bbc: 69fb ldr r3, [r7, #28]
|
|
8005bbe: 701a strb r2, [r3, #0]
|
|
}
|
|
pdata8bits++;
|
|
8005bc0: 69fb ldr r3, [r7, #28]
|
|
8005bc2: 3301 adds r3, #1
|
|
8005bc4: 61fb str r3, [r7, #28]
|
|
}
|
|
huart->RxXferCount--;
|
|
8005bc6: 68fb ldr r3, [r7, #12]
|
|
8005bc8: 8ddb ldrh r3, [r3, #46] @ 0x2e
|
|
8005bca: b29b uxth r3, r3
|
|
8005bcc: 3b01 subs r3, #1
|
|
8005bce: b29a uxth r2, r3
|
|
8005bd0: 68fb ldr r3, [r7, #12]
|
|
8005bd2: 85da strh r2, [r3, #46] @ 0x2e
|
|
while (huart->RxXferCount > 0U)
|
|
8005bd4: 68fb ldr r3, [r7, #12]
|
|
8005bd6: 8ddb ldrh r3, [r3, #46] @ 0x2e
|
|
8005bd8: b29b uxth r3, r3
|
|
8005bda: 2b00 cmp r3, #0
|
|
8005bdc: d1b2 bne.n 8005b44 <HAL_UART_Receive+0x7e>
|
|
}
|
|
|
|
/* At end of Rx process, restore huart->RxState to Ready */
|
|
huart->RxState = HAL_UART_STATE_READY;
|
|
8005bde: 68fb ldr r3, [r7, #12]
|
|
8005be0: 2220 movs r2, #32
|
|
8005be2: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
|
|
return HAL_OK;
|
|
8005be6: 2300 movs r3, #0
|
|
8005be8: e000 b.n 8005bec <HAL_UART_Receive+0x126>
|
|
}
|
|
else
|
|
{
|
|
return HAL_BUSY;
|
|
8005bea: 2302 movs r3, #2
|
|
}
|
|
}
|
|
8005bec: 4618 mov r0, r3
|
|
8005bee: 3720 adds r7, #32
|
|
8005bf0: 46bd mov sp, r7
|
|
8005bf2: bd80 pop {r7, pc}
|
|
|
|
08005bf4 <UART_WaitOnFlagUntilTimeout>:
|
|
* @param Timeout Timeout duration
|
|
* @retval HAL status
|
|
*/
|
|
static HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
|
|
uint32_t Tickstart, uint32_t Timeout)
|
|
{
|
|
8005bf4: b580 push {r7, lr}
|
|
8005bf6: b086 sub sp, #24
|
|
8005bf8: af00 add r7, sp, #0
|
|
8005bfa: 60f8 str r0, [r7, #12]
|
|
8005bfc: 60b9 str r1, [r7, #8]
|
|
8005bfe: 603b str r3, [r7, #0]
|
|
8005c00: 4613 mov r3, r2
|
|
8005c02: 71fb strb r3, [r7, #7]
|
|
/* Wait until flag is set */
|
|
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
|
|
8005c04: e03b b.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
{
|
|
/* Check for the Timeout */
|
|
if (Timeout != HAL_MAX_DELAY)
|
|
8005c06: 6a3b ldr r3, [r7, #32]
|
|
8005c08: f1b3 3fff cmp.w r3, #4294967295
|
|
8005c0c: d037 beq.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
{
|
|
if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
|
|
8005c0e: f7fe f893 bl 8003d38 <HAL_GetTick>
|
|
8005c12: 4602 mov r2, r0
|
|
8005c14: 683b ldr r3, [r7, #0]
|
|
8005c16: 1ad3 subs r3, r2, r3
|
|
8005c18: 6a3a ldr r2, [r7, #32]
|
|
8005c1a: 429a cmp r2, r3
|
|
8005c1c: d302 bcc.n 8005c24 <UART_WaitOnFlagUntilTimeout+0x30>
|
|
8005c1e: 6a3b ldr r3, [r7, #32]
|
|
8005c20: 2b00 cmp r3, #0
|
|
8005c22: d101 bne.n 8005c28 <UART_WaitOnFlagUntilTimeout+0x34>
|
|
{
|
|
|
|
return HAL_TIMEOUT;
|
|
8005c24: 2303 movs r3, #3
|
|
8005c26: e03a b.n 8005c9e <UART_WaitOnFlagUntilTimeout+0xaa>
|
|
}
|
|
|
|
if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
|
|
8005c28: 68fb ldr r3, [r7, #12]
|
|
8005c2a: 681b ldr r3, [r3, #0]
|
|
8005c2c: 68db ldr r3, [r3, #12]
|
|
8005c2e: f003 0304 and.w r3, r3, #4
|
|
8005c32: 2b00 cmp r3, #0
|
|
8005c34: d023 beq.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
8005c36: 68bb ldr r3, [r7, #8]
|
|
8005c38: 2b80 cmp r3, #128 @ 0x80
|
|
8005c3a: d020 beq.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
8005c3c: 68bb ldr r3, [r7, #8]
|
|
8005c3e: 2b40 cmp r3, #64 @ 0x40
|
|
8005c40: d01d beq.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
{
|
|
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
|
|
8005c42: 68fb ldr r3, [r7, #12]
|
|
8005c44: 681b ldr r3, [r3, #0]
|
|
8005c46: 681b ldr r3, [r3, #0]
|
|
8005c48: f003 0308 and.w r3, r3, #8
|
|
8005c4c: 2b08 cmp r3, #8
|
|
8005c4e: d116 bne.n 8005c7e <UART_WaitOnFlagUntilTimeout+0x8a>
|
|
{
|
|
/* Clear Overrun Error flag*/
|
|
__HAL_UART_CLEAR_OREFLAG(huart);
|
|
8005c50: 2300 movs r3, #0
|
|
8005c52: 617b str r3, [r7, #20]
|
|
8005c54: 68fb ldr r3, [r7, #12]
|
|
8005c56: 681b ldr r3, [r3, #0]
|
|
8005c58: 681b ldr r3, [r3, #0]
|
|
8005c5a: 617b str r3, [r7, #20]
|
|
8005c5c: 68fb ldr r3, [r7, #12]
|
|
8005c5e: 681b ldr r3, [r3, #0]
|
|
8005c60: 685b ldr r3, [r3, #4]
|
|
8005c62: 617b str r3, [r7, #20]
|
|
8005c64: 697b ldr r3, [r7, #20]
|
|
|
|
/* Blocking error : transfer is aborted
|
|
Set the UART state ready to be able to start again the process,
|
|
Disable Rx Interrupts if ongoing */
|
|
UART_EndRxTransfer(huart);
|
|
8005c66: 68f8 ldr r0, [r7, #12]
|
|
8005c68: f000 f81d bl 8005ca6 <UART_EndRxTransfer>
|
|
|
|
huart->ErrorCode = HAL_UART_ERROR_ORE;
|
|
8005c6c: 68fb ldr r3, [r7, #12]
|
|
8005c6e: 2208 movs r2, #8
|
|
8005c70: 645a str r2, [r3, #68] @ 0x44
|
|
|
|
/* Process Unlocked */
|
|
__HAL_UNLOCK(huart);
|
|
8005c72: 68fb ldr r3, [r7, #12]
|
|
8005c74: 2200 movs r2, #0
|
|
8005c76: f883 2040 strb.w r2, [r3, #64] @ 0x40
|
|
|
|
return HAL_ERROR;
|
|
8005c7a: 2301 movs r3, #1
|
|
8005c7c: e00f b.n 8005c9e <UART_WaitOnFlagUntilTimeout+0xaa>
|
|
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
|
|
8005c7e: 68fb ldr r3, [r7, #12]
|
|
8005c80: 681b ldr r3, [r3, #0]
|
|
8005c82: 681a ldr r2, [r3, #0]
|
|
8005c84: 68bb ldr r3, [r7, #8]
|
|
8005c86: 4013 ands r3, r2
|
|
8005c88: 68ba ldr r2, [r7, #8]
|
|
8005c8a: 429a cmp r2, r3
|
|
8005c8c: bf0c ite eq
|
|
8005c8e: 2301 moveq r3, #1
|
|
8005c90: 2300 movne r3, #0
|
|
8005c92: b2db uxtb r3, r3
|
|
8005c94: 461a mov r2, r3
|
|
8005c96: 79fb ldrb r3, [r7, #7]
|
|
8005c98: 429a cmp r2, r3
|
|
8005c9a: d0b4 beq.n 8005c06 <UART_WaitOnFlagUntilTimeout+0x12>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return HAL_OK;
|
|
8005c9c: 2300 movs r3, #0
|
|
}
|
|
8005c9e: 4618 mov r0, r3
|
|
8005ca0: 3718 adds r7, #24
|
|
8005ca2: 46bd mov sp, r7
|
|
8005ca4: bd80 pop {r7, pc}
|
|
|
|
08005ca6 <UART_EndRxTransfer>:
|
|
* @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
|
|
* @param huart UART handle.
|
|
* @retval None
|
|
*/
|
|
static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
|
|
{
|
|
8005ca6: b480 push {r7}
|
|
8005ca8: b095 sub sp, #84 @ 0x54
|
|
8005caa: af00 add r7, sp, #0
|
|
8005cac: 6078 str r0, [r7, #4]
|
|
/* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
|
|
ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
|
|
8005cae: 687b ldr r3, [r7, #4]
|
|
8005cb0: 681b ldr r3, [r3, #0]
|
|
8005cb2: 330c adds r3, #12
|
|
8005cb4: 637b str r3, [r7, #52] @ 0x34
|
|
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
|
|
8005cb6: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
8005cb8: e853 3f00 ldrex r3, [r3]
|
|
8005cbc: 633b str r3, [r7, #48] @ 0x30
|
|
return(result);
|
|
8005cbe: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
8005cc0: f423 7390 bic.w r3, r3, #288 @ 0x120
|
|
8005cc4: 64fb str r3, [r7, #76] @ 0x4c
|
|
8005cc6: 687b ldr r3, [r7, #4]
|
|
8005cc8: 681b ldr r3, [r3, #0]
|
|
8005cca: 330c adds r3, #12
|
|
8005ccc: 6cfa ldr r2, [r7, #76] @ 0x4c
|
|
8005cce: 643a str r2, [r7, #64] @ 0x40
|
|
8005cd0: 63fb str r3, [r7, #60] @ 0x3c
|
|
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
|
|
8005cd2: 6bf9 ldr r1, [r7, #60] @ 0x3c
|
|
8005cd4: 6c3a ldr r2, [r7, #64] @ 0x40
|
|
8005cd6: e841 2300 strex r3, r2, [r1]
|
|
8005cda: 63bb str r3, [r7, #56] @ 0x38
|
|
return(result);
|
|
8005cdc: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
8005cde: 2b00 cmp r3, #0
|
|
8005ce0: d1e5 bne.n 8005cae <UART_EndRxTransfer+0x8>
|
|
ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
|
|
8005ce2: 687b ldr r3, [r7, #4]
|
|
8005ce4: 681b ldr r3, [r3, #0]
|
|
8005ce6: 3314 adds r3, #20
|
|
8005ce8: 623b str r3, [r7, #32]
|
|
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
|
|
8005cea: 6a3b ldr r3, [r7, #32]
|
|
8005cec: e853 3f00 ldrex r3, [r3]
|
|
8005cf0: 61fb str r3, [r7, #28]
|
|
return(result);
|
|
8005cf2: 69fb ldr r3, [r7, #28]
|
|
8005cf4: f023 0301 bic.w r3, r3, #1
|
|
8005cf8: 64bb str r3, [r7, #72] @ 0x48
|
|
8005cfa: 687b ldr r3, [r7, #4]
|
|
8005cfc: 681b ldr r3, [r3, #0]
|
|
8005cfe: 3314 adds r3, #20
|
|
8005d00: 6cba ldr r2, [r7, #72] @ 0x48
|
|
8005d02: 62fa str r2, [r7, #44] @ 0x2c
|
|
8005d04: 62bb str r3, [r7, #40] @ 0x28
|
|
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
|
|
8005d06: 6ab9 ldr r1, [r7, #40] @ 0x28
|
|
8005d08: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
8005d0a: e841 2300 strex r3, r2, [r1]
|
|
8005d0e: 627b str r3, [r7, #36] @ 0x24
|
|
return(result);
|
|
8005d10: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
8005d12: 2b00 cmp r3, #0
|
|
8005d14: d1e5 bne.n 8005ce2 <UART_EndRxTransfer+0x3c>
|
|
|
|
/* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
|
|
if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
|
|
8005d16: 687b ldr r3, [r7, #4]
|
|
8005d18: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
8005d1a: 2b01 cmp r3, #1
|
|
8005d1c: d119 bne.n 8005d52 <UART_EndRxTransfer+0xac>
|
|
{
|
|
ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
|
|
8005d1e: 687b ldr r3, [r7, #4]
|
|
8005d20: 681b ldr r3, [r3, #0]
|
|
8005d22: 330c adds r3, #12
|
|
8005d24: 60fb str r3, [r7, #12]
|
|
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
|
|
8005d26: 68fb ldr r3, [r7, #12]
|
|
8005d28: e853 3f00 ldrex r3, [r3]
|
|
8005d2c: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
8005d2e: 68bb ldr r3, [r7, #8]
|
|
8005d30: f023 0310 bic.w r3, r3, #16
|
|
8005d34: 647b str r3, [r7, #68] @ 0x44
|
|
8005d36: 687b ldr r3, [r7, #4]
|
|
8005d38: 681b ldr r3, [r3, #0]
|
|
8005d3a: 330c adds r3, #12
|
|
8005d3c: 6c7a ldr r2, [r7, #68] @ 0x44
|
|
8005d3e: 61ba str r2, [r7, #24]
|
|
8005d40: 617b str r3, [r7, #20]
|
|
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
|
|
8005d42: 6979 ldr r1, [r7, #20]
|
|
8005d44: 69ba ldr r2, [r7, #24]
|
|
8005d46: e841 2300 strex r3, r2, [r1]
|
|
8005d4a: 613b str r3, [r7, #16]
|
|
return(result);
|
|
8005d4c: 693b ldr r3, [r7, #16]
|
|
8005d4e: 2b00 cmp r3, #0
|
|
8005d50: d1e5 bne.n 8005d1e <UART_EndRxTransfer+0x78>
|
|
}
|
|
|
|
/* At end of Rx process, restore huart->RxState to Ready */
|
|
huart->RxState = HAL_UART_STATE_READY;
|
|
8005d52: 687b ldr r3, [r7, #4]
|
|
8005d54: 2220 movs r2, #32
|
|
8005d56: f883 2042 strb.w r2, [r3, #66] @ 0x42
|
|
huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
|
|
8005d5a: 687b ldr r3, [r7, #4]
|
|
8005d5c: 2200 movs r2, #0
|
|
8005d5e: 631a str r2, [r3, #48] @ 0x30
|
|
}
|
|
8005d60: bf00 nop
|
|
8005d62: 3754 adds r7, #84 @ 0x54
|
|
8005d64: 46bd mov sp, r7
|
|
8005d66: f85d 7b04 ldr.w r7, [sp], #4
|
|
8005d6a: 4770 bx lr
|
|
|
|
08005d6c <UART_SetConfig>:
|
|
* @param huart Pointer to a UART_HandleTypeDef structure that contains
|
|
* the configuration information for the specified UART module.
|
|
* @retval None
|
|
*/
|
|
static void UART_SetConfig(UART_HandleTypeDef *huart)
|
|
{
|
|
8005d6c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
|
|
8005d70: b0c0 sub sp, #256 @ 0x100
|
|
8005d72: af00 add r7, sp, #0
|
|
8005d74: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4
|
|
assert_param(IS_UART_MODE(huart->Init.Mode));
|
|
|
|
/*-------------------------- USART CR2 Configuration -----------------------*/
|
|
/* Configure the UART Stop Bits: Set STOP[13:12] bits
|
|
according to huart->Init.StopBits value */
|
|
MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits);
|
|
8005d78: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005d7c: 681b ldr r3, [r3, #0]
|
|
8005d7e: 691b ldr r3, [r3, #16]
|
|
8005d80: f423 5040 bic.w r0, r3, #12288 @ 0x3000
|
|
8005d84: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005d88: 68d9 ldr r1, [r3, #12]
|
|
8005d8a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005d8e: 681a ldr r2, [r3, #0]
|
|
8005d90: ea40 0301 orr.w r3, r0, r1
|
|
8005d94: 6113 str r3, [r2, #16]
|
|
Set the M bits according to huart->Init.WordLength value
|
|
Set PCE and PS bits according to huart->Init.Parity value
|
|
Set TE and RE bits according to huart->Init.Mode value
|
|
Set OVER8 bit according to huart->Init.OverSampling value */
|
|
|
|
tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling;
|
|
8005d96: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005d9a: 689a ldr r2, [r3, #8]
|
|
8005d9c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005da0: 691b ldr r3, [r3, #16]
|
|
8005da2: 431a orrs r2, r3
|
|
8005da4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005da8: 695b ldr r3, [r3, #20]
|
|
8005daa: 431a orrs r2, r3
|
|
8005dac: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005db0: 69db ldr r3, [r3, #28]
|
|
8005db2: 4313 orrs r3, r2
|
|
8005db4: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
|
|
MODIFY_REG(huart->Instance->CR1,
|
|
8005db8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005dbc: 681b ldr r3, [r3, #0]
|
|
8005dbe: 68db ldr r3, [r3, #12]
|
|
8005dc0: f423 4116 bic.w r1, r3, #38400 @ 0x9600
|
|
8005dc4: f021 010c bic.w r1, r1, #12
|
|
8005dc8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005dcc: 681a ldr r2, [r3, #0]
|
|
8005dce: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8
|
|
8005dd2: 430b orrs r3, r1
|
|
8005dd4: 60d3 str r3, [r2, #12]
|
|
(uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8),
|
|
tmpreg);
|
|
|
|
/*-------------------------- USART CR3 Configuration -----------------------*/
|
|
/* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */
|
|
MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl);
|
|
8005dd6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005dda: 681b ldr r3, [r3, #0]
|
|
8005ddc: 695b ldr r3, [r3, #20]
|
|
8005dde: f423 7040 bic.w r0, r3, #768 @ 0x300
|
|
8005de2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005de6: 6999 ldr r1, [r3, #24]
|
|
8005de8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005dec: 681a ldr r2, [r3, #0]
|
|
8005dee: ea40 0301 orr.w r3, r0, r1
|
|
8005df2: 6153 str r3, [r2, #20]
|
|
if ((huart->Instance == USART1) || (huart->Instance == USART6) || (huart->Instance == UART9) || (huart->Instance == UART10))
|
|
{
|
|
pclk = HAL_RCC_GetPCLK2Freq();
|
|
}
|
|
#elif defined(USART6)
|
|
if ((huart->Instance == USART1) || (huart->Instance == USART6))
|
|
8005df4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005df8: 681a ldr r2, [r3, #0]
|
|
8005dfa: 4b8f ldr r3, [pc, #572] @ (8006038 <UART_SetConfig+0x2cc>)
|
|
8005dfc: 429a cmp r2, r3
|
|
8005dfe: d005 beq.n 8005e0c <UART_SetConfig+0xa0>
|
|
8005e00: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005e04: 681a ldr r2, [r3, #0]
|
|
8005e06: 4b8d ldr r3, [pc, #564] @ (800603c <UART_SetConfig+0x2d0>)
|
|
8005e08: 429a cmp r2, r3
|
|
8005e0a: d104 bne.n 8005e16 <UART_SetConfig+0xaa>
|
|
{
|
|
pclk = HAL_RCC_GetPCLK2Freq();
|
|
8005e0c: f7ff fa98 bl 8005340 <HAL_RCC_GetPCLK2Freq>
|
|
8005e10: f8c7 00fc str.w r0, [r7, #252] @ 0xfc
|
|
8005e14: e003 b.n 8005e1e <UART_SetConfig+0xb2>
|
|
pclk = HAL_RCC_GetPCLK2Freq();
|
|
}
|
|
#endif /* USART6 */
|
|
else
|
|
{
|
|
pclk = HAL_RCC_GetPCLK1Freq();
|
|
8005e16: f7ff fa7f bl 8005318 <HAL_RCC_GetPCLK1Freq>
|
|
8005e1a: f8c7 00fc str.w r0, [r7, #252] @ 0xfc
|
|
}
|
|
/*-------------------------- USART BRR Configuration ---------------------*/
|
|
if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
|
|
8005e1e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005e22: 69db ldr r3, [r3, #28]
|
|
8005e24: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
|
|
8005e28: f040 810c bne.w 8006044 <UART_SetConfig+0x2d8>
|
|
{
|
|
huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
|
|
8005e2c: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
8005e30: 2200 movs r2, #0
|
|
8005e32: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
|
|
8005e36: f8c7 20ec str.w r2, [r7, #236] @ 0xec
|
|
8005e3a: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8
|
|
8005e3e: 4622 mov r2, r4
|
|
8005e40: 462b mov r3, r5
|
|
8005e42: 1891 adds r1, r2, r2
|
|
8005e44: 65b9 str r1, [r7, #88] @ 0x58
|
|
8005e46: 415b adcs r3, r3
|
|
8005e48: 65fb str r3, [r7, #92] @ 0x5c
|
|
8005e4a: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58
|
|
8005e4e: 4621 mov r1, r4
|
|
8005e50: eb12 0801 adds.w r8, r2, r1
|
|
8005e54: 4629 mov r1, r5
|
|
8005e56: eb43 0901 adc.w r9, r3, r1
|
|
8005e5a: f04f 0200 mov.w r2, #0
|
|
8005e5e: f04f 0300 mov.w r3, #0
|
|
8005e62: ea4f 03c9 mov.w r3, r9, lsl #3
|
|
8005e66: ea43 7358 orr.w r3, r3, r8, lsr #29
|
|
8005e6a: ea4f 02c8 mov.w r2, r8, lsl #3
|
|
8005e6e: 4690 mov r8, r2
|
|
8005e70: 4699 mov r9, r3
|
|
8005e72: 4623 mov r3, r4
|
|
8005e74: eb18 0303 adds.w r3, r8, r3
|
|
8005e78: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
|
|
8005e7c: 462b mov r3, r5
|
|
8005e7e: eb49 0303 adc.w r3, r9, r3
|
|
8005e82: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
|
|
8005e86: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005e8a: 685b ldr r3, [r3, #4]
|
|
8005e8c: 2200 movs r2, #0
|
|
8005e8e: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
|
|
8005e92: f8c7 20dc str.w r2, [r7, #220] @ 0xdc
|
|
8005e96: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
|
|
8005e9a: 460b mov r3, r1
|
|
8005e9c: 18db adds r3, r3, r3
|
|
8005e9e: 653b str r3, [r7, #80] @ 0x50
|
|
8005ea0: 4613 mov r3, r2
|
|
8005ea2: eb42 0303 adc.w r3, r2, r3
|
|
8005ea6: 657b str r3, [r7, #84] @ 0x54
|
|
8005ea8: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50
|
|
8005eac: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0
|
|
8005eb0: f7fa fe8a bl 8000bc8 <__aeabi_uldivmod>
|
|
8005eb4: 4602 mov r2, r0
|
|
8005eb6: 460b mov r3, r1
|
|
8005eb8: 4b61 ldr r3, [pc, #388] @ (8006040 <UART_SetConfig+0x2d4>)
|
|
8005eba: fba3 2302 umull r2, r3, r3, r2
|
|
8005ebe: 095b lsrs r3, r3, #5
|
|
8005ec0: 011c lsls r4, r3, #4
|
|
8005ec2: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
8005ec6: 2200 movs r2, #0
|
|
8005ec8: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
|
|
8005ecc: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4
|
|
8005ed0: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0
|
|
8005ed4: 4642 mov r2, r8
|
|
8005ed6: 464b mov r3, r9
|
|
8005ed8: 1891 adds r1, r2, r2
|
|
8005eda: 64b9 str r1, [r7, #72] @ 0x48
|
|
8005edc: 415b adcs r3, r3
|
|
8005ede: 64fb str r3, [r7, #76] @ 0x4c
|
|
8005ee0: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48
|
|
8005ee4: 4641 mov r1, r8
|
|
8005ee6: eb12 0a01 adds.w sl, r2, r1
|
|
8005eea: 4649 mov r1, r9
|
|
8005eec: eb43 0b01 adc.w fp, r3, r1
|
|
8005ef0: f04f 0200 mov.w r2, #0
|
|
8005ef4: f04f 0300 mov.w r3, #0
|
|
8005ef8: ea4f 03cb mov.w r3, fp, lsl #3
|
|
8005efc: ea43 735a orr.w r3, r3, sl, lsr #29
|
|
8005f00: ea4f 02ca mov.w r2, sl, lsl #3
|
|
8005f04: 4692 mov sl, r2
|
|
8005f06: 469b mov fp, r3
|
|
8005f08: 4643 mov r3, r8
|
|
8005f0a: eb1a 0303 adds.w r3, sl, r3
|
|
8005f0e: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
|
|
8005f12: 464b mov r3, r9
|
|
8005f14: eb4b 0303 adc.w r3, fp, r3
|
|
8005f18: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
|
|
8005f1c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005f20: 685b ldr r3, [r3, #4]
|
|
8005f22: 2200 movs r2, #0
|
|
8005f24: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
|
|
8005f28: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4
|
|
8005f2c: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
|
|
8005f30: 460b mov r3, r1
|
|
8005f32: 18db adds r3, r3, r3
|
|
8005f34: 643b str r3, [r7, #64] @ 0x40
|
|
8005f36: 4613 mov r3, r2
|
|
8005f38: eb42 0303 adc.w r3, r2, r3
|
|
8005f3c: 647b str r3, [r7, #68] @ 0x44
|
|
8005f3e: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40
|
|
8005f42: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8
|
|
8005f46: f7fa fe3f bl 8000bc8 <__aeabi_uldivmod>
|
|
8005f4a: 4602 mov r2, r0
|
|
8005f4c: 460b mov r3, r1
|
|
8005f4e: 4611 mov r1, r2
|
|
8005f50: 4b3b ldr r3, [pc, #236] @ (8006040 <UART_SetConfig+0x2d4>)
|
|
8005f52: fba3 2301 umull r2, r3, r3, r1
|
|
8005f56: 095b lsrs r3, r3, #5
|
|
8005f58: 2264 movs r2, #100 @ 0x64
|
|
8005f5a: fb02 f303 mul.w r3, r2, r3
|
|
8005f5e: 1acb subs r3, r1, r3
|
|
8005f60: 00db lsls r3, r3, #3
|
|
8005f62: f103 0232 add.w r2, r3, #50 @ 0x32
|
|
8005f66: 4b36 ldr r3, [pc, #216] @ (8006040 <UART_SetConfig+0x2d4>)
|
|
8005f68: fba3 2302 umull r2, r3, r3, r2
|
|
8005f6c: 095b lsrs r3, r3, #5
|
|
8005f6e: 005b lsls r3, r3, #1
|
|
8005f70: f403 73f8 and.w r3, r3, #496 @ 0x1f0
|
|
8005f74: 441c add r4, r3
|
|
8005f76: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
8005f7a: 2200 movs r2, #0
|
|
8005f7c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
|
|
8005f80: f8c7 20bc str.w r2, [r7, #188] @ 0xbc
|
|
8005f84: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8
|
|
8005f88: 4642 mov r2, r8
|
|
8005f8a: 464b mov r3, r9
|
|
8005f8c: 1891 adds r1, r2, r2
|
|
8005f8e: 63b9 str r1, [r7, #56] @ 0x38
|
|
8005f90: 415b adcs r3, r3
|
|
8005f92: 63fb str r3, [r7, #60] @ 0x3c
|
|
8005f94: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38
|
|
8005f98: 4641 mov r1, r8
|
|
8005f9a: 1851 adds r1, r2, r1
|
|
8005f9c: 6339 str r1, [r7, #48] @ 0x30
|
|
8005f9e: 4649 mov r1, r9
|
|
8005fa0: 414b adcs r3, r1
|
|
8005fa2: 637b str r3, [r7, #52] @ 0x34
|
|
8005fa4: f04f 0200 mov.w r2, #0
|
|
8005fa8: f04f 0300 mov.w r3, #0
|
|
8005fac: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30
|
|
8005fb0: 4659 mov r1, fp
|
|
8005fb2: 00cb lsls r3, r1, #3
|
|
8005fb4: 4651 mov r1, sl
|
|
8005fb6: ea43 7351 orr.w r3, r3, r1, lsr #29
|
|
8005fba: 4651 mov r1, sl
|
|
8005fbc: 00ca lsls r2, r1, #3
|
|
8005fbe: 4610 mov r0, r2
|
|
8005fc0: 4619 mov r1, r3
|
|
8005fc2: 4603 mov r3, r0
|
|
8005fc4: 4642 mov r2, r8
|
|
8005fc6: 189b adds r3, r3, r2
|
|
8005fc8: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
|
|
8005fcc: 464b mov r3, r9
|
|
8005fce: 460a mov r2, r1
|
|
8005fd0: eb42 0303 adc.w r3, r2, r3
|
|
8005fd4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
|
|
8005fd8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
8005fdc: 685b ldr r3, [r3, #4]
|
|
8005fde: 2200 movs r2, #0
|
|
8005fe0: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
|
|
8005fe4: f8c7 20ac str.w r2, [r7, #172] @ 0xac
|
|
8005fe8: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
|
|
8005fec: 460b mov r3, r1
|
|
8005fee: 18db adds r3, r3, r3
|
|
8005ff0: 62bb str r3, [r7, #40] @ 0x28
|
|
8005ff2: 4613 mov r3, r2
|
|
8005ff4: eb42 0303 adc.w r3, r2, r3
|
|
8005ff8: 62fb str r3, [r7, #44] @ 0x2c
|
|
8005ffa: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28
|
|
8005ffe: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0
|
|
8006002: f7fa fde1 bl 8000bc8 <__aeabi_uldivmod>
|
|
8006006: 4602 mov r2, r0
|
|
8006008: 460b mov r3, r1
|
|
800600a: 4b0d ldr r3, [pc, #52] @ (8006040 <UART_SetConfig+0x2d4>)
|
|
800600c: fba3 1302 umull r1, r3, r3, r2
|
|
8006010: 095b lsrs r3, r3, #5
|
|
8006012: 2164 movs r1, #100 @ 0x64
|
|
8006014: fb01 f303 mul.w r3, r1, r3
|
|
8006018: 1ad3 subs r3, r2, r3
|
|
800601a: 00db lsls r3, r3, #3
|
|
800601c: 3332 adds r3, #50 @ 0x32
|
|
800601e: 4a08 ldr r2, [pc, #32] @ (8006040 <UART_SetConfig+0x2d4>)
|
|
8006020: fba2 2303 umull r2, r3, r2, r3
|
|
8006024: 095b lsrs r3, r3, #5
|
|
8006026: f003 0207 and.w r2, r3, #7
|
|
800602a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
800602e: 681b ldr r3, [r3, #0]
|
|
8006030: 4422 add r2, r4
|
|
8006032: 609a str r2, [r3, #8]
|
|
}
|
|
else
|
|
{
|
|
huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
|
|
}
|
|
}
|
|
8006034: e106 b.n 8006244 <UART_SetConfig+0x4d8>
|
|
8006036: bf00 nop
|
|
8006038: 40011000 .word 0x40011000
|
|
800603c: 40011400 .word 0x40011400
|
|
8006040: 51eb851f .word 0x51eb851f
|
|
huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
|
|
8006044: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
8006048: 2200 movs r2, #0
|
|
800604a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
|
|
800604e: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4
|
|
8006052: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0
|
|
8006056: 4642 mov r2, r8
|
|
8006058: 464b mov r3, r9
|
|
800605a: 1891 adds r1, r2, r2
|
|
800605c: 6239 str r1, [r7, #32]
|
|
800605e: 415b adcs r3, r3
|
|
8006060: 627b str r3, [r7, #36] @ 0x24
|
|
8006062: e9d7 2308 ldrd r2, r3, [r7, #32]
|
|
8006066: 4641 mov r1, r8
|
|
8006068: 1854 adds r4, r2, r1
|
|
800606a: 4649 mov r1, r9
|
|
800606c: eb43 0501 adc.w r5, r3, r1
|
|
8006070: f04f 0200 mov.w r2, #0
|
|
8006074: f04f 0300 mov.w r3, #0
|
|
8006078: 00eb lsls r3, r5, #3
|
|
800607a: ea43 7354 orr.w r3, r3, r4, lsr #29
|
|
800607e: 00e2 lsls r2, r4, #3
|
|
8006080: 4614 mov r4, r2
|
|
8006082: 461d mov r5, r3
|
|
8006084: 4643 mov r3, r8
|
|
8006086: 18e3 adds r3, r4, r3
|
|
8006088: f8c7 3098 str.w r3, [r7, #152] @ 0x98
|
|
800608c: 464b mov r3, r9
|
|
800608e: eb45 0303 adc.w r3, r5, r3
|
|
8006092: f8c7 309c str.w r3, [r7, #156] @ 0x9c
|
|
8006096: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
800609a: 685b ldr r3, [r3, #4]
|
|
800609c: 2200 movs r2, #0
|
|
800609e: f8c7 3090 str.w r3, [r7, #144] @ 0x90
|
|
80060a2: f8c7 2094 str.w r2, [r7, #148] @ 0x94
|
|
80060a6: f04f 0200 mov.w r2, #0
|
|
80060aa: f04f 0300 mov.w r3, #0
|
|
80060ae: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90
|
|
80060b2: 4629 mov r1, r5
|
|
80060b4: 008b lsls r3, r1, #2
|
|
80060b6: 4621 mov r1, r4
|
|
80060b8: ea43 7391 orr.w r3, r3, r1, lsr #30
|
|
80060bc: 4621 mov r1, r4
|
|
80060be: 008a lsls r2, r1, #2
|
|
80060c0: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98
|
|
80060c4: f7fa fd80 bl 8000bc8 <__aeabi_uldivmod>
|
|
80060c8: 4602 mov r2, r0
|
|
80060ca: 460b mov r3, r1
|
|
80060cc: 4b60 ldr r3, [pc, #384] @ (8006250 <UART_SetConfig+0x4e4>)
|
|
80060ce: fba3 2302 umull r2, r3, r3, r2
|
|
80060d2: 095b lsrs r3, r3, #5
|
|
80060d4: 011c lsls r4, r3, #4
|
|
80060d6: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
80060da: 2200 movs r2, #0
|
|
80060dc: f8c7 3088 str.w r3, [r7, #136] @ 0x88
|
|
80060e0: f8c7 208c str.w r2, [r7, #140] @ 0x8c
|
|
80060e4: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88
|
|
80060e8: 4642 mov r2, r8
|
|
80060ea: 464b mov r3, r9
|
|
80060ec: 1891 adds r1, r2, r2
|
|
80060ee: 61b9 str r1, [r7, #24]
|
|
80060f0: 415b adcs r3, r3
|
|
80060f2: 61fb str r3, [r7, #28]
|
|
80060f4: e9d7 2306 ldrd r2, r3, [r7, #24]
|
|
80060f8: 4641 mov r1, r8
|
|
80060fa: 1851 adds r1, r2, r1
|
|
80060fc: 6139 str r1, [r7, #16]
|
|
80060fe: 4649 mov r1, r9
|
|
8006100: 414b adcs r3, r1
|
|
8006102: 617b str r3, [r7, #20]
|
|
8006104: f04f 0200 mov.w r2, #0
|
|
8006108: f04f 0300 mov.w r3, #0
|
|
800610c: e9d7 ab04 ldrd sl, fp, [r7, #16]
|
|
8006110: 4659 mov r1, fp
|
|
8006112: 00cb lsls r3, r1, #3
|
|
8006114: 4651 mov r1, sl
|
|
8006116: ea43 7351 orr.w r3, r3, r1, lsr #29
|
|
800611a: 4651 mov r1, sl
|
|
800611c: 00ca lsls r2, r1, #3
|
|
800611e: 4610 mov r0, r2
|
|
8006120: 4619 mov r1, r3
|
|
8006122: 4603 mov r3, r0
|
|
8006124: 4642 mov r2, r8
|
|
8006126: 189b adds r3, r3, r2
|
|
8006128: f8c7 3080 str.w r3, [r7, #128] @ 0x80
|
|
800612c: 464b mov r3, r9
|
|
800612e: 460a mov r2, r1
|
|
8006130: eb42 0303 adc.w r3, r2, r3
|
|
8006134: f8c7 3084 str.w r3, [r7, #132] @ 0x84
|
|
8006138: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
800613c: 685b ldr r3, [r3, #4]
|
|
800613e: 2200 movs r2, #0
|
|
8006140: 67bb str r3, [r7, #120] @ 0x78
|
|
8006142: 67fa str r2, [r7, #124] @ 0x7c
|
|
8006144: f04f 0200 mov.w r2, #0
|
|
8006148: f04f 0300 mov.w r3, #0
|
|
800614c: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78
|
|
8006150: 4649 mov r1, r9
|
|
8006152: 008b lsls r3, r1, #2
|
|
8006154: 4641 mov r1, r8
|
|
8006156: ea43 7391 orr.w r3, r3, r1, lsr #30
|
|
800615a: 4641 mov r1, r8
|
|
800615c: 008a lsls r2, r1, #2
|
|
800615e: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80
|
|
8006162: f7fa fd31 bl 8000bc8 <__aeabi_uldivmod>
|
|
8006166: 4602 mov r2, r0
|
|
8006168: 460b mov r3, r1
|
|
800616a: 4611 mov r1, r2
|
|
800616c: 4b38 ldr r3, [pc, #224] @ (8006250 <UART_SetConfig+0x4e4>)
|
|
800616e: fba3 2301 umull r2, r3, r3, r1
|
|
8006172: 095b lsrs r3, r3, #5
|
|
8006174: 2264 movs r2, #100 @ 0x64
|
|
8006176: fb02 f303 mul.w r3, r2, r3
|
|
800617a: 1acb subs r3, r1, r3
|
|
800617c: 011b lsls r3, r3, #4
|
|
800617e: 3332 adds r3, #50 @ 0x32
|
|
8006180: 4a33 ldr r2, [pc, #204] @ (8006250 <UART_SetConfig+0x4e4>)
|
|
8006182: fba2 2303 umull r2, r3, r2, r3
|
|
8006186: 095b lsrs r3, r3, #5
|
|
8006188: f003 03f0 and.w r3, r3, #240 @ 0xf0
|
|
800618c: 441c add r4, r3
|
|
800618e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
|
|
8006192: 2200 movs r2, #0
|
|
8006194: 673b str r3, [r7, #112] @ 0x70
|
|
8006196: 677a str r2, [r7, #116] @ 0x74
|
|
8006198: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70
|
|
800619c: 4642 mov r2, r8
|
|
800619e: 464b mov r3, r9
|
|
80061a0: 1891 adds r1, r2, r2
|
|
80061a2: 60b9 str r1, [r7, #8]
|
|
80061a4: 415b adcs r3, r3
|
|
80061a6: 60fb str r3, [r7, #12]
|
|
80061a8: e9d7 2302 ldrd r2, r3, [r7, #8]
|
|
80061ac: 4641 mov r1, r8
|
|
80061ae: 1851 adds r1, r2, r1
|
|
80061b0: 6039 str r1, [r7, #0]
|
|
80061b2: 4649 mov r1, r9
|
|
80061b4: 414b adcs r3, r1
|
|
80061b6: 607b str r3, [r7, #4]
|
|
80061b8: f04f 0200 mov.w r2, #0
|
|
80061bc: f04f 0300 mov.w r3, #0
|
|
80061c0: e9d7 ab00 ldrd sl, fp, [r7]
|
|
80061c4: 4659 mov r1, fp
|
|
80061c6: 00cb lsls r3, r1, #3
|
|
80061c8: 4651 mov r1, sl
|
|
80061ca: ea43 7351 orr.w r3, r3, r1, lsr #29
|
|
80061ce: 4651 mov r1, sl
|
|
80061d0: 00ca lsls r2, r1, #3
|
|
80061d2: 4610 mov r0, r2
|
|
80061d4: 4619 mov r1, r3
|
|
80061d6: 4603 mov r3, r0
|
|
80061d8: 4642 mov r2, r8
|
|
80061da: 189b adds r3, r3, r2
|
|
80061dc: 66bb str r3, [r7, #104] @ 0x68
|
|
80061de: 464b mov r3, r9
|
|
80061e0: 460a mov r2, r1
|
|
80061e2: eb42 0303 adc.w r3, r2, r3
|
|
80061e6: 66fb str r3, [r7, #108] @ 0x6c
|
|
80061e8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
80061ec: 685b ldr r3, [r3, #4]
|
|
80061ee: 2200 movs r2, #0
|
|
80061f0: 663b str r3, [r7, #96] @ 0x60
|
|
80061f2: 667a str r2, [r7, #100] @ 0x64
|
|
80061f4: f04f 0200 mov.w r2, #0
|
|
80061f8: f04f 0300 mov.w r3, #0
|
|
80061fc: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60
|
|
8006200: 4649 mov r1, r9
|
|
8006202: 008b lsls r3, r1, #2
|
|
8006204: 4641 mov r1, r8
|
|
8006206: ea43 7391 orr.w r3, r3, r1, lsr #30
|
|
800620a: 4641 mov r1, r8
|
|
800620c: 008a lsls r2, r1, #2
|
|
800620e: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68
|
|
8006212: f7fa fcd9 bl 8000bc8 <__aeabi_uldivmod>
|
|
8006216: 4602 mov r2, r0
|
|
8006218: 460b mov r3, r1
|
|
800621a: 4b0d ldr r3, [pc, #52] @ (8006250 <UART_SetConfig+0x4e4>)
|
|
800621c: fba3 1302 umull r1, r3, r3, r2
|
|
8006220: 095b lsrs r3, r3, #5
|
|
8006222: 2164 movs r1, #100 @ 0x64
|
|
8006224: fb01 f303 mul.w r3, r1, r3
|
|
8006228: 1ad3 subs r3, r2, r3
|
|
800622a: 011b lsls r3, r3, #4
|
|
800622c: 3332 adds r3, #50 @ 0x32
|
|
800622e: 4a08 ldr r2, [pc, #32] @ (8006250 <UART_SetConfig+0x4e4>)
|
|
8006230: fba2 2303 umull r2, r3, r2, r3
|
|
8006234: 095b lsrs r3, r3, #5
|
|
8006236: f003 020f and.w r2, r3, #15
|
|
800623a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
|
|
800623e: 681b ldr r3, [r3, #0]
|
|
8006240: 4422 add r2, r4
|
|
8006242: 609a str r2, [r3, #8]
|
|
}
|
|
8006244: bf00 nop
|
|
8006246: f507 7780 add.w r7, r7, #256 @ 0x100
|
|
800624a: 46bd mov sp, r7
|
|
800624c: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
|
|
8006250: 51eb851f .word 0x51eb851f
|
|
|
|
08006254 <_ZN3sta5tacos16initSystemEventsEv>:
|
|
namespace sta
|
|
{
|
|
namespace tacos
|
|
{
|
|
void initSystemEvents()
|
|
{
|
|
8006254: b598 push {r3, r4, r7, lr}
|
|
8006256: af00 add r7, sp, #0
|
|
if (systemEvents == nullptr)
|
|
8006258: 4b07 ldr r3, [pc, #28] @ (8006278 <_ZN3sta5tacos16initSystemEventsEv+0x24>)
|
|
800625a: 681b ldr r3, [r3, #0]
|
|
800625c: 2b00 cmp r3, #0
|
|
800625e: d109 bne.n 8006274 <_ZN3sta5tacos16initSystemEventsEv+0x20>
|
|
{
|
|
systemEvents = new sta::RtosEvent();
|
|
8006260: 2008 movs r0, #8
|
|
8006262: f009 fa63 bl 800f72c <_Znwj>
|
|
8006266: 4603 mov r3, r0
|
|
8006268: 461c mov r4, r3
|
|
800626a: 4620 mov r0, r4
|
|
800626c: f002 ffe8 bl 8009240 <_ZN3sta9RtosEventC1Ev>
|
|
8006270: 4b01 ldr r3, [pc, #4] @ (8006278 <_ZN3sta5tacos16initSystemEventsEv+0x24>)
|
|
8006272: 601c str r4, [r3, #0]
|
|
}
|
|
}
|
|
8006274: bf00 nop
|
|
8006276: bd98 pop {r3, r4, r7, pc}
|
|
8006278: 200002f4 .word 0x200002f4
|
|
|
|
0800627c <_ZN3sta5tacos18signalSystemEventsEm>:
|
|
|
|
void signalSystemEvents(uint32_t flags)
|
|
{
|
|
800627c: b580 push {r7, lr}
|
|
800627e: b082 sub sp, #8
|
|
8006280: af00 add r7, sp, #0
|
|
8006282: 6078 str r0, [r7, #4]
|
|
STA_ASSERT_MSG(systemEvents != nullptr, "System events not initialized");
|
|
8006284: 4b0b ldr r3, [pc, #44] @ (80062b4 <_ZN3sta5tacos18signalSystemEventsEm+0x38>)
|
|
8006286: 681b ldr r3, [r3, #0]
|
|
8006288: 2b00 cmp r3, #0
|
|
800628a: d106 bne.n 800629a <_ZN3sta5tacos18signalSystemEventsEm+0x1e>
|
|
800628c: 221f movs r2, #31
|
|
800628e: 490a ldr r1, [pc, #40] @ (80062b8 <_ZN3sta5tacos18signalSystemEventsEm+0x3c>)
|
|
8006290: 480a ldr r0, [pc, #40] @ (80062bc <_ZN3sta5tacos18signalSystemEventsEm+0x40>)
|
|
8006292: f003 fce1 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8006296: f003 fd0f bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
systemEvents->set(flags);
|
|
800629a: 4b06 ldr r3, [pc, #24] @ (80062b4 <_ZN3sta5tacos18signalSystemEventsEm+0x38>)
|
|
800629c: 681a ldr r2, [r3, #0]
|
|
800629e: 4b05 ldr r3, [pc, #20] @ (80062b4 <_ZN3sta5tacos18signalSystemEventsEm+0x38>)
|
|
80062a0: 681b ldr r3, [r3, #0]
|
|
80062a2: 681b ldr r3, [r3, #0]
|
|
80062a4: 681b ldr r3, [r3, #0]
|
|
80062a6: 6879 ldr r1, [r7, #4]
|
|
80062a8: 4610 mov r0, r2
|
|
80062aa: 4798 blx r3
|
|
}
|
|
80062ac: bf00 nop
|
|
80062ae: 3708 adds r7, #8
|
|
80062b0: 46bd mov sp, r7
|
|
80062b2: bd80 pop {r7, pc}
|
|
80062b4: 200002f4 .word 0x200002f4
|
|
80062b8: 08012a24 .word 0x08012a24
|
|
80062bc: 08012a44 .word 0x08012a44
|
|
|
|
080062c0 <_ZN3sta5tacos19waitForSystemEventsEmmm>:
|
|
|
|
void waitForSystemEvents(uint32_t flags, uint32_t options, uint32_t timeout)
|
|
{
|
|
80062c0: b580 push {r7, lr}
|
|
80062c2: b084 sub sp, #16
|
|
80062c4: af00 add r7, sp, #0
|
|
80062c6: 60f8 str r0, [r7, #12]
|
|
80062c8: 60b9 str r1, [r7, #8]
|
|
80062ca: 607a str r2, [r7, #4]
|
|
STA_ASSERT_MSG(systemEvents != nullptr, "System events not initialized");
|
|
80062cc: 4b0c ldr r3, [pc, #48] @ (8006300 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x40>)
|
|
80062ce: 681b ldr r3, [r3, #0]
|
|
80062d0: 2b00 cmp r3, #0
|
|
80062d2: d106 bne.n 80062e2 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x22>
|
|
80062d4: 2225 movs r2, #37 @ 0x25
|
|
80062d6: 490b ldr r1, [pc, #44] @ (8006304 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x44>)
|
|
80062d8: 480b ldr r0, [pc, #44] @ (8006308 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x48>)
|
|
80062da: f003 fcbd bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80062de: f003 fceb bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
systemEvents->peek(flags, timeout);
|
|
80062e2: 4b07 ldr r3, [pc, #28] @ (8006300 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x40>)
|
|
80062e4: 6818 ldr r0, [r3, #0]
|
|
80062e6: 4b06 ldr r3, [pc, #24] @ (8006300 <_ZN3sta5tacos19waitForSystemEventsEmmm+0x40>)
|
|
80062e8: 681b ldr r3, [r3, #0]
|
|
80062ea: 681b ldr r3, [r3, #0]
|
|
80062ec: 3310 adds r3, #16
|
|
80062ee: 681b ldr r3, [r3, #0]
|
|
80062f0: 687a ldr r2, [r7, #4]
|
|
80062f2: 68f9 ldr r1, [r7, #12]
|
|
80062f4: 4798 blx r3
|
|
}
|
|
80062f6: bf00 nop
|
|
80062f8: 3710 adds r7, #16
|
|
80062fa: 46bd mov sp, r7
|
|
80062fc: bd80 pop {r7, pc}
|
|
80062fe: bf00 nop
|
|
8006300: 200002f4 .word 0x200002f4
|
|
8006304: 08012a24 .word 0x08012a24
|
|
8006308: 08012a44 .word 0x08012a44
|
|
|
|
0800630c <_ZN3sta5tacos18signalStartupEventEv>:
|
|
|
|
void signalStartupEvent()
|
|
{
|
|
800630c: b580 push {r7, lr}
|
|
800630e: af00 add r7, sp, #0
|
|
signalSystemEvents(STA_TACOS_SYSTEM_EVENTS_STARTUP);
|
|
8006310: f44f 1080 mov.w r0, #1048576 @ 0x100000
|
|
8006314: f7ff ffb2 bl 800627c <_ZN3sta5tacos18signalSystemEventsEm>
|
|
}
|
|
8006318: bf00 nop
|
|
800631a: bd80 pop {r7, pc}
|
|
|
|
0800631c <_ZN3sta5tacos19waitForStartupEventEv>:
|
|
|
|
void waitForStartupEvent()
|
|
{
|
|
800631c: b580 push {r7, lr}
|
|
800631e: af00 add r7, sp, #0
|
|
waitForSystemEvents(STA_TACOS_SYSTEM_EVENTS_STARTUP, osFlagsWaitAll, osWaitForever);
|
|
8006320: f04f 32ff mov.w r2, #4294967295
|
|
8006324: 2101 movs r1, #1
|
|
8006326: f44f 1080 mov.w r0, #1048576 @ 0x100000
|
|
800632a: f7ff ffc9 bl 80062c0 <_ZN3sta5tacos19waitForSystemEventsEmmm>
|
|
}
|
|
800632e: bf00 nop
|
|
8006330: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08006334 <_ZN3sta5tacos13getUARThandleEv>:
|
|
* @brief Function that returns the UART handle used for debugging. Override it in userspace to adjust.
|
|
*
|
|
* @ingroup tacos_startup
|
|
*/
|
|
STA_WEAK
|
|
UART_HandleTypeDef * getUARThandle(){
|
|
8006334: b480 push {r7}
|
|
8006336: af00 add r7, sp, #0
|
|
return &STA_STM32_USART_HANDLE;
|
|
8006338: 4b02 ldr r3, [pc, #8] @ (8006344 <_ZN3sta5tacos13getUARThandleEv+0x10>)
|
|
}
|
|
800633a: 4618 mov r0, r3
|
|
800633c: 46bd mov sp, r7
|
|
800633e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006342: 4770 bx lr
|
|
8006344: 20000278 .word 0x20000278
|
|
|
|
08006348 <_ZN3sta5tacos13initPrintableEv>:
|
|
* @brief Function that initializes the printable object given by getUARThandle().
|
|
*
|
|
* @ingroup tacos_startup
|
|
*/
|
|
void initPrintable()
|
|
{
|
|
8006348: b590 push {r4, r7, lr}
|
|
800634a: b085 sub sp, #20
|
|
800634c: af00 add r7, sp, #0
|
|
// Initialize the mutex for UART communication.
|
|
RtosMutex * mutex = new RtosMutex("uart");
|
|
800634e: 2008 movs r0, #8
|
|
8006350: f009 f9ec bl 800f72c <_Znwj>
|
|
8006354: 4603 mov r3, r0
|
|
8006356: 461c mov r4, r3
|
|
8006358: 4911 ldr r1, [pc, #68] @ (80063a0 <_ZN3sta5tacos13initPrintableEv+0x58>)
|
|
800635a: 4620 mov r0, r4
|
|
800635c: f003 f806 bl 800936c <_ZN3sta9RtosMutexC1EPKc>
|
|
8006360: 60fc str r4, [r7, #12]
|
|
|
|
// Initialize the UART interface and printable object.
|
|
UARTSettings settings = { .mode = UARTMode::RX_TX };
|
|
8006362: 2302 movs r3, #2
|
|
8006364: 607b str r3, [r7, #4]
|
|
STM32UART * intf_ptr = new STM32UART(getUARThandle(), settings, mutex);
|
|
8006366: 2014 movs r0, #20
|
|
8006368: f009 f9e0 bl 800f72c <_Znwj>
|
|
800636c: 4603 mov r3, r0
|
|
800636e: 461c mov r4, r3
|
|
8006370: f7ff ffe0 bl 8006334 <_ZN3sta5tacos13getUARThandleEv>
|
|
8006374: 4601 mov r1, r0
|
|
8006376: 1d3a adds r2, r7, #4
|
|
8006378: 68fb ldr r3, [r7, #12]
|
|
800637a: 4620 mov r0, r4
|
|
800637c: f004 f9a8 bl 800a6d0 <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE>
|
|
8006380: 60bc str r4, [r7, #8]
|
|
Debug = new PrintableUART(intf_ptr);
|
|
8006382: 2008 movs r0, #8
|
|
8006384: f009 f9d2 bl 800f72c <_Znwj>
|
|
8006388: 4603 mov r3, r0
|
|
800638a: 461c mov r4, r3
|
|
800638c: 68b9 ldr r1, [r7, #8]
|
|
800638e: 4620 mov r0, r4
|
|
8006390: f003 fe80 bl 800a094 <_ZN3sta13PrintableUARTC1EPNS_4UARTE>
|
|
8006394: 4b03 ldr r3, [pc, #12] @ (80063a4 <_ZN3sta5tacos13initPrintableEv+0x5c>)
|
|
8006396: 601c str r4, [r3, #0]
|
|
}
|
|
8006398: bf00 nop
|
|
800639a: 3714 adds r7, #20
|
|
800639c: 46bd mov sp, r7
|
|
800639e: bd90 pop {r4, r7, pc}
|
|
80063a0: 08012a64 .word 0x08012a64
|
|
80063a4: 200002f8 .word 0x200002f8
|
|
|
|
080063a8 <_ZN3sta5tacos16initStatemachineEv>:
|
|
STA_WEAK
|
|
void startup()
|
|
{}
|
|
|
|
void initStatemachine()
|
|
{
|
|
80063a8: b580 push {r7, lr}
|
|
80063aa: af00 add r7, sp, #0
|
|
startup();
|
|
80063ac: f7fa ff06 bl 80011bc <_ZN3sta5tacos7startupEv>
|
|
|
|
Statemachine::instance()->start();
|
|
80063b0: f7fa fe34 bl 800101c <_ZN3sta5tacos12Statemachine8instanceEv>
|
|
80063b4: 4603 mov r3, r0
|
|
80063b6: 461a mov r2, r3
|
|
80063b8: 6813 ldr r3, [r2, #0]
|
|
80063ba: 681b ldr r3, [r3, #0]
|
|
80063bc: 4610 mov r0, r2
|
|
80063be: 4798 blx r3
|
|
}
|
|
80063c0: bf00 nop
|
|
80063c2: bd80 pop {r7, pc}
|
|
|
|
080063c4 <_ZN3sta5tacos13startupExtrasEPv>:
|
|
CanBus::instance()->start();
|
|
}
|
|
#endif //STA_TACOS_CAN_BUS_ENABLED
|
|
|
|
void startupExtras(void * argument)
|
|
{
|
|
80063c4: b580 push {r7, lr}
|
|
80063c6: b082 sub sp, #8
|
|
80063c8: af00 add r7, sp, #0
|
|
80063ca: 6078 str r0, [r7, #4]
|
|
#ifdef STA_DEBUGGING_ENABLED
|
|
tacos::initPrintable();
|
|
80063cc: f7ff ffbc bl 8006348 <_ZN3sta5tacos13initPrintableEv>
|
|
#endif // STA_DEBUGGING_ENABLED
|
|
|
|
tacos::initStatemachine();
|
|
80063d0: f7ff ffea bl 80063a8 <_ZN3sta5tacos16initStatemachineEv>
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
|
|
#ifdef STA_TACOS_CAN_BUS_ENABLED
|
|
tacos::initCanBus();
|
|
#endif // STA_TACOS_CAN_BUS_ENABLED
|
|
}
|
|
80063d4: bf00 nop
|
|
80063d6: 3708 adds r7, #8
|
|
80063d8: 46bd mov sp, r7
|
|
80063da: bd80 pop {r7, pc}
|
|
|
|
080063dc <startTACOS>:
|
|
} // namespace tacos
|
|
} // namespace sta
|
|
|
|
void startTACOS(void * arg)
|
|
{
|
|
80063dc: b580 push {r7, lr}
|
|
80063de: b082 sub sp, #8
|
|
80063e0: af00 add r7, sp, #0
|
|
80063e2: 6078 str r0, [r7, #4]
|
|
STA_ASSERT_MSG(osKernelGetState() != osKernelInactive, "Cannot call startTACOS() before osKernelInitialize()");
|
|
80063e4: f004 fab0 bl 800a948 <osKernelGetState>
|
|
80063e8: 4603 mov r3, r0
|
|
80063ea: 2b00 cmp r3, #0
|
|
80063ec: d106 bne.n 80063fc <startTACOS+0x20>
|
|
80063ee: 229b movs r2, #155 @ 0x9b
|
|
80063f0: 490f ldr r1, [pc, #60] @ (8006430 <startTACOS+0x54>)
|
|
80063f2: 4810 ldr r0, [pc, #64] @ (8006434 <startTACOS+0x58>)
|
|
80063f4: f003 fc30 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80063f8: f003 fc5e bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
// Initialize HAL
|
|
sta::initHAL();
|
|
80063fc: f004 f960 bl 800a6c0 <_ZN3sta7initHALEv>
|
|
|
|
// Initialize RTOS system events
|
|
sta::tacos::initSystemEvents();
|
|
8006400: f7ff ff28 bl 8006254 <_ZN3sta5tacos16initSystemEventsEv>
|
|
|
|
// Call further initialization code
|
|
sta::tacos::startupExtras(arg);
|
|
8006404: 6878 ldr r0, [r7, #4]
|
|
8006406: f7ff ffdd bl 80063c4 <_ZN3sta5tacos13startupExtrasEPv>
|
|
|
|
// Wake threads
|
|
sta::tacos::signalStartupEvent();
|
|
800640a: f7ff ff7f bl 800630c <_ZN3sta5tacos18signalStartupEventEv>
|
|
|
|
// Check if called from thread
|
|
if (osThreadGetId() != nullptr)
|
|
800640e: f004 fb94 bl 800ab3a <osThreadGetId>
|
|
8006412: 4603 mov r3, r0
|
|
8006414: 2b00 cmp r3, #0
|
|
8006416: bf14 ite ne
|
|
8006418: 2301 movne r3, #1
|
|
800641a: 2300 moveq r3, #0
|
|
800641c: b2db uxtb r3, r3
|
|
800641e: 2b00 cmp r3, #0
|
|
8006420: d001 beq.n 8006426 <startTACOS+0x4a>
|
|
{
|
|
// Terminate current thread
|
|
osThreadExit();
|
|
8006422: f004 fb95 bl 800ab50 <osThreadExit>
|
|
}
|
|
}
|
|
8006426: bf00 nop
|
|
8006428: 3708 adds r7, #8
|
|
800642a: 46bd mov sp, r7
|
|
800642c: bd80 pop {r7, pc}
|
|
800642e: bf00 nop
|
|
8006430: 08012a6c .word 0x08012a6c
|
|
8006434: 08012a8c .word 0x08012a8c
|
|
|
|
08006438 <_ZSt23__is_constant_evaluatedv>:
|
|
// This can be used without checking if the compiler supports the feature.
|
|
// The macro _GLIBCXX_HAVE_IS_CONSTANT_EVALUATED can be used to check if
|
|
// the compiler support is present to make this function work as expected.
|
|
_GLIBCXX_CONSTEXPR inline bool
|
|
__is_constant_evaluated() _GLIBCXX_NOEXCEPT
|
|
{
|
|
8006438: b480 push {r7}
|
|
800643a: af00 add r7, sp, #0
|
|
#if __cpp_if_consteval >= 202106L
|
|
# define _GLIBCXX_HAVE_IS_CONSTANT_EVALUATED 1
|
|
if consteval { return true; } else { return false; }
|
|
#elif __cplusplus >= 201103L && __has_builtin(__builtin_is_constant_evaluated)
|
|
# define _GLIBCXX_HAVE_IS_CONSTANT_EVALUATED 1
|
|
return __builtin_is_constant_evaluated();
|
|
800643c: 2300 movs r3, #0
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
800643e: 4618 mov r0, r3
|
|
8006440: 46bd mov sp, r7
|
|
8006442: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006446: 4770 bx lr
|
|
|
|
08006448 <_ZNSt9_Any_data9_M_accessEv>:
|
|
void (_Undefined_class::*_M_member_pointer)();
|
|
};
|
|
|
|
union [[gnu::may_alias]] _Any_data
|
|
{
|
|
void* _M_access() noexcept { return &_M_pod_data[0]; }
|
|
8006448: b480 push {r7}
|
|
800644a: b083 sub sp, #12
|
|
800644c: af00 add r7, sp, #0
|
|
800644e: 6078 str r0, [r7, #4]
|
|
8006450: 687b ldr r3, [r7, #4]
|
|
8006452: 4618 mov r0, r3
|
|
8006454: 370c adds r7, #12
|
|
8006456: 46bd mov sp, r7
|
|
8006458: f85d 7b04 ldr.w r7, [sp], #4
|
|
800645c: 4770 bx lr
|
|
|
|
0800645e <_ZNKSt9_Any_data9_M_accessEv>:
|
|
const void* _M_access() const noexcept { return &_M_pod_data[0]; }
|
|
800645e: b480 push {r7}
|
|
8006460: b083 sub sp, #12
|
|
8006462: af00 add r7, sp, #0
|
|
8006464: 6078 str r0, [r7, #4]
|
|
8006466: 687b ldr r3, [r7, #4]
|
|
8006468: 4618 mov r0, r3
|
|
800646a: 370c adds r7, #12
|
|
800646c: 46bd mov sp, r7
|
|
800646e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006472: 4770 bx lr
|
|
|
|
08006474 <_ZNSt14_Function_baseD1Ev>:
|
|
{ return true; }
|
|
};
|
|
|
|
_Function_base() = default;
|
|
|
|
~_Function_base()
|
|
8006474: b580 push {r7, lr}
|
|
8006476: b082 sub sp, #8
|
|
8006478: af00 add r7, sp, #0
|
|
800647a: 6078 str r0, [r7, #4]
|
|
{
|
|
if (_M_manager)
|
|
800647c: 687b ldr r3, [r7, #4]
|
|
800647e: 689b ldr r3, [r3, #8]
|
|
8006480: 2b00 cmp r3, #0
|
|
8006482: d005 beq.n 8006490 <_ZNSt14_Function_baseD1Ev+0x1c>
|
|
_M_manager(_M_functor, _M_functor, __destroy_functor);
|
|
8006484: 687b ldr r3, [r7, #4]
|
|
8006486: 689b ldr r3, [r3, #8]
|
|
8006488: 6878 ldr r0, [r7, #4]
|
|
800648a: 6879 ldr r1, [r7, #4]
|
|
800648c: 2203 movs r2, #3
|
|
800648e: 4798 blx r3
|
|
}
|
|
8006490: 687b ldr r3, [r7, #4]
|
|
8006492: 4618 mov r0, r3
|
|
8006494: 3708 adds r7, #8
|
|
8006496: 46bd mov sp, r7
|
|
8006498: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800649c <_ZN3sta5tacos12StatemachineD1Ev>:
|
|
~Statemachine() {}
|
|
800649c: b590 push {r4, r7, lr}
|
|
800649e: b083 sub sp, #12
|
|
80064a0: af00 add r7, sp, #0
|
|
80064a2: 6078 str r0, [r7, #4]
|
|
80064a4: 4a13 ldr r2, [pc, #76] @ (80064f4 <_ZN3sta5tacos12StatemachineD1Ev+0x58>)
|
|
80064a6: 687b ldr r3, [r7, #4]
|
|
80064a8: 601a str r2, [r3, #0]
|
|
80064aa: 687b ldr r3, [r7, #4]
|
|
80064ac: 33c4 adds r3, #196 @ 0xc4
|
|
80064ae: 2b00 cmp r3, #0
|
|
80064b0: d00c beq.n 80064cc <_ZN3sta5tacos12StatemachineD1Ev+0x30>
|
|
80064b2: 687b ldr r3, [r7, #4]
|
|
80064b4: 33c4 adds r3, #196 @ 0xc4
|
|
80064b6: f103 0424 add.w r4, r3, #36 @ 0x24
|
|
80064ba: 687b ldr r3, [r7, #4]
|
|
80064bc: 33c4 adds r3, #196 @ 0xc4
|
|
80064be: 429c cmp r4, r3
|
|
80064c0: d004 beq.n 80064cc <_ZN3sta5tacos12StatemachineD1Ev+0x30>
|
|
80064c2: 3c0c subs r4, #12
|
|
80064c4: 4620 mov r0, r4
|
|
80064c6: f000 fb80 bl 8006bca <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EED1Ev>
|
|
80064ca: e7f6 b.n 80064ba <_ZN3sta5tacos12StatemachineD1Ev+0x1e>
|
|
80064cc: bf00 nop
|
|
80064ce: 687b ldr r3, [r7, #4]
|
|
80064d0: 3390 adds r3, #144 @ 0x90
|
|
80064d2: 4618 mov r0, r3
|
|
80064d4: f003 f91a bl 800970c <_ZN3sta9RtosTimerD1Ev>
|
|
80064d8: 687b ldr r3, [r7, #4]
|
|
80064da: 3360 adds r3, #96 @ 0x60
|
|
80064dc: 4618 mov r0, r3
|
|
80064de: f003 f915 bl 800970c <_ZN3sta9RtosTimerD1Ev>
|
|
80064e2: 687b ldr r3, [r7, #4]
|
|
80064e4: 4618 mov r0, r3
|
|
80064e6: f002 fe8b bl 8009200 <_ZN3sta5tacos11TacosThreadD1Ev>
|
|
80064ea: 687b ldr r3, [r7, #4]
|
|
80064ec: 4618 mov r0, r3
|
|
80064ee: 370c adds r7, #12
|
|
80064f0: 46bd mov sp, r7
|
|
80064f2: bd90 pop {r4, r7, pc}
|
|
80064f4: 080130f8 .word 0x080130f8
|
|
|
|
080064f8 <_ZN3sta5tacos12StatemachineD0Ev>:
|
|
80064f8: b580 push {r7, lr}
|
|
80064fa: b082 sub sp, #8
|
|
80064fc: af00 add r7, sp, #0
|
|
80064fe: 6078 str r0, [r7, #4]
|
|
8006500: 6878 ldr r0, [r7, #4]
|
|
8006502: f7ff ffcb bl 800649c <_ZN3sta5tacos12StatemachineD1Ev>
|
|
8006506: 21e8 movs r1, #232 @ 0xe8
|
|
8006508: 6878 ldr r0, [r7, #4]
|
|
800650a: f009 f90b bl 800f724 <_ZdlPvj>
|
|
800650e: 687b ldr r3, [r7, #4]
|
|
8006510: 4618 mov r0, r3
|
|
8006512: 3708 adds r7, #8
|
|
8006514: 46bd mov sp, r7
|
|
8006516: bd80 pop {r7, pc}
|
|
|
|
08006518 <_ZZN3sta5tacos12StatemachineC4EvENKUlPvE_clES2_>:
|
|
namespace tacos
|
|
{
|
|
Statemachine::Statemachine()
|
|
: TacosThread{"Statemachine", STA_TACOS_STATEMACHINE_PRIORITY, STA_TACOS_STATEMACHINE_STACK_SIZE},
|
|
currentState_{STA_TACOS_INITIAL_STATE},
|
|
lockoutTimer_{[](void *){}, nullptr},
|
|
8006518: b480 push {r7}
|
|
800651a: b083 sub sp, #12
|
|
800651c: af00 add r7, sp, #0
|
|
800651e: 6078 str r0, [r7, #4]
|
|
8006520: 6039 str r1, [r7, #0]
|
|
8006522: bf00 nop
|
|
8006524: 370c adds r7, #12
|
|
8006526: 46bd mov sp, r7
|
|
8006528: f85d 7b04 ldr.w r7, [sp], #4
|
|
800652c: 4770 bx lr
|
|
|
|
0800652e <_ZZN3sta5tacos12StatemachineC4EvENKUlPvE0_clES2_>:
|
|
failsafeTimer_{[](void *){}, nullptr},
|
|
800652e: b480 push {r7}
|
|
8006530: b083 sub sp, #12
|
|
8006532: af00 add r7, sp, #0
|
|
8006534: 6078 str r0, [r7, #4]
|
|
8006536: 6039 str r1, [r7, #0]
|
|
8006538: bf00 nop
|
|
800653a: 370c adds r7, #12
|
|
800653c: 46bd mov sp, r7
|
|
800653e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006542: 4770 bx lr
|
|
|
|
08006544 <_ZNSt8functionIFvPvEED1Ev>:
|
|
* @brief Polymorphic function wrapper.
|
|
* @ingroup functors
|
|
* @since C++11
|
|
*/
|
|
template<typename _Res, typename... _ArgTypes>
|
|
class function<_Res(_ArgTypes...)>
|
|
8006544: b580 push {r7, lr}
|
|
8006546: b082 sub sp, #8
|
|
8006548: af00 add r7, sp, #0
|
|
800654a: 6078 str r0, [r7, #4]
|
|
800654c: 687b ldr r3, [r7, #4]
|
|
800654e: 4618 mov r0, r3
|
|
8006550: f7ff ff90 bl 8006474 <_ZNSt14_Function_baseD1Ev>
|
|
8006554: 687b ldr r3, [r7, #4]
|
|
8006556: 4618 mov r0, r3
|
|
8006558: 3708 adds r7, #8
|
|
800655a: 46bd mov sp, r7
|
|
800655c: bd80 pop {r7, pc}
|
|
|
|
0800655e <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_Vector_implD1Ev>:
|
|
_M_copy_data(__x);
|
|
__x._M_copy_data(__tmp);
|
|
}
|
|
};
|
|
|
|
struct _Vector_impl
|
|
800655e: b580 push {r7, lr}
|
|
8006560: b082 sub sp, #8
|
|
8006562: af00 add r7, sp, #0
|
|
8006564: 6078 str r0, [r7, #4]
|
|
8006566: 6878 ldr r0, [r7, #4]
|
|
8006568: f000 fbf0 bl 8006d4c <_ZNSaISt10shared_ptrIN3sta5tacos11TacosThreadEEED1Ev>
|
|
800656c: 687b ldr r3, [r7, #4]
|
|
800656e: 4618 mov r0, r3
|
|
8006570: 3708 adds r7, #8
|
|
8006572: 46bd mov sp, r7
|
|
8006574: bd80 pop {r7, pc}
|
|
|
|
08006576 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EEC1Ev>:
|
|
allocator_type
|
|
get_allocator() const _GLIBCXX_NOEXCEPT
|
|
{ return allocator_type(_M_get_Tp_allocator()); }
|
|
|
|
#if __cplusplus >= 201103L
|
|
_Vector_base() = default;
|
|
8006576: b580 push {r7, lr}
|
|
8006578: b082 sub sp, #8
|
|
800657a: af00 add r7, sp, #0
|
|
800657c: 6078 str r0, [r7, #4]
|
|
800657e: 687b ldr r3, [r7, #4]
|
|
8006580: 4618 mov r0, r3
|
|
8006582: f000 fbd3 bl 8006d2c <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_Vector_implC1Ev>
|
|
8006586: 687b ldr r3, [r7, #4]
|
|
8006588: 4618 mov r0, r3
|
|
800658a: 3708 adds r7, #8
|
|
800658c: 46bd mov sp, r7
|
|
800658e: bd80 pop {r7, pc}
|
|
|
|
08006590 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EEC1Ev>:
|
|
|
|
/**
|
|
* @brief Creates a %vector with no elements.
|
|
*/
|
|
#if __cplusplus >= 201103L
|
|
vector() = default;
|
|
8006590: b580 push {r7, lr}
|
|
8006592: b082 sub sp, #8
|
|
8006594: af00 add r7, sp, #0
|
|
8006596: 6078 str r0, [r7, #4]
|
|
8006598: 687b ldr r3, [r7, #4]
|
|
800659a: 4618 mov r0, r3
|
|
800659c: f7ff ffeb bl 8006576 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EEC1Ev>
|
|
80065a0: 687b ldr r3, [r7, #4]
|
|
80065a2: 4618 mov r0, r3
|
|
80065a4: 3708 adds r7, #8
|
|
80065a6: 46bd mov sp, r7
|
|
80065a8: bd80 pop {r7, pc}
|
|
...
|
|
|
|
080065ac <_ZN3sta5tacos12StatemachineC1Ev>:
|
|
Statemachine::Statemachine()
|
|
80065ac: b5b0 push {r4, r5, r7, lr}
|
|
80065ae: b08e sub sp, #56 @ 0x38
|
|
80065b0: af02 add r7, sp, #8
|
|
80065b2: 6078 str r0, [r7, #4]
|
|
queue_{STA_TACOS_STATEMACHINE_QUEUE_LENGTH},
|
|
threads_{}
|
|
80065b4: 6878 ldr r0, [r7, #4]
|
|
80065b6: 2300 movs r3, #0
|
|
80065b8: 9300 str r3, [sp, #0]
|
|
80065ba: 2300 movs r3, #0
|
|
80065bc: 2228 movs r2, #40 @ 0x28
|
|
80065be: 492a ldr r1, [pc, #168] @ (8006668 <_ZN3sta5tacos12StatemachineC1Ev+0xbc>)
|
|
80065c0: f002 fd24 bl 800900c <_ZN3sta5tacos11TacosThreadC1EPKc12osPriority_tmm>
|
|
80065c4: 4a29 ldr r2, [pc, #164] @ (800666c <_ZN3sta5tacos12StatemachineC1Ev+0xc0>)
|
|
80065c6: 687b ldr r3, [r7, #4]
|
|
80065c8: 601a str r2, [r3, #0]
|
|
currentState_{STA_TACOS_INITIAL_STATE},
|
|
80065ca: 687b ldr r3, [r7, #4]
|
|
80065cc: 2200 movs r2, #0
|
|
80065ce: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
|
|
lockoutTimer_{[](void *){}, nullptr},
|
|
80065d2: 687b ldr r3, [r7, #4]
|
|
80065d4: f103 0460 add.w r4, r3, #96 @ 0x60
|
|
80065d8: f107 0218 add.w r2, r7, #24
|
|
80065dc: f107 0308 add.w r3, r7, #8
|
|
80065e0: 4611 mov r1, r2
|
|
80065e2: 4618 mov r0, r3
|
|
80065e4: f000 fb20 bl 8006c28 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E_vEEOT_>
|
|
80065e8: f107 0108 add.w r1, r7, #8
|
|
80065ec: 2300 movs r3, #0
|
|
80065ee: 2200 movs r2, #0
|
|
80065f0: 4620 mov r0, r4
|
|
80065f2: f003 f82f bl 8009654 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b>
|
|
80065f6: f107 0308 add.w r3, r7, #8
|
|
80065fa: 4618 mov r0, r3
|
|
80065fc: f7ff ffa2 bl 8006544 <_ZNSt8functionIFvPvEED1Ev>
|
|
failsafeTimer_{[](void *){}, nullptr},
|
|
8006600: 687b ldr r3, [r7, #4]
|
|
8006602: f103 0490 add.w r4, r3, #144 @ 0x90
|
|
8006606: f107 022c add.w r2, r7, #44 @ 0x2c
|
|
800660a: f107 031c add.w r3, r7, #28
|
|
800660e: 4611 mov r1, r2
|
|
8006610: 4618 mov r0, r3
|
|
8006612: f000 fb39 bl 8006c88 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E0_vEEOT_>
|
|
8006616: f107 011c add.w r1, r7, #28
|
|
800661a: 2300 movs r3, #0
|
|
800661c: 2200 movs r2, #0
|
|
800661e: 4620 mov r0, r4
|
|
8006620: f003 f818 bl 8009654 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b>
|
|
8006624: f107 031c add.w r3, r7, #28
|
|
8006628: 4618 mov r0, r3
|
|
800662a: f7ff ff8b bl 8006544 <_ZNSt8functionIFvPvEED1Ev>
|
|
queue_{STA_TACOS_STATEMACHINE_QUEUE_LENGTH},
|
|
800662e: 687b ldr r3, [r7, #4]
|
|
8006630: 33c0 adds r3, #192 @ 0xc0
|
|
8006632: 2104 movs r1, #4
|
|
8006634: 4618 mov r0, r3
|
|
8006636: f000 fb57 bl 8006ce8 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEEC1Em>
|
|
threads_{}
|
|
800663a: 687b ldr r3, [r7, #4]
|
|
800663c: 33c4 adds r3, #196 @ 0xc4
|
|
800663e: 2502 movs r5, #2
|
|
8006640: 461c mov r4, r3
|
|
8006642: e00a b.n 800665a <_ZN3sta5tacos12StatemachineC1Ev+0xae>
|
|
8006644: 2300 movs r3, #0
|
|
8006646: 6023 str r3, [r4, #0]
|
|
8006648: 2300 movs r3, #0
|
|
800664a: 6063 str r3, [r4, #4]
|
|
800664c: 2300 movs r3, #0
|
|
800664e: 60a3 str r3, [r4, #8]
|
|
8006650: 4620 mov r0, r4
|
|
8006652: f7ff ff9d bl 8006590 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EEC1Ev>
|
|
8006656: 3d01 subs r5, #1
|
|
8006658: 340c adds r4, #12
|
|
800665a: 2d00 cmp r5, #0
|
|
800665c: daf2 bge.n 8006644 <_ZN3sta5tacos12StatemachineC1Ev+0x98>
|
|
{
|
|
STA_ASSERT(STA_TACOS_INITIAL_STATE < STA_TACOS_NUM_STATES);
|
|
}
|
|
800665e: 687b ldr r3, [r7, #4]
|
|
8006660: 4618 mov r0, r3
|
|
8006662: 3730 adds r7, #48 @ 0x30
|
|
8006664: 46bd mov sp, r7
|
|
8006666: bdb0 pop {r4, r5, r7, pc}
|
|
8006668: 08012ac4 .word 0x08012ac4
|
|
800666c: 080130f8 .word 0x080130f8
|
|
|
|
08006670 <_ZN3sta5tacos12Statemachine4initEv>:
|
|
|
|
void Statemachine::init()
|
|
{
|
|
8006670: b580 push {r7, lr}
|
|
8006672: b082 sub sp, #8
|
|
8006674: af00 add r7, sp, #0
|
|
8006676: 6078 str r0, [r7, #4]
|
|
startThreads(getCurrentState());
|
|
8006678: 6878 ldr r0, [r7, #4]
|
|
800667a: f000 f885 bl 8006788 <_ZNK3sta5tacos12Statemachine15getCurrentStateEv>
|
|
800667e: 4603 mov r3, r0
|
|
8006680: 4619 mov r1, r3
|
|
8006682: 6878 ldr r0, [r7, #4]
|
|
8006684: f000 f944 bl 8006910 <_ZN3sta5tacos12Statemachine12startThreadsEt>
|
|
}
|
|
8006688: bf00 nop
|
|
800668a: 3708 adds r7, #8
|
|
800668c: 46bd mov sp, r7
|
|
800668e: bd80 pop {r7, pc}
|
|
|
|
08006690 <_ZN3sta5tacos15StateTransitionC1Ev>:
|
|
struct StateTransition
|
|
8006690: b480 push {r7}
|
|
8006692: b083 sub sp, #12
|
|
8006694: af00 add r7, sp, #0
|
|
8006696: 6078 str r0, [r7, #4]
|
|
8006698: 687b ldr r3, [r7, #4]
|
|
800669a: 2200 movs r2, #0
|
|
800669c: 731a strb r2, [r3, #12]
|
|
800669e: 687b ldr r3, [r7, #4]
|
|
80066a0: 4618 mov r0, r3
|
|
80066a2: 370c adds r7, #12
|
|
80066a4: 46bd mov sp, r7
|
|
80066a6: f85d 7b04 ldr.w r7, [sp], #4
|
|
80066aa: 4770 bx lr
|
|
|
|
080066ac <_ZN3sta5tacos12Statemachine4funcEv>:
|
|
|
|
void Statemachine::func()
|
|
{
|
|
80066ac: b580 push {r7, lr}
|
|
80066ae: b08e sub sp, #56 @ 0x38
|
|
80066b0: af00 add r7, sp, #0
|
|
80066b2: 6078 str r0, [r7, #4]
|
|
// Wait for a message to be added to the queue.
|
|
StateTransition transition;
|
|
80066b4: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
80066b8: 4618 mov r0, r3
|
|
80066ba: f7ff ffe9 bl 8006690 <_ZN3sta5tacos15StateTransitionC1Ev>
|
|
queue_.get(&transition, osWaitForever);
|
|
80066be: 687b ldr r3, [r7, #4]
|
|
80066c0: 33c0 adds r3, #192 @ 0xc0
|
|
80066c2: f107 0128 add.w r1, r7, #40 @ 0x28
|
|
80066c6: f04f 32ff mov.w r2, #4294967295
|
|
80066ca: 4618 mov r0, r3
|
|
80066cc: f000 fb63 bl 8006d96 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEE3getEPS2_m>
|
|
|
|
// Check if the transition isn't blocked and is legal.
|
|
if (!lockoutTimer_.isRunning() && transition.from == currentState_)
|
|
80066d0: 687b ldr r3, [r7, #4]
|
|
80066d2: 3360 adds r3, #96 @ 0x60
|
|
80066d4: 4618 mov r0, r3
|
|
80066d6: f003 f891 bl 80097fc <_ZN3sta9RtosTimer9isRunningEv>
|
|
80066da: 4603 mov r3, r0
|
|
80066dc: f083 0301 eor.w r3, r3, #1
|
|
80066e0: b2db uxtb r3, r3
|
|
80066e2: 2b00 cmp r3, #0
|
|
80066e4: d007 beq.n 80066f6 <_ZN3sta5tacos12Statemachine4funcEv+0x4a>
|
|
80066e6: 8d3a ldrh r2, [r7, #40] @ 0x28
|
|
80066e8: 687b ldr r3, [r7, #4]
|
|
80066ea: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
|
|
80066ee: 429a cmp r2, r3
|
|
80066f0: d101 bne.n 80066f6 <_ZN3sta5tacos12Statemachine4funcEv+0x4a>
|
|
80066f2: 2301 movs r3, #1
|
|
80066f4: e000 b.n 80066f8 <_ZN3sta5tacos12Statemachine4funcEv+0x4c>
|
|
80066f6: 2300 movs r3, #0
|
|
80066f8: 2b00 cmp r3, #0
|
|
80066fa: d03a beq.n 8006772 <_ZN3sta5tacos12Statemachine4funcEv+0xc6>
|
|
{
|
|
STA_ASSERT(transition.to < STA_TACOS_NUM_STATES);
|
|
80066fc: 8d7b ldrh r3, [r7, #42] @ 0x2a
|
|
80066fe: 2b02 cmp r3, #2
|
|
8006700: d906 bls.n 8006710 <_ZN3sta5tacos12Statemachine4funcEv+0x64>
|
|
8006702: 222c movs r2, #44 @ 0x2c
|
|
8006704: 491d ldr r1, [pc, #116] @ (800677c <_ZN3sta5tacos12Statemachine4funcEv+0xd0>)
|
|
8006706: 481e ldr r0, [pc, #120] @ (8006780 <_ZN3sta5tacos12Statemachine4funcEv+0xd4>)
|
|
8006708: f003 faa6 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800670c: f003 fad4 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
#endif // STA_TACOS_CAN_BUS_ENABLED
|
|
|
|
// Perform the transition and notify the threads. The event flags are set
|
|
// here in order to allow threads to react immediately.
|
|
currentState_ = transition.to;
|
|
8006710: 8d7a ldrh r2, [r7, #42] @ 0x2a
|
|
8006712: 687b ldr r3, [r7, #4]
|
|
8006714: f8a3 205c strh.w r2, [r3, #92] @ 0x5c
|
|
|
|
// Send a system-wide notification for the state transition.
|
|
Statemachine::stateChangeEvent.set(transition.event);
|
|
8006718: f897 302c ldrb.w r3, [r7, #44] @ 0x2c
|
|
800671c: 4619 mov r1, r3
|
|
800671e: 4819 ldr r0, [pc, #100] @ (8006784 <_ZN3sta5tacos12Statemachine4funcEv+0xd8>)
|
|
8006720: f002 fdc4 bl 80092ac <_ZN3sta9RtosEvent3setEm>
|
|
Statemachine::stateChangeEvent.clear(EventFlags::ALL);
|
|
8006724: 210f movs r1, #15
|
|
8006726: 4817 ldr r0, [pc, #92] @ (8006784 <_ZN3sta5tacos12Statemachine4funcEv+0xd8>)
|
|
8006728: f002 fdcf bl 80092ca <_ZN3sta9RtosEvent5clearEm>
|
|
|
|
if (failsafeTimer_.isRunning())
|
|
800672c: 687b ldr r3, [r7, #4]
|
|
800672e: 3390 adds r3, #144 @ 0x90
|
|
8006730: 4618 mov r0, r3
|
|
8006732: f003 f863 bl 80097fc <_ZN3sta9RtosTimer9isRunningEv>
|
|
8006736: 4603 mov r3, r0
|
|
8006738: 2b00 cmp r3, #0
|
|
800673a: d004 beq.n 8006746 <_ZN3sta5tacos12Statemachine4funcEv+0x9a>
|
|
{
|
|
failsafeTimer_.stop();
|
|
800673c: 687b ldr r3, [r7, #4]
|
|
800673e: 3390 adds r3, #144 @ 0x90
|
|
8006740: 4618 mov r0, r3
|
|
8006742: f003 f83b bl 80097bc <_ZN3sta9RtosTimer4stopEv>
|
|
}
|
|
|
|
// Start the lockout timer if requested.
|
|
if (transition.lockout != 0)
|
|
8006746: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
8006748: 2b00 cmp r3, #0
|
|
800674a: d004 beq.n 8006756 <_ZN3sta5tacos12Statemachine4funcEv+0xaa>
|
|
{
|
|
setLockoutTimer(transition.lockout);
|
|
800674c: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800674e: 4619 mov r1, r3
|
|
8006750: 6878 ldr r0, [r7, #4]
|
|
8006752: f000 f831 bl 80067b8 <_ZN3sta5tacos12Statemachine15setLockoutTimerEm>
|
|
}
|
|
|
|
// get heap stats at the end of the state transition
|
|
HeapStats_t stats;
|
|
vPortGetHeapStats(&stats);
|
|
8006756: f107 030c add.w r3, r7, #12
|
|
800675a: 4618 mov r0, r3
|
|
800675c: f008 ff84 bl 800f668 <vPortGetHeapStats>
|
|
|
|
// Execute the user-defined callback.
|
|
sta::tacos::onStateTransition(transition.from, transition.to, transition.lockout);
|
|
8006760: 8d3b ldrh r3, [r7, #40] @ 0x28
|
|
8006762: 8d79 ldrh r1, [r7, #42] @ 0x2a
|
|
8006764: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
8006766: 4618 mov r0, r3
|
|
8006768: f7fa fcac bl 80010c4 <_ZN3sta5tacos17onStateTransitionEttm>
|
|
|
|
// Start all new tasks and stop all the tasks that aren't supposed to be running.
|
|
updateThreads();
|
|
800676c: 6878 ldr r0, [r7, #4]
|
|
800676e: f000 fa15 bl 8006b9c <_ZN3sta5tacos12Statemachine13updateThreadsEv>
|
|
}
|
|
}
|
|
8006772: bf00 nop
|
|
8006774: 3738 adds r7, #56 @ 0x38
|
|
8006776: 46bd mov sp, r7
|
|
8006778: bd80 pop {r7, pc}
|
|
800677a: bf00 nop
|
|
800677c: 08012ad4 .word 0x08012ad4
|
|
8006780: 08012af8 .word 0x08012af8
|
|
8006784: 20000300 .word 0x20000300
|
|
|
|
08006788 <_ZNK3sta5tacos12Statemachine15getCurrentStateEv>:
|
|
|
|
uint16_t Statemachine::getCurrentState() const
|
|
{
|
|
8006788: b480 push {r7}
|
|
800678a: b083 sub sp, #12
|
|
800678c: af00 add r7, sp, #0
|
|
800678e: 6078 str r0, [r7, #4]
|
|
return currentState_;
|
|
8006790: 687b ldr r3, [r7, #4]
|
|
8006792: f8b3 305c ldrh.w r3, [r3, #92] @ 0x5c
|
|
}
|
|
8006796: 4618 mov r0, r3
|
|
8006798: 370c adds r7, #12
|
|
800679a: 46bd mov sp, r7
|
|
800679c: f85d 7b04 ldr.w r7, [sp], #4
|
|
80067a0: 4770 bx lr
|
|
|
|
080067a2 <_ZZN3sta5tacos12Statemachine15setLockoutTimerEmENKUlPvE_clES2_>:
|
|
|
|
void Statemachine::setLockoutTimer(uint32_t millis)
|
|
{
|
|
STA_ASSERT(!lockoutTimer_.isRunning());
|
|
|
|
lockoutTimer_.setCallback([](void *) { }, nullptr);
|
|
80067a2: b480 push {r7}
|
|
80067a4: b083 sub sp, #12
|
|
80067a6: af00 add r7, sp, #0
|
|
80067a8: 6078 str r0, [r7, #4]
|
|
80067aa: 6039 str r1, [r7, #0]
|
|
80067ac: bf00 nop
|
|
80067ae: 370c adds r7, #12
|
|
80067b0: 46bd mov sp, r7
|
|
80067b2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80067b6: 4770 bx lr
|
|
|
|
080067b8 <_ZN3sta5tacos12Statemachine15setLockoutTimerEm>:
|
|
{
|
|
80067b8: b590 push {r4, r7, lr}
|
|
80067ba: b089 sub sp, #36 @ 0x24
|
|
80067bc: af00 add r7, sp, #0
|
|
80067be: 6078 str r0, [r7, #4]
|
|
80067c0: 6039 str r1, [r7, #0]
|
|
STA_ASSERT(!lockoutTimer_.isRunning());
|
|
80067c2: 687b ldr r3, [r7, #4]
|
|
80067c4: 3360 adds r3, #96 @ 0x60
|
|
80067c6: 4618 mov r0, r3
|
|
80067c8: f003 f818 bl 80097fc <_ZN3sta9RtosTimer9isRunningEv>
|
|
80067cc: 4603 mov r3, r0
|
|
80067ce: 2b00 cmp r3, #0
|
|
80067d0: d006 beq.n 80067e0 <_ZN3sta5tacos12Statemachine15setLockoutTimerEm+0x28>
|
|
80067d2: 229b movs r2, #155 @ 0x9b
|
|
80067d4: 4913 ldr r1, [pc, #76] @ (8006824 <_ZN3sta5tacos12Statemachine15setLockoutTimerEm+0x6c>)
|
|
80067d6: 4814 ldr r0, [pc, #80] @ (8006828 <_ZN3sta5tacos12Statemachine15setLockoutTimerEm+0x70>)
|
|
80067d8: f003 fa3e bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80067dc: f003 fa6c bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
lockoutTimer_.setCallback([](void *) { }, nullptr);
|
|
80067e0: 687b ldr r3, [r7, #4]
|
|
80067e2: f103 0460 add.w r4, r3, #96 @ 0x60
|
|
80067e6: f107 021c add.w r2, r7, #28
|
|
80067ea: f107 030c add.w r3, r7, #12
|
|
80067ee: 4611 mov r1, r2
|
|
80067f0: 4618 mov r0, r3
|
|
80067f2: f000 fae9 bl 8006dc8 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_vEEOT_>
|
|
80067f6: f107 030c add.w r3, r7, #12
|
|
80067fa: 2200 movs r2, #0
|
|
80067fc: 4619 mov r1, r3
|
|
80067fe: 4620 mov r0, r4
|
|
8006800: f002 ffa6 bl 8009750 <_ZN3sta9RtosTimer11setCallbackESt8functionIFvPvEES2_>
|
|
8006804: f107 030c add.w r3, r7, #12
|
|
8006808: 4618 mov r0, r3
|
|
800680a: f7ff fe9b bl 8006544 <_ZNSt8functionIFvPvEED1Ev>
|
|
lockoutTimer_.start(millis);
|
|
800680e: 687b ldr r3, [r7, #4]
|
|
8006810: 3360 adds r3, #96 @ 0x60
|
|
8006812: 6839 ldr r1, [r7, #0]
|
|
8006814: 4618 mov r0, r3
|
|
8006816: f002 ffaf bl 8009778 <_ZN3sta9RtosTimer5startEm>
|
|
}
|
|
800681a: bf00 nop
|
|
800681c: 3724 adds r7, #36 @ 0x24
|
|
800681e: 46bd mov sp, r7
|
|
8006820: bd90 pop {r4, r7, pc}
|
|
8006822: bf00 nop
|
|
8006824: 08012ad4 .word 0x08012ad4
|
|
8006828: 08012b3c .word 0x08012b3c
|
|
|
|
0800682c <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE>:
|
|
|
|
void Statemachine::registerThread(std::shared_ptr<TacosThread> thread, std::set<uint16_t> states)
|
|
{
|
|
800682c: b580 push {r7, lr}
|
|
800682e: b088 sub sp, #32
|
|
8006830: af00 add r7, sp, #0
|
|
8006832: 60f8 str r0, [r7, #12]
|
|
8006834: 60b9 str r1, [r7, #8]
|
|
8006836: 607a str r2, [r7, #4]
|
|
for (uint16_t state : states)
|
|
8006838: 687b ldr r3, [r7, #4]
|
|
800683a: 61fb str r3, [r7, #28]
|
|
800683c: 69f8 ldr r0, [r7, #28]
|
|
800683e: f7fa ffea bl 8001816 <_ZNKSt3setItSt4lessItESaItEE5beginEv>
|
|
8006842: 4603 mov r3, r0
|
|
8006844: 617b str r3, [r7, #20]
|
|
8006846: 69f8 ldr r0, [r7, #28]
|
|
8006848: f7fa fff2 bl 8001830 <_ZNKSt3setItSt4lessItESaItEE3endEv>
|
|
800684c: 4603 mov r3, r0
|
|
800684e: 613b str r3, [r7, #16]
|
|
8006850: e023 b.n 800689a <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE+0x6e>
|
|
8006852: f107 0314 add.w r3, r7, #20
|
|
8006856: 4618 mov r0, r3
|
|
8006858: f7fb fe0f bl 800247a <_ZNKSt23_Rb_tree_const_iteratorItEdeEv>
|
|
800685c: 4603 mov r3, r0
|
|
800685e: 881b ldrh r3, [r3, #0]
|
|
8006860: 837b strh r3, [r7, #26]
|
|
{
|
|
STA_ASSERT(state < STA_TACOS_NUM_STATES);
|
|
8006862: 8b7b ldrh r3, [r7, #26]
|
|
8006864: 2b02 cmp r3, #2
|
|
8006866: d906 bls.n 8006876 <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE+0x4a>
|
|
8006868: 22a5 movs r2, #165 @ 0xa5
|
|
800686a: 4914 ldr r1, [pc, #80] @ (80068bc <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE+0x90>)
|
|
800686c: 4814 ldr r0, [pc, #80] @ (80068c0 <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE+0x94>)
|
|
800686e: f003 f9f3 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8006872: f003 fa21 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
threads_[state].push_back(thread);
|
|
8006876: 8b7a ldrh r2, [r7, #26]
|
|
8006878: 4613 mov r3, r2
|
|
800687a: 005b lsls r3, r3, #1
|
|
800687c: 4413 add r3, r2
|
|
800687e: 009b lsls r3, r3, #2
|
|
8006880: 33c0 adds r3, #192 @ 0xc0
|
|
8006882: 68fa ldr r2, [r7, #12]
|
|
8006884: 4413 add r3, r2
|
|
8006886: 3304 adds r3, #4
|
|
8006888: 68b9 ldr r1, [r7, #8]
|
|
800688a: 4618 mov r0, r3
|
|
800688c: f000 facc bl 8006e28 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE9push_backERKS4_>
|
|
for (uint16_t state : states)
|
|
8006890: f107 0314 add.w r3, r7, #20
|
|
8006894: 4618 mov r0, r3
|
|
8006896: f7fb fe16 bl 80024c6 <_ZNSt23_Rb_tree_const_iteratorItEppEv>
|
|
800689a: f107 0210 add.w r2, r7, #16
|
|
800689e: f107 0314 add.w r3, r7, #20
|
|
80068a2: 4611 mov r1, r2
|
|
80068a4: 4618 mov r0, r3
|
|
80068a6: f7fb fdad bl 8002404 <_ZStneRKSt23_Rb_tree_const_iteratorItES2_>
|
|
80068aa: 4603 mov r3, r0
|
|
80068ac: 2b00 cmp r3, #0
|
|
80068ae: d1d0 bne.n 8006852 <_ZN3sta5tacos12Statemachine14registerThreadESt10shared_ptrINS0_11TacosThreadEESt3setItSt4lessItESaItEE+0x26>
|
|
}
|
|
}
|
|
80068b0: bf00 nop
|
|
80068b2: bf00 nop
|
|
80068b4: 3720 adds r7, #32
|
|
80068b6: 46bd mov sp, r7
|
|
80068b8: bd80 pop {r7, pc}
|
|
80068ba: bf00 nop
|
|
80068bc: 08012ad4 .word 0x08012ad4
|
|
80068c0: 08012b58 .word 0x08012b58
|
|
|
|
080068c4 <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1ERKS5_>:
|
|
__shared_ptr(const __shared_ptr&) noexcept = default;
|
|
80068c4: b580 push {r7, lr}
|
|
80068c6: b082 sub sp, #8
|
|
80068c8: af00 add r7, sp, #0
|
|
80068ca: 6078 str r0, [r7, #4]
|
|
80068cc: 6039 str r1, [r7, #0]
|
|
80068ce: 683b ldr r3, [r7, #0]
|
|
80068d0: 681a ldr r2, [r3, #0]
|
|
80068d2: 687b ldr r3, [r7, #4]
|
|
80068d4: 601a str r2, [r3, #0]
|
|
80068d6: 687b ldr r3, [r7, #4]
|
|
80068d8: 1d1a adds r2, r3, #4
|
|
80068da: 683b ldr r3, [r7, #0]
|
|
80068dc: 3304 adds r3, #4
|
|
80068de: 4619 mov r1, r3
|
|
80068e0: 4610 mov r0, r2
|
|
80068e2: f7fb fe45 bl 8002570 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1ERKS2_>
|
|
80068e6: 687b ldr r3, [r7, #4]
|
|
80068e8: 4618 mov r0, r3
|
|
80068ea: 3708 adds r7, #8
|
|
80068ec: 46bd mov sp, r7
|
|
80068ee: bd80 pop {r7, pc}
|
|
|
|
080068f0 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1ERKS3_>:
|
|
shared_ptr(const shared_ptr&) noexcept = default; ///< Copy constructor
|
|
80068f0: b580 push {r7, lr}
|
|
80068f2: b082 sub sp, #8
|
|
80068f4: af00 add r7, sp, #0
|
|
80068f6: 6078 str r0, [r7, #4]
|
|
80068f8: 6039 str r1, [r7, #0]
|
|
80068fa: 687b ldr r3, [r7, #4]
|
|
80068fc: 683a ldr r2, [r7, #0]
|
|
80068fe: 4611 mov r1, r2
|
|
8006900: 4618 mov r0, r3
|
|
8006902: f7ff ffdf bl 80068c4 <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1ERKS5_>
|
|
8006906: 687b ldr r3, [r7, #4]
|
|
8006908: 4618 mov r0, r3
|
|
800690a: 3708 adds r7, #8
|
|
800690c: 46bd mov sp, r7
|
|
800690e: bd80 pop {r7, pc}
|
|
|
|
08006910 <_ZN3sta5tacos12Statemachine12startThreadsEt>:
|
|
{
|
|
return threads_[tacos::getState()];
|
|
}
|
|
|
|
void Statemachine::startThreads(uint16_t state)
|
|
{
|
|
8006910: b580 push {r7, lr}
|
|
8006912: b088 sub sp, #32
|
|
8006914: af00 add r7, sp, #0
|
|
8006916: 6078 str r0, [r7, #4]
|
|
8006918: 460b mov r3, r1
|
|
800691a: 807b strh r3, [r7, #2]
|
|
STA_ASSERT(state < STA_TACOS_NUM_STATES);
|
|
800691c: 887b ldrh r3, [r7, #2]
|
|
800691e: 2b02 cmp r3, #2
|
|
8006920: d906 bls.n 8006930 <_ZN3sta5tacos12Statemachine12startThreadsEt+0x20>
|
|
8006922: 22b2 movs r2, #178 @ 0xb2
|
|
8006924: 492c ldr r1, [pc, #176] @ (80069d8 <_ZN3sta5tacos12Statemachine12startThreadsEt+0xc8>)
|
|
8006926: 482d ldr r0, [pc, #180] @ (80069dc <_ZN3sta5tacos12Statemachine12startThreadsEt+0xcc>)
|
|
8006928: f003 f996 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800692c: f003 f9c4 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
for (std::shared_ptr<TacosThread> thread : threads_[state])
|
|
8006930: 887a ldrh r2, [r7, #2]
|
|
8006932: 4613 mov r3, r2
|
|
8006934: 005b lsls r3, r3, #1
|
|
8006936: 4413 add r3, r2
|
|
8006938: 009b lsls r3, r3, #2
|
|
800693a: 33c0 adds r3, #192 @ 0xc0
|
|
800693c: 687a ldr r2, [r7, #4]
|
|
800693e: 4413 add r3, r2
|
|
8006940: 3304 adds r3, #4
|
|
8006942: 61fb str r3, [r7, #28]
|
|
8006944: 69f8 ldr r0, [r7, #28]
|
|
8006946: f000 fa95 bl 8006e74 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE5beginEv>
|
|
800694a: 4603 mov r3, r0
|
|
800694c: 613b str r3, [r7, #16]
|
|
800694e: 69f8 ldr r0, [r7, #28]
|
|
8006950: f000 faa0 bl 8006e94 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE3endEv>
|
|
8006954: 4603 mov r3, r0
|
|
8006956: 60fb str r3, [r7, #12]
|
|
8006958: e02e b.n 80069b8 <_ZN3sta5tacos12Statemachine12startThreadsEt+0xa8>
|
|
800695a: f107 0310 add.w r3, r7, #16
|
|
800695e: 4618 mov r0, r3
|
|
8006960: f000 fad2 bl 8006f08 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEdeEv>
|
|
8006964: 4602 mov r2, r0
|
|
8006966: f107 0314 add.w r3, r7, #20
|
|
800696a: 4611 mov r1, r2
|
|
800696c: 4618 mov r0, r3
|
|
800696e: f7ff ffbf bl 80068f0 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1ERKS3_>
|
|
{
|
|
if (!thread->isRunning())
|
|
8006972: f107 0314 add.w r3, r7, #20
|
|
8006976: 4618 mov r0, r3
|
|
8006978: f000 fad2 bl 8006f20 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EEptEv>
|
|
800697c: 4603 mov r3, r0
|
|
800697e: 4618 mov r0, r3
|
|
8006980: f002 fb7e bl 8009080 <_ZN3sta5tacos11TacosThread9isRunningEv>
|
|
8006984: 4603 mov r3, r0
|
|
8006986: f083 0301 eor.w r3, r3, #1
|
|
800698a: b2db uxtb r3, r3
|
|
800698c: 2b00 cmp r3, #0
|
|
800698e: d009 beq.n 80069a4 <_ZN3sta5tacos12Statemachine12startThreadsEt+0x94>
|
|
{
|
|
thread->start();
|
|
8006990: f107 0314 add.w r3, r7, #20
|
|
8006994: 4618 mov r0, r3
|
|
8006996: f000 fac3 bl 8006f20 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EEptEv>
|
|
800699a: 4603 mov r3, r0
|
|
800699c: 681a ldr r2, [r3, #0]
|
|
800699e: 6812 ldr r2, [r2, #0]
|
|
80069a0: 4618 mov r0, r3
|
|
80069a2: 4790 blx r2
|
|
}
|
|
}
|
|
80069a4: f107 0314 add.w r3, r7, #20
|
|
80069a8: 4618 mov r0, r3
|
|
80069aa: f7fa fd64 bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
for (std::shared_ptr<TacosThread> thread : threads_[state])
|
|
80069ae: f107 0310 add.w r3, r7, #16
|
|
80069b2: 4618 mov r0, r3
|
|
80069b4: f000 fa97 bl 8006ee6 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEppEv>
|
|
80069b8: f107 020c add.w r2, r7, #12
|
|
80069bc: f107 0310 add.w r3, r7, #16
|
|
80069c0: 4611 mov r1, r2
|
|
80069c2: 4618 mov r0, r3
|
|
80069c4: f000 fa77 bl 8006eb6 <_ZN9__gnu_cxxneIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_>
|
|
80069c8: 4603 mov r3, r0
|
|
80069ca: 2b00 cmp r3, #0
|
|
80069cc: d1c5 bne.n 800695a <_ZN3sta5tacos12Statemachine12startThreadsEt+0x4a>
|
|
}
|
|
80069ce: bf00 nop
|
|
80069d0: bf00 nop
|
|
80069d2: 3720 adds r7, #32
|
|
80069d4: 46bd mov sp, r7
|
|
80069d6: bd80 pop {r7, pc}
|
|
80069d8: 08012ad4 .word 0x08012ad4
|
|
80069dc: 08012b58 .word 0x08012b58
|
|
|
|
080069e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE13_Rb_tree_implIS8_Lb1EED1Ev>:
|
|
struct _Rb_tree_impl
|
|
80069e0: b580 push {r7, lr}
|
|
80069e2: b082 sub sp, #8
|
|
80069e4: af00 add r7, sp, #0
|
|
80069e6: 6078 str r0, [r7, #4]
|
|
80069e8: 6878 ldr r0, [r7, #4]
|
|
80069ea: f000 faba bl 8006f62 <_ZNSaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEED1Ev>
|
|
80069ee: 687b ldr r3, [r7, #4]
|
|
80069f0: 4618 mov r0, r3
|
|
80069f2: 3708 adds r7, #8
|
|
80069f4: 46bd mov sp, r7
|
|
80069f6: bd80 pop {r7, pc}
|
|
|
|
080069f8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EEC1Ev>:
|
|
_Rb_tree() = default;
|
|
80069f8: b580 push {r7, lr}
|
|
80069fa: b082 sub sp, #8
|
|
80069fc: af00 add r7, sp, #0
|
|
80069fe: 6078 str r0, [r7, #4]
|
|
8006a00: 687b ldr r3, [r7, #4]
|
|
8006a02: 4618 mov r0, r3
|
|
8006a04: f000 fa98 bl 8006f38 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEC1Ev>
|
|
8006a08: 687b ldr r3, [r7, #4]
|
|
8006a0a: 4618 mov r0, r3
|
|
8006a0c: 3708 adds r7, #8
|
|
8006a0e: 46bd mov sp, r7
|
|
8006a10: bd80 pop {r7, pc}
|
|
|
|
08006a12 <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EEC1Ev>:
|
|
set() = default;
|
|
8006a12: b580 push {r7, lr}
|
|
8006a14: b082 sub sp, #8
|
|
8006a16: af00 add r7, sp, #0
|
|
8006a18: 6078 str r0, [r7, #4]
|
|
8006a1a: 687b ldr r3, [r7, #4]
|
|
8006a1c: 4618 mov r0, r3
|
|
8006a1e: f7ff ffeb bl 80069f8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EEC1Ev>
|
|
8006a22: 687b ldr r3, [r7, #4]
|
|
8006a24: 4618 mov r0, r3
|
|
8006a26: 3708 adds r7, #8
|
|
8006a28: 46bd mov sp, r7
|
|
8006a2a: bd80 pop {r7, pc}
|
|
|
|
08006a2c <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EED1Ev>:
|
|
~set() = default;
|
|
8006a2c: b580 push {r7, lr}
|
|
8006a2e: b082 sub sp, #8
|
|
8006a30: af00 add r7, sp, #0
|
|
8006a32: 6078 str r0, [r7, #4]
|
|
8006a34: 687b ldr r3, [r7, #4]
|
|
8006a36: 4618 mov r0, r3
|
|
8006a38: f000 fa9f bl 8006f7a <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EED1Ev>
|
|
8006a3c: 687b ldr r3, [r7, #4]
|
|
8006a3e: 4618 mov r0, r3
|
|
8006a40: 3708 adds r7, #8
|
|
8006a42: 46bd mov sp, r7
|
|
8006a44: bd80 pop {r7, pc}
|
|
|
|
08006a46 <_ZN3sta5tacos12Statemachine11stopThreadsEt>:
|
|
|
|
void Statemachine::stopThreads(uint16_t state)
|
|
{
|
|
8006a46: b590 push {r4, r7, lr}
|
|
8006a48: b091 sub sp, #68 @ 0x44
|
|
8006a4a: af00 add r7, sp, #0
|
|
8006a4c: 6078 str r0, [r7, #4]
|
|
8006a4e: 460b mov r3, r1
|
|
8006a50: 807b strh r3, [r7, #2]
|
|
std::set<std::shared_ptr<TacosThread>> terminated;
|
|
8006a52: f107 0318 add.w r3, r7, #24
|
|
8006a56: 4618 mov r0, r3
|
|
8006a58: f7ff ffdb bl 8006a12 <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EEC1Ev>
|
|
|
|
for (uint16_t other = 0; other < STA_TACOS_NUM_STATES; ++other)
|
|
8006a5c: 2300 movs r3, #0
|
|
8006a5e: 87fb strh r3, [r7, #62] @ 0x3e
|
|
8006a60: e090 b.n 8006b84 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x13e>
|
|
{
|
|
if (other == state)
|
|
8006a62: 8ffa ldrh r2, [r7, #62] @ 0x3e
|
|
8006a64: 887b ldrh r3, [r7, #2]
|
|
8006a66: 429a cmp r2, r3
|
|
8006a68: f000 8088 beq.w 8006b7c <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x136>
|
|
{
|
|
continue;
|
|
}
|
|
|
|
for (std::shared_ptr<TacosThread> thread : threads_[other])
|
|
8006a6c: 8ffa ldrh r2, [r7, #62] @ 0x3e
|
|
8006a6e: 4613 mov r3, r2
|
|
8006a70: 005b lsls r3, r3, #1
|
|
8006a72: 4413 add r3, r2
|
|
8006a74: 009b lsls r3, r3, #2
|
|
8006a76: 33c0 adds r3, #192 @ 0xc0
|
|
8006a78: 687a ldr r2, [r7, #4]
|
|
8006a7a: 4413 add r3, r2
|
|
8006a7c: 3304 adds r3, #4
|
|
8006a7e: 63bb str r3, [r7, #56] @ 0x38
|
|
8006a80: 6bb8 ldr r0, [r7, #56] @ 0x38
|
|
8006a82: f000 f9f7 bl 8006e74 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE5beginEv>
|
|
8006a86: 4603 mov r3, r0
|
|
8006a88: 60fb str r3, [r7, #12]
|
|
8006a8a: 6bb8 ldr r0, [r7, #56] @ 0x38
|
|
8006a8c: f000 fa02 bl 8006e94 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE3endEv>
|
|
8006a90: 4603 mov r3, r0
|
|
8006a92: 60bb str r3, [r7, #8]
|
|
8006a94: e066 b.n 8006b64 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x11e>
|
|
8006a96: f107 030c add.w r3, r7, #12
|
|
8006a9a: 4618 mov r0, r3
|
|
8006a9c: f000 fa34 bl 8006f08 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEdeEv>
|
|
8006aa0: 4602 mov r2, r0
|
|
8006aa2: f107 0310 add.w r3, r7, #16
|
|
8006aa6: 4611 mov r1, r2
|
|
8006aa8: 4618 mov r0, r3
|
|
8006aaa: f7ff ff21 bl 80068f0 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1ERKS3_>
|
|
{
|
|
// If the thread is currently running but not part of the set of threads that should be running...
|
|
if (thread->isRunning() && terminated.count(thread) == 0 && std::count(threads_[state].begin(), threads_[state].end(), thread) == 0)
|
|
8006aae: f107 0310 add.w r3, r7, #16
|
|
8006ab2: 4618 mov r0, r3
|
|
8006ab4: f000 fa34 bl 8006f20 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EEptEv>
|
|
8006ab8: 4603 mov r3, r0
|
|
8006aba: 4618 mov r0, r3
|
|
8006abc: f002 fae0 bl 8009080 <_ZN3sta5tacos11TacosThread9isRunningEv>
|
|
8006ac0: 4603 mov r3, r0
|
|
8006ac2: 2b00 cmp r3, #0
|
|
8006ac4: d02f beq.n 8006b26 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0xe0>
|
|
8006ac6: f107 0210 add.w r2, r7, #16
|
|
8006aca: f107 0318 add.w r3, r7, #24
|
|
8006ace: 4611 mov r1, r2
|
|
8006ad0: 4618 mov r0, r3
|
|
8006ad2: f000 fa67 bl 8006fa4 <_ZNKSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE5countERKS4_>
|
|
8006ad6: 4603 mov r3, r0
|
|
8006ad8: 2b00 cmp r3, #0
|
|
8006ada: d124 bne.n 8006b26 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0xe0>
|
|
8006adc: 887a ldrh r2, [r7, #2]
|
|
8006ade: 4613 mov r3, r2
|
|
8006ae0: 005b lsls r3, r3, #1
|
|
8006ae2: 4413 add r3, r2
|
|
8006ae4: 009b lsls r3, r3, #2
|
|
8006ae6: 33c0 adds r3, #192 @ 0xc0
|
|
8006ae8: 687a ldr r2, [r7, #4]
|
|
8006aea: 4413 add r3, r2
|
|
8006aec: 3304 adds r3, #4
|
|
8006aee: 4618 mov r0, r3
|
|
8006af0: f000 f9c0 bl 8006e74 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE5beginEv>
|
|
8006af4: 4604 mov r4, r0
|
|
8006af6: 887a ldrh r2, [r7, #2]
|
|
8006af8: 4613 mov r3, r2
|
|
8006afa: 005b lsls r3, r3, #1
|
|
8006afc: 4413 add r3, r2
|
|
8006afe: 009b lsls r3, r3, #2
|
|
8006b00: 33c0 adds r3, #192 @ 0xc0
|
|
8006b02: 687a ldr r2, [r7, #4]
|
|
8006b04: 4413 add r3, r2
|
|
8006b06: 3304 adds r3, #4
|
|
8006b08: 4618 mov r0, r3
|
|
8006b0a: f000 f9c3 bl 8006e94 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE3endEv>
|
|
8006b0e: 4601 mov r1, r0
|
|
8006b10: f107 0310 add.w r3, r7, #16
|
|
8006b14: 461a mov r2, r3
|
|
8006b16: 4620 mov r0, r4
|
|
8006b18: f000 fa68 bl 8006fec <_ZSt5countIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEES6_ENSt15iterator_traitsIT_E15difference_typeESD_SD_RKT0_>
|
|
8006b1c: 4603 mov r3, r0
|
|
8006b1e: 2b00 cmp r3, #0
|
|
8006b20: d101 bne.n 8006b26 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0xe0>
|
|
8006b22: 2301 movs r3, #1
|
|
8006b24: e000 b.n 8006b28 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0xe2>
|
|
8006b26: 2300 movs r3, #0
|
|
8006b28: 2b00 cmp r3, #0
|
|
8006b2a: d011 beq.n 8006b50 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x10a>
|
|
{
|
|
// ...politely request termination.
|
|
thread->requestTermination();
|
|
8006b2c: f107 0310 add.w r3, r7, #16
|
|
8006b30: 4618 mov r0, r3
|
|
8006b32: f000 f9f5 bl 8006f20 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EEptEv>
|
|
8006b36: 4603 mov r3, r0
|
|
8006b38: 4618 mov r0, r3
|
|
8006b3a: f002 fb37 bl 80091ac <_ZN3sta5tacos11TacosThread18requestTerminationEv>
|
|
terminated.emplace(thread);
|
|
8006b3e: f107 0330 add.w r3, r7, #48 @ 0x30
|
|
8006b42: f107 0210 add.w r2, r7, #16
|
|
8006b46: f107 0118 add.w r1, r7, #24
|
|
8006b4a: 4618 mov r0, r3
|
|
8006b4c: f000 fa62 bl 8007014 <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE7emplaceIJRS4_EEESt4pairISt23_Rb_tree_const_iteratorIS4_EbEDpOT_>
|
|
}
|
|
}
|
|
8006b50: f107 0310 add.w r3, r7, #16
|
|
8006b54: 4618 mov r0, r3
|
|
8006b56: f7fa fc8e bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
for (std::shared_ptr<TacosThread> thread : threads_[other])
|
|
8006b5a: f107 030c add.w r3, r7, #12
|
|
8006b5e: 4618 mov r0, r3
|
|
8006b60: f000 f9c1 bl 8006ee6 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEppEv>
|
|
8006b64: f107 0208 add.w r2, r7, #8
|
|
8006b68: f107 030c add.w r3, r7, #12
|
|
8006b6c: 4611 mov r1, r2
|
|
8006b6e: 4618 mov r0, r3
|
|
8006b70: f000 f9a1 bl 8006eb6 <_ZN9__gnu_cxxneIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_>
|
|
8006b74: 4603 mov r3, r0
|
|
8006b76: 2b00 cmp r3, #0
|
|
8006b78: d18d bne.n 8006a96 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x50>
|
|
8006b7a: e000 b.n 8006b7e <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x138>
|
|
continue;
|
|
8006b7c: bf00 nop
|
|
for (uint16_t other = 0; other < STA_TACOS_NUM_STATES; ++other)
|
|
8006b7e: 8ffb ldrh r3, [r7, #62] @ 0x3e
|
|
8006b80: 3301 adds r3, #1
|
|
8006b82: 87fb strh r3, [r7, #62] @ 0x3e
|
|
8006b84: 8ffb ldrh r3, [r7, #62] @ 0x3e
|
|
8006b86: 2b02 cmp r3, #2
|
|
8006b88: f67f af6b bls.w 8006a62 <_ZN3sta5tacos12Statemachine11stopThreadsEt+0x1c>
|
|
}
|
|
}
|
|
8006b8c: f107 0318 add.w r3, r7, #24
|
|
8006b90: 4618 mov r0, r3
|
|
8006b92: f7ff ff4b bl 8006a2c <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EED1Ev>
|
|
8006b96: 3744 adds r7, #68 @ 0x44
|
|
8006b98: 46bd mov sp, r7
|
|
8006b9a: bd90 pop {r4, r7, pc}
|
|
|
|
08006b9c <_ZN3sta5tacos12Statemachine13updateThreadsEv>:
|
|
|
|
void Statemachine::updateThreads()
|
|
{
|
|
8006b9c: b580 push {r7, lr}
|
|
8006b9e: b084 sub sp, #16
|
|
8006ba0: af00 add r7, sp, #0
|
|
8006ba2: 6078 str r0, [r7, #4]
|
|
uint16_t state = getCurrentState();
|
|
8006ba4: 6878 ldr r0, [r7, #4]
|
|
8006ba6: f7ff fdef bl 8006788 <_ZNK3sta5tacos12Statemachine15getCurrentStateEv>
|
|
8006baa: 4603 mov r3, r0
|
|
8006bac: 81fb strh r3, [r7, #14]
|
|
|
|
stopThreads(state);
|
|
8006bae: 89fb ldrh r3, [r7, #14]
|
|
8006bb0: 4619 mov r1, r3
|
|
8006bb2: 6878 ldr r0, [r7, #4]
|
|
8006bb4: f7ff ff47 bl 8006a46 <_ZN3sta5tacos12Statemachine11stopThreadsEt>
|
|
startThreads(state);
|
|
8006bb8: 89fb ldrh r3, [r7, #14]
|
|
8006bba: 4619 mov r1, r3
|
|
8006bbc: 6878 ldr r0, [r7, #4]
|
|
8006bbe: f7ff fea7 bl 8006910 <_ZN3sta5tacos12Statemachine12startThreadsEt>
|
|
}
|
|
8006bc2: bf00 nop
|
|
8006bc4: 3710 adds r7, #16
|
|
8006bc6: 46bd mov sp, r7
|
|
8006bc8: bd80 pop {r7, pc}
|
|
|
|
08006bca <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EED1Ev>:
|
|
* elements themselves are pointers, the pointed-to memory is
|
|
* not touched in any way. Managing the pointer is the user's
|
|
* responsibility.
|
|
*/
|
|
_GLIBCXX20_CONSTEXPR
|
|
~vector() _GLIBCXX_NOEXCEPT
|
|
8006bca: b5b0 push {r4, r5, r7, lr}
|
|
8006bcc: b082 sub sp, #8
|
|
8006bce: af00 add r7, sp, #0
|
|
8006bd0: 6078 str r0, [r7, #4]
|
|
{
|
|
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
|
|
8006bd2: 687b ldr r3, [r7, #4]
|
|
8006bd4: 681c ldr r4, [r3, #0]
|
|
8006bd6: 687b ldr r3, [r7, #4]
|
|
8006bd8: 685d ldr r5, [r3, #4]
|
|
_M_get_Tp_allocator());
|
|
8006bda: 687b ldr r3, [r7, #4]
|
|
8006bdc: 4618 mov r0, r3
|
|
8006bde: f000 fa34 bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
8006be2: 4603 mov r3, r0
|
|
std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish,
|
|
8006be4: 461a mov r2, r3
|
|
8006be6: 4629 mov r1, r5
|
|
8006be8: 4620 mov r0, r4
|
|
8006bea: f000 fa39 bl 8007060 <_ZSt8_DestroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEES4_EvT_S6_RSaIT0_E>
|
|
_GLIBCXX_ASAN_ANNOTATE_BEFORE_DEALLOC;
|
|
}
|
|
8006bee: 687b ldr r3, [r7, #4]
|
|
8006bf0: 4618 mov r0, r3
|
|
8006bf2: f000 f8b7 bl 8006d64 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EED1Ev>
|
|
8006bf6: 687b ldr r3, [r7, #4]
|
|
8006bf8: 4618 mov r0, r3
|
|
8006bfa: 3708 adds r7, #8
|
|
8006bfc: 46bd mov sp, r7
|
|
8006bfe: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08006c00 <_ZNSt14_Function_baseC1Ev>:
|
|
_Function_base() = default;
|
|
8006c00: b480 push {r7}
|
|
8006c02: b083 sub sp, #12
|
|
8006c04: af00 add r7, sp, #0
|
|
8006c06: 6078 str r0, [r7, #4]
|
|
8006c08: 687b ldr r3, [r7, #4]
|
|
8006c0a: 461a mov r2, r3
|
|
8006c0c: 2300 movs r3, #0
|
|
8006c0e: 6013 str r3, [r2, #0]
|
|
8006c10: 6053 str r3, [r2, #4]
|
|
8006c12: 687b ldr r3, [r7, #4]
|
|
8006c14: 2200 movs r2, #0
|
|
8006c16: 609a str r2, [r3, #8]
|
|
8006c18: 687b ldr r3, [r7, #4]
|
|
8006c1a: 4618 mov r0, r3
|
|
8006c1c: 370c adds r7, #12
|
|
8006c1e: 46bd mov sp, r7
|
|
8006c20: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006c24: 4770 bx lr
|
|
...
|
|
|
|
08006c28 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E_vEEOT_>:
|
|
*/
|
|
// _GLIBCXX_RESOLVE_LIB_DEFECTS
|
|
// 2774. std::function construction vs assignment
|
|
template<typename _Functor,
|
|
typename _Constraints = _Requires<_Callable<_Functor>>>
|
|
function(_Functor&& __f)
|
|
8006c28: b590 push {r4, r7, lr}
|
|
8006c2a: b083 sub sp, #12
|
|
8006c2c: af00 add r7, sp, #0
|
|
8006c2e: 6078 str r0, [r7, #4]
|
|
8006c30: 6039 str r1, [r7, #0]
|
|
noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>())
|
|
: _Function_base()
|
|
8006c32: 687b ldr r3, [r7, #4]
|
|
8006c34: 461a mov r2, r3
|
|
8006c36: 2300 movs r3, #0
|
|
8006c38: 6013 str r3, [r2, #0]
|
|
8006c3a: 6053 str r3, [r2, #4]
|
|
8006c3c: 6093 str r3, [r2, #8]
|
|
8006c3e: 687b ldr r3, [r7, #4]
|
|
8006c40: 4618 mov r0, r3
|
|
8006c42: f7ff ffdd bl 8006c00 <_ZNSt14_Function_baseC1Ev>
|
|
8006c46: 687b ldr r3, [r7, #4]
|
|
8006c48: 2200 movs r2, #0
|
|
8006c4a: 60da str r2, [r3, #12]
|
|
"std::function target must be constructible from the "
|
|
"constructor argument");
|
|
|
|
using _My_handler = _Handler<_Functor>;
|
|
|
|
if (_My_handler::_M_not_empty_function(__f))
|
|
8006c4c: 6838 ldr r0, [r7, #0]
|
|
8006c4e: f000 fa15 bl 800707c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E21_M_not_empty_functionIS5_EEbRKT_>
|
|
8006c52: 4603 mov r3, r0
|
|
8006c54: 2b00 cmp r3, #0
|
|
8006c56: d00e beq.n 8006c76 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E_vEEOT_+0x4e>
|
|
{
|
|
_My_handler::_M_init_functor(_M_functor,
|
|
8006c58: 687c ldr r4, [r7, #4]
|
|
8006c5a: 6838 ldr r0, [r7, #0]
|
|
8006c5c: f000 fa19 bl 8007092 <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8006c60: 4603 mov r3, r0
|
|
8006c62: 4619 mov r1, r3
|
|
8006c64: 4620 mov r0, r4
|
|
8006c66: f000 fa1f bl 80070a8 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>
|
|
std::forward<_Functor>(__f));
|
|
_M_invoker = &_My_handler::_M_invoke;
|
|
8006c6a: 687b ldr r3, [r7, #4]
|
|
8006c6c: 4a04 ldr r2, [pc, #16] @ (8006c80 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E_vEEOT_+0x58>)
|
|
8006c6e: 60da str r2, [r3, #12]
|
|
_M_manager = &_My_handler::_M_manager;
|
|
8006c70: 687b ldr r3, [r7, #4]
|
|
8006c72: 4a04 ldr r2, [pc, #16] @ (8006c84 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E_vEEOT_+0x5c>)
|
|
8006c74: 609a str r2, [r3, #8]
|
|
}
|
|
}
|
|
8006c76: 687b ldr r3, [r7, #4]
|
|
8006c78: 4618 mov r0, r3
|
|
8006c7a: 370c adds r7, #12
|
|
8006c7c: 46bd mov sp, r7
|
|
8006c7e: bd90 pop {r4, r7, pc}
|
|
8006c80: 080070cd .word 0x080070cd
|
|
8006c84: 080070f7 .word 0x080070f7
|
|
|
|
08006c88 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E0_vEEOT_>:
|
|
function(_Functor&& __f)
|
|
8006c88: b590 push {r4, r7, lr}
|
|
8006c8a: b083 sub sp, #12
|
|
8006c8c: af00 add r7, sp, #0
|
|
8006c8e: 6078 str r0, [r7, #4]
|
|
8006c90: 6039 str r1, [r7, #0]
|
|
: _Function_base()
|
|
8006c92: 687b ldr r3, [r7, #4]
|
|
8006c94: 461a mov r2, r3
|
|
8006c96: 2300 movs r3, #0
|
|
8006c98: 6013 str r3, [r2, #0]
|
|
8006c9a: 6053 str r3, [r2, #4]
|
|
8006c9c: 6093 str r3, [r2, #8]
|
|
8006c9e: 687b ldr r3, [r7, #4]
|
|
8006ca0: 4618 mov r0, r3
|
|
8006ca2: f7ff ffad bl 8006c00 <_ZNSt14_Function_baseC1Ev>
|
|
8006ca6: 687b ldr r3, [r7, #4]
|
|
8006ca8: 2200 movs r2, #0
|
|
8006caa: 60da str r2, [r3, #12]
|
|
if (_My_handler::_M_not_empty_function(__f))
|
|
8006cac: 6838 ldr r0, [r7, #0]
|
|
8006cae: f000 fa41 bl 8007134 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E21_M_not_empty_functionIS5_EEbRKT_>
|
|
8006cb2: 4603 mov r3, r0
|
|
8006cb4: 2b00 cmp r3, #0
|
|
8006cb6: d00e beq.n 8006cd6 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E0_vEEOT_+0x4e>
|
|
_My_handler::_M_init_functor(_M_functor,
|
|
8006cb8: 687c ldr r4, [r7, #4]
|
|
8006cba: 6838 ldr r0, [r7, #0]
|
|
8006cbc: f000 fa45 bl 800714a <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8006cc0: 4603 mov r3, r0
|
|
8006cc2: 4619 mov r1, r3
|
|
8006cc4: 4620 mov r0, r4
|
|
8006cc6: f000 fa4b bl 8007160 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>
|
|
_M_invoker = &_My_handler::_M_invoke;
|
|
8006cca: 687b ldr r3, [r7, #4]
|
|
8006ccc: 4a04 ldr r2, [pc, #16] @ (8006ce0 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E0_vEEOT_+0x58>)
|
|
8006cce: 60da str r2, [r3, #12]
|
|
_M_manager = &_My_handler::_M_manager;
|
|
8006cd0: 687b ldr r3, [r7, #4]
|
|
8006cd2: 4a04 ldr r2, [pc, #16] @ (8006ce4 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12StatemachineC4EvEUlS0_E0_vEEOT_+0x5c>)
|
|
8006cd4: 609a str r2, [r3, #8]
|
|
}
|
|
8006cd6: 687b ldr r3, [r7, #4]
|
|
8006cd8: 4618 mov r0, r3
|
|
8006cda: 370c adds r7, #12
|
|
8006cdc: 46bd mov sp, r7
|
|
8006cde: bd90 pop {r4, r7, pc}
|
|
8006ce0: 08007185 .word 0x08007185
|
|
8006ce4: 080071af .word 0x080071af
|
|
|
|
08006ce8 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEEC1Em>:
|
|
{
|
|
STA_ASSERT(handle != NULL);
|
|
}
|
|
|
|
template <typename T>
|
|
RtosQueue<T>::RtosQueue(uint32_t length)
|
|
8006ce8: b580 push {r7, lr}
|
|
8006cea: b082 sub sp, #8
|
|
8006cec: af00 add r7, sp, #0
|
|
8006cee: 6078 str r0, [r7, #4]
|
|
8006cf0: 6039 str r1, [r7, #0]
|
|
: handle_{osMessageQueueNew(length, sizeof(T), NULL)}
|
|
8006cf2: 2200 movs r2, #0
|
|
8006cf4: 2110 movs r1, #16
|
|
8006cf6: 6838 ldr r0, [r7, #0]
|
|
8006cf8: f004 fbf6 bl 800b4e8 <osMessageQueueNew>
|
|
8006cfc: 4602 mov r2, r0
|
|
8006cfe: 687b ldr r3, [r7, #4]
|
|
8006d00: 601a str r2, [r3, #0]
|
|
{
|
|
STA_ASSERT(handle_ != NULL);
|
|
8006d02: 687b ldr r3, [r7, #4]
|
|
8006d04: 681b ldr r3, [r3, #0]
|
|
8006d06: 2b00 cmp r3, #0
|
|
8006d08: d106 bne.n 8006d18 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEEC1Em+0x30>
|
|
8006d0a: 221d movs r2, #29
|
|
8006d0c: 4905 ldr r1, [pc, #20] @ (8006d24 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEEC1Em+0x3c>)
|
|
8006d0e: 4806 ldr r0, [pc, #24] @ (8006d28 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEEC1Em+0x40>)
|
|
8006d10: f002 ffa2 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8006d14: f002 ffd0 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
8006d18: 687b ldr r3, [r7, #4]
|
|
8006d1a: 4618 mov r0, r3
|
|
8006d1c: 3708 adds r7, #8
|
|
8006d1e: 46bd mov sp, r7
|
|
8006d20: bd80 pop {r7, pc}
|
|
8006d22: bf00 nop
|
|
8006d24: 08012b78 .word 0x08012b78
|
|
8006d28: 08012be4 .word 0x08012be4
|
|
|
|
08006d2c <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_Vector_implC1Ev>:
|
|
_Vector_impl() _GLIBCXX_NOEXCEPT_IF(
|
|
8006d2c: b580 push {r7, lr}
|
|
8006d2e: b082 sub sp, #8
|
|
8006d30: af00 add r7, sp, #0
|
|
8006d32: 6078 str r0, [r7, #4]
|
|
: _Tp_alloc_type()
|
|
8006d34: 6878 ldr r0, [r7, #4]
|
|
8006d36: f000 fa59 bl 80071ec <_ZNSaISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1Ev>
|
|
8006d3a: 687b ldr r3, [r7, #4]
|
|
8006d3c: 4618 mov r0, r3
|
|
8006d3e: f000 fa61 bl 8007204 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_Vector_impl_dataC1Ev>
|
|
{ }
|
|
8006d42: 687b ldr r3, [r7, #4]
|
|
8006d44: 4618 mov r0, r3
|
|
8006d46: 3708 adds r7, #8
|
|
8006d48: 46bd mov sp, r7
|
|
8006d4a: bd80 pop {r7, pc}
|
|
|
|
08006d4c <_ZNSaISt10shared_ptrIN3sta5tacos11TacosThreadEEED1Ev>:
|
|
8006d4c: b580 push {r7, lr}
|
|
8006d4e: b082 sub sp, #8
|
|
8006d50: af00 add r7, sp, #0
|
|
8006d52: 6078 str r0, [r7, #4]
|
|
8006d54: 6878 ldr r0, [r7, #4]
|
|
8006d56: f000 fa69 bl 800722c <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEED1Ev>
|
|
8006d5a: 687b ldr r3, [r7, #4]
|
|
8006d5c: 4618 mov r0, r3
|
|
8006d5e: 3708 adds r7, #8
|
|
8006d60: 46bd mov sp, r7
|
|
8006d62: bd80 pop {r7, pc}
|
|
|
|
08006d64 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EED1Ev>:
|
|
~_Vector_base() _GLIBCXX_NOEXCEPT
|
|
8006d64: b580 push {r7, lr}
|
|
8006d66: b082 sub sp, #8
|
|
8006d68: af00 add r7, sp, #0
|
|
8006d6a: 6078 str r0, [r7, #4]
|
|
_M_deallocate(_M_impl._M_start,
|
|
8006d6c: 687b ldr r3, [r7, #4]
|
|
8006d6e: 6819 ldr r1, [r3, #0]
|
|
_M_impl._M_end_of_storage - _M_impl._M_start);
|
|
8006d70: 687b ldr r3, [r7, #4]
|
|
8006d72: 689a ldr r2, [r3, #8]
|
|
8006d74: 687b ldr r3, [r7, #4]
|
|
8006d76: 681b ldr r3, [r3, #0]
|
|
8006d78: 1ad3 subs r3, r2, r3
|
|
8006d7a: 10db asrs r3, r3, #3
|
|
_M_deallocate(_M_impl._M_start,
|
|
8006d7c: 461a mov r2, r3
|
|
8006d7e: 6878 ldr r0, [r7, #4]
|
|
8006d80: f000 fa5f bl 8007242 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE13_M_deallocateEPS4_j>
|
|
}
|
|
8006d84: 687b ldr r3, [r7, #4]
|
|
8006d86: 4618 mov r0, r3
|
|
8006d88: f7ff fbe9 bl 800655e <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_Vector_implD1Ev>
|
|
8006d8c: 687b ldr r3, [r7, #4]
|
|
8006d8e: 4618 mov r0, r3
|
|
8006d90: 3708 adds r7, #8
|
|
8006d92: 46bd mov sp, r7
|
|
8006d94: bd80 pop {r7, pc}
|
|
|
|
08006d96 <_ZN3sta9RtosQueueINS_5tacos15StateTransitionEE3getEPS2_m>:
|
|
{
|
|
return (osOK == osMessageQueuePut(handle_, &msg, 0, timeout));
|
|
}
|
|
|
|
template <typename T>
|
|
bool RtosQueue<T>::get(T * outMsg, uint32_t timeout /* = osWaitForever */)
|
|
8006d96: b580 push {r7, lr}
|
|
8006d98: b086 sub sp, #24
|
|
8006d9a: af00 add r7, sp, #0
|
|
8006d9c: 60f8 str r0, [r7, #12]
|
|
8006d9e: 60b9 str r1, [r7, #8]
|
|
8006da0: 607a str r2, [r7, #4]
|
|
{
|
|
uint8_t prio;
|
|
return (osOK == osMessageQueueGet(handle_, outMsg, &prio, timeout));
|
|
8006da2: 68fb ldr r3, [r7, #12]
|
|
8006da4: 6818 ldr r0, [r3, #0]
|
|
8006da6: f107 0217 add.w r2, r7, #23
|
|
8006daa: 687b ldr r3, [r7, #4]
|
|
8006dac: 68b9 ldr r1, [r7, #8]
|
|
8006dae: f004 fc0f bl 800b5d0 <osMessageQueueGet>
|
|
8006db2: 4603 mov r3, r0
|
|
8006db4: 2b00 cmp r3, #0
|
|
8006db6: bf0c ite eq
|
|
8006db8: 2301 moveq r3, #1
|
|
8006dba: 2300 movne r3, #0
|
|
8006dbc: b2db uxtb r3, r3
|
|
}
|
|
8006dbe: 4618 mov r0, r3
|
|
8006dc0: 3718 adds r7, #24
|
|
8006dc2: 46bd mov sp, r7
|
|
8006dc4: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08006dc8 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_vEEOT_>:
|
|
function(_Functor&& __f)
|
|
8006dc8: b590 push {r4, r7, lr}
|
|
8006dca: b083 sub sp, #12
|
|
8006dcc: af00 add r7, sp, #0
|
|
8006dce: 6078 str r0, [r7, #4]
|
|
8006dd0: 6039 str r1, [r7, #0]
|
|
: _Function_base()
|
|
8006dd2: 687b ldr r3, [r7, #4]
|
|
8006dd4: 461a mov r2, r3
|
|
8006dd6: 2300 movs r3, #0
|
|
8006dd8: 6013 str r3, [r2, #0]
|
|
8006dda: 6053 str r3, [r2, #4]
|
|
8006ddc: 6093 str r3, [r2, #8]
|
|
8006dde: 687b ldr r3, [r7, #4]
|
|
8006de0: 4618 mov r0, r3
|
|
8006de2: f7ff ff0d bl 8006c00 <_ZNSt14_Function_baseC1Ev>
|
|
8006de6: 687b ldr r3, [r7, #4]
|
|
8006de8: 2200 movs r2, #0
|
|
8006dea: 60da str r2, [r3, #12]
|
|
if (_My_handler::_M_not_empty_function(__f))
|
|
8006dec: 6838 ldr r0, [r7, #0]
|
|
8006dee: f000 fa3b bl 8007268 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E21_M_not_empty_functionIS5_EEbRKT_>
|
|
8006df2: 4603 mov r3, r0
|
|
8006df4: 2b00 cmp r3, #0
|
|
8006df6: d00e beq.n 8006e16 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_vEEOT_+0x4e>
|
|
_My_handler::_M_init_functor(_M_functor,
|
|
8006df8: 687c ldr r4, [r7, #4]
|
|
8006dfa: 6838 ldr r0, [r7, #0]
|
|
8006dfc: f000 fa3f bl 800727e <_ZSt7forwardIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8006e00: 4603 mov r3, r0
|
|
8006e02: 4619 mov r1, r3
|
|
8006e04: 4620 mov r0, r4
|
|
8006e06: f000 fa45 bl 8007294 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>
|
|
_M_invoker = &_My_handler::_M_invoke;
|
|
8006e0a: 687b ldr r3, [r7, #4]
|
|
8006e0c: 4a04 ldr r2, [pc, #16] @ (8006e20 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_vEEOT_+0x58>)
|
|
8006e0e: 60da str r2, [r3, #12]
|
|
_M_manager = &_My_handler::_M_manager;
|
|
8006e10: 687b ldr r3, [r7, #4]
|
|
8006e12: 4a04 ldr r2, [pc, #16] @ (8006e24 <_ZNSt8functionIFvPvEEC1IZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_vEEOT_+0x5c>)
|
|
8006e14: 609a str r2, [r3, #8]
|
|
}
|
|
8006e16: 687b ldr r3, [r7, #4]
|
|
8006e18: 4618 mov r0, r3
|
|
8006e1a: 370c adds r7, #12
|
|
8006e1c: 46bd mov sp, r7
|
|
8006e1e: bd90 pop {r4, r7, pc}
|
|
8006e20: 080072b9 .word 0x080072b9
|
|
8006e24: 080072e3 .word 0x080072e3
|
|
|
|
08006e28 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE9push_backERKS4_>:
|
|
* done in constant time if the %vector has preallocated space
|
|
* available.
|
|
*/
|
|
_GLIBCXX20_CONSTEXPR
|
|
void
|
|
push_back(const value_type& __x)
|
|
8006e28: b580 push {r7, lr}
|
|
8006e2a: b082 sub sp, #8
|
|
8006e2c: af00 add r7, sp, #0
|
|
8006e2e: 6078 str r0, [r7, #4]
|
|
8006e30: 6039 str r1, [r7, #0]
|
|
{
|
|
if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage)
|
|
8006e32: 687b ldr r3, [r7, #4]
|
|
8006e34: 685a ldr r2, [r3, #4]
|
|
8006e36: 687b ldr r3, [r7, #4]
|
|
8006e38: 689b ldr r3, [r3, #8]
|
|
8006e3a: 429a cmp r2, r3
|
|
8006e3c: d00d beq.n 8006e5a <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE9push_backERKS4_+0x32>
|
|
{
|
|
_GLIBCXX_ASAN_ANNOTATE_GROW(1);
|
|
_Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish,
|
|
8006e3e: 6878 ldr r0, [r7, #4]
|
|
8006e40: 687b ldr r3, [r7, #4]
|
|
8006e42: 685b ldr r3, [r3, #4]
|
|
8006e44: 683a ldr r2, [r7, #0]
|
|
8006e46: 4619 mov r1, r3
|
|
8006e48: f000 fa6a bl 8007320 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS4_JRKS4_EEEvRS5_PT_DpOT0_>
|
|
__x);
|
|
++this->_M_impl._M_finish;
|
|
8006e4c: 687b ldr r3, [r7, #4]
|
|
8006e4e: 685b ldr r3, [r3, #4]
|
|
8006e50: f103 0208 add.w r2, r3, #8
|
|
8006e54: 687b ldr r3, [r7, #4]
|
|
8006e56: 605a str r2, [r3, #4]
|
|
_GLIBCXX_ASAN_ANNOTATE_GREW(1);
|
|
}
|
|
else
|
|
_M_realloc_insert(end(), __x);
|
|
}
|
|
8006e58: e008 b.n 8006e6c <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE9push_backERKS4_+0x44>
|
|
_M_realloc_insert(end(), __x);
|
|
8006e5a: 6878 ldr r0, [r7, #4]
|
|
8006e5c: f000 f81a bl 8006e94 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE3endEv>
|
|
8006e60: 4603 mov r3, r0
|
|
8006e62: 683a ldr r2, [r7, #0]
|
|
8006e64: 4619 mov r1, r3
|
|
8006e66: 6878 ldr r0, [r7, #4]
|
|
8006e68: f000 fa84 bl 8007374 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_>
|
|
}
|
|
8006e6c: bf00 nop
|
|
8006e6e: 3708 adds r7, #8
|
|
8006e70: 46bd mov sp, r7
|
|
8006e72: bd80 pop {r7, pc}
|
|
|
|
08006e74 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE5beginEv>:
|
|
begin() _GLIBCXX_NOEXCEPT
|
|
8006e74: b580 push {r7, lr}
|
|
8006e76: b084 sub sp, #16
|
|
8006e78: af00 add r7, sp, #0
|
|
8006e7a: 6078 str r0, [r7, #4]
|
|
{ return iterator(this->_M_impl._M_start); }
|
|
8006e7c: 687a ldr r2, [r7, #4]
|
|
8006e7e: f107 030c add.w r3, r7, #12
|
|
8006e82: 4611 mov r1, r2
|
|
8006e84: 4618 mov r0, r3
|
|
8006e86: f000 fb4c bl 8007522 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEC1ERKS6_>
|
|
8006e8a: 68fb ldr r3, [r7, #12]
|
|
8006e8c: 4618 mov r0, r3
|
|
8006e8e: 3710 adds r7, #16
|
|
8006e90: 46bd mov sp, r7
|
|
8006e92: bd80 pop {r7, pc}
|
|
|
|
08006e94 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE3endEv>:
|
|
end() _GLIBCXX_NOEXCEPT
|
|
8006e94: b580 push {r7, lr}
|
|
8006e96: b084 sub sp, #16
|
|
8006e98: af00 add r7, sp, #0
|
|
8006e9a: 6078 str r0, [r7, #4]
|
|
{ return iterator(this->_M_impl._M_finish); }
|
|
8006e9c: 687b ldr r3, [r7, #4]
|
|
8006e9e: 1d1a adds r2, r3, #4
|
|
8006ea0: f107 030c add.w r3, r7, #12
|
|
8006ea4: 4611 mov r1, r2
|
|
8006ea6: 4618 mov r0, r3
|
|
8006ea8: f000 fb3b bl 8007522 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEC1ERKS6_>
|
|
8006eac: 68fb ldr r3, [r7, #12]
|
|
8006eae: 4618 mov r0, r3
|
|
8006eb0: 3710 adds r7, #16
|
|
8006eb2: 46bd mov sp, r7
|
|
8006eb4: bd80 pop {r7, pc}
|
|
|
|
08006eb6 <_ZN9__gnu_cxxneIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_>:
|
|
{ return __lhs.base() != __rhs.base(); }
|
|
|
|
template<typename _Iterator, typename _Container>
|
|
_GLIBCXX_NODISCARD _GLIBCXX20_CONSTEXPR
|
|
inline bool
|
|
operator!=(const __normal_iterator<_Iterator, _Container>& __lhs,
|
|
8006eb6: b590 push {r4, r7, lr}
|
|
8006eb8: b083 sub sp, #12
|
|
8006eba: af00 add r7, sp, #0
|
|
8006ebc: 6078 str r0, [r7, #4]
|
|
8006ebe: 6039 str r1, [r7, #0]
|
|
const __normal_iterator<_Iterator, _Container>& __rhs)
|
|
_GLIBCXX_NOEXCEPT
|
|
{ return __lhs.base() != __rhs.base(); }
|
|
8006ec0: 6878 ldr r0, [r7, #4]
|
|
8006ec2: f000 fb3e bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8006ec6: 4603 mov r3, r0
|
|
8006ec8: 681c ldr r4, [r3, #0]
|
|
8006eca: 6838 ldr r0, [r7, #0]
|
|
8006ecc: f000 fb39 bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8006ed0: 4603 mov r3, r0
|
|
8006ed2: 681b ldr r3, [r3, #0]
|
|
8006ed4: 429c cmp r4, r3
|
|
8006ed6: bf14 ite ne
|
|
8006ed8: 2301 movne r3, #1
|
|
8006eda: 2300 moveq r3, #0
|
|
8006edc: b2db uxtb r3, r3
|
|
8006ede: 4618 mov r0, r3
|
|
8006ee0: 370c adds r7, #12
|
|
8006ee2: 46bd mov sp, r7
|
|
8006ee4: bd90 pop {r4, r7, pc}
|
|
|
|
08006ee6 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEppEv>:
|
|
operator++() _GLIBCXX_NOEXCEPT
|
|
8006ee6: b480 push {r7}
|
|
8006ee8: b083 sub sp, #12
|
|
8006eea: af00 add r7, sp, #0
|
|
8006eec: 6078 str r0, [r7, #4]
|
|
++_M_current;
|
|
8006eee: 687b ldr r3, [r7, #4]
|
|
8006ef0: 681b ldr r3, [r3, #0]
|
|
8006ef2: f103 0208 add.w r2, r3, #8
|
|
8006ef6: 687b ldr r3, [r7, #4]
|
|
8006ef8: 601a str r2, [r3, #0]
|
|
return *this;
|
|
8006efa: 687b ldr r3, [r7, #4]
|
|
}
|
|
8006efc: 4618 mov r0, r3
|
|
8006efe: 370c adds r7, #12
|
|
8006f00: 46bd mov sp, r7
|
|
8006f02: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006f06: 4770 bx lr
|
|
|
|
08006f08 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEdeEv>:
|
|
operator*() const _GLIBCXX_NOEXCEPT
|
|
8006f08: b480 push {r7}
|
|
8006f0a: b083 sub sp, #12
|
|
8006f0c: af00 add r7, sp, #0
|
|
8006f0e: 6078 str r0, [r7, #4]
|
|
{ return *_M_current; }
|
|
8006f10: 687b ldr r3, [r7, #4]
|
|
8006f12: 681b ldr r3, [r3, #0]
|
|
8006f14: 4618 mov r0, r3
|
|
8006f16: 370c adds r7, #12
|
|
8006f18: 46bd mov sp, r7
|
|
8006f1a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8006f1e: 4770 bx lr
|
|
|
|
08006f20 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EEptEv>:
|
|
operator->() const noexcept
|
|
8006f20: b580 push {r7, lr}
|
|
8006f22: b082 sub sp, #8
|
|
8006f24: af00 add r7, sp, #0
|
|
8006f26: 6078 str r0, [r7, #4]
|
|
return _M_get();
|
|
8006f28: 6878 ldr r0, [r7, #4]
|
|
8006f2a: f000 fb15 bl 8007558 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EE6_M_getEv>
|
|
8006f2e: 4603 mov r3, r0
|
|
}
|
|
8006f30: 4618 mov r0, r3
|
|
8006f32: 3708 adds r7, #8
|
|
8006f34: 46bd mov sp, r7
|
|
8006f36: bd80 pop {r7, pc}
|
|
|
|
08006f38 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE13_Rb_tree_implIS8_Lb1EEC1Ev>:
|
|
_Rb_tree_impl()
|
|
8006f38: b580 push {r7, lr}
|
|
8006f3a: b082 sub sp, #8
|
|
8006f3c: af00 add r7, sp, #0
|
|
8006f3e: 6078 str r0, [r7, #4]
|
|
: _Node_allocator()
|
|
8006f40: 6878 ldr r0, [r7, #4]
|
|
8006f42: f000 fb15 bl 8007570 <_ZNSaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>
|
|
8006f46: 687b ldr r3, [r7, #4]
|
|
8006f48: 4618 mov r0, r3
|
|
8006f4a: f000 fb1d bl 8007588 <_ZNSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>
|
|
8006f4e: 687b ldr r3, [r7, #4]
|
|
8006f50: 3304 adds r3, #4
|
|
8006f52: 4618 mov r0, r3
|
|
8006f54: f7fa f834 bl 8000fc0 <_ZNSt15_Rb_tree_headerC1Ev>
|
|
{ }
|
|
8006f58: 687b ldr r3, [r7, #4]
|
|
8006f5a: 4618 mov r0, r3
|
|
8006f5c: 3708 adds r7, #8
|
|
8006f5e: 46bd mov sp, r7
|
|
8006f60: bd80 pop {r7, pc}
|
|
|
|
08006f62 <_ZNSaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEED1Ev>:
|
|
8006f62: b580 push {r7, lr}
|
|
8006f64: b082 sub sp, #8
|
|
8006f66: af00 add r7, sp, #0
|
|
8006f68: 6078 str r0, [r7, #4]
|
|
8006f6a: 6878 ldr r0, [r7, #4]
|
|
8006f6c: f000 fb17 bl 800759e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEED1Ev>
|
|
8006f70: 687b ldr r3, [r7, #4]
|
|
8006f72: 4618 mov r0, r3
|
|
8006f74: 3708 adds r7, #8
|
|
8006f76: 46bd mov sp, r7
|
|
8006f78: bd80 pop {r7, pc}
|
|
|
|
08006f7a <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EED1Ev>:
|
|
~_Rb_tree() _GLIBCXX_NOEXCEPT
|
|
8006f7a: b580 push {r7, lr}
|
|
8006f7c: b082 sub sp, #8
|
|
8006f7e: af00 add r7, sp, #0
|
|
8006f80: 6078 str r0, [r7, #4]
|
|
{ _M_erase(_M_begin()); }
|
|
8006f82: 6878 ldr r0, [r7, #4]
|
|
8006f84: f000 fb36 bl 80075f4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_beginEv>
|
|
8006f88: 4603 mov r3, r0
|
|
8006f8a: 4619 mov r1, r3
|
|
8006f8c: 6878 ldr r0, [r7, #4]
|
|
8006f8e: f000 fb11 bl 80075b4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E>
|
|
8006f92: 687b ldr r3, [r7, #4]
|
|
8006f94: 4618 mov r0, r3
|
|
8006f96: f7ff fd23 bl 80069e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE13_Rb_tree_implIS8_Lb1EED1Ev>
|
|
8006f9a: 687b ldr r3, [r7, #4]
|
|
8006f9c: 4618 mov r0, r3
|
|
8006f9e: 3708 adds r7, #8
|
|
8006fa0: 46bd mov sp, r7
|
|
8006fa2: bd80 pop {r7, pc}
|
|
|
|
08006fa4 <_ZNKSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE5countERKS4_>:
|
|
*
|
|
* This function only makes sense for multisets; for set the result will
|
|
* either be 0 (not present) or 1 (present).
|
|
*/
|
|
size_type
|
|
count(const key_type& __x) const
|
|
8006fa4: b580 push {r7, lr}
|
|
8006fa6: b084 sub sp, #16
|
|
8006fa8: af00 add r7, sp, #0
|
|
8006faa: 6078 str r0, [r7, #4]
|
|
8006fac: 6039 str r1, [r7, #0]
|
|
{ return _M_t.find(__x) == _M_t.end() ? 0 : 1; }
|
|
8006fae: 687b ldr r3, [r7, #4]
|
|
8006fb0: 6839 ldr r1, [r7, #0]
|
|
8006fb2: 4618 mov r0, r3
|
|
8006fb4: f000 fb2a bl 800760c <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE4findERKS4_>
|
|
8006fb8: 4603 mov r3, r0
|
|
8006fba: 60bb str r3, [r7, #8]
|
|
8006fbc: 687b ldr r3, [r7, #4]
|
|
8006fbe: 4618 mov r0, r3
|
|
8006fc0: f000 fb60 bl 8007684 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE3endEv>
|
|
8006fc4: 4603 mov r3, r0
|
|
8006fc6: 60fb str r3, [r7, #12]
|
|
8006fc8: f107 020c add.w r2, r7, #12
|
|
8006fcc: f107 0308 add.w r3, r7, #8
|
|
8006fd0: 4611 mov r1, r2
|
|
8006fd2: 4618 mov r0, r3
|
|
8006fd4: f000 fb67 bl 80076a6 <_ZSteqRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEES7_>
|
|
8006fd8: 4603 mov r3, r0
|
|
8006fda: 2b00 cmp r3, #0
|
|
8006fdc: d001 beq.n 8006fe2 <_ZNKSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE5countERKS4_+0x3e>
|
|
8006fde: 2300 movs r3, #0
|
|
8006fe0: e000 b.n 8006fe4 <_ZNKSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE5countERKS4_+0x40>
|
|
8006fe2: 2301 movs r3, #1
|
|
8006fe4: 4618 mov r0, r3
|
|
8006fe6: 3710 adds r7, #16
|
|
8006fe8: 46bd mov sp, r7
|
|
8006fea: bd80 pop {r7, pc}
|
|
|
|
08006fec <_ZSt5countIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEES6_ENSt15iterator_traitsIT_E15difference_typeESD_SD_RKT0_>:
|
|
count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
|
|
8006fec: b580 push {r7, lr}
|
|
8006fee: b084 sub sp, #16
|
|
8006ff0: af00 add r7, sp, #0
|
|
8006ff2: 60f8 str r0, [r7, #12]
|
|
8006ff4: 60b9 str r1, [r7, #8]
|
|
8006ff6: 607a str r2, [r7, #4]
|
|
return std::__count_if(__first, __last,
|
|
8006ff8: 6878 ldr r0, [r7, #4]
|
|
8006ffa: f000 fb68 bl 80076ce <_ZN9__gnu_cxx5__ops17__iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEENS0_16_Iter_equals_valIT_EERS9_>
|
|
8006ffe: 4603 mov r3, r0
|
|
8007000: 461a mov r2, r3
|
|
8007002: 68b9 ldr r1, [r7, #8]
|
|
8007004: 68f8 ldr r0, [r7, #12]
|
|
8007006: f000 fb71 bl 80076ec <_ZSt10__count_ifIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEENS0_5__ops16_Iter_equals_valIKS6_EEENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_>
|
|
800700a: 4603 mov r3, r0
|
|
}
|
|
800700c: 4618 mov r0, r3
|
|
800700e: 3710 adds r7, #16
|
|
8007010: 46bd mov sp, r7
|
|
8007012: bd80 pop {r7, pc}
|
|
|
|
08007014 <_ZNSt3setISt10shared_ptrIN3sta5tacos11TacosThreadEESt4lessIS4_ESaIS4_EE7emplaceIJRS4_EEESt4pairISt23_Rb_tree_const_iteratorIS4_EbEDpOT_>:
|
|
emplace(_Args&&... __args)
|
|
8007014: b590 push {r4, r7, lr}
|
|
8007016: b087 sub sp, #28
|
|
8007018: af00 add r7, sp, #0
|
|
800701a: 60f8 str r0, [r7, #12]
|
|
800701c: 60b9 str r1, [r7, #8]
|
|
800701e: 607a str r2, [r7, #4]
|
|
{ return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); }
|
|
8007020: 68bc ldr r4, [r7, #8]
|
|
8007022: 6878 ldr r0, [r7, #4]
|
|
8007024: f000 fb8b bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8007028: 4602 mov r2, r0
|
|
800702a: f107 0310 add.w r3, r7, #16
|
|
800702e: 4621 mov r1, r4
|
|
8007030: 4618 mov r0, r3
|
|
8007032: f000 fb8f bl 8007754 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_emplace_uniqueIJRS4_EEESt4pairISt17_Rb_tree_iteratorIS4_EbEDpOT_>
|
|
8007036: f107 0310 add.w r3, r7, #16
|
|
800703a: 4619 mov r1, r3
|
|
800703c: 68f8 ldr r0, [r7, #12]
|
|
800703e: f000 fbd9 bl 80077f4 <_ZNSt4pairISt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEbEC1ISt17_Rb_tree_iteratorIS5_EbLb1EEEOS_IT_T0_E>
|
|
8007042: 68f8 ldr r0, [r7, #12]
|
|
8007044: 371c adds r7, #28
|
|
8007046: 46bd mov sp, r7
|
|
8007048: bd90 pop {r4, r7, pc}
|
|
|
|
0800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>:
|
|
_M_get_Tp_allocator() _GLIBCXX_NOEXCEPT
|
|
800704a: b480 push {r7}
|
|
800704c: b083 sub sp, #12
|
|
800704e: af00 add r7, sp, #0
|
|
8007050: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl; }
|
|
8007052: 687b ldr r3, [r7, #4]
|
|
8007054: 4618 mov r0, r3
|
|
8007056: 370c adds r7, #12
|
|
8007058: 46bd mov sp, r7
|
|
800705a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800705e: 4770 bx lr
|
|
|
|
08007060 <_ZSt8_DestroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEES4_EvT_S6_RSaIT0_E>:
|
|
}
|
|
|
|
template<typename _ForwardIterator, typename _Tp>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline void
|
|
_Destroy(_ForwardIterator __first, _ForwardIterator __last,
|
|
8007060: b580 push {r7, lr}
|
|
8007062: b084 sub sp, #16
|
|
8007064: af00 add r7, sp, #0
|
|
8007066: 60f8 str r0, [r7, #12]
|
|
8007068: 60b9 str r1, [r7, #8]
|
|
800706a: 607a str r2, [r7, #4]
|
|
allocator<_Tp>&)
|
|
{
|
|
_Destroy(__first, __last);
|
|
800706c: 68b9 ldr r1, [r7, #8]
|
|
800706e: 68f8 ldr r0, [r7, #12]
|
|
8007070: f000 fbdd bl 800782e <_ZSt8_DestroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEvT_S6_>
|
|
}
|
|
8007074: bf00 nop
|
|
8007076: 3710 adds r7, #16
|
|
8007078: 46bd mov sp, r7
|
|
800707a: bd80 pop {r7, pc}
|
|
|
|
0800707c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E21_M_not_empty_functionIS5_EEbRKT_>:
|
|
_M_not_empty_function(const _Tp&) noexcept
|
|
800707c: b480 push {r7}
|
|
800707e: b083 sub sp, #12
|
|
8007080: af00 add r7, sp, #0
|
|
8007082: 6078 str r0, [r7, #4]
|
|
{ return true; }
|
|
8007084: 2301 movs r3, #1
|
|
8007086: 4618 mov r0, r3
|
|
8007088: 370c adds r7, #12
|
|
800708a: 46bd mov sp, r7
|
|
800708c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007090: 4770 bx lr
|
|
|
|
08007092 <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8007092: b480 push {r7}
|
|
8007094: b083 sub sp, #12
|
|
8007096: af00 add r7, sp, #0
|
|
8007098: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
800709a: 687b ldr r3, [r7, #4]
|
|
800709c: 4618 mov r0, r3
|
|
800709e: 370c adds r7, #12
|
|
80070a0: 46bd mov sp, r7
|
|
80070a2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80070a6: 4770 bx lr
|
|
|
|
080070a8 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
80070a8: b590 push {r4, r7, lr}
|
|
80070aa: b083 sub sp, #12
|
|
80070ac: af00 add r7, sp, #0
|
|
80070ae: 6078 str r0, [r7, #4]
|
|
80070b0: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
80070b2: 6838 ldr r0, [r7, #0]
|
|
80070b4: f7ff ffed bl 8007092 <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
80070b8: 4603 mov r3, r0
|
|
80070ba: 4622 mov r2, r4
|
|
80070bc: 4619 mov r1, r3
|
|
80070be: 6878 ldr r0, [r7, #4]
|
|
80070c0: f000 fbc2 bl 8007848 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
80070c4: bf00 nop
|
|
80070c6: 370c adds r7, #12
|
|
80070c8: 46bd mov sp, r7
|
|
80070ca: bd90 pop {r4, r7, pc}
|
|
|
|
080070cc <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E_E9_M_invokeERKSt9_Any_dataOS0_>:
|
|
_M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
|
|
80070cc: b590 push {r4, r7, lr}
|
|
80070ce: b083 sub sp, #12
|
|
80070d0: af00 add r7, sp, #0
|
|
80070d2: 6078 str r0, [r7, #4]
|
|
80070d4: 6039 str r1, [r7, #0]
|
|
return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor),
|
|
80070d6: 6878 ldr r0, [r7, #4]
|
|
80070d8: f000 fbcb bl 8007872 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
80070dc: 4604 mov r4, r0
|
|
80070de: 6838 ldr r0, [r7, #0]
|
|
80070e0: f000 fbd8 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80070e4: 4603 mov r3, r0
|
|
80070e6: 4619 mov r1, r3
|
|
80070e8: 4620 mov r0, r4
|
|
80070ea: f000 fbde bl 80078aa <_ZSt10__invoke_rIvRZN3sta5tacos12StatemachineC4EvEUlPvE_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>
|
|
std::forward<_ArgTypes>(__args)...);
|
|
80070ee: bf00 nop
|
|
}
|
|
80070f0: 370c adds r7, #12
|
|
80070f2: 46bd mov sp, r7
|
|
80070f4: bd90 pop {r4, r7, pc}
|
|
|
|
080070f6 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
80070f6: b590 push {r4, r7, lr}
|
|
80070f8: b085 sub sp, #20
|
|
80070fa: af00 add r7, sp, #0
|
|
80070fc: 60f8 str r0, [r7, #12]
|
|
80070fe: 60b9 str r1, [r7, #8]
|
|
8007100: 4613 mov r3, r2
|
|
8007102: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
8007104: 79fb ldrb r3, [r7, #7]
|
|
8007106: 2b01 cmp r3, #1
|
|
8007108: d109 bne.n 800711e <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x28>
|
|
__dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source);
|
|
800710a: 68f8 ldr r0, [r7, #12]
|
|
800710c: f000 fbe3 bl 80078d6 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE_EERT_v>
|
|
8007110: 4604 mov r4, r0
|
|
8007112: 68b8 ldr r0, [r7, #8]
|
|
8007114: f000 fbad bl 8007872 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007118: 4603 mov r3, r0
|
|
800711a: 6023 str r3, [r4, #0]
|
|
break;
|
|
800711c: e005 b.n 800712a <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x34>
|
|
_Base::_M_manager(__dest, __source, __op);
|
|
800711e: 79fb ldrb r3, [r7, #7]
|
|
8007120: 461a mov r2, r3
|
|
8007122: 68b9 ldr r1, [r7, #8]
|
|
8007124: 68f8 ldr r0, [r7, #12]
|
|
8007126: f000 fbe3 bl 80078f0 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>
|
|
return false;
|
|
800712a: 2300 movs r3, #0
|
|
}
|
|
800712c: 4618 mov r0, r3
|
|
800712e: 3714 adds r7, #20
|
|
8007130: 46bd mov sp, r7
|
|
8007132: bd90 pop {r4, r7, pc}
|
|
|
|
08007134 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E21_M_not_empty_functionIS5_EEbRKT_>:
|
|
_M_not_empty_function(const _Tp&) noexcept
|
|
8007134: b480 push {r7}
|
|
8007136: b083 sub sp, #12
|
|
8007138: af00 add r7, sp, #0
|
|
800713a: 6078 str r0, [r7, #4]
|
|
{ return true; }
|
|
800713c: 2301 movs r3, #1
|
|
800713e: 4618 mov r0, r3
|
|
8007140: 370c adds r7, #12
|
|
8007142: 46bd mov sp, r7
|
|
8007144: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007148: 4770 bx lr
|
|
|
|
0800714a <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS5_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800714a: b480 push {r7}
|
|
800714c: b083 sub sp, #12
|
|
800714e: af00 add r7, sp, #0
|
|
8007150: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8007152: 687b ldr r3, [r7, #4]
|
|
8007154: 4618 mov r0, r3
|
|
8007156: 370c adds r7, #12
|
|
8007158: 46bd mov sp, r7
|
|
800715a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800715e: 4770 bx lr
|
|
|
|
08007160 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
8007160: b590 push {r4, r7, lr}
|
|
8007162: b083 sub sp, #12
|
|
8007164: af00 add r7, sp, #0
|
|
8007166: 6078 str r0, [r7, #4]
|
|
8007168: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
800716a: 6838 ldr r0, [r7, #0]
|
|
800716c: f7ff ffed bl 800714a <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8007170: 4603 mov r3, r0
|
|
8007172: 4622 mov r2, r4
|
|
8007174: 4619 mov r1, r3
|
|
8007176: 6878 ldr r0, [r7, #4]
|
|
8007178: f000 fbf4 bl 8007964 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
800717c: bf00 nop
|
|
800717e: 370c adds r7, #12
|
|
8007180: 46bd mov sp, r7
|
|
8007182: bd90 pop {r4, r7, pc}
|
|
|
|
08007184 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E0_E9_M_invokeERKSt9_Any_dataOS0_>:
|
|
_M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
|
|
8007184: b590 push {r4, r7, lr}
|
|
8007186: b083 sub sp, #12
|
|
8007188: af00 add r7, sp, #0
|
|
800718a: 6078 str r0, [r7, #4]
|
|
800718c: 6039 str r1, [r7, #0]
|
|
return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor),
|
|
800718e: 6878 ldr r0, [r7, #4]
|
|
8007190: f000 fbfd bl 800798e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E14_M_get_pointerERKSt9_Any_data>
|
|
8007194: 4604 mov r4, r0
|
|
8007196: 6838 ldr r0, [r7, #0]
|
|
8007198: f000 fb7c bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
800719c: 4603 mov r3, r0
|
|
800719e: 4619 mov r1, r3
|
|
80071a0: 4620 mov r0, r4
|
|
80071a2: f000 fc05 bl 80079b0 <_ZSt10__invoke_rIvRZN3sta5tacos12StatemachineC4EvEUlPvE0_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>
|
|
std::forward<_ArgTypes>(__args)...);
|
|
80071a6: bf00 nop
|
|
}
|
|
80071a8: 370c adds r7, #12
|
|
80071aa: 46bd mov sp, r7
|
|
80071ac: bd90 pop {r4, r7, pc}
|
|
|
|
080071ae <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
80071ae: b590 push {r4, r7, lr}
|
|
80071b0: b085 sub sp, #20
|
|
80071b2: af00 add r7, sp, #0
|
|
80071b4: 60f8 str r0, [r7, #12]
|
|
80071b6: 60b9 str r1, [r7, #8]
|
|
80071b8: 4613 mov r3, r2
|
|
80071ba: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
80071bc: 79fb ldrb r3, [r7, #7]
|
|
80071be: 2b01 cmp r3, #1
|
|
80071c0: d109 bne.n 80071d6 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x28>
|
|
__dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source);
|
|
80071c2: 68f8 ldr r0, [r7, #12]
|
|
80071c4: f000 fc0a bl 80079dc <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE0_EERT_v>
|
|
80071c8: 4604 mov r4, r0
|
|
80071ca: 68b8 ldr r0, [r7, #8]
|
|
80071cc: f000 fbdf bl 800798e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E14_M_get_pointerERKSt9_Any_data>
|
|
80071d0: 4603 mov r3, r0
|
|
80071d2: 6023 str r3, [r4, #0]
|
|
break;
|
|
80071d4: e005 b.n 80071e2 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12StatemachineC4EvEUlS0_E0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x34>
|
|
_Base::_M_manager(__dest, __source, __op);
|
|
80071d6: 79fb ldrb r3, [r7, #7]
|
|
80071d8: 461a mov r2, r3
|
|
80071da: 68b9 ldr r1, [r7, #8]
|
|
80071dc: 68f8 ldr r0, [r7, #12]
|
|
80071de: f000 fc09 bl 80079f4 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>
|
|
return false;
|
|
80071e2: 2300 movs r3, #0
|
|
}
|
|
80071e4: 4618 mov r0, r3
|
|
80071e6: 3714 adds r7, #20
|
|
80071e8: 46bd mov sp, r7
|
|
80071ea: bd90 pop {r4, r7, pc}
|
|
|
|
080071ec <_ZNSaISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1Ev>:
|
|
allocator() _GLIBCXX_NOTHROW { }
|
|
80071ec: b580 push {r7, lr}
|
|
80071ee: b082 sub sp, #8
|
|
80071f0: af00 add r7, sp, #0
|
|
80071f2: 6078 str r0, [r7, #4]
|
|
80071f4: 6878 ldr r0, [r7, #4]
|
|
80071f6: f000 fc37 bl 8007a68 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1Ev>
|
|
80071fa: 687b ldr r3, [r7, #4]
|
|
80071fc: 4618 mov r0, r3
|
|
80071fe: 3708 adds r7, #8
|
|
8007200: 46bd mov sp, r7
|
|
8007202: bd80 pop {r7, pc}
|
|
|
|
08007204 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_Vector_impl_dataC1Ev>:
|
|
_Vector_impl_data() _GLIBCXX_NOEXCEPT
|
|
8007204: b480 push {r7}
|
|
8007206: b083 sub sp, #12
|
|
8007208: af00 add r7, sp, #0
|
|
800720a: 6078 str r0, [r7, #4]
|
|
: _M_start(), _M_finish(), _M_end_of_storage()
|
|
800720c: 687b ldr r3, [r7, #4]
|
|
800720e: 2200 movs r2, #0
|
|
8007210: 601a str r2, [r3, #0]
|
|
8007212: 687b ldr r3, [r7, #4]
|
|
8007214: 2200 movs r2, #0
|
|
8007216: 605a str r2, [r3, #4]
|
|
8007218: 687b ldr r3, [r7, #4]
|
|
800721a: 2200 movs r2, #0
|
|
800721c: 609a str r2, [r3, #8]
|
|
{ }
|
|
800721e: 687b ldr r3, [r7, #4]
|
|
8007220: 4618 mov r0, r3
|
|
8007222: 370c adds r7, #12
|
|
8007224: 46bd mov sp, r7
|
|
8007226: f85d 7b04 ldr.w r7, [sp], #4
|
|
800722a: 4770 bx lr
|
|
|
|
0800722c <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEED1Ev>:
|
|
~__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
800722c: b480 push {r7}
|
|
800722e: b083 sub sp, #12
|
|
8007230: af00 add r7, sp, #0
|
|
8007232: 6078 str r0, [r7, #4]
|
|
8007234: 687b ldr r3, [r7, #4]
|
|
8007236: 4618 mov r0, r3
|
|
8007238: 370c adds r7, #12
|
|
800723a: 46bd mov sp, r7
|
|
800723c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007240: 4770 bx lr
|
|
|
|
08007242 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE13_M_deallocateEPS4_j>:
|
|
_M_deallocate(pointer __p, size_t __n)
|
|
8007242: b580 push {r7, lr}
|
|
8007244: b084 sub sp, #16
|
|
8007246: af00 add r7, sp, #0
|
|
8007248: 60f8 str r0, [r7, #12]
|
|
800724a: 60b9 str r1, [r7, #8]
|
|
800724c: 607a str r2, [r7, #4]
|
|
if (__p)
|
|
800724e: 68bb ldr r3, [r7, #8]
|
|
8007250: 2b00 cmp r3, #0
|
|
8007252: d005 beq.n 8007260 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE13_M_deallocateEPS4_j+0x1e>
|
|
_Tr::deallocate(_M_impl, __p, __n);
|
|
8007254: 68fb ldr r3, [r7, #12]
|
|
8007256: 687a ldr r2, [r7, #4]
|
|
8007258: 68b9 ldr r1, [r7, #8]
|
|
800725a: 4618 mov r0, r3
|
|
800725c: f000 fc0f bl 8007a7e <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE10deallocateERS5_PS4_j>
|
|
}
|
|
8007260: bf00 nop
|
|
8007262: 3710 adds r7, #16
|
|
8007264: 46bd mov sp, r7
|
|
8007266: bd80 pop {r7, pc}
|
|
|
|
08007268 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E21_M_not_empty_functionIS5_EEbRKT_>:
|
|
_M_not_empty_function(const _Tp&) noexcept
|
|
8007268: b480 push {r7}
|
|
800726a: b083 sub sp, #12
|
|
800726c: af00 add r7, sp, #0
|
|
800726e: 6078 str r0, [r7, #4]
|
|
{ return true; }
|
|
8007270: 2301 movs r3, #1
|
|
8007272: 4618 mov r0, r3
|
|
8007274: 370c adds r7, #12
|
|
8007276: 46bd mov sp, r7
|
|
8007278: f85d 7b04 ldr.w r7, [sp], #4
|
|
800727c: 4770 bx lr
|
|
|
|
0800727e <_ZSt7forwardIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800727e: b480 push {r7}
|
|
8007280: b083 sub sp, #12
|
|
8007282: af00 add r7, sp, #0
|
|
8007284: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8007286: 687b ldr r3, [r7, #4]
|
|
8007288: 4618 mov r0, r3
|
|
800728a: 370c adds r7, #12
|
|
800728c: 46bd mov sp, r7
|
|
800728e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007292: 4770 bx lr
|
|
|
|
08007294 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E15_M_init_functorIS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
8007294: b590 push {r4, r7, lr}
|
|
8007296: b083 sub sp, #12
|
|
8007298: af00 add r7, sp, #0
|
|
800729a: 6078 str r0, [r7, #4]
|
|
800729c: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
800729e: 6838 ldr r0, [r7, #0]
|
|
80072a0: f7ff ffed bl 800727e <_ZSt7forwardIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
80072a4: 4603 mov r3, r0
|
|
80072a6: 4622 mov r2, r4
|
|
80072a8: 4619 mov r1, r3
|
|
80072aa: 6878 ldr r0, [r7, #4]
|
|
80072ac: f000 fbf6 bl 8007a9c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
80072b0: bf00 nop
|
|
80072b2: 370c adds r7, #12
|
|
80072b4: 46bd mov sp, r7
|
|
80072b6: bd90 pop {r4, r7, pc}
|
|
|
|
080072b8 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_E9_M_invokeERKSt9_Any_dataOS0_>:
|
|
_M_invoke(const _Any_data& __functor, _ArgTypes&&... __args)
|
|
80072b8: b590 push {r4, r7, lr}
|
|
80072ba: b083 sub sp, #12
|
|
80072bc: af00 add r7, sp, #0
|
|
80072be: 6078 str r0, [r7, #4]
|
|
80072c0: 6039 str r1, [r7, #0]
|
|
return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor),
|
|
80072c2: 6878 ldr r0, [r7, #4]
|
|
80072c4: f000 fbff bl 8007ac6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
80072c8: 4604 mov r4, r0
|
|
80072ca: 6838 ldr r0, [r7, #0]
|
|
80072cc: f000 fae2 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80072d0: 4603 mov r3, r0
|
|
80072d2: 4619 mov r1, r3
|
|
80072d4: 4620 mov r0, r4
|
|
80072d6: f000 fc07 bl 8007ae8 <_ZSt10__invoke_rIvRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>
|
|
std::forward<_ArgTypes>(__args)...);
|
|
80072da: bf00 nop
|
|
}
|
|
80072dc: 370c adds r7, #12
|
|
80072de: 46bd mov sp, r7
|
|
80072e0: bd90 pop {r4, r7, pc}
|
|
|
|
080072e2 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
80072e2: b590 push {r4, r7, lr}
|
|
80072e4: b085 sub sp, #20
|
|
80072e6: af00 add r7, sp, #0
|
|
80072e8: 60f8 str r0, [r7, #12]
|
|
80072ea: 60b9 str r1, [r7, #8]
|
|
80072ec: 4613 mov r3, r2
|
|
80072ee: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
80072f0: 79fb ldrb r3, [r7, #7]
|
|
80072f2: 2b01 cmp r3, #1
|
|
80072f4: d109 bne.n 800730a <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x28>
|
|
__dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source);
|
|
80072f6: 68f8 ldr r0, [r7, #12]
|
|
80072f8: f000 fc0c bl 8007b14 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERT_v>
|
|
80072fc: 4604 mov r4, r0
|
|
80072fe: 68b8 ldr r0, [r7, #8]
|
|
8007300: f000 fbe1 bl 8007ac6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007304: 4603 mov r3, r0
|
|
8007306: 6023 str r3, [r4, #0]
|
|
break;
|
|
8007308: e005 b.n 8007316 <_ZNSt17_Function_handlerIFvPvEZN3sta5tacos12Statemachine15setLockoutTimerEmEUlS0_E_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x34>
|
|
_Base::_M_manager(__dest, __source, __op);
|
|
800730a: 79fb ldrb r3, [r7, #7]
|
|
800730c: 461a mov r2, r3
|
|
800730e: 68b9 ldr r1, [r7, #8]
|
|
8007310: 68f8 ldr r0, [r7, #12]
|
|
8007312: f000 fc0b bl 8007b2c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>
|
|
return false;
|
|
8007316: 2300 movs r3, #0
|
|
}
|
|
8007318: 4618 mov r0, r3
|
|
800731a: 3714 adds r7, #20
|
|
800731c: 46bd mov sp, r7
|
|
800731e: bd90 pop {r4, r7, pc}
|
|
|
|
08007320 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS4_JRKS4_EEEvRS5_PT_DpOT0_>:
|
|
construct(allocator_type& __a __attribute__((__unused__)), _Up* __p,
|
|
8007320: b580 push {r7, lr}
|
|
8007322: b084 sub sp, #16
|
|
8007324: af00 add r7, sp, #0
|
|
8007326: 60f8 str r0, [r7, #12]
|
|
8007328: 60b9 str r1, [r7, #8]
|
|
800732a: 607a str r2, [r7, #4]
|
|
__a.construct(__p, std::forward<_Args>(__args)...);
|
|
800732c: 6878 ldr r0, [r7, #4]
|
|
800732e: f000 fc37 bl 8007ba0 <_ZSt7forwardIRKSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS7_E4typeE>
|
|
8007332: 4603 mov r3, r0
|
|
8007334: 461a mov r2, r3
|
|
8007336: 68b9 ldr r1, [r7, #8]
|
|
8007338: 68f8 ldr r0, [r7, #12]
|
|
800733a: f000 fc3c bl 8007bb6 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE9constructIS4_JRKS4_EEEvPT_DpOT0_>
|
|
}
|
|
800733e: bf00 nop
|
|
8007340: 3710 adds r7, #16
|
|
8007342: 46bd mov sp, r7
|
|
8007344: bd80 pop {r7, pc}
|
|
|
|
08007346 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE15_S_use_relocateEv>:
|
|
_S_use_relocate()
|
|
8007346: b580 push {r7, lr}
|
|
8007348: b082 sub sp, #8
|
|
800734a: af00 add r7, sp, #0
|
|
return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{});
|
|
800734c: 4618 mov r0, r3
|
|
800734e: f000 f805 bl 800735c <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_S_nothrow_relocateESt17integral_constantIbLb1EE>
|
|
8007352: 4603 mov r3, r0
|
|
}
|
|
8007354: 4618 mov r0, r3
|
|
8007356: 3708 adds r7, #8
|
|
8007358: 46bd mov sp, r7
|
|
800735a: bd80 pop {r7, pc}
|
|
|
|
0800735c <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_S_nothrow_relocateESt17integral_constantIbLb1EE>:
|
|
_S_nothrow_relocate(true_type)
|
|
800735c: b480 push {r7}
|
|
800735e: b083 sub sp, #12
|
|
8007360: af00 add r7, sp, #0
|
|
8007362: 7138 strb r0, [r7, #4]
|
|
std::declval<_Tp_alloc_type&>()));
|
|
8007364: 2301 movs r3, #1
|
|
}
|
|
8007366: 4618 mov r0, r3
|
|
8007368: 370c adds r7, #12
|
|
800736a: 46bd mov sp, r7
|
|
800736c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007370: 4770 bx lr
|
|
...
|
|
|
|
08007374 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_>:
|
|
#if __cplusplus >= 201103L
|
|
template<typename _Tp, typename _Alloc>
|
|
template<typename... _Args>
|
|
_GLIBCXX20_CONSTEXPR
|
|
void
|
|
vector<_Tp, _Alloc>::
|
|
8007374: b5b0 push {r4, r5, r7, lr}
|
|
8007376: b08c sub sp, #48 @ 0x30
|
|
8007378: af00 add r7, sp, #0
|
|
800737a: 60f8 str r0, [r7, #12]
|
|
800737c: 60b9 str r1, [r7, #8]
|
|
800737e: 607a str r2, [r7, #4]
|
|
vector<_Tp, _Alloc>::
|
|
_M_realloc_insert(iterator __position, const _Tp& __x)
|
|
#endif
|
|
{
|
|
const size_type __len =
|
|
_M_check_len(size_type(1), "vector::_M_realloc_insert");
|
|
8007380: 4a59 ldr r2, [pc, #356] @ (80074e8 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_+0x174>)
|
|
8007382: 2101 movs r1, #1
|
|
8007384: 68f8 ldr r0, [r7, #12]
|
|
8007386: f000 fc2e bl 8007be6 <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc>
|
|
800738a: 62b8 str r0, [r7, #40] @ 0x28
|
|
pointer __old_start = this->_M_impl._M_start;
|
|
800738c: 68fb ldr r3, [r7, #12]
|
|
800738e: 681b ldr r3, [r3, #0]
|
|
8007390: 627b str r3, [r7, #36] @ 0x24
|
|
pointer __old_finish = this->_M_impl._M_finish;
|
|
8007392: 68fb ldr r3, [r7, #12]
|
|
8007394: 685b ldr r3, [r3, #4]
|
|
8007396: 623b str r3, [r7, #32]
|
|
const size_type __elems_before = __position - begin();
|
|
8007398: 68f8 ldr r0, [r7, #12]
|
|
800739a: f7ff fd6b bl 8006e74 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE5beginEv>
|
|
800739e: 4603 mov r3, r0
|
|
80073a0: 617b str r3, [r7, #20]
|
|
80073a2: f107 0214 add.w r2, r7, #20
|
|
80073a6: f107 0308 add.w r3, r7, #8
|
|
80073aa: 4611 mov r1, r2
|
|
80073ac: 4618 mov r0, r3
|
|
80073ae: f000 fc61 bl 8007c74 <_ZN9__gnu_cxxmiIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_>
|
|
80073b2: 4603 mov r3, r0
|
|
80073b4: 61fb str r3, [r7, #28]
|
|
pointer __new_start(this->_M_allocate(__len));
|
|
80073b6: 68fb ldr r3, [r7, #12]
|
|
80073b8: 6ab9 ldr r1, [r7, #40] @ 0x28
|
|
80073ba: 4618 mov r0, r3
|
|
80073bc: f000 fc6f bl 8007c9e <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_M_allocateEj>
|
|
80073c0: 61b8 str r0, [r7, #24]
|
|
pointer __new_finish(__new_start);
|
|
80073c2: 69bb ldr r3, [r7, #24]
|
|
80073c4: 62fb str r3, [r7, #44] @ 0x2c
|
|
// The order of the three operations is dictated by the C++11
|
|
// case, where the moves could alter a new element belonging
|
|
// to the existing vector. This is an issue only for callers
|
|
// taking the element by lvalue ref (see last bullet of C++11
|
|
// [res.on.arguments]).
|
|
_Alloc_traits::construct(this->_M_impl,
|
|
80073c6: 68fc ldr r4, [r7, #12]
|
|
__new_start + __elems_before,
|
|
80073c8: 69fb ldr r3, [r7, #28]
|
|
80073ca: 00db lsls r3, r3, #3
|
|
_Alloc_traits::construct(this->_M_impl,
|
|
80073cc: 69ba ldr r2, [r7, #24]
|
|
80073ce: 18d5 adds r5, r2, r3
|
|
80073d0: 6878 ldr r0, [r7, #4]
|
|
80073d2: f000 fbe5 bl 8007ba0 <_ZSt7forwardIRKSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS7_E4typeE>
|
|
80073d6: 4603 mov r3, r0
|
|
80073d8: 461a mov r2, r3
|
|
80073da: 4629 mov r1, r5
|
|
80073dc: 4620 mov r0, r4
|
|
80073de: f7ff ff9f bl 8007320 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS4_JRKS4_EEEvRS5_PT_DpOT0_>
|
|
#if __cplusplus >= 201103L
|
|
std::forward<_Args>(__args)...);
|
|
#else
|
|
__x);
|
|
#endif
|
|
__new_finish = pointer();
|
|
80073e2: 2300 movs r3, #0
|
|
80073e4: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
#if __cplusplus >= 201103L
|
|
if _GLIBCXX17_CONSTEXPR (_S_use_relocate())
|
|
80073e6: f7ff ffae bl 8007346 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE15_S_use_relocateEv>
|
|
80073ea: 4603 mov r3, r0
|
|
80073ec: 2b00 cmp r3, #0
|
|
80073ee: d027 beq.n 8007440 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_+0xcc>
|
|
{
|
|
__new_finish = _S_relocate(__old_start, __position.base(),
|
|
80073f0: f107 0308 add.w r3, r7, #8
|
|
80073f4: 4618 mov r0, r3
|
|
80073f6: f000 f8a4 bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
80073fa: 4603 mov r3, r0
|
|
80073fc: 681c ldr r4, [r3, #0]
|
|
__new_start, _M_get_Tp_allocator());
|
|
80073fe: 68fb ldr r3, [r7, #12]
|
|
8007400: 4618 mov r0, r3
|
|
8007402: f7ff fe22 bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
8007406: 4603 mov r3, r0
|
|
__new_finish = _S_relocate(__old_start, __position.base(),
|
|
8007408: 69ba ldr r2, [r7, #24]
|
|
800740a: 4621 mov r1, r4
|
|
800740c: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
800740e: f000 fc5a bl 8007cc6 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_S_relocateEPS4_S7_S7_RS5_>
|
|
8007412: 62f8 str r0, [r7, #44] @ 0x2c
|
|
|
|
++__new_finish;
|
|
8007414: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
8007416: 3308 adds r3, #8
|
|
8007418: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
__new_finish = _S_relocate(__position.base(), __old_finish,
|
|
800741a: f107 0308 add.w r3, r7, #8
|
|
800741e: 4618 mov r0, r3
|
|
8007420: f000 f88f bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8007424: 4603 mov r3, r0
|
|
8007426: 681c ldr r4, [r3, #0]
|
|
__new_finish, _M_get_Tp_allocator());
|
|
8007428: 68fb ldr r3, [r7, #12]
|
|
800742a: 4618 mov r0, r3
|
|
800742c: f7ff fe0d bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
8007430: 4603 mov r3, r0
|
|
__new_finish = _S_relocate(__position.base(), __old_finish,
|
|
8007432: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
8007434: 6a39 ldr r1, [r7, #32]
|
|
8007436: 4620 mov r0, r4
|
|
8007438: f000 fc45 bl 8007cc6 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_S_relocateEPS4_S7_S7_RS5_>
|
|
800743c: 62f8 str r0, [r7, #44] @ 0x2c
|
|
800743e: e026 b.n 800748e <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_+0x11a>
|
|
else
|
|
#endif
|
|
{
|
|
__new_finish
|
|
= std::__uninitialized_move_if_noexcept_a
|
|
(__old_start, __position.base(),
|
|
8007440: f107 0308 add.w r3, r7, #8
|
|
8007444: 4618 mov r0, r3
|
|
8007446: f000 f87c bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
800744a: 4603 mov r3, r0
|
|
800744c: 681c ldr r4, [r3, #0]
|
|
__new_start, _M_get_Tp_allocator());
|
|
800744e: 68fb ldr r3, [r7, #12]
|
|
8007450: 4618 mov r0, r3
|
|
8007452: f7ff fdfa bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
8007456: 4603 mov r3, r0
|
|
(__old_start, __position.base(),
|
|
8007458: 69ba ldr r2, [r7, #24]
|
|
800745a: 4621 mov r1, r4
|
|
800745c: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
800745e: f000 fc46 bl 8007cee <_ZSt34__uninitialized_move_if_noexcept_aIPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>
|
|
8007462: 62f8 str r0, [r7, #44] @ 0x2c
|
|
|
|
++__new_finish;
|
|
8007464: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
8007466: 3308 adds r3, #8
|
|
8007468: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
__new_finish
|
|
= std::__uninitialized_move_if_noexcept_a
|
|
(__position.base(), __old_finish,
|
|
800746a: f107 0308 add.w r3, r7, #8
|
|
800746e: 4618 mov r0, r3
|
|
8007470: f000 f867 bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8007474: 4603 mov r3, r0
|
|
8007476: 681c ldr r4, [r3, #0]
|
|
__new_finish, _M_get_Tp_allocator());
|
|
8007478: 68fb ldr r3, [r7, #12]
|
|
800747a: 4618 mov r0, r3
|
|
800747c: f7ff fde5 bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
8007480: 4603 mov r3, r0
|
|
(__position.base(), __old_finish,
|
|
8007482: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
8007484: 6a39 ldr r1, [r7, #32]
|
|
8007486: 4620 mov r0, r4
|
|
8007488: f000 fc31 bl 8007cee <_ZSt34__uninitialized_move_if_noexcept_aIPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>
|
|
800748c: 62f8 str r0, [r7, #44] @ 0x2c
|
|
std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator());
|
|
_M_deallocate(__new_start, __len);
|
|
__throw_exception_again;
|
|
}
|
|
#if __cplusplus >= 201103L
|
|
if _GLIBCXX17_CONSTEXPR (!_S_use_relocate())
|
|
800748e: f7ff ff5a bl 8007346 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE15_S_use_relocateEv>
|
|
8007492: 4603 mov r3, r0
|
|
8007494: f083 0301 eor.w r3, r3, #1
|
|
8007498: b2db uxtb r3, r3
|
|
800749a: 2b00 cmp r3, #0
|
|
800749c: d009 beq.n 80074b2 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_+0x13e>
|
|
#endif
|
|
std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator());
|
|
800749e: 68fb ldr r3, [r7, #12]
|
|
80074a0: 4618 mov r0, r3
|
|
80074a2: f7ff fdd2 bl 800704a <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
80074a6: 4603 mov r3, r0
|
|
80074a8: 461a mov r2, r3
|
|
80074aa: 6a39 ldr r1, [r7, #32]
|
|
80074ac: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
80074ae: f7ff fdd7 bl 8007060 <_ZSt8_DestroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEES4_EvT_S6_RSaIT0_E>
|
|
_GLIBCXX_ASAN_ANNOTATE_REINIT;
|
|
_M_deallocate(__old_start,
|
|
80074b2: 68f8 ldr r0, [r7, #12]
|
|
this->_M_impl._M_end_of_storage - __old_start);
|
|
80074b4: 68fb ldr r3, [r7, #12]
|
|
80074b6: 689a ldr r2, [r3, #8]
|
|
80074b8: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
80074ba: 1ad3 subs r3, r2, r3
|
|
80074bc: 10db asrs r3, r3, #3
|
|
_M_deallocate(__old_start,
|
|
80074be: 461a mov r2, r3
|
|
80074c0: 6a79 ldr r1, [r7, #36] @ 0x24
|
|
80074c2: f7ff febe bl 8007242 <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE13_M_deallocateEPS4_j>
|
|
this->_M_impl._M_start = __new_start;
|
|
80074c6: 68fb ldr r3, [r7, #12]
|
|
80074c8: 69ba ldr r2, [r7, #24]
|
|
80074ca: 601a str r2, [r3, #0]
|
|
this->_M_impl._M_finish = __new_finish;
|
|
80074cc: 68fb ldr r3, [r7, #12]
|
|
80074ce: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
80074d0: 605a str r2, [r3, #4]
|
|
this->_M_impl._M_end_of_storage = __new_start + __len;
|
|
80074d2: 6abb ldr r3, [r7, #40] @ 0x28
|
|
80074d4: 00db lsls r3, r3, #3
|
|
80074d6: 69ba ldr r2, [r7, #24]
|
|
80074d8: 441a add r2, r3
|
|
80074da: 68fb ldr r3, [r7, #12]
|
|
80074dc: 609a str r2, [r3, #8]
|
|
}
|
|
80074de: bf00 nop
|
|
80074e0: 3730 adds r7, #48 @ 0x30
|
|
80074e2: 46bd mov sp, r7
|
|
80074e4: bdb0 pop {r4, r5, r7, pc}
|
|
80074e6: bf00 nop
|
|
80074e8: 08012bf4 .word 0x08012bf4
|
|
|
|
080074ec <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE4sizeEv>:
|
|
size() const _GLIBCXX_NOEXCEPT
|
|
80074ec: b480 push {r7}
|
|
80074ee: b083 sub sp, #12
|
|
80074f0: af00 add r7, sp, #0
|
|
80074f2: 6078 str r0, [r7, #4]
|
|
{ return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); }
|
|
80074f4: 687b ldr r3, [r7, #4]
|
|
80074f6: 685a ldr r2, [r3, #4]
|
|
80074f8: 687b ldr r3, [r7, #4]
|
|
80074fa: 681b ldr r3, [r3, #0]
|
|
80074fc: 1ad3 subs r3, r2, r3
|
|
80074fe: 10db asrs r3, r3, #3
|
|
8007500: 4618 mov r0, r3
|
|
8007502: 370c adds r7, #12
|
|
8007504: 46bd mov sp, r7
|
|
8007506: f85d 7b04 ldr.w r7, [sp], #4
|
|
800750a: 4770 bx lr
|
|
|
|
0800750c <_ZNKSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>:
|
|
_M_get_Tp_allocator() const _GLIBCXX_NOEXCEPT
|
|
800750c: b480 push {r7}
|
|
800750e: b083 sub sp, #12
|
|
8007510: af00 add r7, sp, #0
|
|
8007512: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl; }
|
|
8007514: 687b ldr r3, [r7, #4]
|
|
8007516: 4618 mov r0, r3
|
|
8007518: 370c adds r7, #12
|
|
800751a: 46bd mov sp, r7
|
|
800751c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007520: 4770 bx lr
|
|
|
|
08007522 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEC1ERKS6_>:
|
|
__normal_iterator(const _Iterator& __i) _GLIBCXX_NOEXCEPT
|
|
8007522: b480 push {r7}
|
|
8007524: b083 sub sp, #12
|
|
8007526: af00 add r7, sp, #0
|
|
8007528: 6078 str r0, [r7, #4]
|
|
800752a: 6039 str r1, [r7, #0]
|
|
: _M_current(__i) { }
|
|
800752c: 683b ldr r3, [r7, #0]
|
|
800752e: 681a ldr r2, [r3, #0]
|
|
8007530: 687b ldr r3, [r7, #4]
|
|
8007532: 601a str r2, [r3, #0]
|
|
8007534: 687b ldr r3, [r7, #4]
|
|
8007536: 4618 mov r0, r3
|
|
8007538: 370c adds r7, #12
|
|
800753a: 46bd mov sp, r7
|
|
800753c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007540: 4770 bx lr
|
|
|
|
08007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>:
|
|
base() const _GLIBCXX_NOEXCEPT
|
|
8007542: b480 push {r7}
|
|
8007544: b083 sub sp, #12
|
|
8007546: af00 add r7, sp, #0
|
|
8007548: 6078 str r0, [r7, #4]
|
|
{ return _M_current; }
|
|
800754a: 687b ldr r3, [r7, #4]
|
|
800754c: 4618 mov r0, r3
|
|
800754e: 370c adds r7, #12
|
|
8007550: 46bd mov sp, r7
|
|
8007552: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007556: 4770 bx lr
|
|
|
|
08007558 <_ZNKSt19__shared_ptr_accessIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0ELb0ELb0EE6_M_getEv>:
|
|
_M_get() const noexcept
|
|
8007558: b580 push {r7, lr}
|
|
800755a: b082 sub sp, #8
|
|
800755c: af00 add r7, sp, #0
|
|
800755e: 6078 str r0, [r7, #4]
|
|
{ return static_cast<const __shared_ptr<_Tp, _Lp>*>(this)->get(); }
|
|
8007560: 6878 ldr r0, [r7, #4]
|
|
8007562: f000 fbea bl 8007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>
|
|
8007566: 4603 mov r3, r0
|
|
8007568: 4618 mov r0, r3
|
|
800756a: 3708 adds r7, #8
|
|
800756c: 46bd mov sp, r7
|
|
800756e: bd80 pop {r7, pc}
|
|
|
|
08007570 <_ZNSaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>:
|
|
8007570: b580 push {r7, lr}
|
|
8007572: b082 sub sp, #8
|
|
8007574: af00 add r7, sp, #0
|
|
8007576: 6078 str r0, [r7, #4]
|
|
8007578: 6878 ldr r0, [r7, #4]
|
|
800757a: f000 fbea bl 8007d52 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>
|
|
800757e: 687b ldr r3, [r7, #4]
|
|
8007580: 4618 mov r0, r3
|
|
8007582: 3708 adds r7, #8
|
|
8007584: 46bd mov sp, r7
|
|
8007586: bd80 pop {r7, pc}
|
|
|
|
08007588 <_ZNSt20_Rb_tree_key_compareISt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>:
|
|
_Rb_tree_key_compare()
|
|
8007588: b480 push {r7}
|
|
800758a: b083 sub sp, #12
|
|
800758c: af00 add r7, sp, #0
|
|
800758e: 6078 str r0, [r7, #4]
|
|
{ }
|
|
8007590: 687b ldr r3, [r7, #4]
|
|
8007592: 4618 mov r0, r3
|
|
8007594: 370c adds r7, #12
|
|
8007596: 46bd mov sp, r7
|
|
8007598: f85d 7b04 ldr.w r7, [sp], #4
|
|
800759c: 4770 bx lr
|
|
|
|
0800759e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEED1Ev>:
|
|
800759e: b480 push {r7}
|
|
80075a0: b083 sub sp, #12
|
|
80075a2: af00 add r7, sp, #0
|
|
80075a4: 6078 str r0, [r7, #4]
|
|
80075a6: 687b ldr r3, [r7, #4]
|
|
80075a8: 4618 mov r0, r3
|
|
80075aa: 370c adds r7, #12
|
|
80075ac: 46bd mov sp, r7
|
|
80075ae: f85d 7b04 ldr.w r7, [sp], #4
|
|
80075b2: 4770 bx lr
|
|
|
|
080075b4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
80075b4: b580 push {r7, lr}
|
|
80075b6: b084 sub sp, #16
|
|
80075b8: af00 add r7, sp, #0
|
|
80075ba: 6078 str r0, [r7, #4]
|
|
80075bc: 6039 str r1, [r7, #0]
|
|
while (__x != 0)
|
|
80075be: e011 b.n 80075e4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E+0x30>
|
|
_M_erase(_S_right(__x));
|
|
80075c0: 6838 ldr r0, [r7, #0]
|
|
80075c2: f000 fbd1 bl 8007d68 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_S_rightEPSt18_Rb_tree_node_base>
|
|
80075c6: 4603 mov r3, r0
|
|
80075c8: 4619 mov r1, r3
|
|
80075ca: 6878 ldr r0, [r7, #4]
|
|
80075cc: f7ff fff2 bl 80075b4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E>
|
|
_Link_type __y = _S_left(__x);
|
|
80075d0: 6838 ldr r0, [r7, #0]
|
|
80075d2: f000 fbd5 bl 8007d80 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE7_S_leftEPSt18_Rb_tree_node_base>
|
|
80075d6: 60f8 str r0, [r7, #12]
|
|
_M_drop_node(__x);
|
|
80075d8: 6839 ldr r1, [r7, #0]
|
|
80075da: 6878 ldr r0, [r7, #4]
|
|
80075dc: f000 fbdc bl 8007d98 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS4_E>
|
|
__x = __y;
|
|
80075e0: 68fb ldr r3, [r7, #12]
|
|
80075e2: 603b str r3, [r7, #0]
|
|
while (__x != 0)
|
|
80075e4: 683b ldr r3, [r7, #0]
|
|
80075e6: 2b00 cmp r3, #0
|
|
80075e8: d1ea bne.n 80075c0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_eraseEPSt13_Rb_tree_nodeIS4_E+0xc>
|
|
}
|
|
80075ea: bf00 nop
|
|
80075ec: bf00 nop
|
|
80075ee: 3710 adds r7, #16
|
|
80075f0: 46bd mov sp, r7
|
|
80075f2: bd80 pop {r7, pc}
|
|
|
|
080075f4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_beginEv>:
|
|
_M_begin() _GLIBCXX_NOEXCEPT
|
|
80075f4: b580 push {r7, lr}
|
|
80075f6: b082 sub sp, #8
|
|
80075f8: af00 add r7, sp, #0
|
|
80075fa: 6078 str r0, [r7, #4]
|
|
{ return _M_mbegin(); }
|
|
80075fc: 6878 ldr r0, [r7, #4]
|
|
80075fe: f000 fbdc bl 8007dba <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE9_M_mbeginEv>
|
|
8007602: 4603 mov r3, r0
|
|
8007604: 4618 mov r0, r3
|
|
8007606: 3708 adds r7, #8
|
|
8007608: 46bd mov sp, r7
|
|
800760a: bd80 pop {r7, pc}
|
|
|
|
0800760c <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE4findERKS4_>:
|
|
|
|
template<typename _Key, typename _Val, typename _KeyOfValue,
|
|
typename _Compare, typename _Alloc>
|
|
typename _Rb_tree<_Key, _Val, _KeyOfValue,
|
|
_Compare, _Alloc>::const_iterator
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
800760c: b590 push {r4, r7, lr}
|
|
800760e: b085 sub sp, #20
|
|
8007610: af00 add r7, sp, #0
|
|
8007612: 6078 str r0, [r7, #4]
|
|
8007614: 6039 str r1, [r7, #0]
|
|
find(const _Key& __k) const
|
|
{
|
|
const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k);
|
|
8007616: 6878 ldr r0, [r7, #4]
|
|
8007618: f000 fbdb bl 8007dd2 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_beginEv>
|
|
800761c: 4604 mov r4, r0
|
|
800761e: 6878 ldr r0, [r7, #4]
|
|
8007620: f000 fbe3 bl 8007dea <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_M_endEv>
|
|
8007624: 4602 mov r2, r0
|
|
8007626: 683b ldr r3, [r7, #0]
|
|
8007628: 4621 mov r1, r4
|
|
800762a: 6878 ldr r0, [r7, #4]
|
|
800762c: f000 fbe9 bl 8007e02 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_>
|
|
8007630: 4603 mov r3, r0
|
|
8007632: 60bb str r3, [r7, #8]
|
|
return (__j == end()
|
|
8007634: 6878 ldr r0, [r7, #4]
|
|
8007636: f000 f825 bl 8007684 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE3endEv>
|
|
800763a: 4603 mov r3, r0
|
|
800763c: 60fb str r3, [r7, #12]
|
|
800763e: f107 020c add.w r2, r7, #12
|
|
8007642: f107 0308 add.w r3, r7, #8
|
|
8007646: 4611 mov r1, r2
|
|
8007648: 4618 mov r0, r3
|
|
800764a: f000 f82c bl 80076a6 <_ZSteqRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEES7_>
|
|
800764e: 4603 mov r3, r0
|
|
|| _M_impl._M_key_compare(__k,
|
|
_S_key(__j._M_node))) ? end() : __j;
|
|
8007650: 2b00 cmp r3, #0
|
|
8007652: d10d bne.n 8007670 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE4findERKS4_+0x64>
|
|
|| _M_impl._M_key_compare(__k,
|
|
8007654: 687c ldr r4, [r7, #4]
|
|
8007656: 68bb ldr r3, [r7, #8]
|
|
8007658: 4618 mov r0, r3
|
|
800765a: f000 fc03 bl 8007e64 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
800765e: 4603 mov r3, r0
|
|
8007660: 461a mov r2, r3
|
|
8007662: 6839 ldr r1, [r7, #0]
|
|
8007664: 4620 mov r0, r4
|
|
8007666: f000 fc09 bl 8007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>
|
|
800766a: 4603 mov r3, r0
|
|
800766c: 2b00 cmp r3, #0
|
|
800766e: d004 beq.n 800767a <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE4findERKS4_+0x6e>
|
|
_S_key(__j._M_node))) ? end() : __j;
|
|
8007670: 6878 ldr r0, [r7, #4]
|
|
8007672: f000 f807 bl 8007684 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE3endEv>
|
|
8007676: 4603 mov r3, r0
|
|
8007678: e000 b.n 800767c <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE4findERKS4_+0x70>
|
|
800767a: 68bb ldr r3, [r7, #8]
|
|
}
|
|
800767c: 4618 mov r0, r3
|
|
800767e: 3714 adds r7, #20
|
|
8007680: 46bd mov sp, r7
|
|
8007682: bd90 pop {r4, r7, pc}
|
|
|
|
08007684 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE3endEv>:
|
|
end() const _GLIBCXX_NOEXCEPT
|
|
8007684: b580 push {r7, lr}
|
|
8007686: b084 sub sp, #16
|
|
8007688: af00 add r7, sp, #0
|
|
800768a: 6078 str r0, [r7, #4]
|
|
{ return const_iterator(&this->_M_impl._M_header); }
|
|
800768c: 687b ldr r3, [r7, #4]
|
|
800768e: 1d1a adds r2, r3, #4
|
|
8007690: f107 030c add.w r3, r7, #12
|
|
8007694: 4611 mov r1, r2
|
|
8007696: 4618 mov r0, r3
|
|
8007698: f000 fbff bl 8007e9a <_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPKSt18_Rb_tree_node_base>
|
|
800769c: 68fb ldr r3, [r7, #12]
|
|
800769e: 4618 mov r0, r3
|
|
80076a0: 3710 adds r7, #16
|
|
80076a2: 46bd mov sp, r7
|
|
80076a4: bd80 pop {r7, pc}
|
|
|
|
080076a6 <_ZSteqRKSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEES7_>:
|
|
operator==(const _Self& __x, const _Self& __y) _GLIBCXX_NOEXCEPT
|
|
80076a6: b480 push {r7}
|
|
80076a8: b083 sub sp, #12
|
|
80076aa: af00 add r7, sp, #0
|
|
80076ac: 6078 str r0, [r7, #4]
|
|
80076ae: 6039 str r1, [r7, #0]
|
|
{ return __x._M_node == __y._M_node; }
|
|
80076b0: 687b ldr r3, [r7, #4]
|
|
80076b2: 681a ldr r2, [r3, #0]
|
|
80076b4: 683b ldr r3, [r7, #0]
|
|
80076b6: 681b ldr r3, [r3, #0]
|
|
80076b8: 429a cmp r2, r3
|
|
80076ba: bf0c ite eq
|
|
80076bc: 2301 moveq r3, #1
|
|
80076be: 2300 movne r3, #0
|
|
80076c0: b2db uxtb r3, r3
|
|
80076c2: 4618 mov r0, r3
|
|
80076c4: 370c adds r7, #12
|
|
80076c6: 46bd mov sp, r7
|
|
80076c8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80076cc: 4770 bx lr
|
|
|
|
080076ce <_ZN9__gnu_cxx5__ops17__iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEENS0_16_Iter_equals_valIT_EERS9_>:
|
|
};
|
|
|
|
template<typename _Value>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _Iter_equals_val<_Value>
|
|
__iter_equals_val(_Value& __val)
|
|
80076ce: b580 push {r7, lr}
|
|
80076d0: b084 sub sp, #16
|
|
80076d2: af00 add r7, sp, #0
|
|
80076d4: 6078 str r0, [r7, #4]
|
|
{ return _Iter_equals_val<_Value>(__val); }
|
|
80076d6: f107 030c add.w r3, r7, #12
|
|
80076da: 6879 ldr r1, [r7, #4]
|
|
80076dc: 4618 mov r0, r3
|
|
80076de: f000 fbeb bl 8007eb8 <_ZN9__gnu_cxx5__ops16_Iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ERS7_>
|
|
80076e2: 68fb ldr r3, [r7, #12]
|
|
80076e4: 4618 mov r0, r3
|
|
80076e6: 3710 adds r7, #16
|
|
80076e8: 46bd mov sp, r7
|
|
80076ea: bd80 pop {r7, pc}
|
|
|
|
080076ec <_ZSt10__count_ifIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEENS0_5__ops16_Iter_equals_valIKS6_EEENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_>:
|
|
}
|
|
|
|
template<typename _InputIterator, typename _Predicate>
|
|
_GLIBCXX20_CONSTEXPR
|
|
typename iterator_traits<_InputIterator>::difference_type
|
|
__count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred)
|
|
80076ec: b580 push {r7, lr}
|
|
80076ee: b086 sub sp, #24
|
|
80076f0: af00 add r7, sp, #0
|
|
80076f2: 60f8 str r0, [r7, #12]
|
|
80076f4: 60b9 str r1, [r7, #8]
|
|
80076f6: 607a str r2, [r7, #4]
|
|
{
|
|
typename iterator_traits<_InputIterator>::difference_type __n = 0;
|
|
80076f8: 2300 movs r3, #0
|
|
80076fa: 617b str r3, [r7, #20]
|
|
for (; __first != __last; ++__first)
|
|
80076fc: e00f b.n 800771e <_ZSt10__count_ifIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEENS0_5__ops16_Iter_equals_valIKS6_EEENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_+0x32>
|
|
if (__pred(__first))
|
|
80076fe: 1d3b adds r3, r7, #4
|
|
8007700: 68f9 ldr r1, [r7, #12]
|
|
8007702: 4618 mov r0, r3
|
|
8007704: f000 fbe7 bl 8007ed6 <_ZN9__gnu_cxx5__ops16_Iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEclINS_17__normal_iteratorIPS6_St6vectorIS6_SaIS6_EEEEEEbT_>
|
|
8007708: 4603 mov r3, r0
|
|
800770a: 2b00 cmp r3, #0
|
|
800770c: d002 beq.n 8007714 <_ZSt10__count_ifIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEENS0_5__ops16_Iter_equals_valIKS6_EEENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_+0x28>
|
|
++__n;
|
|
800770e: 697b ldr r3, [r7, #20]
|
|
8007710: 3301 adds r3, #1
|
|
8007712: 617b str r3, [r7, #20]
|
|
for (; __first != __last; ++__first)
|
|
8007714: f107 030c add.w r3, r7, #12
|
|
8007718: 4618 mov r0, r3
|
|
800771a: f7ff fbe4 bl 8006ee6 <_ZN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEppEv>
|
|
800771e: f107 0208 add.w r2, r7, #8
|
|
8007722: f107 030c add.w r3, r7, #12
|
|
8007726: 4611 mov r1, r2
|
|
8007728: 4618 mov r0, r3
|
|
800772a: f7ff fbc4 bl 8006eb6 <_ZN9__gnu_cxxneIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_>
|
|
800772e: 4603 mov r3, r0
|
|
8007730: 2b00 cmp r3, #0
|
|
8007732: d1e4 bne.n 80076fe <_ZSt10__count_ifIN9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS6_SaIS6_EEEENS0_5__ops16_Iter_equals_valIKS6_EEENSt15iterator_traitsIT_E15difference_typeESH_SH_T0_+0x12>
|
|
return __n;
|
|
8007734: 697b ldr r3, [r7, #20]
|
|
}
|
|
8007736: 4618 mov r0, r3
|
|
8007738: 3718 adds r7, #24
|
|
800773a: 46bd mov sp, r7
|
|
800773c: bd80 pop {r7, pc}
|
|
|
|
0800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800773e: b480 push {r7}
|
|
8007740: b083 sub sp, #12
|
|
8007742: af00 add r7, sp, #0
|
|
8007744: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8007746: 687b ldr r3, [r7, #4]
|
|
8007748: 4618 mov r0, r3
|
|
800774a: 370c adds r7, #12
|
|
800774c: 46bd mov sp, r7
|
|
800774e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007752: 4770 bx lr
|
|
|
|
08007754 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_emplace_uniqueIJRS4_EEESt4pairISt17_Rb_tree_iteratorIS4_EbEDpOT_>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8007754: b580 push {r7, lr}
|
|
8007756: b08c sub sp, #48 @ 0x30
|
|
8007758: af00 add r7, sp, #0
|
|
800775a: 60f8 str r0, [r7, #12]
|
|
800775c: 60b9 str r1, [r7, #8]
|
|
800775e: 607a str r2, [r7, #4]
|
|
_Auto_node __z(*this, std::forward<_Args>(__args)...);
|
|
8007760: 6878 ldr r0, [r7, #4]
|
|
8007762: f7ff ffec bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8007766: 4602 mov r2, r0
|
|
8007768: f107 0318 add.w r3, r7, #24
|
|
800776c: 68b9 ldr r1, [r7, #8]
|
|
800776e: 4618 mov r0, r3
|
|
8007770: f000 fbc6 bl 8007f00 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_nodeC1IJRS4_EEERSA_DpOT_>
|
|
auto __res = _M_get_insert_unique_pos(__z._M_key());
|
|
8007774: f107 0318 add.w r3, r7, #24
|
|
8007778: 4618 mov r0, r3
|
|
800777a: f000 fc74 bl 8008066 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_node6_M_keyEv>
|
|
800777e: 4602 mov r2, r0
|
|
8007780: f107 0310 add.w r3, r7, #16
|
|
8007784: 68b9 ldr r1, [r7, #8]
|
|
8007786: 4618 mov r0, r3
|
|
8007788: f000 fbe8 bl 8007f5c <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_>
|
|
if (__res.second)
|
|
800778c: 697b ldr r3, [r7, #20]
|
|
800778e: 2b00 cmp r3, #0
|
|
8007790: d015 beq.n 80077be <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_emplace_uniqueIJRS4_EEESt4pairISt17_Rb_tree_iteratorIS4_EbEDpOT_+0x6a>
|
|
return {__z._M_insert(__res), true};
|
|
8007792: f107 0018 add.w r0, r7, #24
|
|
8007796: f107 0310 add.w r3, r7, #16
|
|
800779a: e893 0006 ldmia.w r3, {r1, r2}
|
|
800779e: f000 fc70 bl 8008082 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_node9_M_insertESt4pairIPSt18_Rb_tree_node_baseSE_E>
|
|
80077a2: 4603 mov r3, r0
|
|
80077a4: 623b str r3, [r7, #32]
|
|
80077a6: 2301 movs r3, #1
|
|
80077a8: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
80077ac: f107 0227 add.w r2, r7, #39 @ 0x27
|
|
80077b0: f107 0320 add.w r3, r7, #32
|
|
80077b4: 4619 mov r1, r3
|
|
80077b6: 68f8 ldr r0, [r7, #12]
|
|
80077b8: f000 fc7c bl 80080b4 <_ZNSt4pairISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEbEC1IS6_bLb1EEEOT_OT0_>
|
|
80077bc: e011 b.n 80077e2 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_emplace_uniqueIJRS4_EEESt4pairISt17_Rb_tree_iteratorIS4_EbEDpOT_+0x8e>
|
|
return {iterator(__res.first), false};
|
|
80077be: 693a ldr r2, [r7, #16]
|
|
80077c0: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
80077c4: 4611 mov r1, r2
|
|
80077c6: 4618 mov r0, r3
|
|
80077c8: f000 fc8d bl 80080e6 <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPSt18_Rb_tree_node_base>
|
|
80077cc: 2300 movs r3, #0
|
|
80077ce: f887 302f strb.w r3, [r7, #47] @ 0x2f
|
|
80077d2: f107 022f add.w r2, r7, #47 @ 0x2f
|
|
80077d6: f107 0328 add.w r3, r7, #40 @ 0x28
|
|
80077da: 4619 mov r1, r3
|
|
80077dc: 68f8 ldr r0, [r7, #12]
|
|
80077de: f000 fc69 bl 80080b4 <_ZNSt4pairISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEbEC1IS6_bLb1EEEOT_OT0_>
|
|
}
|
|
80077e2: f107 0318 add.w r3, r7, #24
|
|
80077e6: 4618 mov r0, r3
|
|
80077e8: f000 fba3 bl 8007f32 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_nodeD1Ev>
|
|
80077ec: 68f8 ldr r0, [r7, #12]
|
|
80077ee: 3730 adds r7, #48 @ 0x30
|
|
80077f0: 46bd mov sp, r7
|
|
80077f2: bd80 pop {r7, pc}
|
|
|
|
080077f4 <_ZNSt4pairISt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEbEC1ISt17_Rb_tree_iteratorIS5_EbLb1EEEOS_IT_T0_E>:
|
|
enable_if<_PCCFP<_U1, _U2>::template
|
|
_MoveConstructiblePair<_U1, _U2>()
|
|
&& _PCCFP<_U1, _U2>::template
|
|
_ImplicitlyMoveConvertiblePair<_U1, _U2>(),
|
|
bool>::type=true>
|
|
constexpr pair(pair<_U1, _U2>&& __p)
|
|
80077f4: b590 push {r4, r7, lr}
|
|
80077f6: b083 sub sp, #12
|
|
80077f8: af00 add r7, sp, #0
|
|
80077fa: 6078 str r0, [r7, #4]
|
|
80077fc: 6039 str r1, [r7, #0]
|
|
: first(std::forward<_U1>(__p.first)),
|
|
80077fe: 687c ldr r4, [r7, #4]
|
|
8007800: 683b ldr r3, [r7, #0]
|
|
8007802: 4618 mov r0, r3
|
|
8007804: f000 fc7e bl 8008104 <_ZSt7forwardISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEEOT_RNSt16remove_referenceIS7_E4typeE>
|
|
8007808: 4603 mov r3, r0
|
|
800780a: 4619 mov r1, r3
|
|
800780c: 4620 mov r0, r4
|
|
800780e: f000 fc84 bl 800811a <_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ERKSt17_Rb_tree_iteratorIS4_E>
|
|
second(std::forward<_U2>(__p.second)) { }
|
|
8007812: 683b ldr r3, [r7, #0]
|
|
8007814: 3304 adds r3, #4
|
|
8007816: 4618 mov r0, r3
|
|
8007818: f7fa fc95 bl 8002146 <_ZSt7forwardIbEOT_RNSt16remove_referenceIS0_E4typeE>
|
|
800781c: 4603 mov r3, r0
|
|
800781e: 781a ldrb r2, [r3, #0]
|
|
8007820: 687b ldr r3, [r7, #4]
|
|
8007822: 711a strb r2, [r3, #4]
|
|
8007824: 687b ldr r3, [r7, #4]
|
|
8007826: 4618 mov r0, r3
|
|
8007828: 370c adds r7, #12
|
|
800782a: 46bd mov sp, r7
|
|
800782c: bd90 pop {r4, r7, pc}
|
|
|
|
0800782e <_ZSt8_DestroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEvT_S6_>:
|
|
* a trivial destructor, the compiler should optimize all of this
|
|
* away, otherwise the objects' destructors must be invoked.
|
|
*/
|
|
template<typename _ForwardIterator>
|
|
_GLIBCXX20_CONSTEXPR inline void
|
|
_Destroy(_ForwardIterator __first, _ForwardIterator __last)
|
|
800782e: b580 push {r7, lr}
|
|
8007830: b082 sub sp, #8
|
|
8007832: af00 add r7, sp, #0
|
|
8007834: 6078 str r0, [r7, #4]
|
|
8007836: 6039 str r1, [r7, #0]
|
|
#if __cplusplus >= 202002L
|
|
if (std::__is_constant_evaluated())
|
|
return _Destroy_aux<false>::__destroy(__first, __last);
|
|
#endif
|
|
std::_Destroy_aux<__has_trivial_destructor(_Value_type)>::
|
|
__destroy(__first, __last);
|
|
8007838: 6839 ldr r1, [r7, #0]
|
|
800783a: 6878 ldr r0, [r7, #4]
|
|
800783c: f000 fc7d bl 800813a <_ZNSt12_Destroy_auxILb0EE9__destroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEEvT_S8_>
|
|
}
|
|
8007840: bf00 nop
|
|
8007842: 3708 adds r7, #8
|
|
8007844: 46bd mov sp, r7
|
|
8007846: bd80 pop {r7, pc}
|
|
|
|
08007848 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
8007848: b580 push {r7, lr}
|
|
800784a: b084 sub sp, #16
|
|
800784c: af00 add r7, sp, #0
|
|
800784e: 60f8 str r0, [r7, #12]
|
|
8007850: 60b9 str r1, [r7, #8]
|
|
8007852: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
8007854: 68f8 ldr r0, [r7, #12]
|
|
8007856: f7fe fdf7 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
800785a: 4603 mov r3, r0
|
|
800785c: 4619 mov r1, r3
|
|
800785e: 2001 movs r0, #1
|
|
8007860: f7f9 fb2a bl 8000eb8 <_ZnwjPv>
|
|
8007864: 68b8 ldr r0, [r7, #8]
|
|
8007866: f7ff fc14 bl 8007092 <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
}
|
|
800786a: bf00 nop
|
|
800786c: 3710 adds r7, #16
|
|
800786e: 46bd mov sp, r7
|
|
8007870: bd80 pop {r7, pc}
|
|
|
|
08007872 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E14_M_get_pointerERKSt9_Any_data>:
|
|
_M_get_pointer(const _Any_data& __source) noexcept
|
|
8007872: b580 push {r7, lr}
|
|
8007874: b084 sub sp, #16
|
|
8007876: af00 add r7, sp, #0
|
|
8007878: 6078 str r0, [r7, #4]
|
|
const _Functor& __f = __source._M_access<_Functor>();
|
|
800787a: 6878 ldr r0, [r7, #4]
|
|
800787c: f000 fc76 bl 800816c <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE_EERKT_v>
|
|
8007880: 60f8 str r0, [r7, #12]
|
|
return const_cast<_Functor*>(std::__addressof(__f));
|
|
8007882: 68f8 ldr r0, [r7, #12]
|
|
8007884: f000 fc7e bl 8008184 <_ZSt11__addressofIKZN3sta5tacos12StatemachineC4EvEUlPvE_EPT_RS6_>
|
|
8007888: 4603 mov r3, r0
|
|
800788a: bf00 nop
|
|
}
|
|
800788c: 4618 mov r0, r3
|
|
800788e: 3710 adds r7, #16
|
|
8007890: 46bd mov sp, r7
|
|
8007892: bd80 pop {r7, pc}
|
|
|
|
08007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8007894: b480 push {r7}
|
|
8007896: b083 sub sp, #12
|
|
8007898: af00 add r7, sp, #0
|
|
800789a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
800789c: 687b ldr r3, [r7, #4]
|
|
800789e: 4618 mov r0, r3
|
|
80078a0: 370c adds r7, #12
|
|
80078a2: 46bd mov sp, r7
|
|
80078a4: f85d 7b04 ldr.w r7, [sp], #4
|
|
80078a8: 4770 bx lr
|
|
|
|
080078aa <_ZSt10__invoke_rIvRZN3sta5tacos12StatemachineC4EvEUlPvE_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>:
|
|
}
|
|
|
|
// INVOKE<R> when R is cv void
|
|
template<typename _Res, typename _Callable, typename... _Args>
|
|
_GLIBCXX14_CONSTEXPR __can_invoke_as_void<_Res, _Callable, _Args...>
|
|
__invoke_r(_Callable&& __fn, _Args&&... __args)
|
|
80078aa: b5b0 push {r4, r5, r7, lr}
|
|
80078ac: b082 sub sp, #8
|
|
80078ae: af00 add r7, sp, #0
|
|
80078b0: 6078 str r0, [r7, #4]
|
|
80078b2: 6039 str r1, [r7, #0]
|
|
{
|
|
using __result = __invoke_result<_Callable, _Args...>;
|
|
using __type = typename __result::type;
|
|
using __tag = typename __result::__invoke_type;
|
|
std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn),
|
|
80078b4: 6878 ldr r0, [r7, #4]
|
|
80078b6: f000 fc70 bl 800819a <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
80078ba: 4604 mov r4, r0
|
|
80078bc: 6838 ldr r0, [r7, #0]
|
|
80078be: f7ff ffe9 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80078c2: 4603 mov r3, r0
|
|
80078c4: 461a mov r2, r3
|
|
80078c6: 4621 mov r1, r4
|
|
80078c8: 4628 mov r0, r5
|
|
80078ca: f000 fc71 bl 80081b0 <_ZSt13__invoke_implIvRZN3sta5tacos12StatemachineC4EvEUlPvE_JS3_EET_St14__invoke_otherOT0_DpOT1_>
|
|
std::forward<_Args>(__args)...);
|
|
}
|
|
80078ce: bf00 nop
|
|
80078d0: 3708 adds r7, #8
|
|
80078d2: 46bd mov sp, r7
|
|
80078d4: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080078d6 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE_EERT_v>:
|
|
_M_access() noexcept
|
|
80078d6: b580 push {r7, lr}
|
|
80078d8: b082 sub sp, #8
|
|
80078da: af00 add r7, sp, #0
|
|
80078dc: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
80078de: 6878 ldr r0, [r7, #4]
|
|
80078e0: f7fe fdb2 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80078e4: 4603 mov r3, r0
|
|
80078e6: 4618 mov r0, r3
|
|
80078e8: 3708 adds r7, #8
|
|
80078ea: 46bd mov sp, r7
|
|
80078ec: bd80 pop {r7, pc}
|
|
...
|
|
|
|
080078f0 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
80078f0: b590 push {r4, r7, lr}
|
|
80078f2: b085 sub sp, #20
|
|
80078f4: af00 add r7, sp, #0
|
|
80078f6: 60f8 str r0, [r7, #12]
|
|
80078f8: 60b9 str r1, [r7, #8]
|
|
80078fa: 4613 mov r3, r2
|
|
80078fc: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
80078fe: 79fb ldrb r3, [r7, #7]
|
|
8007900: 2b03 cmp r3, #3
|
|
8007902: d82a bhi.n 800795a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
8007904: a201 add r2, pc, #4 @ (adr r2, 800790c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x1c>)
|
|
8007906: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
800790a: bf00 nop
|
|
800790c: 0800791d .word 0x0800791d
|
|
8007910: 0800792b .word 0x0800792b
|
|
8007914: 0800793f .word 0x0800793f
|
|
8007918: 08007951 .word 0x08007951
|
|
__dest._M_access<const type_info*>() = nullptr;
|
|
800791c: 68f8 ldr r0, [r7, #12]
|
|
800791e: f000 fc5e bl 80081de <_ZNSt9_Any_data9_M_accessIPKSt9type_infoEERT_v>
|
|
8007922: 4603 mov r3, r0
|
|
8007924: 2200 movs r2, #0
|
|
8007926: 601a str r2, [r3, #0]
|
|
break;
|
|
8007928: e017 b.n 800795a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
__dest._M_access<_Functor*>() = _M_get_pointer(__source);
|
|
800792a: 68f8 ldr r0, [r7, #12]
|
|
800792c: f7ff ffd3 bl 80078d6 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE_EERT_v>
|
|
8007930: 4604 mov r4, r0
|
|
8007932: 68b8 ldr r0, [r7, #8]
|
|
8007934: f7ff ff9d bl 8007872 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007938: 4603 mov r3, r0
|
|
800793a: 6023 str r3, [r4, #0]
|
|
break;
|
|
800793c: e00d b.n 800795a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
*const_cast<const _Functor*>(_M_get_pointer(__source)));
|
|
800793e: 68b8 ldr r0, [r7, #8]
|
|
8007940: f7ff ff97 bl 8007872 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007944: 4603 mov r3, r0
|
|
_M_init_functor(__dest,
|
|
8007946: 4619 mov r1, r3
|
|
8007948: 68f8 ldr r0, [r7, #12]
|
|
800794a: f000 fc54 bl 80081f6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>
|
|
break;
|
|
800794e: e004 b.n 800795a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
_M_destroy(__dest, _Local_storage());
|
|
8007950: 4621 mov r1, r4
|
|
8007952: 68f8 ldr r0, [r7, #12]
|
|
8007954: f000 fc61 bl 800821a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>
|
|
break;
|
|
8007958: bf00 nop
|
|
return false;
|
|
800795a: 2300 movs r3, #0
|
|
}
|
|
800795c: 4618 mov r0, r3
|
|
800795e: 3714 adds r7, #20
|
|
8007960: 46bd mov sp, r7
|
|
8007962: bd90 pop {r4, r7, pc}
|
|
|
|
08007964 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
8007964: b580 push {r7, lr}
|
|
8007966: b084 sub sp, #16
|
|
8007968: af00 add r7, sp, #0
|
|
800796a: 60f8 str r0, [r7, #12]
|
|
800796c: 60b9 str r1, [r7, #8]
|
|
800796e: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
8007970: 68f8 ldr r0, [r7, #12]
|
|
8007972: f7fe fd69 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
8007976: 4603 mov r3, r0
|
|
8007978: 4619 mov r1, r3
|
|
800797a: 2001 movs r0, #1
|
|
800797c: f7f9 fa9c bl 8000eb8 <_ZnwjPv>
|
|
8007980: 68b8 ldr r0, [r7, #8]
|
|
8007982: f7ff fbe2 bl 800714a <_ZSt7forwardIZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
}
|
|
8007986: bf00 nop
|
|
8007988: 3710 adds r7, #16
|
|
800798a: 46bd mov sp, r7
|
|
800798c: bd80 pop {r7, pc}
|
|
|
|
0800798e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E14_M_get_pointerERKSt9_Any_data>:
|
|
_M_get_pointer(const _Any_data& __source) noexcept
|
|
800798e: b580 push {r7, lr}
|
|
8007990: b084 sub sp, #16
|
|
8007992: af00 add r7, sp, #0
|
|
8007994: 6078 str r0, [r7, #4]
|
|
const _Functor& __f = __source._M_access<_Functor>();
|
|
8007996: 6878 ldr r0, [r7, #4]
|
|
8007998: f000 fc4b bl 8008232 <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE0_EERKT_v>
|
|
800799c: 60f8 str r0, [r7, #12]
|
|
return const_cast<_Functor*>(std::__addressof(__f));
|
|
800799e: 68f8 ldr r0, [r7, #12]
|
|
80079a0: f000 fc53 bl 800824a <_ZSt11__addressofIKZN3sta5tacos12StatemachineC4EvEUlPvE0_EPT_RS6_>
|
|
80079a4: 4603 mov r3, r0
|
|
80079a6: bf00 nop
|
|
}
|
|
80079a8: 4618 mov r0, r3
|
|
80079aa: 3710 adds r7, #16
|
|
80079ac: 46bd mov sp, r7
|
|
80079ae: bd80 pop {r7, pc}
|
|
|
|
080079b0 <_ZSt10__invoke_rIvRZN3sta5tacos12StatemachineC4EvEUlPvE0_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>:
|
|
__invoke_r(_Callable&& __fn, _Args&&... __args)
|
|
80079b0: b5b0 push {r4, r5, r7, lr}
|
|
80079b2: b082 sub sp, #8
|
|
80079b4: af00 add r7, sp, #0
|
|
80079b6: 6078 str r0, [r7, #4]
|
|
80079b8: 6039 str r1, [r7, #0]
|
|
std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn),
|
|
80079ba: 6878 ldr r0, [r7, #4]
|
|
80079bc: f000 fc50 bl 8008260 <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
80079c0: 4604 mov r4, r0
|
|
80079c2: 6838 ldr r0, [r7, #0]
|
|
80079c4: f7ff ff66 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80079c8: 4603 mov r3, r0
|
|
80079ca: 461a mov r2, r3
|
|
80079cc: 4621 mov r1, r4
|
|
80079ce: 4628 mov r0, r5
|
|
80079d0: f000 fc51 bl 8008276 <_ZSt13__invoke_implIvRZN3sta5tacos12StatemachineC4EvEUlPvE0_JS3_EET_St14__invoke_otherOT0_DpOT1_>
|
|
}
|
|
80079d4: bf00 nop
|
|
80079d6: 3708 adds r7, #8
|
|
80079d8: 46bd mov sp, r7
|
|
80079da: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080079dc <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE0_EERT_v>:
|
|
_M_access() noexcept
|
|
80079dc: b580 push {r7, lr}
|
|
80079de: b082 sub sp, #8
|
|
80079e0: af00 add r7, sp, #0
|
|
80079e2: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
80079e4: 6878 ldr r0, [r7, #4]
|
|
80079e6: f7fe fd2f bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80079ea: 4603 mov r3, r0
|
|
80079ec: 4618 mov r0, r3
|
|
80079ee: 3708 adds r7, #8
|
|
80079f0: 46bd mov sp, r7
|
|
80079f2: bd80 pop {r7, pc}
|
|
|
|
080079f4 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
80079f4: b590 push {r4, r7, lr}
|
|
80079f6: b085 sub sp, #20
|
|
80079f8: af00 add r7, sp, #0
|
|
80079fa: 60f8 str r0, [r7, #12]
|
|
80079fc: 60b9 str r1, [r7, #8]
|
|
80079fe: 4613 mov r3, r2
|
|
8007a00: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
8007a02: 79fb ldrb r3, [r7, #7]
|
|
8007a04: 2b03 cmp r3, #3
|
|
8007a06: d82a bhi.n 8007a5e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
8007a08: a201 add r2, pc, #4 @ (adr r2, 8007a10 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x1c>)
|
|
8007a0a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
8007a0e: bf00 nop
|
|
8007a10: 08007a21 .word 0x08007a21
|
|
8007a14: 08007a2f .word 0x08007a2f
|
|
8007a18: 08007a43 .word 0x08007a43
|
|
8007a1c: 08007a55 .word 0x08007a55
|
|
__dest._M_access<const type_info*>() = nullptr;
|
|
8007a20: 68f8 ldr r0, [r7, #12]
|
|
8007a22: f000 fbdc bl 80081de <_ZNSt9_Any_data9_M_accessIPKSt9type_infoEERT_v>
|
|
8007a26: 4603 mov r3, r0
|
|
8007a28: 2200 movs r2, #0
|
|
8007a2a: 601a str r2, [r3, #0]
|
|
break;
|
|
8007a2c: e017 b.n 8007a5e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
__dest._M_access<_Functor*>() = _M_get_pointer(__source);
|
|
8007a2e: 68f8 ldr r0, [r7, #12]
|
|
8007a30: f7ff ffd4 bl 80079dc <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12StatemachineC4EvEUlPvE0_EERT_v>
|
|
8007a34: 4604 mov r4, r0
|
|
8007a36: 68b8 ldr r0, [r7, #8]
|
|
8007a38: f7ff ffa9 bl 800798e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E14_M_get_pointerERKSt9_Any_data>
|
|
8007a3c: 4603 mov r3, r0
|
|
8007a3e: 6023 str r3, [r4, #0]
|
|
break;
|
|
8007a40: e00d b.n 8007a5e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
*const_cast<const _Functor*>(_M_get_pointer(__source)));
|
|
8007a42: 68b8 ldr r0, [r7, #8]
|
|
8007a44: f7ff ffa3 bl 800798e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E14_M_get_pointerERKSt9_Any_data>
|
|
8007a48: 4603 mov r3, r0
|
|
_M_init_functor(__dest,
|
|
8007a4a: 4619 mov r1, r3
|
|
8007a4c: 68f8 ldr r0, [r7, #12]
|
|
8007a4e: f000 fc29 bl 80082a4 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>
|
|
break;
|
|
8007a52: e004 b.n 8007a5e <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
_M_destroy(__dest, _Local_storage());
|
|
8007a54: 4621 mov r1, r4
|
|
8007a56: 68f8 ldr r0, [r7, #12]
|
|
8007a58: f000 fc36 bl 80082c8 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>
|
|
break;
|
|
8007a5c: bf00 nop
|
|
return false;
|
|
8007a5e: 2300 movs r3, #0
|
|
}
|
|
8007a60: 4618 mov r0, r3
|
|
8007a62: 3714 adds r7, #20
|
|
8007a64: 46bd mov sp, r7
|
|
8007a66: bd90 pop {r4, r7, pc}
|
|
|
|
08007a68 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1Ev>:
|
|
__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
8007a68: b480 push {r7}
|
|
8007a6a: b083 sub sp, #12
|
|
8007a6c: af00 add r7, sp, #0
|
|
8007a6e: 6078 str r0, [r7, #4]
|
|
8007a70: 687b ldr r3, [r7, #4]
|
|
8007a72: 4618 mov r0, r3
|
|
8007a74: 370c adds r7, #12
|
|
8007a76: 46bd mov sp, r7
|
|
8007a78: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007a7c: 4770 bx lr
|
|
|
|
08007a7e <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE10deallocateERS5_PS4_j>:
|
|
deallocate(allocator_type& __a, pointer __p, size_type __n)
|
|
8007a7e: b580 push {r7, lr}
|
|
8007a80: b084 sub sp, #16
|
|
8007a82: af00 add r7, sp, #0
|
|
8007a84: 60f8 str r0, [r7, #12]
|
|
8007a86: 60b9 str r1, [r7, #8]
|
|
8007a88: 607a str r2, [r7, #4]
|
|
{ __a.deallocate(__p, __n); }
|
|
8007a8a: 687a ldr r2, [r7, #4]
|
|
8007a8c: 68b9 ldr r1, [r7, #8]
|
|
8007a8e: 68f8 ldr r0, [r7, #12]
|
|
8007a90: f000 fc26 bl 80082e0 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE10deallocateEPS4_j>
|
|
8007a94: bf00 nop
|
|
8007a96: 3710 adds r7, #16
|
|
8007a98: 46bd mov sp, r7
|
|
8007a9a: bd80 pop {r7, pc}
|
|
|
|
08007a9c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E9_M_createIS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
8007a9c: b580 push {r7, lr}
|
|
8007a9e: b084 sub sp, #16
|
|
8007aa0: af00 add r7, sp, #0
|
|
8007aa2: 60f8 str r0, [r7, #12]
|
|
8007aa4: 60b9 str r1, [r7, #8]
|
|
8007aa6: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
8007aa8: 68f8 ldr r0, [r7, #12]
|
|
8007aaa: f7fe fccd bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
8007aae: 4603 mov r3, r0
|
|
8007ab0: 4619 mov r1, r3
|
|
8007ab2: 2001 movs r0, #1
|
|
8007ab4: f7f9 fa00 bl 8000eb8 <_ZnwjPv>
|
|
8007ab8: 68b8 ldr r0, [r7, #8]
|
|
8007aba: f7ff fbe0 bl 800727e <_ZSt7forwardIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS5_E4typeE>
|
|
}
|
|
8007abe: bf00 nop
|
|
8007ac0: 3710 adds r7, #16
|
|
8007ac2: 46bd mov sp, r7
|
|
8007ac4: bd80 pop {r7, pc}
|
|
|
|
08007ac6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E14_M_get_pointerERKSt9_Any_data>:
|
|
_M_get_pointer(const _Any_data& __source) noexcept
|
|
8007ac6: b580 push {r7, lr}
|
|
8007ac8: b084 sub sp, #16
|
|
8007aca: af00 add r7, sp, #0
|
|
8007acc: 6078 str r0, [r7, #4]
|
|
const _Functor& __f = __source._M_access<_Functor>();
|
|
8007ace: 6878 ldr r0, [r7, #4]
|
|
8007ad0: f000 fc16 bl 8008300 <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERKT_v>
|
|
8007ad4: 60f8 str r0, [r7, #12]
|
|
return const_cast<_Functor*>(std::__addressof(__f));
|
|
8007ad6: 68f8 ldr r0, [r7, #12]
|
|
8007ad8: f000 fc1e bl 8008318 <_ZSt11__addressofIKZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EPT_RS6_>
|
|
8007adc: 4603 mov r3, r0
|
|
8007ade: bf00 nop
|
|
}
|
|
8007ae0: 4618 mov r0, r3
|
|
8007ae2: 3710 adds r7, #16
|
|
8007ae4: 46bd mov sp, r7
|
|
8007ae6: bd80 pop {r7, pc}
|
|
|
|
08007ae8 <_ZSt10__invoke_rIvRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_JS3_EENSt9enable_ifIXsrSt6__and_IJSt7is_voidIT_ESt14__is_invocableIT0_JDpT1_EEEE5valueES9_E4typeEOSC_DpOSD_>:
|
|
__invoke_r(_Callable&& __fn, _Args&&... __args)
|
|
8007ae8: b5b0 push {r4, r5, r7, lr}
|
|
8007aea: b082 sub sp, #8
|
|
8007aec: af00 add r7, sp, #0
|
|
8007aee: 6078 str r0, [r7, #4]
|
|
8007af0: 6039 str r1, [r7, #0]
|
|
std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn),
|
|
8007af2: 6878 ldr r0, [r7, #4]
|
|
8007af4: f000 fc1b bl 800832e <_ZSt7forwardIRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8007af8: 4604 mov r4, r0
|
|
8007afa: 6838 ldr r0, [r7, #0]
|
|
8007afc: f7ff feca bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
8007b00: 4603 mov r3, r0
|
|
8007b02: 461a mov r2, r3
|
|
8007b04: 4621 mov r1, r4
|
|
8007b06: 4628 mov r0, r5
|
|
8007b08: f000 fc1c bl 8008344 <_ZSt13__invoke_implIvRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_JS3_EET_St14__invoke_otherOT0_DpOT1_>
|
|
}
|
|
8007b0c: bf00 nop
|
|
8007b0e: 3708 adds r7, #8
|
|
8007b10: 46bd mov sp, r7
|
|
8007b12: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08007b14 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERT_v>:
|
|
_M_access() noexcept
|
|
8007b14: b580 push {r7, lr}
|
|
8007b16: b082 sub sp, #8
|
|
8007b18: af00 add r7, sp, #0
|
|
8007b1a: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
8007b1c: 6878 ldr r0, [r7, #4]
|
|
8007b1e: f7fe fc93 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
8007b22: 4603 mov r3, r0
|
|
8007b24: 4618 mov r0, r3
|
|
8007b26: 3708 adds r7, #8
|
|
8007b28: 46bd mov sp, r7
|
|
8007b2a: bd80 pop {r7, pc}
|
|
|
|
08007b2c <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation>:
|
|
_M_manager(_Any_data& __dest, const _Any_data& __source,
|
|
8007b2c: b590 push {r4, r7, lr}
|
|
8007b2e: b085 sub sp, #20
|
|
8007b30: af00 add r7, sp, #0
|
|
8007b32: 60f8 str r0, [r7, #12]
|
|
8007b34: 60b9 str r1, [r7, #8]
|
|
8007b36: 4613 mov r3, r2
|
|
8007b38: 71fb strb r3, [r7, #7]
|
|
switch (__op)
|
|
8007b3a: 79fb ldrb r3, [r7, #7]
|
|
8007b3c: 2b03 cmp r3, #3
|
|
8007b3e: d82a bhi.n 8007b96 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
8007b40: a201 add r2, pc, #4 @ (adr r2, 8007b48 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x1c>)
|
|
8007b42: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
8007b46: bf00 nop
|
|
8007b48: 08007b59 .word 0x08007b59
|
|
8007b4c: 08007b67 .word 0x08007b67
|
|
8007b50: 08007b7b .word 0x08007b7b
|
|
8007b54: 08007b8d .word 0x08007b8d
|
|
__dest._M_access<const type_info*>() = nullptr;
|
|
8007b58: 68f8 ldr r0, [r7, #12]
|
|
8007b5a: f000 fb40 bl 80081de <_ZNSt9_Any_data9_M_accessIPKSt9type_infoEERT_v>
|
|
8007b5e: 4603 mov r3, r0
|
|
8007b60: 2200 movs r2, #0
|
|
8007b62: 601a str r2, [r3, #0]
|
|
break;
|
|
8007b64: e017 b.n 8007b96 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
__dest._M_access<_Functor*>() = _M_get_pointer(__source);
|
|
8007b66: 68f8 ldr r0, [r7, #12]
|
|
8007b68: f7ff ffd4 bl 8007b14 <_ZNSt9_Any_data9_M_accessIPZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERT_v>
|
|
8007b6c: 4604 mov r4, r0
|
|
8007b6e: 68b8 ldr r0, [r7, #8]
|
|
8007b70: f7ff ffa9 bl 8007ac6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007b74: 4603 mov r3, r0
|
|
8007b76: 6023 str r3, [r4, #0]
|
|
break;
|
|
8007b78: e00d b.n 8007b96 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
*const_cast<const _Functor*>(_M_get_pointer(__source)));
|
|
8007b7a: 68b8 ldr r0, [r7, #8]
|
|
8007b7c: f7ff ffa3 bl 8007ac6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E14_M_get_pointerERKSt9_Any_data>
|
|
8007b80: 4603 mov r3, r0
|
|
_M_init_functor(__dest,
|
|
8007b82: 4619 mov r1, r3
|
|
8007b84: 68f8 ldr r0, [r7, #12]
|
|
8007b86: f000 fbf4 bl 8008372 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>
|
|
break;
|
|
8007b8a: e004 b.n 8007b96 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_managerERSt9_Any_dataRKS7_St18_Manager_operation+0x6a>
|
|
_M_destroy(__dest, _Local_storage());
|
|
8007b8c: 4621 mov r1, r4
|
|
8007b8e: 68f8 ldr r0, [r7, #12]
|
|
8007b90: f000 fc01 bl 8008396 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>
|
|
break;
|
|
8007b94: bf00 nop
|
|
return false;
|
|
8007b96: 2300 movs r3, #0
|
|
}
|
|
8007b98: 4618 mov r0, r3
|
|
8007b9a: 3714 adds r7, #20
|
|
8007b9c: 46bd mov sp, r7
|
|
8007b9e: bd90 pop {r4, r7, pc}
|
|
|
|
08007ba0 <_ZSt7forwardIRKSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS7_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8007ba0: b480 push {r7}
|
|
8007ba2: b083 sub sp, #12
|
|
8007ba4: af00 add r7, sp, #0
|
|
8007ba6: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8007ba8: 687b ldr r3, [r7, #4]
|
|
8007baa: 4618 mov r0, r3
|
|
8007bac: 370c adds r7, #12
|
|
8007bae: 46bd mov sp, r7
|
|
8007bb0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007bb4: 4770 bx lr
|
|
|
|
08007bb6 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE9constructIS4_JRKS4_EEEvPT_DpOT0_>:
|
|
construct(_Up* __p, _Args&&... __args)
|
|
8007bb6: b590 push {r4, r7, lr}
|
|
8007bb8: b085 sub sp, #20
|
|
8007bba: af00 add r7, sp, #0
|
|
8007bbc: 60f8 str r0, [r7, #12]
|
|
8007bbe: 60b9 str r1, [r7, #8]
|
|
8007bc0: 607a str r2, [r7, #4]
|
|
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
|
|
8007bc2: 68bb ldr r3, [r7, #8]
|
|
8007bc4: 4619 mov r1, r3
|
|
8007bc6: 2008 movs r0, #8
|
|
8007bc8: f7f9 f976 bl 8000eb8 <_ZnwjPv>
|
|
8007bcc: 4604 mov r4, r0
|
|
8007bce: 6878 ldr r0, [r7, #4]
|
|
8007bd0: f7ff ffe6 bl 8007ba0 <_ZSt7forwardIRKSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS7_E4typeE>
|
|
8007bd4: 4603 mov r3, r0
|
|
8007bd6: 4619 mov r1, r3
|
|
8007bd8: 4620 mov r0, r4
|
|
8007bda: f7fe fe89 bl 80068f0 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1ERKS3_>
|
|
8007bde: bf00 nop
|
|
8007be0: 3714 adds r7, #20
|
|
8007be2: 46bd mov sp, r7
|
|
8007be4: bd90 pop {r4, r7, pc}
|
|
|
|
08007be6 <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc>:
|
|
#endif
|
|
|
|
// Called by _M_fill_insert, _M_insert_aux etc.
|
|
_GLIBCXX20_CONSTEXPR
|
|
size_type
|
|
_M_check_len(size_type __n, const char* __s) const
|
|
8007be6: b590 push {r4, r7, lr}
|
|
8007be8: b087 sub sp, #28
|
|
8007bea: af00 add r7, sp, #0
|
|
8007bec: 60f8 str r0, [r7, #12]
|
|
8007bee: 60b9 str r1, [r7, #8]
|
|
8007bf0: 607a str r2, [r7, #4]
|
|
{
|
|
if (max_size() - size() < __n)
|
|
8007bf2: 68f8 ldr r0, [r7, #12]
|
|
8007bf4: f000 fbdb bl 80083ae <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE8max_sizeEv>
|
|
8007bf8: 4604 mov r4, r0
|
|
8007bfa: 68f8 ldr r0, [r7, #12]
|
|
8007bfc: f7ff fc76 bl 80074ec <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE4sizeEv>
|
|
8007c00: 4603 mov r3, r0
|
|
8007c02: 1ae2 subs r2, r4, r3
|
|
8007c04: 68bb ldr r3, [r7, #8]
|
|
8007c06: 429a cmp r2, r3
|
|
8007c08: bf34 ite cc
|
|
8007c0a: 2301 movcc r3, #1
|
|
8007c0c: 2300 movcs r3, #0
|
|
8007c0e: b2db uxtb r3, r3
|
|
8007c10: 2b00 cmp r3, #0
|
|
8007c12: d002 beq.n 8007c1a <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc+0x34>
|
|
__throw_length_error(__N(__s));
|
|
8007c14: 6878 ldr r0, [r7, #4]
|
|
8007c16: f007 fe61 bl 800f8dc <_ZSt20__throw_length_errorPKc>
|
|
|
|
const size_type __len = size() + (std::max)(size(), __n);
|
|
8007c1a: 68f8 ldr r0, [r7, #12]
|
|
8007c1c: f7ff fc66 bl 80074ec <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE4sizeEv>
|
|
8007c20: 4604 mov r4, r0
|
|
8007c22: 68f8 ldr r0, [r7, #12]
|
|
8007c24: f7ff fc62 bl 80074ec <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE4sizeEv>
|
|
8007c28: 4603 mov r3, r0
|
|
8007c2a: 613b str r3, [r7, #16]
|
|
8007c2c: f107 0208 add.w r2, r7, #8
|
|
8007c30: f107 0310 add.w r3, r7, #16
|
|
8007c34: 4611 mov r1, r2
|
|
8007c36: 4618 mov r0, r3
|
|
8007c38: f000 fbca bl 80083d0 <_ZSt3maxIjERKT_S2_S2_>
|
|
8007c3c: 4603 mov r3, r0
|
|
8007c3e: 681b ldr r3, [r3, #0]
|
|
8007c40: 4423 add r3, r4
|
|
8007c42: 617b str r3, [r7, #20]
|
|
return (__len < size() || __len > max_size()) ? max_size() : __len;
|
|
8007c44: 68f8 ldr r0, [r7, #12]
|
|
8007c46: f7ff fc51 bl 80074ec <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE4sizeEv>
|
|
8007c4a: 4602 mov r2, r0
|
|
8007c4c: 697b ldr r3, [r7, #20]
|
|
8007c4e: 4293 cmp r3, r2
|
|
8007c50: d306 bcc.n 8007c60 <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc+0x7a>
|
|
8007c52: 68f8 ldr r0, [r7, #12]
|
|
8007c54: f000 fbab bl 80083ae <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE8max_sizeEv>
|
|
8007c58: 4602 mov r2, r0
|
|
8007c5a: 697b ldr r3, [r7, #20]
|
|
8007c5c: 4293 cmp r3, r2
|
|
8007c5e: d904 bls.n 8007c6a <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc+0x84>
|
|
8007c60: 68f8 ldr r0, [r7, #12]
|
|
8007c62: f000 fba4 bl 80083ae <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE8max_sizeEv>
|
|
8007c66: 4603 mov r3, r0
|
|
8007c68: e000 b.n 8007c6c <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE12_M_check_lenEjPKc+0x86>
|
|
8007c6a: 697b ldr r3, [r7, #20]
|
|
}
|
|
8007c6c: 4618 mov r0, r3
|
|
8007c6e: 371c adds r7, #28
|
|
8007c70: 46bd mov sp, r7
|
|
8007c72: bd90 pop {r4, r7, pc}
|
|
|
|
08007c74 <_ZN9__gnu_cxxmiIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_>:
|
|
{ return __lhs.base() - __rhs.base(); }
|
|
|
|
template<typename _Iterator, typename _Container>
|
|
_GLIBCXX_NODISCARD _GLIBCXX20_CONSTEXPR
|
|
inline typename __normal_iterator<_Iterator, _Container>::difference_type
|
|
operator-(const __normal_iterator<_Iterator, _Container>& __lhs,
|
|
8007c74: b590 push {r4, r7, lr}
|
|
8007c76: b083 sub sp, #12
|
|
8007c78: af00 add r7, sp, #0
|
|
8007c7a: 6078 str r0, [r7, #4]
|
|
8007c7c: 6039 str r1, [r7, #0]
|
|
const __normal_iterator<_Iterator, _Container>& __rhs)
|
|
_GLIBCXX_NOEXCEPT
|
|
{ return __lhs.base() - __rhs.base(); }
|
|
8007c7e: 6878 ldr r0, [r7, #4]
|
|
8007c80: f7ff fc5f bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8007c84: 4603 mov r3, r0
|
|
8007c86: 681c ldr r4, [r3, #0]
|
|
8007c88: 6838 ldr r0, [r7, #0]
|
|
8007c8a: f7ff fc5a bl 8007542 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEE4baseEv>
|
|
8007c8e: 4603 mov r3, r0
|
|
8007c90: 681b ldr r3, [r3, #0]
|
|
8007c92: 1ae3 subs r3, r4, r3
|
|
8007c94: 10db asrs r3, r3, #3
|
|
8007c96: 4618 mov r0, r3
|
|
8007c98: 370c adds r7, #12
|
|
8007c9a: 46bd mov sp, r7
|
|
8007c9c: bd90 pop {r4, r7, pc}
|
|
|
|
08007c9e <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_M_allocateEj>:
|
|
_M_allocate(size_t __n)
|
|
8007c9e: b580 push {r7, lr}
|
|
8007ca0: b082 sub sp, #8
|
|
8007ca2: af00 add r7, sp, #0
|
|
8007ca4: 6078 str r0, [r7, #4]
|
|
8007ca6: 6039 str r1, [r7, #0]
|
|
return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer();
|
|
8007ca8: 683b ldr r3, [r7, #0]
|
|
8007caa: 2b00 cmp r3, #0
|
|
8007cac: d006 beq.n 8007cbc <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_M_allocateEj+0x1e>
|
|
8007cae: 687b ldr r3, [r7, #4]
|
|
8007cb0: 6839 ldr r1, [r7, #0]
|
|
8007cb2: 4618 mov r0, r3
|
|
8007cb4: f000 fba0 bl 80083f8 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateERS5_j>
|
|
8007cb8: 4603 mov r3, r0
|
|
8007cba: e000 b.n 8007cbe <_ZNSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_M_allocateEj+0x20>
|
|
8007cbc: 2300 movs r3, #0
|
|
}
|
|
8007cbe: 4618 mov r0, r3
|
|
8007cc0: 3708 adds r7, #8
|
|
8007cc2: 46bd mov sp, r7
|
|
8007cc4: bd80 pop {r7, pc}
|
|
|
|
08007cc6 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_S_relocateEPS4_S7_S7_RS5_>:
|
|
_S_relocate(pointer __first, pointer __last, pointer __result,
|
|
8007cc6: b590 push {r4, r7, lr}
|
|
8007cc8: b087 sub sp, #28
|
|
8007cca: af02 add r7, sp, #8
|
|
8007ccc: 60f8 str r0, [r7, #12]
|
|
8007cce: 60b9 str r1, [r7, #8]
|
|
8007cd0: 607a str r2, [r7, #4]
|
|
8007cd2: 603b str r3, [r7, #0]
|
|
return _S_do_relocate(__first, __last, __result, __alloc, __do_it{});
|
|
8007cd4: f88d 4000 strb.w r4, [sp]
|
|
8007cd8: 683b ldr r3, [r7, #0]
|
|
8007cda: 687a ldr r2, [r7, #4]
|
|
8007cdc: 68b9 ldr r1, [r7, #8]
|
|
8007cde: 68f8 ldr r0, [r7, #12]
|
|
8007ce0: f000 fb99 bl 8008416 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE14_S_do_relocateEPS4_S7_S7_RS5_St17integral_constantIbLb1EE>
|
|
8007ce4: 4603 mov r3, r0
|
|
}
|
|
8007ce6: 4618 mov r0, r3
|
|
8007ce8: 3714 adds r7, #20
|
|
8007cea: 46bd mov sp, r7
|
|
8007cec: bd90 pop {r4, r7, pc}
|
|
|
|
08007cee <_ZSt34__uninitialized_move_if_noexcept_aIPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>:
|
|
|
|
template<typename _InputIterator, typename _ForwardIterator,
|
|
typename _Allocator>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _ForwardIterator
|
|
__uninitialized_move_if_noexcept_a(_InputIterator __first,
|
|
8007cee: b590 push {r4, r7, lr}
|
|
8007cf0: b085 sub sp, #20
|
|
8007cf2: af00 add r7, sp, #0
|
|
8007cf4: 60f8 str r0, [r7, #12]
|
|
8007cf6: 60b9 str r1, [r7, #8]
|
|
8007cf8: 607a str r2, [r7, #4]
|
|
8007cfa: 603b str r3, [r7, #0]
|
|
_InputIterator __last,
|
|
_ForwardIterator __result,
|
|
_Allocator& __alloc)
|
|
{
|
|
return std::__uninitialized_copy_a
|
|
(_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__first),
|
|
8007cfc: 68f8 ldr r0, [r7, #12]
|
|
8007cfe: f000 fb9c bl 800843a <_ZSt32__make_move_if_noexcept_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEESt13move_iteratorIPS4_EET0_PT_>
|
|
8007d02: 4604 mov r4, r0
|
|
8007d04: 68b8 ldr r0, [r7, #8]
|
|
8007d06: f000 fb98 bl 800843a <_ZSt32__make_move_if_noexcept_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEESt13move_iteratorIPS4_EET0_PT_>
|
|
8007d0a: 4601 mov r1, r0
|
|
8007d0c: 683b ldr r3, [r7, #0]
|
|
8007d0e: 687a ldr r2, [r7, #4]
|
|
8007d10: 4620 mov r0, r4
|
|
8007d12: f000 fba1 bl 8008458 <_ZSt22__uninitialized_copy_aISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_S5_ET0_T_S9_S8_RSaIT1_E>
|
|
8007d16: 4603 mov r3, r0
|
|
_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__last), __result, __alloc);
|
|
}
|
|
8007d18: 4618 mov r0, r3
|
|
8007d1a: 3714 adds r7, #20
|
|
8007d1c: 46bd mov sp, r7
|
|
8007d1e: bd90 pop {r4, r7, pc}
|
|
|
|
08007d20 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE7destroyIS4_EEvRS5_PT_>:
|
|
destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p)
|
|
8007d20: b580 push {r7, lr}
|
|
8007d22: b082 sub sp, #8
|
|
8007d24: af00 add r7, sp, #0
|
|
8007d26: 6078 str r0, [r7, #4]
|
|
8007d28: 6039 str r1, [r7, #0]
|
|
__a.destroy(__p);
|
|
8007d2a: 6839 ldr r1, [r7, #0]
|
|
8007d2c: 6878 ldr r0, [r7, #4]
|
|
8007d2e: f000 fba4 bl 800847a <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE7destroyIS4_EEvPT_>
|
|
}
|
|
8007d32: bf00 nop
|
|
8007d34: 3708 adds r7, #8
|
|
8007d36: 46bd mov sp, r7
|
|
8007d38: bd80 pop {r7, pc}
|
|
|
|
08007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>:
|
|
get() const noexcept
|
|
8007d3a: b480 push {r7}
|
|
8007d3c: b083 sub sp, #12
|
|
8007d3e: af00 add r7, sp, #0
|
|
8007d40: 6078 str r0, [r7, #4]
|
|
{ return _M_ptr; }
|
|
8007d42: 687b ldr r3, [r7, #4]
|
|
8007d44: 681b ldr r3, [r3, #0]
|
|
8007d46: 4618 mov r0, r3
|
|
8007d48: 370c adds r7, #12
|
|
8007d4a: 46bd mov sp, r7
|
|
8007d4c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007d50: 4770 bx lr
|
|
|
|
08007d52 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEC1Ev>:
|
|
__new_allocator() _GLIBCXX_USE_NOEXCEPT { }
|
|
8007d52: b480 push {r7}
|
|
8007d54: b083 sub sp, #12
|
|
8007d56: af00 add r7, sp, #0
|
|
8007d58: 6078 str r0, [r7, #4]
|
|
8007d5a: 687b ldr r3, [r7, #4]
|
|
8007d5c: 4618 mov r0, r3
|
|
8007d5e: 370c adds r7, #12
|
|
8007d60: 46bd mov sp, r7
|
|
8007d62: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007d66: 4770 bx lr
|
|
|
|
08007d68 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_S_rightEPSt18_Rb_tree_node_base>:
|
|
_S_right(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8007d68: b480 push {r7}
|
|
8007d6a: b083 sub sp, #12
|
|
8007d6c: af00 add r7, sp, #0
|
|
8007d6e: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(__x->_M_right); }
|
|
8007d70: 687b ldr r3, [r7, #4]
|
|
8007d72: 68db ldr r3, [r3, #12]
|
|
8007d74: 4618 mov r0, r3
|
|
8007d76: 370c adds r7, #12
|
|
8007d78: 46bd mov sp, r7
|
|
8007d7a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007d7e: 4770 bx lr
|
|
|
|
08007d80 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE7_S_leftEPSt18_Rb_tree_node_base>:
|
|
_S_left(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8007d80: b480 push {r7}
|
|
8007d82: b083 sub sp, #12
|
|
8007d84: af00 add r7, sp, #0
|
|
8007d86: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(__x->_M_left); }
|
|
8007d88: 687b ldr r3, [r7, #4]
|
|
8007d8a: 689b ldr r3, [r3, #8]
|
|
8007d8c: 4618 mov r0, r3
|
|
8007d8e: 370c adds r7, #12
|
|
8007d90: 46bd mov sp, r7
|
|
8007d92: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007d96: 4770 bx lr
|
|
|
|
08007d98 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS4_E>:
|
|
_M_drop_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
8007d98: b580 push {r7, lr}
|
|
8007d9a: b082 sub sp, #8
|
|
8007d9c: af00 add r7, sp, #0
|
|
8007d9e: 6078 str r0, [r7, #4]
|
|
8007da0: 6039 str r1, [r7, #0]
|
|
_M_destroy_node(__p);
|
|
8007da2: 6839 ldr r1, [r7, #0]
|
|
8007da4: 6878 ldr r0, [r7, #4]
|
|
8007da6: f000 fb74 bl 8008492 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS4_E>
|
|
_M_put_node(__p);
|
|
8007daa: 6839 ldr r1, [r7, #0]
|
|
8007dac: 6878 ldr r0, [r7, #4]
|
|
8007dae: f000 fb85 bl 80084bc <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS4_E>
|
|
}
|
|
8007db2: bf00 nop
|
|
8007db4: 3708 adds r7, #8
|
|
8007db6: 46bd mov sp, r7
|
|
8007db8: bd80 pop {r7, pc}
|
|
|
|
08007dba <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE9_M_mbeginEv>:
|
|
_M_mbegin() const _GLIBCXX_NOEXCEPT
|
|
8007dba: b480 push {r7}
|
|
8007dbc: b083 sub sp, #12
|
|
8007dbe: af00 add r7, sp, #0
|
|
8007dc0: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); }
|
|
8007dc2: 687b ldr r3, [r7, #4]
|
|
8007dc4: 689b ldr r3, [r3, #8]
|
|
8007dc6: 4618 mov r0, r3
|
|
8007dc8: 370c adds r7, #12
|
|
8007dca: 46bd mov sp, r7
|
|
8007dcc: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007dd0: 4770 bx lr
|
|
|
|
08007dd2 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_beginEv>:
|
|
_M_begin() const _GLIBCXX_NOEXCEPT
|
|
8007dd2: b480 push {r7}
|
|
8007dd4: b083 sub sp, #12
|
|
8007dd6: af00 add r7, sp, #0
|
|
8007dd8: 6078 str r0, [r7, #4]
|
|
(this->_M_impl._M_header._M_parent);
|
|
8007dda: 687b ldr r3, [r7, #4]
|
|
8007ddc: 689b ldr r3, [r3, #8]
|
|
}
|
|
8007dde: 4618 mov r0, r3
|
|
8007de0: 370c adds r7, #12
|
|
8007de2: 46bd mov sp, r7
|
|
8007de4: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007de8: 4770 bx lr
|
|
|
|
08007dea <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_M_endEv>:
|
|
_M_end() const _GLIBCXX_NOEXCEPT
|
|
8007dea: b480 push {r7}
|
|
8007dec: b083 sub sp, #12
|
|
8007dee: af00 add r7, sp, #0
|
|
8007df0: 6078 str r0, [r7, #4]
|
|
{ return &this->_M_impl._M_header; }
|
|
8007df2: 687b ldr r3, [r7, #4]
|
|
8007df4: 3304 adds r3, #4
|
|
8007df6: 4618 mov r0, r3
|
|
8007df8: 370c adds r7, #12
|
|
8007dfa: 46bd mov sp, r7
|
|
8007dfc: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007e00: 4770 bx lr
|
|
|
|
08007e02 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8007e02: b590 push {r4, r7, lr}
|
|
8007e04: b087 sub sp, #28
|
|
8007e06: af00 add r7, sp, #0
|
|
8007e08: 60f8 str r0, [r7, #12]
|
|
8007e0a: 60b9 str r1, [r7, #8]
|
|
8007e0c: 607a str r2, [r7, #4]
|
|
8007e0e: 603b str r3, [r7, #0]
|
|
while (__x != 0)
|
|
8007e10: e01a b.n 8007e48 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_+0x46>
|
|
if (!_M_impl._M_key_compare(_S_key(__x), __k))
|
|
8007e12: 68fc ldr r4, [r7, #12]
|
|
8007e14: 68b8 ldr r0, [r7, #8]
|
|
8007e16: f000 fb63 bl 80084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>
|
|
8007e1a: 4603 mov r3, r0
|
|
8007e1c: 683a ldr r2, [r7, #0]
|
|
8007e1e: 4619 mov r1, r3
|
|
8007e20: 4620 mov r0, r4
|
|
8007e22: f000 f82b bl 8007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>
|
|
8007e26: 4603 mov r3, r0
|
|
8007e28: f083 0301 eor.w r3, r3, #1
|
|
8007e2c: b2db uxtb r3, r3
|
|
8007e2e: 2b00 cmp r3, #0
|
|
8007e30: d006 beq.n 8007e40 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_+0x3e>
|
|
__y = __x, __x = _S_left(__x);
|
|
8007e32: 68bb ldr r3, [r7, #8]
|
|
8007e34: 607b str r3, [r7, #4]
|
|
8007e36: 68b8 ldr r0, [r7, #8]
|
|
8007e38: f000 fb65 bl 8008506 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE7_S_leftEPKSt18_Rb_tree_node_base>
|
|
8007e3c: 60b8 str r0, [r7, #8]
|
|
8007e3e: e003 b.n 8007e48 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_+0x46>
|
|
__x = _S_right(__x);
|
|
8007e40: 68b8 ldr r0, [r7, #8]
|
|
8007e42: f000 fb6c bl 800851e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_S_rightEPKSt18_Rb_tree_node_base>
|
|
8007e46: 60b8 str r0, [r7, #8]
|
|
while (__x != 0)
|
|
8007e48: 68bb ldr r3, [r7, #8]
|
|
8007e4a: 2b00 cmp r3, #0
|
|
8007e4c: d1e1 bne.n 8007e12 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_lower_boundEPKSt13_Rb_tree_nodeIS4_EPKSt18_Rb_tree_node_baseRKS4_+0x10>
|
|
return const_iterator(__y);
|
|
8007e4e: f107 0314 add.w r3, r7, #20
|
|
8007e52: 6879 ldr r1, [r7, #4]
|
|
8007e54: 4618 mov r0, r3
|
|
8007e56: f000 f820 bl 8007e9a <_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPKSt18_Rb_tree_node_base>
|
|
8007e5a: 697b ldr r3, [r7, #20]
|
|
}
|
|
8007e5c: 4618 mov r0, r3
|
|
8007e5e: 371c adds r7, #28
|
|
8007e60: 46bd mov sp, r7
|
|
8007e62: bd90 pop {r4, r7, pc}
|
|
|
|
08007e64 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt18_Rb_tree_node_base>:
|
|
_S_key(_Const_Base_ptr __x)
|
|
8007e64: b580 push {r7, lr}
|
|
8007e66: b082 sub sp, #8
|
|
8007e68: af00 add r7, sp, #0
|
|
8007e6a: 6078 str r0, [r7, #4]
|
|
{ return _S_key(static_cast<_Const_Link_type>(__x)); }
|
|
8007e6c: 6878 ldr r0, [r7, #4]
|
|
8007e6e: f000 fb37 bl 80084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>
|
|
8007e72: 4603 mov r3, r0
|
|
8007e74: 4618 mov r0, r3
|
|
8007e76: 3708 adds r7, #8
|
|
8007e78: 46bd mov sp, r7
|
|
8007e7a: bd80 pop {r7, pc}
|
|
|
|
08007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>:
|
|
operator()(const _Tp& __x, const _Tp& __y) const
|
|
8007e7c: b580 push {r7, lr}
|
|
8007e7e: b084 sub sp, #16
|
|
8007e80: af00 add r7, sp, #0
|
|
8007e82: 60f8 str r0, [r7, #12]
|
|
8007e84: 60b9 str r1, [r7, #8]
|
|
8007e86: 607a str r2, [r7, #4]
|
|
{ return __x < __y; }
|
|
8007e88: 6879 ldr r1, [r7, #4]
|
|
8007e8a: 68b8 ldr r0, [r7, #8]
|
|
8007e8c: f000 fb53 bl 8008536 <_ZStltIN3sta5tacos11TacosThreadES2_EbRKSt10shared_ptrIT_ERKS3_IT0_E>
|
|
8007e90: 4603 mov r3, r0
|
|
8007e92: 4618 mov r0, r3
|
|
8007e94: 3710 adds r7, #16
|
|
8007e96: 46bd mov sp, r7
|
|
8007e98: bd80 pop {r7, pc}
|
|
|
|
08007e9a <_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPKSt18_Rb_tree_node_base>:
|
|
_Rb_tree_const_iterator(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8007e9a: b480 push {r7}
|
|
8007e9c: b083 sub sp, #12
|
|
8007e9e: af00 add r7, sp, #0
|
|
8007ea0: 6078 str r0, [r7, #4]
|
|
8007ea2: 6039 str r1, [r7, #0]
|
|
: _M_node(__x) { }
|
|
8007ea4: 687b ldr r3, [r7, #4]
|
|
8007ea6: 683a ldr r2, [r7, #0]
|
|
8007ea8: 601a str r2, [r3, #0]
|
|
8007eaa: 687b ldr r3, [r7, #4]
|
|
8007eac: 4618 mov r0, r3
|
|
8007eae: 370c adds r7, #12
|
|
8007eb0: 46bd mov sp, r7
|
|
8007eb2: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007eb6: 4770 bx lr
|
|
|
|
08007eb8 <_ZN9__gnu_cxx5__ops16_Iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ERS7_>:
|
|
_Iter_equals_val(_Value& __value)
|
|
8007eb8: b480 push {r7}
|
|
8007eba: b083 sub sp, #12
|
|
8007ebc: af00 add r7, sp, #0
|
|
8007ebe: 6078 str r0, [r7, #4]
|
|
8007ec0: 6039 str r1, [r7, #0]
|
|
: _M_value(__value)
|
|
8007ec2: 687b ldr r3, [r7, #4]
|
|
8007ec4: 683a ldr r2, [r7, #0]
|
|
8007ec6: 601a str r2, [r3, #0]
|
|
{ }
|
|
8007ec8: 687b ldr r3, [r7, #4]
|
|
8007eca: 4618 mov r0, r3
|
|
8007ecc: 370c adds r7, #12
|
|
8007ece: 46bd mov sp, r7
|
|
8007ed0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8007ed4: 4770 bx lr
|
|
|
|
08007ed6 <_ZN9__gnu_cxx5__ops16_Iter_equals_valIKSt10shared_ptrIN3sta5tacos11TacosThreadEEEclINS_17__normal_iteratorIPS6_St6vectorIS6_SaIS6_EEEEEEbT_>:
|
|
operator()(_Iterator __it)
|
|
8007ed6: b580 push {r7, lr}
|
|
8007ed8: b082 sub sp, #8
|
|
8007eda: af00 add r7, sp, #0
|
|
8007edc: 6078 str r0, [r7, #4]
|
|
8007ede: 6039 str r1, [r7, #0]
|
|
{ return *__it == _M_value; }
|
|
8007ee0: 463b mov r3, r7
|
|
8007ee2: 4618 mov r0, r3
|
|
8007ee4: f7ff f810 bl 8006f08 <_ZNK9__gnu_cxx17__normal_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEESt6vectorIS5_SaIS5_EEEdeEv>
|
|
8007ee8: 4602 mov r2, r0
|
|
8007eea: 687b ldr r3, [r7, #4]
|
|
8007eec: 681b ldr r3, [r3, #0]
|
|
8007eee: 4619 mov r1, r3
|
|
8007ef0: 4610 mov r0, r2
|
|
8007ef2: f000 fb3a bl 800856a <_ZSteqIN3sta5tacos11TacosThreadES2_EbRKSt10shared_ptrIT_ERKS3_IT0_E>
|
|
8007ef6: 4603 mov r3, r0
|
|
8007ef8: 4618 mov r0, r3
|
|
8007efa: 3708 adds r7, #8
|
|
8007efc: 46bd mov sp, r7
|
|
8007efe: bd80 pop {r7, pc}
|
|
|
|
08007f00 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_nodeC1IJRS4_EEERSA_DpOT_>:
|
|
_Auto_node(_Rb_tree& __t, _Args&&... __args)
|
|
8007f00: b580 push {r7, lr}
|
|
8007f02: b084 sub sp, #16
|
|
8007f04: af00 add r7, sp, #0
|
|
8007f06: 60f8 str r0, [r7, #12]
|
|
8007f08: 60b9 str r1, [r7, #8]
|
|
8007f0a: 607a str r2, [r7, #4]
|
|
: _M_t(__t),
|
|
8007f0c: 68fb ldr r3, [r7, #12]
|
|
8007f0e: 68ba ldr r2, [r7, #8]
|
|
8007f10: 601a str r2, [r3, #0]
|
|
_M_node(__t._M_create_node(std::forward<_Args>(__args)...))
|
|
8007f12: 6878 ldr r0, [r7, #4]
|
|
8007f14: f7ff fc13 bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8007f18: 4603 mov r3, r0
|
|
8007f1a: 4619 mov r1, r3
|
|
8007f1c: 68b8 ldr r0, [r7, #8]
|
|
8007f1e: f000 fb3c bl 800859a <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_create_nodeIJRS4_EEEPSt13_Rb_tree_nodeIS4_EDpOT_>
|
|
8007f22: 4602 mov r2, r0
|
|
8007f24: 68fb ldr r3, [r7, #12]
|
|
8007f26: 605a str r2, [r3, #4]
|
|
{ }
|
|
8007f28: 68fb ldr r3, [r7, #12]
|
|
8007f2a: 4618 mov r0, r3
|
|
8007f2c: 3710 adds r7, #16
|
|
8007f2e: 46bd mov sp, r7
|
|
8007f30: bd80 pop {r7, pc}
|
|
|
|
08007f32 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_nodeD1Ev>:
|
|
~_Auto_node()
|
|
8007f32: b580 push {r7, lr}
|
|
8007f34: b082 sub sp, #8
|
|
8007f36: af00 add r7, sp, #0
|
|
8007f38: 6078 str r0, [r7, #4]
|
|
if (_M_node)
|
|
8007f3a: 687b ldr r3, [r7, #4]
|
|
8007f3c: 685b ldr r3, [r3, #4]
|
|
8007f3e: 2b00 cmp r3, #0
|
|
8007f40: d007 beq.n 8007f52 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_nodeD1Ev+0x20>
|
|
_M_t._M_drop_node(_M_node);
|
|
8007f42: 687b ldr r3, [r7, #4]
|
|
8007f44: 681a ldr r2, [r3, #0]
|
|
8007f46: 687b ldr r3, [r7, #4]
|
|
8007f48: 685b ldr r3, [r3, #4]
|
|
8007f4a: 4619 mov r1, r3
|
|
8007f4c: 4610 mov r0, r2
|
|
8007f4e: f7ff ff23 bl 8007d98 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE12_M_drop_nodeEPSt13_Rb_tree_nodeIS4_E>
|
|
}
|
|
8007f52: 687b ldr r3, [r7, #4]
|
|
8007f54: 4618 mov r0, r3
|
|
8007f56: 3708 adds r7, #8
|
|
8007f58: 46bd mov sp, r7
|
|
8007f5a: bd80 pop {r7, pc}
|
|
|
|
08007f5c <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
8007f5c: b590 push {r4, r7, lr}
|
|
8007f5e: b08b sub sp, #44 @ 0x2c
|
|
8007f60: af00 add r7, sp, #0
|
|
8007f62: 60f8 str r0, [r7, #12]
|
|
8007f64: 60b9 str r1, [r7, #8]
|
|
8007f66: 607a str r2, [r7, #4]
|
|
_Link_type __x = _M_begin();
|
|
8007f68: 68b8 ldr r0, [r7, #8]
|
|
8007f6a: f7ff fb43 bl 80075f4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_M_beginEv>
|
|
8007f6e: 4603 mov r3, r0
|
|
8007f70: 61bb str r3, [r7, #24]
|
|
_Base_ptr __y = _M_end();
|
|
8007f72: 68b8 ldr r0, [r7, #8]
|
|
8007f74: f000 fb28 bl 80085c8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_M_endEv>
|
|
8007f78: 4603 mov r3, r0
|
|
8007f7a: 617b str r3, [r7, #20]
|
|
bool __comp = true;
|
|
8007f7c: 2301 movs r3, #1
|
|
8007f7e: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
while (__x != 0)
|
|
8007f82: e01f b.n 8007fc4 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x68>
|
|
__y = __x;
|
|
8007f84: 69bb ldr r3, [r7, #24]
|
|
8007f86: 617b str r3, [r7, #20]
|
|
__comp = _M_impl._M_key_compare(__k, _S_key(__x));
|
|
8007f88: 68bc ldr r4, [r7, #8]
|
|
8007f8a: 69bb ldr r3, [r7, #24]
|
|
8007f8c: 4618 mov r0, r3
|
|
8007f8e: f000 faa7 bl 80084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>
|
|
8007f92: 4603 mov r3, r0
|
|
8007f94: 461a mov r2, r3
|
|
8007f96: 6879 ldr r1, [r7, #4]
|
|
8007f98: 4620 mov r0, r4
|
|
8007f9a: f7ff ff6f bl 8007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>
|
|
8007f9e: 4603 mov r3, r0
|
|
8007fa0: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
__x = __comp ? _S_left(__x) : _S_right(__x);
|
|
8007fa4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
|
|
8007fa8: 2b00 cmp r3, #0
|
|
8007faa: d005 beq.n 8007fb8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x5c>
|
|
8007fac: 69bb ldr r3, [r7, #24]
|
|
8007fae: 4618 mov r0, r3
|
|
8007fb0: f7ff fee6 bl 8007d80 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE7_S_leftEPSt18_Rb_tree_node_base>
|
|
8007fb4: 4603 mov r3, r0
|
|
8007fb6: e004 b.n 8007fc2 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x66>
|
|
8007fb8: 69bb ldr r3, [r7, #24]
|
|
8007fba: 4618 mov r0, r3
|
|
8007fbc: f7ff fed4 bl 8007d68 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_S_rightEPSt18_Rb_tree_node_base>
|
|
8007fc0: 4603 mov r3, r0
|
|
8007fc2: 61bb str r3, [r7, #24]
|
|
while (__x != 0)
|
|
8007fc4: 69bb ldr r3, [r7, #24]
|
|
8007fc6: 2b00 cmp r3, #0
|
|
8007fc8: d1dc bne.n 8007f84 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x28>
|
|
iterator __j = iterator(__y);
|
|
8007fca: 697a ldr r2, [r7, #20]
|
|
8007fcc: f107 0310 add.w r3, r7, #16
|
|
8007fd0: 4611 mov r1, r2
|
|
8007fd2: 4618 mov r0, r3
|
|
8007fd4: f000 f887 bl 80080e6 <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPSt18_Rb_tree_node_base>
|
|
if (__comp)
|
|
8007fd8: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
|
|
8007fdc: 2b00 cmp r3, #0
|
|
8007fde: d01d beq.n 800801c <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0xc0>
|
|
if (__j == begin())
|
|
8007fe0: 68b8 ldr r0, [r7, #8]
|
|
8007fe2: f000 fafd bl 80085e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE5beginEv>
|
|
8007fe6: 4603 mov r3, r0
|
|
8007fe8: 61fb str r3, [r7, #28]
|
|
8007fea: f107 021c add.w r2, r7, #28
|
|
8007fee: f107 0310 add.w r3, r7, #16
|
|
8007ff2: 4611 mov r1, r2
|
|
8007ff4: 4618 mov r0, r3
|
|
8007ff6: f000 fb04 bl 8008602 <_ZSteqRKSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEES7_>
|
|
8007ffa: 4603 mov r3, r0
|
|
8007ffc: 2b00 cmp r3, #0
|
|
8007ffe: d008 beq.n 8008012 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0xb6>
|
|
return _Res(__x, __y);
|
|
8008000: f107 0214 add.w r2, r7, #20
|
|
8008004: f107 0318 add.w r3, r7, #24
|
|
8008008: 4619 mov r1, r3
|
|
800800a: 68f8 ldr r0, [r7, #12]
|
|
800800c: f000 fb0d bl 800862a <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEERS1_Lb1EEEOT_OT0_>
|
|
8008010: e025 b.n 800805e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x102>
|
|
--__j;
|
|
8008012: f107 0310 add.w r3, r7, #16
|
|
8008016: 4618 mov r0, r3
|
|
8008018: f000 fb20 bl 800865c <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEmmEv>
|
|
if (_M_impl._M_key_compare(_S_key(__j._M_node), __k))
|
|
800801c: 68bc ldr r4, [r7, #8]
|
|
800801e: 693b ldr r3, [r7, #16]
|
|
8008020: 4618 mov r0, r3
|
|
8008022: f7ff ff1f bl 8007e64 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
8008026: 4603 mov r3, r0
|
|
8008028: 687a ldr r2, [r7, #4]
|
|
800802a: 4619 mov r1, r3
|
|
800802c: 4620 mov r0, r4
|
|
800802e: f7ff ff25 bl 8007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>
|
|
8008032: 4603 mov r3, r0
|
|
8008034: 2b00 cmp r3, #0
|
|
8008036: d008 beq.n 800804a <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0xee>
|
|
return _Res(__x, __y);
|
|
8008038: f107 0214 add.w r2, r7, #20
|
|
800803c: f107 0318 add.w r3, r7, #24
|
|
8008040: 4619 mov r1, r3
|
|
8008042: 68f8 ldr r0, [r7, #12]
|
|
8008044: f000 faf1 bl 800862a <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEERS1_Lb1EEEOT_OT0_>
|
|
8008048: e009 b.n 800805e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE24_M_get_insert_unique_posERKS4_+0x102>
|
|
return _Res(__j._M_node, 0);
|
|
800804a: 2300 movs r3, #0
|
|
800804c: 623b str r3, [r7, #32]
|
|
800804e: f107 0220 add.w r2, r7, #32
|
|
8008052: f107 0310 add.w r3, r7, #16
|
|
8008056: 4619 mov r1, r3
|
|
8008058: 68f8 ldr r0, [r7, #12]
|
|
800805a: f7fa f840 bl 80020de <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IS1_S1_Lb1EEERKS1_S5_>
|
|
}
|
|
800805e: 68f8 ldr r0, [r7, #12]
|
|
8008060: 372c adds r7, #44 @ 0x2c
|
|
8008062: 46bd mov sp, r7
|
|
8008064: bd90 pop {r4, r7, pc}
|
|
|
|
08008066 <_ZNKSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_node6_M_keyEv>:
|
|
_M_key() const
|
|
8008066: b580 push {r7, lr}
|
|
8008068: b082 sub sp, #8
|
|
800806a: af00 add r7, sp, #0
|
|
800806c: 6078 str r0, [r7, #4]
|
|
{ return _S_key(_M_node); }
|
|
800806e: 687b ldr r3, [r7, #4]
|
|
8008070: 685b ldr r3, [r3, #4]
|
|
8008072: 4618 mov r0, r3
|
|
8008074: f000 fa34 bl 80084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>
|
|
8008078: 4603 mov r3, r0
|
|
800807a: 4618 mov r0, r3
|
|
800807c: 3708 adds r7, #8
|
|
800807e: 46bd mov sp, r7
|
|
8008080: bd80 pop {r7, pc}
|
|
|
|
08008082 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE10_Auto_node9_M_insertESt4pairIPSt18_Rb_tree_node_baseSE_E>:
|
|
_M_insert(pair<_Base_ptr, _Base_ptr> __p)
|
|
8008082: b580 push {r7, lr}
|
|
8008084: b086 sub sp, #24
|
|
8008086: af00 add r7, sp, #0
|
|
8008088: 60f8 str r0, [r7, #12]
|
|
800808a: 1d3b adds r3, r7, #4
|
|
800808c: e883 0006 stmia.w r3, {r1, r2}
|
|
auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node);
|
|
8008090: 68fb ldr r3, [r7, #12]
|
|
8008092: 6818 ldr r0, [r3, #0]
|
|
8008094: 6879 ldr r1, [r7, #4]
|
|
8008096: 68ba ldr r2, [r7, #8]
|
|
8008098: 68fb ldr r3, [r7, #12]
|
|
800809a: 685b ldr r3, [r3, #4]
|
|
800809c: f000 faef bl 800867e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E>
|
|
80080a0: 4603 mov r3, r0
|
|
80080a2: 617b str r3, [r7, #20]
|
|
_M_node = nullptr;
|
|
80080a4: 68fb ldr r3, [r7, #12]
|
|
80080a6: 2200 movs r2, #0
|
|
80080a8: 605a str r2, [r3, #4]
|
|
return __it;
|
|
80080aa: 697b ldr r3, [r7, #20]
|
|
}
|
|
80080ac: 4618 mov r0, r3
|
|
80080ae: 3718 adds r7, #24
|
|
80080b0: 46bd mov sp, r7
|
|
80080b2: bd80 pop {r7, pc}
|
|
|
|
080080b4 <_ZNSt4pairISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEbEC1IS6_bLb1EEEOT_OT0_>:
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
80080b4: b580 push {r7, lr}
|
|
80080b6: b084 sub sp, #16
|
|
80080b8: af00 add r7, sp, #0
|
|
80080ba: 60f8 str r0, [r7, #12]
|
|
80080bc: 60b9 str r1, [r7, #8]
|
|
80080be: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
80080c0: 68b8 ldr r0, [r7, #8]
|
|
80080c2: f000 f81f bl 8008104 <_ZSt7forwardISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEEOT_RNSt16remove_referenceIS7_E4typeE>
|
|
80080c6: 4602 mov r2, r0
|
|
80080c8: 68fb ldr r3, [r7, #12]
|
|
80080ca: 6812 ldr r2, [r2, #0]
|
|
80080cc: 601a str r2, [r3, #0]
|
|
80080ce: 6878 ldr r0, [r7, #4]
|
|
80080d0: f7fa f839 bl 8002146 <_ZSt7forwardIbEOT_RNSt16remove_referenceIS0_E4typeE>
|
|
80080d4: 4603 mov r3, r0
|
|
80080d6: 781a ldrb r2, [r3, #0]
|
|
80080d8: 68fb ldr r3, [r7, #12]
|
|
80080da: 711a strb r2, [r3, #4]
|
|
80080dc: 68fb ldr r3, [r7, #12]
|
|
80080de: 4618 mov r0, r3
|
|
80080e0: 3710 adds r7, #16
|
|
80080e2: 46bd mov sp, r7
|
|
80080e4: bd80 pop {r7, pc}
|
|
|
|
080080e6 <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPSt18_Rb_tree_node_base>:
|
|
_Rb_tree_iterator(_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
80080e6: b480 push {r7}
|
|
80080e8: b083 sub sp, #12
|
|
80080ea: af00 add r7, sp, #0
|
|
80080ec: 6078 str r0, [r7, #4]
|
|
80080ee: 6039 str r1, [r7, #0]
|
|
: _M_node(__x) { }
|
|
80080f0: 687b ldr r3, [r7, #4]
|
|
80080f2: 683a ldr r2, [r7, #0]
|
|
80080f4: 601a str r2, [r3, #0]
|
|
80080f6: 687b ldr r3, [r7, #4]
|
|
80080f8: 4618 mov r0, r3
|
|
80080fa: 370c adds r7, #12
|
|
80080fc: 46bd mov sp, r7
|
|
80080fe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008102: 4770 bx lr
|
|
|
|
08008104 <_ZSt7forwardISt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEEOT_RNSt16remove_referenceIS7_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8008104: b480 push {r7}
|
|
8008106: b083 sub sp, #12
|
|
8008108: af00 add r7, sp, #0
|
|
800810a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
800810c: 687b ldr r3, [r7, #4]
|
|
800810e: 4618 mov r0, r3
|
|
8008110: 370c adds r7, #12
|
|
8008112: 46bd mov sp, r7
|
|
8008114: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008118: 4770 bx lr
|
|
|
|
0800811a <_ZNSt23_Rb_tree_const_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ERKSt17_Rb_tree_iteratorIS4_E>:
|
|
_Rb_tree_const_iterator(const iterator& __it) _GLIBCXX_NOEXCEPT
|
|
800811a: b480 push {r7}
|
|
800811c: b083 sub sp, #12
|
|
800811e: af00 add r7, sp, #0
|
|
8008120: 6078 str r0, [r7, #4]
|
|
8008122: 6039 str r1, [r7, #0]
|
|
: _M_node(__it._M_node) { }
|
|
8008124: 683b ldr r3, [r7, #0]
|
|
8008126: 681a ldr r2, [r3, #0]
|
|
8008128: 687b ldr r3, [r7, #4]
|
|
800812a: 601a str r2, [r3, #0]
|
|
800812c: 687b ldr r3, [r7, #4]
|
|
800812e: 4618 mov r0, r3
|
|
8008130: 370c adds r7, #12
|
|
8008132: 46bd mov sp, r7
|
|
8008134: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008138: 4770 bx lr
|
|
|
|
0800813a <_ZNSt12_Destroy_auxILb0EE9__destroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEEvT_S8_>:
|
|
__destroy(_ForwardIterator __first, _ForwardIterator __last)
|
|
800813a: b580 push {r7, lr}
|
|
800813c: b082 sub sp, #8
|
|
800813e: af00 add r7, sp, #0
|
|
8008140: 6078 str r0, [r7, #4]
|
|
8008142: 6039 str r1, [r7, #0]
|
|
for (; __first != __last; ++__first)
|
|
8008144: e009 b.n 800815a <_ZNSt12_Destroy_auxILb0EE9__destroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEEvT_S8_+0x20>
|
|
std::_Destroy(std::__addressof(*__first));
|
|
8008146: 6878 ldr r0, [r7, #4]
|
|
8008148: f000 fad6 bl 80086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>
|
|
800814c: 4603 mov r3, r0
|
|
800814e: 4618 mov r0, r3
|
|
8008150: f000 fadd bl 800870e <_ZSt8_DestroyISt10shared_ptrIN3sta5tacos11TacosThreadEEEvPT_>
|
|
for (; __first != __last; ++__first)
|
|
8008154: 687b ldr r3, [r7, #4]
|
|
8008156: 3308 adds r3, #8
|
|
8008158: 607b str r3, [r7, #4]
|
|
800815a: 687a ldr r2, [r7, #4]
|
|
800815c: 683b ldr r3, [r7, #0]
|
|
800815e: 429a cmp r2, r3
|
|
8008160: d1f1 bne.n 8008146 <_ZNSt12_Destroy_auxILb0EE9__destroyIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEEvT_S8_+0xc>
|
|
}
|
|
8008162: bf00 nop
|
|
8008164: bf00 nop
|
|
8008166: 3708 adds r7, #8
|
|
8008168: 46bd mov sp, r7
|
|
800816a: bd80 pop {r7, pc}
|
|
|
|
0800816c <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE_EERKT_v>:
|
|
_M_access() const noexcept
|
|
800816c: b580 push {r7, lr}
|
|
800816e: b082 sub sp, #8
|
|
8008170: af00 add r7, sp, #0
|
|
8008172: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<const _Tp*>(_M_access()); }
|
|
8008174: 6878 ldr r0, [r7, #4]
|
|
8008176: f7fe f972 bl 800645e <_ZNKSt9_Any_data9_M_accessEv>
|
|
800817a: 4603 mov r3, r0
|
|
800817c: 4618 mov r0, r3
|
|
800817e: 3708 adds r7, #8
|
|
8008180: 46bd mov sp, r7
|
|
8008182: bd80 pop {r7, pc}
|
|
|
|
08008184 <_ZSt11__addressofIKZN3sta5tacos12StatemachineC4EvEUlPvE_EPT_RS6_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
8008184: b480 push {r7}
|
|
8008186: b083 sub sp, #12
|
|
8008188: af00 add r7, sp, #0
|
|
800818a: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
800818c: 687b ldr r3, [r7, #4]
|
|
800818e: 4618 mov r0, r3
|
|
8008190: 370c adds r7, #12
|
|
8008192: 46bd mov sp, r7
|
|
8008194: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008198: 4770 bx lr
|
|
|
|
0800819a <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800819a: b480 push {r7}
|
|
800819c: b083 sub sp, #12
|
|
800819e: af00 add r7, sp, #0
|
|
80081a0: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
80081a2: 687b ldr r3, [r7, #4]
|
|
80081a4: 4618 mov r0, r3
|
|
80081a6: 370c adds r7, #12
|
|
80081a8: 46bd mov sp, r7
|
|
80081aa: f85d 7b04 ldr.w r7, [sp], #4
|
|
80081ae: 4770 bx lr
|
|
|
|
080081b0 <_ZSt13__invoke_implIvRZN3sta5tacos12StatemachineC4EvEUlPvE_JS3_EET_St14__invoke_otherOT0_DpOT1_>:
|
|
__invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args)
|
|
80081b0: b590 push {r4, r7, lr}
|
|
80081b2: b085 sub sp, #20
|
|
80081b4: af00 add r7, sp, #0
|
|
80081b6: 7338 strb r0, [r7, #12]
|
|
80081b8: 60b9 str r1, [r7, #8]
|
|
80081ba: 607a str r2, [r7, #4]
|
|
{ return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
|
|
80081bc: 68b8 ldr r0, [r7, #8]
|
|
80081be: f7ff ffec bl 800819a <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
80081c2: 4604 mov r4, r0
|
|
80081c4: 6878 ldr r0, [r7, #4]
|
|
80081c6: f7ff fb65 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
80081ca: 4603 mov r3, r0
|
|
80081cc: 681b ldr r3, [r3, #0]
|
|
80081ce: 4619 mov r1, r3
|
|
80081d0: 4620 mov r0, r4
|
|
80081d2: f7fe f9a1 bl 8006518 <_ZZN3sta5tacos12StatemachineC4EvENKUlPvE_clES2_>
|
|
80081d6: bf00 nop
|
|
80081d8: 3714 adds r7, #20
|
|
80081da: 46bd mov sp, r7
|
|
80081dc: bd90 pop {r4, r7, pc}
|
|
|
|
080081de <_ZNSt9_Any_data9_M_accessIPKSt9type_infoEERT_v>:
|
|
_M_access() noexcept
|
|
80081de: b580 push {r7, lr}
|
|
80081e0: b082 sub sp, #8
|
|
80081e2: af00 add r7, sp, #0
|
|
80081e4: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
80081e6: 6878 ldr r0, [r7, #4]
|
|
80081e8: f7fe f92e bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80081ec: 4603 mov r3, r0
|
|
80081ee: 4618 mov r0, r3
|
|
80081f0: 3708 adds r7, #8
|
|
80081f2: 46bd mov sp, r7
|
|
80081f4: bd80 pop {r7, pc}
|
|
|
|
080081f6 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
80081f6: b590 push {r4, r7, lr}
|
|
80081f8: b083 sub sp, #12
|
|
80081fa: af00 add r7, sp, #0
|
|
80081fc: 6078 str r0, [r7, #4]
|
|
80081fe: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
8008200: 6838 ldr r0, [r7, #0]
|
|
8008202: f000 fa8f bl 8008724 <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
8008206: 4603 mov r3, r0
|
|
8008208: 4622 mov r2, r4
|
|
800820a: 4619 mov r1, r3
|
|
800820c: 6878 ldr r0, [r7, #4]
|
|
800820e: f000 fa94 bl 800873a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
8008212: bf00 nop
|
|
8008214: 370c adds r7, #12
|
|
8008216: 46bd mov sp, r7
|
|
8008218: bd90 pop {r4, r7, pc}
|
|
|
|
0800821a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>:
|
|
_M_destroy(_Any_data& __victim, true_type)
|
|
800821a: b580 push {r7, lr}
|
|
800821c: b082 sub sp, #8
|
|
800821e: af00 add r7, sp, #0
|
|
8008220: 6078 str r0, [r7, #4]
|
|
8008222: 7039 strb r1, [r7, #0]
|
|
__victim._M_access<_Functor>().~_Functor();
|
|
8008224: 6878 ldr r0, [r7, #4]
|
|
8008226: f000 fa9d bl 8008764 <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE_EERT_v>
|
|
}
|
|
800822a: bf00 nop
|
|
800822c: 3708 adds r7, #8
|
|
800822e: 46bd mov sp, r7
|
|
8008230: bd80 pop {r7, pc}
|
|
|
|
08008232 <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE0_EERKT_v>:
|
|
_M_access() const noexcept
|
|
8008232: b580 push {r7, lr}
|
|
8008234: b082 sub sp, #8
|
|
8008236: af00 add r7, sp, #0
|
|
8008238: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<const _Tp*>(_M_access()); }
|
|
800823a: 6878 ldr r0, [r7, #4]
|
|
800823c: f7fe f90f bl 800645e <_ZNKSt9_Any_data9_M_accessEv>
|
|
8008240: 4603 mov r3, r0
|
|
8008242: 4618 mov r0, r3
|
|
8008244: 3708 adds r7, #8
|
|
8008246: 46bd mov sp, r7
|
|
8008248: bd80 pop {r7, pc}
|
|
|
|
0800824a <_ZSt11__addressofIKZN3sta5tacos12StatemachineC4EvEUlPvE0_EPT_RS6_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
800824a: b480 push {r7}
|
|
800824c: b083 sub sp, #12
|
|
800824e: af00 add r7, sp, #0
|
|
8008250: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
8008252: 687b ldr r3, [r7, #4]
|
|
8008254: 4618 mov r0, r3
|
|
8008256: 370c adds r7, #12
|
|
8008258: 46bd mov sp, r7
|
|
800825a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800825e: 4770 bx lr
|
|
|
|
08008260 <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS6_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8008260: b480 push {r7}
|
|
8008262: b083 sub sp, #12
|
|
8008264: af00 add r7, sp, #0
|
|
8008266: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8008268: 687b ldr r3, [r7, #4]
|
|
800826a: 4618 mov r0, r3
|
|
800826c: 370c adds r7, #12
|
|
800826e: 46bd mov sp, r7
|
|
8008270: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008274: 4770 bx lr
|
|
|
|
08008276 <_ZSt13__invoke_implIvRZN3sta5tacos12StatemachineC4EvEUlPvE0_JS3_EET_St14__invoke_otherOT0_DpOT1_>:
|
|
__invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args)
|
|
8008276: b590 push {r4, r7, lr}
|
|
8008278: b085 sub sp, #20
|
|
800827a: af00 add r7, sp, #0
|
|
800827c: 7338 strb r0, [r7, #12]
|
|
800827e: 60b9 str r1, [r7, #8]
|
|
8008280: 607a str r2, [r7, #4]
|
|
{ return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
|
|
8008282: 68b8 ldr r0, [r7, #8]
|
|
8008284: f7ff ffec bl 8008260 <_ZSt7forwardIRZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8008288: 4604 mov r4, r0
|
|
800828a: 6878 ldr r0, [r7, #4]
|
|
800828c: f7ff fb02 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
8008290: 4603 mov r3, r0
|
|
8008292: 681b ldr r3, [r3, #0]
|
|
8008294: 4619 mov r1, r3
|
|
8008296: 4620 mov r0, r4
|
|
8008298: f7fe f949 bl 800652e <_ZZN3sta5tacos12StatemachineC4EvENKUlPvE0_clES2_>
|
|
800829c: bf00 nop
|
|
800829e: 3714 adds r7, #20
|
|
80082a0: 46bd mov sp, r7
|
|
80082a2: bd90 pop {r4, r7, pc}
|
|
|
|
080082a4 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
80082a4: b590 push {r4, r7, lr}
|
|
80082a6: b083 sub sp, #12
|
|
80082a8: af00 add r7, sp, #0
|
|
80082aa: 6078 str r0, [r7, #4]
|
|
80082ac: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
80082ae: 6838 ldr r0, [r7, #0]
|
|
80082b0: f000 fa64 bl 800877c <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
80082b4: 4603 mov r3, r0
|
|
80082b6: 4622 mov r2, r4
|
|
80082b8: 4619 mov r1, r3
|
|
80082ba: 6878 ldr r0, [r7, #4]
|
|
80082bc: f000 fa69 bl 8008792 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
80082c0: bf00 nop
|
|
80082c2: 370c adds r7, #12
|
|
80082c4: 46bd mov sp, r7
|
|
80082c6: bd90 pop {r4, r7, pc}
|
|
|
|
080082c8 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>:
|
|
_M_destroy(_Any_data& __victim, true_type)
|
|
80082c8: b580 push {r7, lr}
|
|
80082ca: b082 sub sp, #8
|
|
80082cc: af00 add r7, sp, #0
|
|
80082ce: 6078 str r0, [r7, #4]
|
|
80082d0: 7039 strb r1, [r7, #0]
|
|
__victim._M_access<_Functor>().~_Functor();
|
|
80082d2: 6878 ldr r0, [r7, #4]
|
|
80082d4: f000 fa72 bl 80087bc <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE0_EERT_v>
|
|
}
|
|
80082d8: bf00 nop
|
|
80082da: 3708 adds r7, #8
|
|
80082dc: 46bd mov sp, r7
|
|
80082de: bd80 pop {r7, pc}
|
|
|
|
080082e0 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE10deallocateEPS4_j>:
|
|
deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
|
|
80082e0: b580 push {r7, lr}
|
|
80082e2: b084 sub sp, #16
|
|
80082e4: af00 add r7, sp, #0
|
|
80082e6: 60f8 str r0, [r7, #12]
|
|
80082e8: 60b9 str r1, [r7, #8]
|
|
80082ea: 607a str r2, [r7, #4]
|
|
_GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
|
|
80082ec: 687b ldr r3, [r7, #4]
|
|
80082ee: 00db lsls r3, r3, #3
|
|
80082f0: 4619 mov r1, r3
|
|
80082f2: 68b8 ldr r0, [r7, #8]
|
|
80082f4: f007 fa16 bl 800f724 <_ZdlPvj>
|
|
}
|
|
80082f8: bf00 nop
|
|
80082fa: 3710 adds r7, #16
|
|
80082fc: 46bd mov sp, r7
|
|
80082fe: bd80 pop {r7, pc}
|
|
|
|
08008300 <_ZNKSt9_Any_data9_M_accessIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERKT_v>:
|
|
_M_access() const noexcept
|
|
8008300: b580 push {r7, lr}
|
|
8008302: b082 sub sp, #8
|
|
8008304: af00 add r7, sp, #0
|
|
8008306: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<const _Tp*>(_M_access()); }
|
|
8008308: 6878 ldr r0, [r7, #4]
|
|
800830a: f7fe f8a8 bl 800645e <_ZNKSt9_Any_data9_M_accessEv>
|
|
800830e: 4603 mov r3, r0
|
|
8008310: 4618 mov r0, r3
|
|
8008312: 3708 adds r7, #8
|
|
8008314: 46bd mov sp, r7
|
|
8008316: bd80 pop {r7, pc}
|
|
|
|
08008318 <_ZSt11__addressofIKZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EPT_RS6_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
8008318: b480 push {r7}
|
|
800831a: b083 sub sp, #12
|
|
800831c: af00 add r7, sp, #0
|
|
800831e: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
8008320: 687b ldr r3, [r7, #4]
|
|
8008322: 4618 mov r0, r3
|
|
8008324: 370c adds r7, #12
|
|
8008326: 46bd mov sp, r7
|
|
8008328: f85d 7b04 ldr.w r7, [sp], #4
|
|
800832c: 4770 bx lr
|
|
|
|
0800832e <_ZSt7forwardIRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800832e: b480 push {r7}
|
|
8008330: b083 sub sp, #12
|
|
8008332: af00 add r7, sp, #0
|
|
8008334: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8008336: 687b ldr r3, [r7, #4]
|
|
8008338: 4618 mov r0, r3
|
|
800833a: 370c adds r7, #12
|
|
800833c: 46bd mov sp, r7
|
|
800833e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008342: 4770 bx lr
|
|
|
|
08008344 <_ZSt13__invoke_implIvRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_JS3_EET_St14__invoke_otherOT0_DpOT1_>:
|
|
__invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args)
|
|
8008344: b590 push {r4, r7, lr}
|
|
8008346: b085 sub sp, #20
|
|
8008348: af00 add r7, sp, #0
|
|
800834a: 7338 strb r0, [r7, #12]
|
|
800834c: 60b9 str r1, [r7, #8]
|
|
800834e: 607a str r2, [r7, #4]
|
|
{ return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); }
|
|
8008350: 68b8 ldr r0, [r7, #8]
|
|
8008352: f7ff ffec bl 800832e <_ZSt7forwardIRZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8008356: 4604 mov r4, r0
|
|
8008358: 6878 ldr r0, [r7, #4]
|
|
800835a: f7ff fa9b bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
800835e: 4603 mov r3, r0
|
|
8008360: 681b ldr r3, [r3, #0]
|
|
8008362: 4619 mov r1, r3
|
|
8008364: 4620 mov r0, r4
|
|
8008366: f7fe fa1c bl 80067a2 <_ZZN3sta5tacos12Statemachine15setLockoutTimerEmENKUlPvE_clES2_>
|
|
800836a: bf00 nop
|
|
800836c: 3714 adds r7, #20
|
|
800836e: 46bd mov sp, r7
|
|
8008370: bd90 pop {r4, r7, pc}
|
|
|
|
08008372 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E15_M_init_functorIRKS5_EEvRSt9_Any_dataOT_>:
|
|
_M_init_functor(_Any_data& __functor, _Fn&& __f)
|
|
8008372: b590 push {r4, r7, lr}
|
|
8008374: b083 sub sp, #12
|
|
8008376: af00 add r7, sp, #0
|
|
8008378: 6078 str r0, [r7, #4]
|
|
800837a: 6039 str r1, [r7, #0]
|
|
_M_create(__functor, std::forward<_Fn>(__f), _Local_storage());
|
|
800837c: 6838 ldr r0, [r7, #0]
|
|
800837e: f000 fa29 bl 80087d4 <_ZSt7forwardIRKZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
8008382: 4603 mov r3, r0
|
|
8008384: 4622 mov r2, r4
|
|
8008386: 4619 mov r1, r3
|
|
8008388: 6878 ldr r0, [r7, #4]
|
|
800838a: f000 fa2e bl 80087ea <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>
|
|
}
|
|
800838e: bf00 nop
|
|
8008390: 370c adds r7, #12
|
|
8008392: 46bd mov sp, r7
|
|
8008394: bd90 pop {r4, r7, pc}
|
|
|
|
08008396 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E10_M_destroyERSt9_Any_dataSt17integral_constantIbLb1EE>:
|
|
_M_destroy(_Any_data& __victim, true_type)
|
|
8008396: b580 push {r7, lr}
|
|
8008398: b082 sub sp, #8
|
|
800839a: af00 add r7, sp, #0
|
|
800839c: 6078 str r0, [r7, #4]
|
|
800839e: 7039 strb r1, [r7, #0]
|
|
__victim._M_access<_Functor>().~_Functor();
|
|
80083a0: 6878 ldr r0, [r7, #4]
|
|
80083a2: f000 fa37 bl 8008814 <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERT_v>
|
|
}
|
|
80083a6: bf00 nop
|
|
80083a8: 3708 adds r7, #8
|
|
80083aa: 46bd mov sp, r7
|
|
80083ac: bd80 pop {r7, pc}
|
|
|
|
080083ae <_ZNKSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE8max_sizeEv>:
|
|
max_size() const _GLIBCXX_NOEXCEPT
|
|
80083ae: b580 push {r7, lr}
|
|
80083b0: b082 sub sp, #8
|
|
80083b2: af00 add r7, sp, #0
|
|
80083b4: 6078 str r0, [r7, #4]
|
|
{ return _S_max_size(_M_get_Tp_allocator()); }
|
|
80083b6: 687b ldr r3, [r7, #4]
|
|
80083b8: 4618 mov r0, r3
|
|
80083ba: f7ff f8a7 bl 800750c <_ZNKSt12_Vector_baseISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE19_M_get_Tp_allocatorEv>
|
|
80083be: 4603 mov r3, r0
|
|
80083c0: 4618 mov r0, r3
|
|
80083c2: f000 fa33 bl 800882c <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_S_max_sizeERKS5_>
|
|
80083c6: 4603 mov r3, r0
|
|
80083c8: 4618 mov r0, r3
|
|
80083ca: 3708 adds r7, #8
|
|
80083cc: 46bd mov sp, r7
|
|
80083ce: bd80 pop {r7, pc}
|
|
|
|
080083d0 <_ZSt3maxIjERKT_S2_S2_>:
|
|
max(const _Tp& __a, const _Tp& __b)
|
|
80083d0: b480 push {r7}
|
|
80083d2: b083 sub sp, #12
|
|
80083d4: af00 add r7, sp, #0
|
|
80083d6: 6078 str r0, [r7, #4]
|
|
80083d8: 6039 str r1, [r7, #0]
|
|
if (__a < __b)
|
|
80083da: 687b ldr r3, [r7, #4]
|
|
80083dc: 681a ldr r2, [r3, #0]
|
|
80083de: 683b ldr r3, [r7, #0]
|
|
80083e0: 681b ldr r3, [r3, #0]
|
|
80083e2: 429a cmp r2, r3
|
|
80083e4: d201 bcs.n 80083ea <_ZSt3maxIjERKT_S2_S2_+0x1a>
|
|
return __b;
|
|
80083e6: 683b ldr r3, [r7, #0]
|
|
80083e8: e000 b.n 80083ec <_ZSt3maxIjERKT_S2_S2_+0x1c>
|
|
return __a;
|
|
80083ea: 687b ldr r3, [r7, #4]
|
|
}
|
|
80083ec: 4618 mov r0, r3
|
|
80083ee: 370c adds r7, #12
|
|
80083f0: 46bd mov sp, r7
|
|
80083f2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80083f6: 4770 bx lr
|
|
|
|
080083f8 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateERS5_j>:
|
|
allocate(allocator_type& __a, size_type __n)
|
|
80083f8: b580 push {r7, lr}
|
|
80083fa: b082 sub sp, #8
|
|
80083fc: af00 add r7, sp, #0
|
|
80083fe: 6078 str r0, [r7, #4]
|
|
8008400: 6039 str r1, [r7, #0]
|
|
{ return __a.allocate(__n); }
|
|
8008402: 2200 movs r2, #0
|
|
8008404: 6839 ldr r1, [r7, #0]
|
|
8008406: 6878 ldr r0, [r7, #4]
|
|
8008408: f000 fa2a bl 8008860 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8allocateEjPKv>
|
|
800840c: 4603 mov r3, r0
|
|
800840e: 4618 mov r0, r3
|
|
8008410: 3708 adds r7, #8
|
|
8008412: 46bd mov sp, r7
|
|
8008414: bd80 pop {r7, pc}
|
|
|
|
08008416 <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE14_S_do_relocateEPS4_S7_S7_RS5_St17integral_constantIbLb1EE>:
|
|
_S_do_relocate(pointer __first, pointer __last, pointer __result,
|
|
8008416: b580 push {r7, lr}
|
|
8008418: b084 sub sp, #16
|
|
800841a: af00 add r7, sp, #0
|
|
800841c: 60f8 str r0, [r7, #12]
|
|
800841e: 60b9 str r1, [r7, #8]
|
|
8008420: 607a str r2, [r7, #4]
|
|
8008422: 603b str r3, [r7, #0]
|
|
return std::__relocate_a(__first, __last, __result, __alloc);
|
|
8008424: 683b ldr r3, [r7, #0]
|
|
8008426: 687a ldr r2, [r7, #4]
|
|
8008428: 68b9 ldr r1, [r7, #8]
|
|
800842a: 68f8 ldr r0, [r7, #12]
|
|
800842c: f000 fa41 bl 80088b2 <_ZSt12__relocate_aIPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>
|
|
8008430: 4603 mov r3, r0
|
|
}
|
|
8008432: 4618 mov r0, r3
|
|
8008434: 3710 adds r7, #16
|
|
8008436: 46bd mov sp, r7
|
|
8008438: bd80 pop {r7, pc}
|
|
|
|
0800843a <_ZSt32__make_move_if_noexcept_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEESt13move_iteratorIPS4_EET0_PT_>:
|
|
// returning a constant iterator when we don't want to move.
|
|
template<typename _Tp, typename _ReturnType
|
|
= __conditional_t<__move_if_noexcept_cond<_Tp>::value,
|
|
const _Tp*, move_iterator<_Tp*>>>
|
|
inline _GLIBCXX17_CONSTEXPR _ReturnType
|
|
__make_move_if_noexcept_iterator(_Tp* __i)
|
|
800843a: b580 push {r7, lr}
|
|
800843c: b084 sub sp, #16
|
|
800843e: af00 add r7, sp, #0
|
|
8008440: 6078 str r0, [r7, #4]
|
|
{ return _ReturnType(__i); }
|
|
8008442: f107 030c add.w r3, r7, #12
|
|
8008446: 6879 ldr r1, [r7, #4]
|
|
8008448: 4618 mov r0, r3
|
|
800844a: f000 fa4f bl 80088ec <_ZNSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ES5_>
|
|
800844e: 68fb ldr r3, [r7, #12]
|
|
8008450: 4618 mov r0, r3
|
|
8008452: 3710 adds r7, #16
|
|
8008454: 46bd mov sp, r7
|
|
8008456: bd80 pop {r7, pc}
|
|
|
|
08008458 <_ZSt22__uninitialized_copy_aISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_S5_ET0_T_S9_S8_RSaIT1_E>:
|
|
__uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
|
|
8008458: b580 push {r7, lr}
|
|
800845a: b084 sub sp, #16
|
|
800845c: af00 add r7, sp, #0
|
|
800845e: 60f8 str r0, [r7, #12]
|
|
8008460: 60b9 str r1, [r7, #8]
|
|
8008462: 607a str r2, [r7, #4]
|
|
8008464: 603b str r3, [r7, #0]
|
|
return std::uninitialized_copy(__first, __last, __result);
|
|
8008466: 687a ldr r2, [r7, #4]
|
|
8008468: 68b9 ldr r1, [r7, #8]
|
|
800846a: 68f8 ldr r0, [r7, #12]
|
|
800846c: f000 fa50 bl 8008910 <_ZSt18uninitialized_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_>
|
|
8008470: 4603 mov r3, r0
|
|
}
|
|
8008472: 4618 mov r0, r3
|
|
8008474: 3710 adds r7, #16
|
|
8008476: 46bd mov sp, r7
|
|
8008478: bd80 pop {r7, pc}
|
|
|
|
0800847a <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE7destroyIS4_EEvPT_>:
|
|
destroy(_Up* __p)
|
|
800847a: b580 push {r7, lr}
|
|
800847c: b082 sub sp, #8
|
|
800847e: af00 add r7, sp, #0
|
|
8008480: 6078 str r0, [r7, #4]
|
|
8008482: 6039 str r1, [r7, #0]
|
|
{ __p->~_Up(); }
|
|
8008484: 6838 ldr r0, [r7, #0]
|
|
8008486: f7f8 fff6 bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
800848a: bf00 nop
|
|
800848c: 3708 adds r7, #8
|
|
800848e: 46bd mov sp, r7
|
|
8008490: bd80 pop {r7, pc}
|
|
|
|
08008492 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE15_M_destroy_nodeEPSt13_Rb_tree_nodeIS4_E>:
|
|
_M_destroy_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
8008492: b590 push {r4, r7, lr}
|
|
8008494: b083 sub sp, #12
|
|
8008496: af00 add r7, sp, #0
|
|
8008498: 6078 str r0, [r7, #4]
|
|
800849a: 6039 str r1, [r7, #0]
|
|
_Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr());
|
|
800849c: 6878 ldr r0, [r7, #4]
|
|
800849e: f000 fa4b bl 8008938 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE21_M_get_Node_allocatorEv>
|
|
80084a2: 4604 mov r4, r0
|
|
80084a4: 6838 ldr r0, [r7, #0]
|
|
80084a6: f000 fa52 bl 800894e <_ZNSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEE9_M_valptrEv>
|
|
80084aa: 4603 mov r3, r0
|
|
80084ac: 4619 mov r1, r3
|
|
80084ae: 4620 mov r0, r4
|
|
80084b0: f000 fa5b bl 800896a <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE7destroyIS5_EEvRS7_PT_>
|
|
}
|
|
80084b4: bf00 nop
|
|
80084b6: 370c adds r7, #12
|
|
80084b8: 46bd mov sp, r7
|
|
80084ba: bd90 pop {r4, r7, pc}
|
|
|
|
080084bc <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE11_M_put_nodeEPSt13_Rb_tree_nodeIS4_E>:
|
|
_M_put_node(_Link_type __p) _GLIBCXX_NOEXCEPT
|
|
80084bc: b580 push {r7, lr}
|
|
80084be: b082 sub sp, #8
|
|
80084c0: af00 add r7, sp, #0
|
|
80084c2: 6078 str r0, [r7, #4]
|
|
80084c4: 6039 str r1, [r7, #0]
|
|
{ _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); }
|
|
80084c6: 6878 ldr r0, [r7, #4]
|
|
80084c8: f000 fa36 bl 8008938 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE21_M_get_Node_allocatorEv>
|
|
80084cc: 4603 mov r3, r0
|
|
80084ce: 2201 movs r2, #1
|
|
80084d0: 6839 ldr r1, [r7, #0]
|
|
80084d2: 4618 mov r0, r3
|
|
80084d4: f000 fa56 bl 8008984 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE10deallocateERS7_PS6_j>
|
|
80084d8: bf00 nop
|
|
80084da: 3708 adds r7, #8
|
|
80084dc: 46bd mov sp, r7
|
|
80084de: bd80 pop {r7, pc}
|
|
|
|
080084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>:
|
|
_S_key(_Const_Link_type __x)
|
|
80084e0: b580 push {r7, lr}
|
|
80084e2: b084 sub sp, #16
|
|
80084e4: af00 add r7, sp, #0
|
|
80084e6: 6078 str r0, [r7, #4]
|
|
return _KeyOfValue()(*__x->_M_valptr());
|
|
80084e8: 6878 ldr r0, [r7, #4]
|
|
80084ea: f000 fa5a bl 80089a2 <_ZNKSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEE9_M_valptrEv>
|
|
80084ee: 4602 mov r2, r0
|
|
80084f0: f107 030c add.w r3, r7, #12
|
|
80084f4: 4611 mov r1, r2
|
|
80084f6: 4618 mov r0, r3
|
|
80084f8: f000 fa61 bl 80089be <_ZNKSt9_IdentityISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_>
|
|
80084fc: 4603 mov r3, r0
|
|
}
|
|
80084fe: 4618 mov r0, r3
|
|
8008500: 3710 adds r7, #16
|
|
8008502: 46bd mov sp, r7
|
|
8008504: bd80 pop {r7, pc}
|
|
|
|
08008506 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE7_S_leftEPKSt18_Rb_tree_node_base>:
|
|
_S_left(_Const_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
8008506: b480 push {r7}
|
|
8008508: b083 sub sp, #12
|
|
800850a: af00 add r7, sp, #0
|
|
800850c: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Const_Link_type>(__x->_M_left); }
|
|
800850e: 687b ldr r3, [r7, #4]
|
|
8008510: 689b ldr r3, [r3, #8]
|
|
8008512: 4618 mov r0, r3
|
|
8008514: 370c adds r7, #12
|
|
8008516: 46bd mov sp, r7
|
|
8008518: f85d 7b04 ldr.w r7, [sp], #4
|
|
800851c: 4770 bx lr
|
|
|
|
0800851e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE8_S_rightEPKSt18_Rb_tree_node_base>:
|
|
_S_right(_Const_Base_ptr __x) _GLIBCXX_NOEXCEPT
|
|
800851e: b480 push {r7}
|
|
8008520: b083 sub sp, #12
|
|
8008522: af00 add r7, sp, #0
|
|
8008524: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Const_Link_type>(__x->_M_right); }
|
|
8008526: 687b ldr r3, [r7, #4]
|
|
8008528: 68db ldr r3, [r3, #12]
|
|
800852a: 4618 mov r0, r3
|
|
800852c: 370c adds r7, #12
|
|
800852e: 46bd mov sp, r7
|
|
8008530: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008534: 4770 bx lr
|
|
|
|
08008536 <_ZStltIN3sta5tacos11TacosThreadES2_EbRKSt10shared_ptrIT_ERKS3_IT0_E>:
|
|
operator<(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
|
|
8008536: b590 push {r4, r7, lr}
|
|
8008538: b085 sub sp, #20
|
|
800853a: af00 add r7, sp, #0
|
|
800853c: 6078 str r0, [r7, #4]
|
|
800853e: 6039 str r1, [r7, #0]
|
|
return less<_Vp>()(__a.get(), __b.get());
|
|
8008540: 687b ldr r3, [r7, #4]
|
|
8008542: 4618 mov r0, r3
|
|
8008544: f7ff fbf9 bl 8007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>
|
|
8008548: 4604 mov r4, r0
|
|
800854a: 683b ldr r3, [r7, #0]
|
|
800854c: 4618 mov r0, r3
|
|
800854e: f7ff fbf4 bl 8007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>
|
|
8008552: 4602 mov r2, r0
|
|
8008554: f107 030c add.w r3, r7, #12
|
|
8008558: 4621 mov r1, r4
|
|
800855a: 4618 mov r0, r3
|
|
800855c: f000 fa3b bl 80089d6 <_ZNKSt4lessIPN3sta5tacos11TacosThreadEEclES3_S3_>
|
|
8008560: 4603 mov r3, r0
|
|
}
|
|
8008562: 4618 mov r0, r3
|
|
8008564: 3714 adds r7, #20
|
|
8008566: 46bd mov sp, r7
|
|
8008568: bd90 pop {r4, r7, pc}
|
|
|
|
0800856a <_ZSteqIN3sta5tacos11TacosThreadES2_EbRKSt10shared_ptrIT_ERKS3_IT0_E>:
|
|
operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept
|
|
800856a: b590 push {r4, r7, lr}
|
|
800856c: b083 sub sp, #12
|
|
800856e: af00 add r7, sp, #0
|
|
8008570: 6078 str r0, [r7, #4]
|
|
8008572: 6039 str r1, [r7, #0]
|
|
{ return __a.get() == __b.get(); }
|
|
8008574: 687b ldr r3, [r7, #4]
|
|
8008576: 4618 mov r0, r3
|
|
8008578: f7ff fbdf bl 8007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>
|
|
800857c: 4604 mov r4, r0
|
|
800857e: 683b ldr r3, [r7, #0]
|
|
8008580: 4618 mov r0, r3
|
|
8008582: f7ff fbda bl 8007d3a <_ZNKSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EE3getEv>
|
|
8008586: 4603 mov r3, r0
|
|
8008588: 429c cmp r4, r3
|
|
800858a: bf0c ite eq
|
|
800858c: 2301 moveq r3, #1
|
|
800858e: 2300 movne r3, #0
|
|
8008590: b2db uxtb r3, r3
|
|
8008592: 4618 mov r0, r3
|
|
8008594: 370c adds r7, #12
|
|
8008596: 46bd mov sp, r7
|
|
8008598: bd90 pop {r4, r7, pc}
|
|
|
|
0800859a <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_create_nodeIJRS4_EEEPSt13_Rb_tree_nodeIS4_EDpOT_>:
|
|
_M_create_node(_Args&&... __args)
|
|
800859a: b580 push {r7, lr}
|
|
800859c: b084 sub sp, #16
|
|
800859e: af00 add r7, sp, #0
|
|
80085a0: 6078 str r0, [r7, #4]
|
|
80085a2: 6039 str r1, [r7, #0]
|
|
_Link_type __tmp = _M_get_node();
|
|
80085a4: 6878 ldr r0, [r7, #4]
|
|
80085a6: f000 fa34 bl 8008a12 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE11_M_get_nodeEv>
|
|
80085aa: 60f8 str r0, [r7, #12]
|
|
_M_construct_node(__tmp, std::forward<_Args>(__args)...);
|
|
80085ac: 6838 ldr r0, [r7, #0]
|
|
80085ae: f7ff f8c6 bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
80085b2: 4603 mov r3, r0
|
|
80085b4: 461a mov r2, r3
|
|
80085b6: 68f9 ldr r1, [r7, #12]
|
|
80085b8: 6878 ldr r0, [r7, #4]
|
|
80085ba: f000 fa3b bl 8008a34 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_construct_nodeIJRS4_EEEvPSt13_Rb_tree_nodeIS4_EDpOT_>
|
|
return __tmp;
|
|
80085be: 68fb ldr r3, [r7, #12]
|
|
}
|
|
80085c0: 4618 mov r0, r3
|
|
80085c2: 3710 adds r7, #16
|
|
80085c4: 46bd mov sp, r7
|
|
80085c6: bd80 pop {r7, pc}
|
|
|
|
080085c8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_M_endEv>:
|
|
_M_end() _GLIBCXX_NOEXCEPT
|
|
80085c8: b480 push {r7}
|
|
80085ca: b083 sub sp, #12
|
|
80085cc: af00 add r7, sp, #0
|
|
80085ce: 6078 str r0, [r7, #4]
|
|
{ return &this->_M_impl._M_header; }
|
|
80085d0: 687b ldr r3, [r7, #4]
|
|
80085d2: 3304 adds r3, #4
|
|
80085d4: 4618 mov r0, r3
|
|
80085d6: 370c adds r7, #12
|
|
80085d8: 46bd mov sp, r7
|
|
80085da: f85d 7b04 ldr.w r7, [sp], #4
|
|
80085de: 4770 bx lr
|
|
|
|
080085e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE5beginEv>:
|
|
begin() _GLIBCXX_NOEXCEPT
|
|
80085e0: b580 push {r7, lr}
|
|
80085e2: b084 sub sp, #16
|
|
80085e4: af00 add r7, sp, #0
|
|
80085e6: 6078 str r0, [r7, #4]
|
|
{ return iterator(this->_M_impl._M_header._M_left); }
|
|
80085e8: 687b ldr r3, [r7, #4]
|
|
80085ea: 68da ldr r2, [r3, #12]
|
|
80085ec: f107 030c add.w r3, r7, #12
|
|
80085f0: 4611 mov r1, r2
|
|
80085f2: 4618 mov r0, r3
|
|
80085f4: f7ff fd77 bl 80080e6 <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPSt18_Rb_tree_node_base>
|
|
80085f8: 68fb ldr r3, [r7, #12]
|
|
80085fa: 4618 mov r0, r3
|
|
80085fc: 3710 adds r7, #16
|
|
80085fe: 46bd mov sp, r7
|
|
8008600: bd80 pop {r7, pc}
|
|
|
|
08008602 <_ZSteqRKSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEES7_>:
|
|
operator==(const _Self& __x, const _Self& __y) _GLIBCXX_NOEXCEPT
|
|
8008602: b480 push {r7}
|
|
8008604: b083 sub sp, #12
|
|
8008606: af00 add r7, sp, #0
|
|
8008608: 6078 str r0, [r7, #4]
|
|
800860a: 6039 str r1, [r7, #0]
|
|
{ return __x._M_node == __y._M_node; }
|
|
800860c: 687b ldr r3, [r7, #4]
|
|
800860e: 681a ldr r2, [r3, #0]
|
|
8008610: 683b ldr r3, [r7, #0]
|
|
8008612: 681b ldr r3, [r3, #0]
|
|
8008614: 429a cmp r2, r3
|
|
8008616: bf0c ite eq
|
|
8008618: 2301 moveq r3, #1
|
|
800861a: 2300 movne r3, #0
|
|
800861c: b2db uxtb r3, r3
|
|
800861e: 4618 mov r0, r3
|
|
8008620: 370c adds r7, #12
|
|
8008622: 46bd mov sp, r7
|
|
8008624: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008628: 4770 bx lr
|
|
|
|
0800862a <_ZNSt4pairIPSt18_Rb_tree_node_baseS1_EC1IRPSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEERS1_Lb1EEEOT_OT0_>:
|
|
constexpr pair(_U1&& __x, _U2&& __y)
|
|
800862a: b580 push {r7, lr}
|
|
800862c: b084 sub sp, #16
|
|
800862e: af00 add r7, sp, #0
|
|
8008630: 60f8 str r0, [r7, #12]
|
|
8008632: 60b9 str r1, [r7, #8]
|
|
8008634: 607a str r2, [r7, #4]
|
|
: first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
|
|
8008636: 68b8 ldr r0, [r7, #8]
|
|
8008638: f000 fa1c bl 8008a74 <_ZSt7forwardIRPSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEOT_RNSt16remove_referenceIS9_E4typeE>
|
|
800863c: 4603 mov r3, r0
|
|
800863e: 681a ldr r2, [r3, #0]
|
|
8008640: 68fb ldr r3, [r7, #12]
|
|
8008642: 601a str r2, [r3, #0]
|
|
8008644: 6878 ldr r0, [r7, #4]
|
|
8008646: f7fa f835 bl 80026b4 <_ZSt7forwardIRPSt18_Rb_tree_node_baseEOT_RNSt16remove_referenceIS3_E4typeE>
|
|
800864a: 4603 mov r3, r0
|
|
800864c: 681a ldr r2, [r3, #0]
|
|
800864e: 68fb ldr r3, [r7, #12]
|
|
8008650: 605a str r2, [r3, #4]
|
|
8008652: 68fb ldr r3, [r7, #12]
|
|
8008654: 4618 mov r0, r3
|
|
8008656: 3710 adds r7, #16
|
|
8008658: 46bd mov sp, r7
|
|
800865a: bd80 pop {r7, pc}
|
|
|
|
0800865c <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEmmEv>:
|
|
operator--() _GLIBCXX_NOEXCEPT
|
|
800865c: b580 push {r7, lr}
|
|
800865e: b082 sub sp, #8
|
|
8008660: af00 add r7, sp, #0
|
|
8008662: 6078 str r0, [r7, #4]
|
|
_M_node = _Rb_tree_decrement(_M_node);
|
|
8008664: 687b ldr r3, [r7, #4]
|
|
8008666: 681b ldr r3, [r3, #0]
|
|
8008668: 4618 mov r0, r3
|
|
800866a: f007 f8cb bl 800f804 <_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base>
|
|
800866e: 4602 mov r2, r0
|
|
8008670: 687b ldr r3, [r7, #4]
|
|
8008672: 601a str r2, [r3, #0]
|
|
return *this;
|
|
8008674: 687b ldr r3, [r7, #4]
|
|
}
|
|
8008676: 4618 mov r0, r3
|
|
8008678: 3708 adds r7, #8
|
|
800867a: 46bd mov sp, r7
|
|
800867c: bd80 pop {r7, pc}
|
|
|
|
0800867e <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E>:
|
|
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
|
|
800867e: b5b0 push {r4, r5, r7, lr}
|
|
8008680: b086 sub sp, #24
|
|
8008682: af00 add r7, sp, #0
|
|
8008684: 60f8 str r0, [r7, #12]
|
|
8008686: 60b9 str r1, [r7, #8]
|
|
8008688: 607a str r2, [r7, #4]
|
|
800868a: 603b str r3, [r7, #0]
|
|
|| _M_impl._M_key_compare(_S_key(__z),
|
|
800868c: 68bb ldr r3, [r7, #8]
|
|
800868e: 2b00 cmp r3, #0
|
|
8008690: d117 bne.n 80086c2 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E+0x44>
|
|
bool __insert_left = (__x != 0 || __p == _M_end()
|
|
8008692: 68f8 ldr r0, [r7, #12]
|
|
8008694: f7ff ff98 bl 80085c8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_M_endEv>
|
|
8008698: 4602 mov r2, r0
|
|
800869a: 687b ldr r3, [r7, #4]
|
|
800869c: 4293 cmp r3, r2
|
|
800869e: d010 beq.n 80086c2 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E+0x44>
|
|
|| _M_impl._M_key_compare(_S_key(__z),
|
|
80086a0: 68fc ldr r4, [r7, #12]
|
|
80086a2: 6838 ldr r0, [r7, #0]
|
|
80086a4: f7ff ff1c bl 80084e0 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt13_Rb_tree_nodeIS4_E>
|
|
80086a8: 4605 mov r5, r0
|
|
80086aa: 6878 ldr r0, [r7, #4]
|
|
80086ac: f7ff fbda bl 8007e64 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE6_S_keyEPKSt18_Rb_tree_node_base>
|
|
80086b0: 4603 mov r3, r0
|
|
80086b2: 461a mov r2, r3
|
|
80086b4: 4629 mov r1, r5
|
|
80086b6: 4620 mov r0, r4
|
|
80086b8: f7ff fbe0 bl 8007e7c <_ZNKSt4lessISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_S7_>
|
|
80086bc: 4603 mov r3, r0
|
|
80086be: 2b00 cmp r3, #0
|
|
80086c0: d001 beq.n 80086c6 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E+0x48>
|
|
80086c2: 2301 movs r3, #1
|
|
80086c4: e000 b.n 80086c8 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSC_PSt13_Rb_tree_nodeIS4_E+0x4a>
|
|
80086c6: 2300 movs r3, #0
|
|
bool __insert_left = (__x != 0 || __p == _M_end()
|
|
80086c8: 75fb strb r3, [r7, #23]
|
|
this->_M_impl._M_header);
|
|
80086ca: 68fb ldr r3, [r7, #12]
|
|
80086cc: 3304 adds r3, #4
|
|
_Rb_tree_insert_and_rebalance(__insert_left, __z, __p,
|
|
80086ce: 7df8 ldrb r0, [r7, #23]
|
|
80086d0: 687a ldr r2, [r7, #4]
|
|
80086d2: 6839 ldr r1, [r7, #0]
|
|
80086d4: f007 f898 bl 800f808 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_>
|
|
++_M_impl._M_node_count;
|
|
80086d8: 68fb ldr r3, [r7, #12]
|
|
80086da: 695b ldr r3, [r3, #20]
|
|
80086dc: 1c5a adds r2, r3, #1
|
|
80086de: 68fb ldr r3, [r7, #12]
|
|
80086e0: 615a str r2, [r3, #20]
|
|
return iterator(__z);
|
|
80086e2: f107 0310 add.w r3, r7, #16
|
|
80086e6: 6839 ldr r1, [r7, #0]
|
|
80086e8: 4618 mov r0, r3
|
|
80086ea: f7ff fcfc bl 80080e6 <_ZNSt17_Rb_tree_iteratorISt10shared_ptrIN3sta5tacos11TacosThreadEEEC1EPSt18_Rb_tree_node_base>
|
|
80086ee: 693b ldr r3, [r7, #16]
|
|
}
|
|
80086f0: 4618 mov r0, r3
|
|
80086f2: 3718 adds r7, #24
|
|
80086f4: 46bd mov sp, r7
|
|
80086f6: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>:
|
|
__addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
|
|
80086f8: b480 push {r7}
|
|
80086fa: b083 sub sp, #12
|
|
80086fc: af00 add r7, sp, #0
|
|
80086fe: 6078 str r0, [r7, #4]
|
|
{ return __builtin_addressof(__r); }
|
|
8008700: 687b ldr r3, [r7, #4]
|
|
8008702: 4618 mov r0, r3
|
|
8008704: 370c adds r7, #12
|
|
8008706: 46bd mov sp, r7
|
|
8008708: f85d 7b04 ldr.w r7, [sp], #4
|
|
800870c: 4770 bx lr
|
|
|
|
0800870e <_ZSt8_DestroyISt10shared_ptrIN3sta5tacos11TacosThreadEEEvPT_>:
|
|
_Destroy(_Tp* __pointer)
|
|
800870e: b580 push {r7, lr}
|
|
8008710: b082 sub sp, #8
|
|
8008712: af00 add r7, sp, #0
|
|
8008714: 6078 str r0, [r7, #4]
|
|
__pointer->~_Tp();
|
|
8008716: 6878 ldr r0, [r7, #4]
|
|
8008718: f7f8 fead bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
}
|
|
800871c: bf00 nop
|
|
800871e: 3708 adds r7, #8
|
|
8008720: 46bd mov sp, r7
|
|
8008722: bd80 pop {r7, pc}
|
|
|
|
08008724 <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8008724: b480 push {r7}
|
|
8008726: b083 sub sp, #12
|
|
8008728: af00 add r7, sp, #0
|
|
800872a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
800872c: 687b ldr r3, [r7, #4]
|
|
800872e: 4618 mov r0, r3
|
|
8008730: 370c adds r7, #12
|
|
8008732: 46bd mov sp, r7
|
|
8008734: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008738: 4770 bx lr
|
|
|
|
0800873a <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
800873a: b580 push {r7, lr}
|
|
800873c: b084 sub sp, #16
|
|
800873e: af00 add r7, sp, #0
|
|
8008740: 60f8 str r0, [r7, #12]
|
|
8008742: 60b9 str r1, [r7, #8]
|
|
8008744: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
8008746: 68f8 ldr r0, [r7, #12]
|
|
8008748: f7fd fe7e bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
800874c: 4603 mov r3, r0
|
|
800874e: 4619 mov r1, r3
|
|
8008750: 2001 movs r0, #1
|
|
8008752: f7f8 fbb1 bl 8000eb8 <_ZnwjPv>
|
|
8008756: 68b8 ldr r0, [r7, #8]
|
|
8008758: f7ff ffe4 bl 8008724 <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
}
|
|
800875c: bf00 nop
|
|
800875e: 3710 adds r7, #16
|
|
8008760: 46bd mov sp, r7
|
|
8008762: bd80 pop {r7, pc}
|
|
|
|
08008764 <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE_EERT_v>:
|
|
_M_access() noexcept
|
|
8008764: b580 push {r7, lr}
|
|
8008766: b082 sub sp, #8
|
|
8008768: af00 add r7, sp, #0
|
|
800876a: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
800876c: 6878 ldr r0, [r7, #4]
|
|
800876e: f7fd fe6b bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
8008772: 4603 mov r3, r0
|
|
8008774: 4618 mov r0, r3
|
|
8008776: 3708 adds r7, #8
|
|
8008778: 46bd mov sp, r7
|
|
800877a: bd80 pop {r7, pc}
|
|
|
|
0800877c <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS7_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
800877c: b480 push {r7}
|
|
800877e: b083 sub sp, #12
|
|
8008780: af00 add r7, sp, #0
|
|
8008782: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8008784: 687b ldr r3, [r7, #4]
|
|
8008786: 4618 mov r0, r3
|
|
8008788: 370c adds r7, #12
|
|
800878a: 46bd mov sp, r7
|
|
800878c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008790: 4770 bx lr
|
|
|
|
08008792 <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12StatemachineC4EvEUlPvE0_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
8008792: b580 push {r7, lr}
|
|
8008794: b084 sub sp, #16
|
|
8008796: af00 add r7, sp, #0
|
|
8008798: 60f8 str r0, [r7, #12]
|
|
800879a: 60b9 str r1, [r7, #8]
|
|
800879c: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
800879e: 68f8 ldr r0, [r7, #12]
|
|
80087a0: f7fd fe52 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80087a4: 4603 mov r3, r0
|
|
80087a6: 4619 mov r1, r3
|
|
80087a8: 2001 movs r0, #1
|
|
80087aa: f7f8 fb85 bl 8000eb8 <_ZnwjPv>
|
|
80087ae: 68b8 ldr r0, [r7, #8]
|
|
80087b0: f7ff ffe4 bl 800877c <_ZSt7forwardIRKZN3sta5tacos12StatemachineC4EvEUlPvE0_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
}
|
|
80087b4: bf00 nop
|
|
80087b6: 3710 adds r7, #16
|
|
80087b8: 46bd mov sp, r7
|
|
80087ba: bd80 pop {r7, pc}
|
|
|
|
080087bc <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12StatemachineC4EvEUlPvE0_EERT_v>:
|
|
_M_access() noexcept
|
|
80087bc: b580 push {r7, lr}
|
|
80087be: b082 sub sp, #8
|
|
80087c0: af00 add r7, sp, #0
|
|
80087c2: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
80087c4: 6878 ldr r0, [r7, #4]
|
|
80087c6: f7fd fe3f bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80087ca: 4603 mov r3, r0
|
|
80087cc: 4618 mov r0, r3
|
|
80087ce: 3708 adds r7, #8
|
|
80087d0: 46bd mov sp, r7
|
|
80087d2: bd80 pop {r7, pc}
|
|
|
|
080087d4 <_ZSt7forwardIRKZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
80087d4: b480 push {r7}
|
|
80087d6: b083 sub sp, #12
|
|
80087d8: af00 add r7, sp, #0
|
|
80087da: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
80087dc: 687b ldr r3, [r7, #4]
|
|
80087de: 4618 mov r0, r3
|
|
80087e0: 370c adds r7, #12
|
|
80087e2: 46bd mov sp, r7
|
|
80087e4: f85d 7b04 ldr.w r7, [sp], #4
|
|
80087e8: 4770 bx lr
|
|
|
|
080087ea <_ZNSt14_Function_base13_Base_managerIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_E9_M_createIRKS5_EEvRSt9_Any_dataOT_St17integral_constantIbLb1EE>:
|
|
_M_create(_Any_data& __dest, _Fn&& __f, true_type)
|
|
80087ea: b580 push {r7, lr}
|
|
80087ec: b084 sub sp, #16
|
|
80087ee: af00 add r7, sp, #0
|
|
80087f0: 60f8 str r0, [r7, #12]
|
|
80087f2: 60b9 str r1, [r7, #8]
|
|
80087f4: 713a strb r2, [r7, #4]
|
|
::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f));
|
|
80087f6: 68f8 ldr r0, [r7, #12]
|
|
80087f8: f7fd fe26 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
80087fc: 4603 mov r3, r0
|
|
80087fe: 4619 mov r1, r3
|
|
8008800: 2001 movs r0, #1
|
|
8008802: f7f8 fb59 bl 8000eb8 <_ZnwjPv>
|
|
8008806: 68b8 ldr r0, [r7, #8]
|
|
8008808: f7ff ffe4 bl 80087d4 <_ZSt7forwardIRKZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EOT_RNSt16remove_referenceIS7_E4typeE>
|
|
}
|
|
800880c: bf00 nop
|
|
800880e: 3710 adds r7, #16
|
|
8008810: 46bd mov sp, r7
|
|
8008812: bd80 pop {r7, pc}
|
|
|
|
08008814 <_ZNSt9_Any_data9_M_accessIZN3sta5tacos12Statemachine15setLockoutTimerEmEUlPvE_EERT_v>:
|
|
_M_access() noexcept
|
|
8008814: b580 push {r7, lr}
|
|
8008816: b082 sub sp, #8
|
|
8008818: af00 add r7, sp, #0
|
|
800881a: 6078 str r0, [r7, #4]
|
|
{ return *static_cast<_Tp*>(_M_access()); }
|
|
800881c: 6878 ldr r0, [r7, #4]
|
|
800881e: f7fd fe13 bl 8006448 <_ZNSt9_Any_data9_M_accessEv>
|
|
8008822: 4603 mov r3, r0
|
|
8008824: 4618 mov r0, r3
|
|
8008826: 3708 adds r7, #8
|
|
8008828: 46bd mov sp, r7
|
|
800882a: bd80 pop {r7, pc}
|
|
|
|
0800882c <_ZNSt6vectorISt10shared_ptrIN3sta5tacos11TacosThreadEESaIS4_EE11_S_max_sizeERKS5_>:
|
|
__N("cannot create std::vector larger than max_size()"));
|
|
return __n;
|
|
}
|
|
|
|
static _GLIBCXX20_CONSTEXPR size_type
|
|
_S_max_size(const _Tp_alloc_type& __a) _GLIBCXX_NOEXCEPT
|
|
800882c: b580 push {r7, lr}
|
|
800882e: b084 sub sp, #16
|
|
8008830: af00 add r7, sp, #0
|
|
8008832: 6078 str r0, [r7, #4]
|
|
{
|
|
// std::distance(begin(), end()) cannot be greater than PTRDIFF_MAX,
|
|
// and realistically we can't store more than PTRDIFF_MAX/sizeof(T)
|
|
// (even if std::allocator_traits::max_size says we can).
|
|
const size_t __diffmax
|
|
8008834: f06f 4370 mvn.w r3, #4026531840 @ 0xf0000000
|
|
8008838: 60fb str r3, [r7, #12]
|
|
= __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp);
|
|
const size_t __allocmax = _Alloc_traits::max_size(__a);
|
|
800883a: 6878 ldr r0, [r7, #4]
|
|
800883c: f000 f925 bl 8008a8a <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8max_sizeERKS5_>
|
|
8008840: 4603 mov r3, r0
|
|
8008842: 60bb str r3, [r7, #8]
|
|
return (std::min)(__diffmax, __allocmax);
|
|
8008844: f107 0208 add.w r2, r7, #8
|
|
8008848: f107 030c add.w r3, r7, #12
|
|
800884c: 4611 mov r1, r2
|
|
800884e: 4618 mov r0, r3
|
|
8008850: f000 f927 bl 8008aa2 <_ZSt3minIjERKT_S2_S2_>
|
|
8008854: 4603 mov r3, r0
|
|
8008856: 681b ldr r3, [r3, #0]
|
|
}
|
|
8008858: 4618 mov r0, r3
|
|
800885a: 3710 adds r7, #16
|
|
800885c: 46bd mov sp, r7
|
|
800885e: bd80 pop {r7, pc}
|
|
|
|
08008860 <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8allocateEjPKv>:
|
|
allocate(size_type __n, const void* = static_cast<const void*>(0))
|
|
8008860: b580 push {r7, lr}
|
|
8008862: b084 sub sp, #16
|
|
8008864: af00 add r7, sp, #0
|
|
8008866: 60f8 str r0, [r7, #12]
|
|
8008868: 60b9 str r1, [r7, #8]
|
|
800886a: 607a str r2, [r7, #4]
|
|
if (__builtin_expect(__n > this->_M_max_size(), false))
|
|
800886c: 68f8 ldr r0, [r7, #12]
|
|
800886e: f000 f92c bl 8008aca <_ZNKSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE11_M_max_sizeEv>
|
|
8008872: 4602 mov r2, r0
|
|
8008874: 68bb ldr r3, [r7, #8]
|
|
8008876: 4293 cmp r3, r2
|
|
8008878: bf8c ite hi
|
|
800887a: 2301 movhi r3, #1
|
|
800887c: 2300 movls r3, #0
|
|
800887e: b2db uxtb r3, r3
|
|
8008880: 2b00 cmp r3, #0
|
|
8008882: bf14 ite ne
|
|
8008884: 2301 movne r3, #1
|
|
8008886: 2300 moveq r3, #0
|
|
8008888: b2db uxtb r3, r3
|
|
800888a: 2b00 cmp r3, #0
|
|
800888c: d007 beq.n 800889e <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8allocateEjPKv+0x3e>
|
|
if (__n > (std::size_t(-1) / sizeof(_Tp)))
|
|
800888e: 68bb ldr r3, [r7, #8]
|
|
8008890: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
|
|
8008894: d301 bcc.n 800889a <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8allocateEjPKv+0x3a>
|
|
std::__throw_bad_array_new_length();
|
|
8008896: f007 f81e bl 800f8d6 <_ZSt28__throw_bad_array_new_lengthv>
|
|
std::__throw_bad_alloc();
|
|
800889a: f007 f819 bl 800f8d0 <_ZSt17__throw_bad_allocv>
|
|
return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
|
|
800889e: 68bb ldr r3, [r7, #8]
|
|
80088a0: 00db lsls r3, r3, #3
|
|
80088a2: 4618 mov r0, r3
|
|
80088a4: f006 ff42 bl 800f72c <_Znwj>
|
|
80088a8: 4603 mov r3, r0
|
|
}
|
|
80088aa: 4618 mov r0, r3
|
|
80088ac: 3710 adds r7, #16
|
|
80088ae: 46bd mov sp, r7
|
|
80088b0: bd80 pop {r7, pc}
|
|
|
|
080088b2 <_ZSt12__relocate_aIPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>:
|
|
|
|
template <typename _InputIterator, typename _ForwardIterator,
|
|
typename _Allocator>
|
|
_GLIBCXX20_CONSTEXPR
|
|
inline _ForwardIterator
|
|
__relocate_a(_InputIterator __first, _InputIterator __last,
|
|
80088b2: b5b0 push {r4, r5, r7, lr}
|
|
80088b4: b084 sub sp, #16
|
|
80088b6: af00 add r7, sp, #0
|
|
80088b8: 60f8 str r0, [r7, #12]
|
|
80088ba: 60b9 str r1, [r7, #8]
|
|
80088bc: 607a str r2, [r7, #4]
|
|
80088be: 603b str r3, [r7, #0]
|
|
_ForwardIterator __result, _Allocator& __alloc)
|
|
noexcept(noexcept(__relocate_a_1(std::__niter_base(__first),
|
|
std::__niter_base(__last),
|
|
std::__niter_base(__result), __alloc)))
|
|
{
|
|
return std::__relocate_a_1(std::__niter_base(__first),
|
|
80088c0: 68f8 ldr r0, [r7, #12]
|
|
80088c2: f000 f90e bl 8008ae2 <_ZSt12__niter_baseIPSt10shared_ptrIN3sta5tacos11TacosThreadEEET_S6_>
|
|
80088c6: 4604 mov r4, r0
|
|
80088c8: 68b8 ldr r0, [r7, #8]
|
|
80088ca: f000 f90a bl 8008ae2 <_ZSt12__niter_baseIPSt10shared_ptrIN3sta5tacos11TacosThreadEEET_S6_>
|
|
80088ce: 4605 mov r5, r0
|
|
80088d0: 6878 ldr r0, [r7, #4]
|
|
80088d2: f000 f906 bl 8008ae2 <_ZSt12__niter_baseIPSt10shared_ptrIN3sta5tacos11TacosThreadEEET_S6_>
|
|
80088d6: 4602 mov r2, r0
|
|
80088d8: 683b ldr r3, [r7, #0]
|
|
80088da: 4629 mov r1, r5
|
|
80088dc: 4620 mov r0, r4
|
|
80088de: f000 f90b bl 8008af8 <_ZSt14__relocate_a_1IPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>
|
|
80088e2: 4603 mov r3, r0
|
|
std::__niter_base(__last),
|
|
std::__niter_base(__result), __alloc);
|
|
}
|
|
80088e4: 4618 mov r0, r3
|
|
80088e6: 3710 adds r7, #16
|
|
80088e8: 46bd mov sp, r7
|
|
80088ea: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
080088ec <_ZNSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEC1ES5_>:
|
|
move_iterator(iterator_type __i)
|
|
80088ec: b580 push {r7, lr}
|
|
80088ee: b082 sub sp, #8
|
|
80088f0: af00 add r7, sp, #0
|
|
80088f2: 6078 str r0, [r7, #4]
|
|
80088f4: 6039 str r1, [r7, #0]
|
|
: _M_current(std::move(__i)) { }
|
|
80088f6: 463b mov r3, r7
|
|
80088f8: 4618 mov r0, r3
|
|
80088fa: f000 f923 bl 8008b44 <_ZSt4moveIRPSt10shared_ptrIN3sta5tacos11TacosThreadEEEONSt16remove_referenceIT_E4typeEOS8_>
|
|
80088fe: 4603 mov r3, r0
|
|
8008900: 681a ldr r2, [r3, #0]
|
|
8008902: 687b ldr r3, [r7, #4]
|
|
8008904: 601a str r2, [r3, #0]
|
|
8008906: 687b ldr r3, [r7, #4]
|
|
8008908: 4618 mov r0, r3
|
|
800890a: 3708 adds r7, #8
|
|
800890c: 46bd mov sp, r7
|
|
800890e: bd80 pop {r7, pc}
|
|
|
|
08008910 <_ZSt18uninitialized_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_>:
|
|
uninitialized_copy(_InputIterator __first, _InputIterator __last,
|
|
8008910: b580 push {r7, lr}
|
|
8008912: b086 sub sp, #24
|
|
8008914: af00 add r7, sp, #0
|
|
8008916: 60f8 str r0, [r7, #12]
|
|
8008918: 60b9 str r1, [r7, #8]
|
|
800891a: 607a str r2, [r7, #4]
|
|
const bool __can_memmove = __is_trivial(_ValueType1);
|
|
800891c: 2300 movs r3, #0
|
|
800891e: 75fb strb r3, [r7, #23]
|
|
const bool __assignable
|
|
8008920: 2300 movs r3, #0
|
|
8008922: 75bb strb r3, [r7, #22]
|
|
__uninit_copy(__first, __last, __result);
|
|
8008924: 687a ldr r2, [r7, #4]
|
|
8008926: 68b9 ldr r1, [r7, #8]
|
|
8008928: 68f8 ldr r0, [r7, #12]
|
|
800892a: f000 f916 bl 8008b5a <_ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES8_EET0_T_SB_SA_>
|
|
800892e: 4603 mov r3, r0
|
|
}
|
|
8008930: 4618 mov r0, r3
|
|
8008932: 3718 adds r7, #24
|
|
8008934: 46bd mov sp, r7
|
|
8008936: bd80 pop {r7, pc}
|
|
|
|
08008938 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE21_M_get_Node_allocatorEv>:
|
|
_M_get_Node_allocator() _GLIBCXX_NOEXCEPT
|
|
8008938: b480 push {r7}
|
|
800893a: b083 sub sp, #12
|
|
800893c: af00 add r7, sp, #0
|
|
800893e: 6078 str r0, [r7, #4]
|
|
{ return this->_M_impl; }
|
|
8008940: 687b ldr r3, [r7, #4]
|
|
8008942: 4618 mov r0, r3
|
|
8008944: 370c adds r7, #12
|
|
8008946: 46bd mov sp, r7
|
|
8008948: f85d 7b04 ldr.w r7, [sp], #4
|
|
800894c: 4770 bx lr
|
|
|
|
0800894e <_ZNSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEE9_M_valptrEv>:
|
|
_M_valptr()
|
|
800894e: b580 push {r7, lr}
|
|
8008950: b082 sub sp, #8
|
|
8008952: af00 add r7, sp, #0
|
|
8008954: 6078 str r0, [r7, #4]
|
|
{ return _M_storage._M_ptr(); }
|
|
8008956: 687b ldr r3, [r7, #4]
|
|
8008958: 3310 adds r3, #16
|
|
800895a: 4618 mov r0, r3
|
|
800895c: f000 f90d bl 8008b7a <_ZN9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE6_M_ptrEv>
|
|
8008960: 4603 mov r3, r0
|
|
8008962: 4618 mov r0, r3
|
|
8008964: 3708 adds r7, #8
|
|
8008966: 46bd mov sp, r7
|
|
8008968: bd80 pop {r7, pc}
|
|
|
|
0800896a <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE7destroyIS5_EEvRS7_PT_>:
|
|
destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p)
|
|
800896a: b580 push {r7, lr}
|
|
800896c: b082 sub sp, #8
|
|
800896e: af00 add r7, sp, #0
|
|
8008970: 6078 str r0, [r7, #4]
|
|
8008972: 6039 str r1, [r7, #0]
|
|
__a.destroy(__p);
|
|
8008974: 6839 ldr r1, [r7, #0]
|
|
8008976: 6878 ldr r0, [r7, #4]
|
|
8008978: f000 f90b bl 8008b92 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE7destroyIS5_EEvPT_>
|
|
}
|
|
800897c: bf00 nop
|
|
800897e: 3708 adds r7, #8
|
|
8008980: 46bd mov sp, r7
|
|
8008982: bd80 pop {r7, pc}
|
|
|
|
08008984 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE10deallocateERS7_PS6_j>:
|
|
deallocate(allocator_type& __a, pointer __p, size_type __n)
|
|
8008984: b580 push {r7, lr}
|
|
8008986: b084 sub sp, #16
|
|
8008988: af00 add r7, sp, #0
|
|
800898a: 60f8 str r0, [r7, #12]
|
|
800898c: 60b9 str r1, [r7, #8]
|
|
800898e: 607a str r2, [r7, #4]
|
|
{ __a.deallocate(__p, __n); }
|
|
8008990: 687a ldr r2, [r7, #4]
|
|
8008992: 68b9 ldr r1, [r7, #8]
|
|
8008994: 68f8 ldr r0, [r7, #12]
|
|
8008996: f000 f908 bl 8008baa <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE10deallocateEPS6_j>
|
|
800899a: bf00 nop
|
|
800899c: 3710 adds r7, #16
|
|
800899e: 46bd mov sp, r7
|
|
80089a0: bd80 pop {r7, pc}
|
|
|
|
080089a2 <_ZNKSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEE9_M_valptrEv>:
|
|
_M_valptr() const
|
|
80089a2: b580 push {r7, lr}
|
|
80089a4: b082 sub sp, #8
|
|
80089a6: af00 add r7, sp, #0
|
|
80089a8: 6078 str r0, [r7, #4]
|
|
{ return _M_storage._M_ptr(); }
|
|
80089aa: 687b ldr r3, [r7, #4]
|
|
80089ac: 3310 adds r3, #16
|
|
80089ae: 4618 mov r0, r3
|
|
80089b0: f000 f90e bl 8008bd0 <_ZNK9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE6_M_ptrEv>
|
|
80089b4: 4603 mov r3, r0
|
|
80089b6: 4618 mov r0, r3
|
|
80089b8: 3708 adds r7, #8
|
|
80089ba: 46bd mov sp, r7
|
|
80089bc: bd80 pop {r7, pc}
|
|
|
|
080089be <_ZNKSt9_IdentityISt10shared_ptrIN3sta5tacos11TacosThreadEEEclERKS4_>:
|
|
operator()(const _Tp& __x) const
|
|
80089be: b480 push {r7}
|
|
80089c0: b083 sub sp, #12
|
|
80089c2: af00 add r7, sp, #0
|
|
80089c4: 6078 str r0, [r7, #4]
|
|
80089c6: 6039 str r1, [r7, #0]
|
|
{ return __x; }
|
|
80089c8: 683b ldr r3, [r7, #0]
|
|
80089ca: 4618 mov r0, r3
|
|
80089cc: 370c adds r7, #12
|
|
80089ce: 46bd mov sp, r7
|
|
80089d0: f85d 7b04 ldr.w r7, [sp], #4
|
|
80089d4: 4770 bx lr
|
|
|
|
080089d6 <_ZNKSt4lessIPN3sta5tacos11TacosThreadEEclES3_S3_>:
|
|
operator()(_Tp* __x, _Tp* __y) const _GLIBCXX_NOTHROW
|
|
80089d6: b580 push {r7, lr}
|
|
80089d8: b084 sub sp, #16
|
|
80089da: af00 add r7, sp, #0
|
|
80089dc: 60f8 str r0, [r7, #12]
|
|
80089de: 60b9 str r1, [r7, #8]
|
|
80089e0: 607a str r2, [r7, #4]
|
|
if (std::__is_constant_evaluated())
|
|
80089e2: f7fd fd29 bl 8006438 <_ZSt23__is_constant_evaluatedv>
|
|
80089e6: 4603 mov r3, r0
|
|
80089e8: 2b00 cmp r3, #0
|
|
80089ea: d007 beq.n 80089fc <_ZNKSt4lessIPN3sta5tacos11TacosThreadEEclES3_S3_+0x26>
|
|
return __x < __y;
|
|
80089ec: 68ba ldr r2, [r7, #8]
|
|
80089ee: 687b ldr r3, [r7, #4]
|
|
80089f0: 429a cmp r2, r3
|
|
80089f2: bf34 ite cc
|
|
80089f4: 2301 movcc r3, #1
|
|
80089f6: 2300 movcs r3, #0
|
|
80089f8: b2db uxtb r3, r3
|
|
80089fa: e006 b.n 8008a0a <_ZNKSt4lessIPN3sta5tacos11TacosThreadEEclES3_S3_+0x34>
|
|
return (__UINTPTR_TYPE__)__x < (__UINTPTR_TYPE__)__y;
|
|
80089fc: 68ba ldr r2, [r7, #8]
|
|
80089fe: 687b ldr r3, [r7, #4]
|
|
8008a00: 429a cmp r2, r3
|
|
8008a02: bf34 ite cc
|
|
8008a04: 2301 movcc r3, #1
|
|
8008a06: 2300 movcs r3, #0
|
|
8008a08: b2db uxtb r3, r3
|
|
}
|
|
8008a0a: 4618 mov r0, r3
|
|
8008a0c: 3710 adds r7, #16
|
|
8008a0e: 46bd mov sp, r7
|
|
8008a10: bd80 pop {r7, pc}
|
|
|
|
08008a12 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE11_M_get_nodeEv>:
|
|
_M_get_node()
|
|
8008a12: b580 push {r7, lr}
|
|
8008a14: b082 sub sp, #8
|
|
8008a16: af00 add r7, sp, #0
|
|
8008a18: 6078 str r0, [r7, #4]
|
|
{ return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); }
|
|
8008a1a: 6878 ldr r0, [r7, #4]
|
|
8008a1c: f7ff ff8c bl 8008938 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE21_M_get_Node_allocatorEv>
|
|
8008a20: 4603 mov r3, r0
|
|
8008a22: 2101 movs r1, #1
|
|
8008a24: 4618 mov r0, r3
|
|
8008a26: f000 f8df bl 8008be8 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE8allocateERS7_j>
|
|
8008a2a: 4603 mov r3, r0
|
|
8008a2c: 4618 mov r0, r3
|
|
8008a2e: 3708 adds r7, #8
|
|
8008a30: 46bd mov sp, r7
|
|
8008a32: bd80 pop {r7, pc}
|
|
|
|
08008a34 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE17_M_construct_nodeIJRS4_EEEvPSt13_Rb_tree_nodeIS4_EDpOT_>:
|
|
_M_construct_node(_Link_type __node, _Args&&... __args)
|
|
8008a34: b5b0 push {r4, r5, r7, lr}
|
|
8008a36: b084 sub sp, #16
|
|
8008a38: af00 add r7, sp, #0
|
|
8008a3a: 60f8 str r0, [r7, #12]
|
|
8008a3c: 60b9 str r1, [r7, #8]
|
|
8008a3e: 607a str r2, [r7, #4]
|
|
::new(__node) _Rb_tree_node<_Val>;
|
|
8008a40: 68bb ldr r3, [r7, #8]
|
|
8008a42: 4619 mov r1, r3
|
|
8008a44: 2018 movs r0, #24
|
|
8008a46: f7f8 fa37 bl 8000eb8 <_ZnwjPv>
|
|
_Alloc_traits::construct(_M_get_Node_allocator(),
|
|
8008a4a: 68f8 ldr r0, [r7, #12]
|
|
8008a4c: f7ff ff74 bl 8008938 <_ZNSt8_Rb_treeISt10shared_ptrIN3sta5tacos11TacosThreadEES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE21_M_get_Node_allocatorEv>
|
|
8008a50: 4604 mov r4, r0
|
|
8008a52: 68b8 ldr r0, [r7, #8]
|
|
8008a54: f7ff ff7b bl 800894e <_ZNSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEE9_M_valptrEv>
|
|
8008a58: 4605 mov r5, r0
|
|
8008a5a: 6878 ldr r0, [r7, #4]
|
|
8008a5c: f7fe fe6f bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8008a60: 4603 mov r3, r0
|
|
8008a62: 461a mov r2, r3
|
|
8008a64: 4629 mov r1, r5
|
|
8008a66: 4620 mov r0, r4
|
|
8008a68: f000 f8cd bl 8008c06 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE9constructIS5_JRS5_EEEvRS7_PT_DpOT0_>
|
|
}
|
|
8008a6c: bf00 nop
|
|
8008a6e: 3710 adds r7, #16
|
|
8008a70: 46bd mov sp, r7
|
|
8008a72: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08008a74 <_ZSt7forwardIRPSt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEOT_RNSt16remove_referenceIS9_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8008a74: b480 push {r7}
|
|
8008a76: b083 sub sp, #12
|
|
8008a78: af00 add r7, sp, #0
|
|
8008a7a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8008a7c: 687b ldr r3, [r7, #4]
|
|
8008a7e: 4618 mov r0, r3
|
|
8008a80: 370c adds r7, #12
|
|
8008a82: 46bd mov sp, r7
|
|
8008a84: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008a88: 4770 bx lr
|
|
|
|
08008a8a <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8max_sizeERKS5_>:
|
|
max_size(const allocator_type& __a __attribute__((__unused__))) noexcept
|
|
8008a8a: b580 push {r7, lr}
|
|
8008a8c: b082 sub sp, #8
|
|
8008a8e: af00 add r7, sp, #0
|
|
8008a90: 6078 str r0, [r7, #4]
|
|
return __a.max_size();
|
|
8008a92: 6878 ldr r0, [r7, #4]
|
|
8008a94: f000 f8ca bl 8008c2c <_ZNKSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8max_sizeEv>
|
|
8008a98: 4603 mov r3, r0
|
|
}
|
|
8008a9a: 4618 mov r0, r3
|
|
8008a9c: 3708 adds r7, #8
|
|
8008a9e: 46bd mov sp, r7
|
|
8008aa0: bd80 pop {r7, pc}
|
|
|
|
08008aa2 <_ZSt3minIjERKT_S2_S2_>:
|
|
min(const _Tp& __a, const _Tp& __b)
|
|
8008aa2: b480 push {r7}
|
|
8008aa4: b083 sub sp, #12
|
|
8008aa6: af00 add r7, sp, #0
|
|
8008aa8: 6078 str r0, [r7, #4]
|
|
8008aaa: 6039 str r1, [r7, #0]
|
|
if (__b < __a)
|
|
8008aac: 683b ldr r3, [r7, #0]
|
|
8008aae: 681a ldr r2, [r3, #0]
|
|
8008ab0: 687b ldr r3, [r7, #4]
|
|
8008ab2: 681b ldr r3, [r3, #0]
|
|
8008ab4: 429a cmp r2, r3
|
|
8008ab6: d201 bcs.n 8008abc <_ZSt3minIjERKT_S2_S2_+0x1a>
|
|
return __b;
|
|
8008ab8: 683b ldr r3, [r7, #0]
|
|
8008aba: e000 b.n 8008abe <_ZSt3minIjERKT_S2_S2_+0x1c>
|
|
return __a;
|
|
8008abc: 687b ldr r3, [r7, #4]
|
|
}
|
|
8008abe: 4618 mov r0, r3
|
|
8008ac0: 370c adds r7, #12
|
|
8008ac2: 46bd mov sp, r7
|
|
8008ac4: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008ac8: 4770 bx lr
|
|
|
|
08008aca <_ZNKSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE11_M_max_sizeEv>:
|
|
_M_max_size() const _GLIBCXX_USE_NOEXCEPT
|
|
8008aca: b480 push {r7}
|
|
8008acc: b083 sub sp, #12
|
|
8008ace: af00 add r7, sp, #0
|
|
8008ad0: 6078 str r0, [r7, #4]
|
|
return std::size_t(__PTRDIFF_MAX__) / sizeof(_Tp);
|
|
8008ad2: f06f 4370 mvn.w r3, #4026531840 @ 0xf0000000
|
|
}
|
|
8008ad6: 4618 mov r0, r3
|
|
8008ad8: 370c adds r7, #12
|
|
8008ada: 46bd mov sp, r7
|
|
8008adc: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008ae0: 4770 bx lr
|
|
|
|
08008ae2 <_ZSt12__niter_baseIPSt10shared_ptrIN3sta5tacos11TacosThreadEEET_S6_>:
|
|
__niter_base(_Iterator __it)
|
|
8008ae2: b480 push {r7}
|
|
8008ae4: b083 sub sp, #12
|
|
8008ae6: af00 add r7, sp, #0
|
|
8008ae8: 6078 str r0, [r7, #4]
|
|
{ return __it; }
|
|
8008aea: 687b ldr r3, [r7, #4]
|
|
8008aec: 4618 mov r0, r3
|
|
8008aee: 370c adds r7, #12
|
|
8008af0: 46bd mov sp, r7
|
|
8008af2: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008af6: 4770 bx lr
|
|
|
|
08008af8 <_ZSt14__relocate_a_1IPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_>:
|
|
__relocate_a_1(_InputIterator __first, _InputIterator __last,
|
|
8008af8: b590 push {r4, r7, lr}
|
|
8008afa: b087 sub sp, #28
|
|
8008afc: af00 add r7, sp, #0
|
|
8008afe: 60f8 str r0, [r7, #12]
|
|
8008b00: 60b9 str r1, [r7, #8]
|
|
8008b02: 607a str r2, [r7, #4]
|
|
8008b04: 603b str r3, [r7, #0]
|
|
_ForwardIterator __cur = __result;
|
|
8008b06: 687b ldr r3, [r7, #4]
|
|
8008b08: 617b str r3, [r7, #20]
|
|
for (; __first != __last; ++__first, (void)++__cur)
|
|
8008b0a: e012 b.n 8008b32 <_ZSt14__relocate_a_1IPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_+0x3a>
|
|
std::__relocate_object_a(std::__addressof(*__cur),
|
|
8008b0c: 6978 ldr r0, [r7, #20]
|
|
8008b0e: f7ff fdf3 bl 80086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>
|
|
8008b12: 4604 mov r4, r0
|
|
8008b14: 68f8 ldr r0, [r7, #12]
|
|
8008b16: f7ff fdef bl 80086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>
|
|
8008b1a: 4603 mov r3, r0
|
|
8008b1c: 683a ldr r2, [r7, #0]
|
|
8008b1e: 4619 mov r1, r3
|
|
8008b20: 4620 mov r0, r4
|
|
8008b22: f000 f88f bl 8008c44 <_ZSt19__relocate_object_aISt10shared_ptrIN3sta5tacos11TacosThreadEES4_SaIS4_EEvPT_PT0_RT1_>
|
|
for (; __first != __last; ++__first, (void)++__cur)
|
|
8008b26: 68fb ldr r3, [r7, #12]
|
|
8008b28: 3308 adds r3, #8
|
|
8008b2a: 60fb str r3, [r7, #12]
|
|
8008b2c: 697b ldr r3, [r7, #20]
|
|
8008b2e: 3308 adds r3, #8
|
|
8008b30: 617b str r3, [r7, #20]
|
|
8008b32: 68fa ldr r2, [r7, #12]
|
|
8008b34: 68bb ldr r3, [r7, #8]
|
|
8008b36: 429a cmp r2, r3
|
|
8008b38: d1e8 bne.n 8008b0c <_ZSt14__relocate_a_1IPSt10shared_ptrIN3sta5tacos11TacosThreadEES5_SaIS4_EET0_T_S8_S7_RT1_+0x14>
|
|
return __cur;
|
|
8008b3a: 697b ldr r3, [r7, #20]
|
|
}
|
|
8008b3c: 4618 mov r0, r3
|
|
8008b3e: 371c adds r7, #28
|
|
8008b40: 46bd mov sp, r7
|
|
8008b42: bd90 pop {r4, r7, pc}
|
|
|
|
08008b44 <_ZSt4moveIRPSt10shared_ptrIN3sta5tacos11TacosThreadEEEONSt16remove_referenceIT_E4typeEOS8_>:
|
|
move(_Tp&& __t) noexcept
|
|
8008b44: b480 push {r7}
|
|
8008b46: b083 sub sp, #12
|
|
8008b48: af00 add r7, sp, #0
|
|
8008b4a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8008b4c: 687b ldr r3, [r7, #4]
|
|
8008b4e: 4618 mov r0, r3
|
|
8008b50: 370c adds r7, #12
|
|
8008b52: 46bd mov sp, r7
|
|
8008b54: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008b58: 4770 bx lr
|
|
|
|
08008b5a <_ZNSt20__uninitialized_copyILb0EE13__uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES8_EET0_T_SB_SA_>:
|
|
__uninit_copy(_InputIterator __first, _InputIterator __last,
|
|
8008b5a: b580 push {r7, lr}
|
|
8008b5c: b084 sub sp, #16
|
|
8008b5e: af00 add r7, sp, #0
|
|
8008b60: 60f8 str r0, [r7, #12]
|
|
8008b62: 60b9 str r1, [r7, #8]
|
|
8008b64: 607a str r2, [r7, #4]
|
|
{ return std::__do_uninit_copy(__first, __last, __result); }
|
|
8008b66: 687a ldr r2, [r7, #4]
|
|
8008b68: 68b9 ldr r1, [r7, #8]
|
|
8008b6a: 68f8 ldr r0, [r7, #12]
|
|
8008b6c: f000 f885 bl 8008c7a <_ZSt16__do_uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_>
|
|
8008b70: 4603 mov r3, r0
|
|
8008b72: 4618 mov r0, r3
|
|
8008b74: 3710 adds r7, #16
|
|
8008b76: 46bd mov sp, r7
|
|
8008b78: bd80 pop {r7, pc}
|
|
|
|
08008b7a <_ZN9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE6_M_ptrEv>:
|
|
_M_ptr() noexcept
|
|
8008b7a: b580 push {r7, lr}
|
|
8008b7c: b082 sub sp, #8
|
|
8008b7e: af00 add r7, sp, #0
|
|
8008b80: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp*>(_M_addr()); }
|
|
8008b82: 6878 ldr r0, [r7, #4]
|
|
8008b84: f000 f8a8 bl 8008cd8 <_ZN9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE7_M_addrEv>
|
|
8008b88: 4603 mov r3, r0
|
|
8008b8a: 4618 mov r0, r3
|
|
8008b8c: 3708 adds r7, #8
|
|
8008b8e: 46bd mov sp, r7
|
|
8008b90: bd80 pop {r7, pc}
|
|
|
|
08008b92 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE7destroyIS5_EEvPT_>:
|
|
destroy(_Up* __p)
|
|
8008b92: b580 push {r7, lr}
|
|
8008b94: b082 sub sp, #8
|
|
8008b96: af00 add r7, sp, #0
|
|
8008b98: 6078 str r0, [r7, #4]
|
|
8008b9a: 6039 str r1, [r7, #0]
|
|
{ __p->~_Up(); }
|
|
8008b9c: 6838 ldr r0, [r7, #0]
|
|
8008b9e: f7f8 fc6a bl 8001476 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEED1Ev>
|
|
8008ba2: bf00 nop
|
|
8008ba4: 3708 adds r7, #8
|
|
8008ba6: 46bd mov sp, r7
|
|
8008ba8: bd80 pop {r7, pc}
|
|
|
|
08008baa <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE10deallocateEPS6_j>:
|
|
deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__)))
|
|
8008baa: b580 push {r7, lr}
|
|
8008bac: b084 sub sp, #16
|
|
8008bae: af00 add r7, sp, #0
|
|
8008bb0: 60f8 str r0, [r7, #12]
|
|
8008bb2: 60b9 str r1, [r7, #8]
|
|
8008bb4: 607a str r2, [r7, #4]
|
|
_GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n));
|
|
8008bb6: 687a ldr r2, [r7, #4]
|
|
8008bb8: 4613 mov r3, r2
|
|
8008bba: 005b lsls r3, r3, #1
|
|
8008bbc: 4413 add r3, r2
|
|
8008bbe: 00db lsls r3, r3, #3
|
|
8008bc0: 4619 mov r1, r3
|
|
8008bc2: 68b8 ldr r0, [r7, #8]
|
|
8008bc4: f006 fdae bl 800f724 <_ZdlPvj>
|
|
}
|
|
8008bc8: bf00 nop
|
|
8008bca: 3710 adds r7, #16
|
|
8008bcc: 46bd mov sp, r7
|
|
8008bce: bd80 pop {r7, pc}
|
|
|
|
08008bd0 <_ZNK9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE6_M_ptrEv>:
|
|
_M_ptr() const noexcept
|
|
8008bd0: b580 push {r7, lr}
|
|
8008bd2: b082 sub sp, #8
|
|
8008bd4: af00 add r7, sp, #0
|
|
8008bd6: 6078 str r0, [r7, #4]
|
|
{ return static_cast<const _Tp*>(_M_addr()); }
|
|
8008bd8: 6878 ldr r0, [r7, #4]
|
|
8008bda: f000 f888 bl 8008cee <_ZNK9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE7_M_addrEv>
|
|
8008bde: 4603 mov r3, r0
|
|
8008be0: 4618 mov r0, r3
|
|
8008be2: 3708 adds r7, #8
|
|
8008be4: 46bd mov sp, r7
|
|
8008be6: bd80 pop {r7, pc}
|
|
|
|
08008be8 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE8allocateERS7_j>:
|
|
allocate(allocator_type& __a, size_type __n)
|
|
8008be8: b580 push {r7, lr}
|
|
8008bea: b082 sub sp, #8
|
|
8008bec: af00 add r7, sp, #0
|
|
8008bee: 6078 str r0, [r7, #4]
|
|
8008bf0: 6039 str r1, [r7, #0]
|
|
{ return __a.allocate(__n); }
|
|
8008bf2: 2200 movs r2, #0
|
|
8008bf4: 6839 ldr r1, [r7, #0]
|
|
8008bf6: 6878 ldr r0, [r7, #4]
|
|
8008bf8: f000 f884 bl 8008d04 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateEjPKv>
|
|
8008bfc: 4603 mov r3, r0
|
|
8008bfe: 4618 mov r0, r3
|
|
8008c00: 3708 adds r7, #8
|
|
8008c02: 46bd mov sp, r7
|
|
8008c04: bd80 pop {r7, pc}
|
|
|
|
08008c06 <_ZNSt16allocator_traitsISaISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEEE9constructIS5_JRS5_EEEvRS7_PT_DpOT0_>:
|
|
construct(allocator_type& __a __attribute__((__unused__)), _Up* __p,
|
|
8008c06: b580 push {r7, lr}
|
|
8008c08: b084 sub sp, #16
|
|
8008c0a: af00 add r7, sp, #0
|
|
8008c0c: 60f8 str r0, [r7, #12]
|
|
8008c0e: 60b9 str r1, [r7, #8]
|
|
8008c10: 607a str r2, [r7, #4]
|
|
__a.construct(__p, std::forward<_Args>(__args)...);
|
|
8008c12: 6878 ldr r0, [r7, #4]
|
|
8008c14: f7fe fd93 bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8008c18: 4603 mov r3, r0
|
|
8008c1a: 461a mov r2, r3
|
|
8008c1c: 68b9 ldr r1, [r7, #8]
|
|
8008c1e: 68f8 ldr r0, [r7, #12]
|
|
8008c20: f000 f89e bl 8008d60 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS5_JRS5_EEEvPT_DpOT0_>
|
|
}
|
|
8008c24: bf00 nop
|
|
8008c26: 3710 adds r7, #16
|
|
8008c28: 46bd mov sp, r7
|
|
8008c2a: bd80 pop {r7, pc}
|
|
|
|
08008c2c <_ZNKSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE8max_sizeEv>:
|
|
max_size() const _GLIBCXX_USE_NOEXCEPT
|
|
8008c2c: b580 push {r7, lr}
|
|
8008c2e: b082 sub sp, #8
|
|
8008c30: af00 add r7, sp, #0
|
|
8008c32: 6078 str r0, [r7, #4]
|
|
{ return _M_max_size(); }
|
|
8008c34: 6878 ldr r0, [r7, #4]
|
|
8008c36: f7ff ff48 bl 8008aca <_ZNKSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE11_M_max_sizeEv>
|
|
8008c3a: 4603 mov r3, r0
|
|
8008c3c: 4618 mov r0, r3
|
|
8008c3e: 3708 adds r7, #8
|
|
8008c40: 46bd mov sp, r7
|
|
8008c42: bd80 pop {r7, pc}
|
|
|
|
08008c44 <_ZSt19__relocate_object_aISt10shared_ptrIN3sta5tacos11TacosThreadEES4_SaIS4_EEvPT_PT0_RT1_>:
|
|
__relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig,
|
|
8008c44: b580 push {r7, lr}
|
|
8008c46: b084 sub sp, #16
|
|
8008c48: af00 add r7, sp, #0
|
|
8008c4a: 60f8 str r0, [r7, #12]
|
|
8008c4c: 60b9 str r1, [r7, #8]
|
|
8008c4e: 607a str r2, [r7, #4]
|
|
__traits::construct(__alloc, __dest, std::move(*__orig));
|
|
8008c50: 68b8 ldr r0, [r7, #8]
|
|
8008c52: f000 f89d bl 8008d90 <_ZSt4moveIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEONSt16remove_referenceIT_E4typeEOS7_>
|
|
8008c56: 4603 mov r3, r0
|
|
8008c58: 461a mov r2, r3
|
|
8008c5a: 68f9 ldr r1, [r7, #12]
|
|
8008c5c: 6878 ldr r0, [r7, #4]
|
|
8008c5e: f000 f8a2 bl 8008da6 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS4_JS4_EEEvRS5_PT_DpOT0_>
|
|
__traits::destroy(__alloc, std::__addressof(*__orig));
|
|
8008c62: 68b8 ldr r0, [r7, #8]
|
|
8008c64: f7ff fd48 bl 80086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>
|
|
8008c68: 4603 mov r3, r0
|
|
8008c6a: 4619 mov r1, r3
|
|
8008c6c: 6878 ldr r0, [r7, #4]
|
|
8008c6e: f7ff f857 bl 8007d20 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE7destroyIS4_EEvRS5_PT_>
|
|
}
|
|
8008c72: bf00 nop
|
|
8008c74: 3710 adds r7, #16
|
|
8008c76: 46bd mov sp, r7
|
|
8008c78: bd80 pop {r7, pc}
|
|
|
|
08008c7a <_ZSt16__do_uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_>:
|
|
__do_uninit_copy(_InputIterator __first, _InputIterator __last,
|
|
8008c7a: b590 push {r4, r7, lr}
|
|
8008c7c: b087 sub sp, #28
|
|
8008c7e: af00 add r7, sp, #0
|
|
8008c80: 60f8 str r0, [r7, #12]
|
|
8008c82: 60b9 str r1, [r7, #8]
|
|
8008c84: 607a str r2, [r7, #4]
|
|
_ForwardIterator __cur = __result;
|
|
8008c86: 687b ldr r3, [r7, #4]
|
|
8008c88: 617b str r3, [r7, #20]
|
|
for (; __first != __last; ++__first, (void)++__cur)
|
|
8008c8a: e015 b.n 8008cb8 <_ZSt16__do_uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_+0x3e>
|
|
std::_Construct(std::__addressof(*__cur), *__first);
|
|
8008c8c: 6978 ldr r0, [r7, #20]
|
|
8008c8e: f7ff fd33 bl 80086f8 <_ZSt11__addressofISt10shared_ptrIN3sta5tacos11TacosThreadEEEPT_RS5_>
|
|
8008c92: 4604 mov r4, r0
|
|
8008c94: f107 030c add.w r3, r7, #12
|
|
8008c98: 4618 mov r0, r3
|
|
8008c9a: f000 f8b9 bl 8008e10 <_ZNKSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEdeEv>
|
|
8008c9e: 4603 mov r3, r0
|
|
8008ca0: 4619 mov r1, r3
|
|
8008ca2: 4620 mov r0, r4
|
|
8008ca4: f000 f8c0 bl 8008e28 <_ZSt10_ConstructISt10shared_ptrIN3sta5tacos11TacosThreadEEJS4_EEvPT_DpOT0_>
|
|
for (; __first != __last; ++__first, (void)++__cur)
|
|
8008ca8: f107 030c add.w r3, r7, #12
|
|
8008cac: 4618 mov r0, r3
|
|
8008cae: f000 f89e bl 8008dee <_ZNSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEppEv>
|
|
8008cb2: 697b ldr r3, [r7, #20]
|
|
8008cb4: 3308 adds r3, #8
|
|
8008cb6: 617b str r3, [r7, #20]
|
|
8008cb8: f107 0208 add.w r2, r7, #8
|
|
8008cbc: f107 030c add.w r3, r7, #12
|
|
8008cc0: 4611 mov r1, r2
|
|
8008cc2: 4618 mov r0, r3
|
|
8008cc4: f000 f882 bl 8008dcc <_ZStneIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEbRKSt13move_iteratorIT_ESA_>
|
|
8008cc8: 4603 mov r3, r0
|
|
8008cca: 2b00 cmp r3, #0
|
|
8008ccc: d1de bne.n 8008c8c <_ZSt16__do_uninit_copyISt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEES6_ET0_T_S9_S8_+0x12>
|
|
return __cur;
|
|
8008cce: 697b ldr r3, [r7, #20]
|
|
}
|
|
8008cd0: 4618 mov r0, r3
|
|
8008cd2: 371c adds r7, #28
|
|
8008cd4: 46bd mov sp, r7
|
|
8008cd6: bd90 pop {r4, r7, pc}
|
|
|
|
08008cd8 <_ZN9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE7_M_addrEv>:
|
|
_M_addr() noexcept
|
|
8008cd8: b480 push {r7}
|
|
8008cda: b083 sub sp, #12
|
|
8008cdc: af00 add r7, sp, #0
|
|
8008cde: 6078 str r0, [r7, #4]
|
|
{ return static_cast<void*>(&_M_storage); }
|
|
8008ce0: 687b ldr r3, [r7, #4]
|
|
8008ce2: 4618 mov r0, r3
|
|
8008ce4: 370c adds r7, #12
|
|
8008ce6: 46bd mov sp, r7
|
|
8008ce8: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008cec: 4770 bx lr
|
|
|
|
08008cee <_ZNK9__gnu_cxx16__aligned_membufISt10shared_ptrIN3sta5tacos11TacosThreadEEE7_M_addrEv>:
|
|
_M_addr() const noexcept
|
|
8008cee: b480 push {r7}
|
|
8008cf0: b083 sub sp, #12
|
|
8008cf2: af00 add r7, sp, #0
|
|
8008cf4: 6078 str r0, [r7, #4]
|
|
{ return static_cast<const void*>(&_M_storage); }
|
|
8008cf6: 687b ldr r3, [r7, #4]
|
|
8008cf8: 4618 mov r0, r3
|
|
8008cfa: 370c adds r7, #12
|
|
8008cfc: 46bd mov sp, r7
|
|
8008cfe: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008d02: 4770 bx lr
|
|
|
|
08008d04 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateEjPKv>:
|
|
allocate(size_type __n, const void* = static_cast<const void*>(0))
|
|
8008d04: b580 push {r7, lr}
|
|
8008d06: b084 sub sp, #16
|
|
8008d08: af00 add r7, sp, #0
|
|
8008d0a: 60f8 str r0, [r7, #12]
|
|
8008d0c: 60b9 str r1, [r7, #8]
|
|
8008d0e: 607a str r2, [r7, #4]
|
|
if (__builtin_expect(__n > this->_M_max_size(), false))
|
|
8008d10: 68f8 ldr r0, [r7, #12]
|
|
8008d12: f000 f8a1 bl 8008e58 <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE11_M_max_sizeEv>
|
|
8008d16: 4602 mov r2, r0
|
|
8008d18: 68bb ldr r3, [r7, #8]
|
|
8008d1a: 4293 cmp r3, r2
|
|
8008d1c: bf8c ite hi
|
|
8008d1e: 2301 movhi r3, #1
|
|
8008d20: 2300 movls r3, #0
|
|
8008d22: b2db uxtb r3, r3
|
|
8008d24: 2b00 cmp r3, #0
|
|
8008d26: bf14 ite ne
|
|
8008d28: 2301 movne r3, #1
|
|
8008d2a: 2300 moveq r3, #0
|
|
8008d2c: b2db uxtb r3, r3
|
|
8008d2e: 2b00 cmp r3, #0
|
|
8008d30: d007 beq.n 8008d42 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateEjPKv+0x3e>
|
|
if (__n > (std::size_t(-1) / sizeof(_Tp)))
|
|
8008d32: 68bb ldr r3, [r7, #8]
|
|
8008d34: 4a09 ldr r2, [pc, #36] @ (8008d5c <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateEjPKv+0x58>)
|
|
8008d36: 4293 cmp r3, r2
|
|
8008d38: d901 bls.n 8008d3e <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE8allocateEjPKv+0x3a>
|
|
std::__throw_bad_array_new_length();
|
|
8008d3a: f006 fdcc bl 800f8d6 <_ZSt28__throw_bad_array_new_lengthv>
|
|
std::__throw_bad_alloc();
|
|
8008d3e: f006 fdc7 bl 800f8d0 <_ZSt17__throw_bad_allocv>
|
|
return static_cast<_Tp*>(_GLIBCXX_OPERATOR_NEW(__n * sizeof(_Tp)));
|
|
8008d42: 68ba ldr r2, [r7, #8]
|
|
8008d44: 4613 mov r3, r2
|
|
8008d46: 005b lsls r3, r3, #1
|
|
8008d48: 4413 add r3, r2
|
|
8008d4a: 00db lsls r3, r3, #3
|
|
8008d4c: 4618 mov r0, r3
|
|
8008d4e: f006 fced bl 800f72c <_Znwj>
|
|
8008d52: 4603 mov r3, r0
|
|
}
|
|
8008d54: 4618 mov r0, r3
|
|
8008d56: 3710 adds r7, #16
|
|
8008d58: 46bd mov sp, r7
|
|
8008d5a: bd80 pop {r7, pc}
|
|
8008d5c: 0aaaaaaa .word 0x0aaaaaaa
|
|
|
|
08008d60 <_ZNSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS5_JRS5_EEEvPT_DpOT0_>:
|
|
construct(_Up* __p, _Args&&... __args)
|
|
8008d60: b590 push {r4, r7, lr}
|
|
8008d62: b085 sub sp, #20
|
|
8008d64: af00 add r7, sp, #0
|
|
8008d66: 60f8 str r0, [r7, #12]
|
|
8008d68: 60b9 str r1, [r7, #8]
|
|
8008d6a: 607a str r2, [r7, #4]
|
|
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
|
|
8008d6c: 68bb ldr r3, [r7, #8]
|
|
8008d6e: 4619 mov r1, r3
|
|
8008d70: 2008 movs r0, #8
|
|
8008d72: f7f8 f8a1 bl 8000eb8 <_ZnwjPv>
|
|
8008d76: 4604 mov r4, r0
|
|
8008d78: 6878 ldr r0, [r7, #4]
|
|
8008d7a: f7fe fce0 bl 800773e <_ZSt7forwardIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS6_E4typeE>
|
|
8008d7e: 4603 mov r3, r0
|
|
8008d80: 4619 mov r1, r3
|
|
8008d82: 4620 mov r0, r4
|
|
8008d84: f7fd fdb4 bl 80068f0 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1ERKS3_>
|
|
8008d88: bf00 nop
|
|
8008d8a: 3714 adds r7, #20
|
|
8008d8c: 46bd mov sp, r7
|
|
8008d8e: bd90 pop {r4, r7, pc}
|
|
|
|
08008d90 <_ZSt4moveIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEONSt16remove_referenceIT_E4typeEOS7_>:
|
|
move(_Tp&& __t) noexcept
|
|
8008d90: b480 push {r7}
|
|
8008d92: b083 sub sp, #12
|
|
8008d94: af00 add r7, sp, #0
|
|
8008d96: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8008d98: 687b ldr r3, [r7, #4]
|
|
8008d9a: 4618 mov r0, r3
|
|
8008d9c: 370c adds r7, #12
|
|
8008d9e: 46bd mov sp, r7
|
|
8008da0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008da4: 4770 bx lr
|
|
|
|
08008da6 <_ZNSt16allocator_traitsISaISt10shared_ptrIN3sta5tacos11TacosThreadEEEE9constructIS4_JS4_EEEvRS5_PT_DpOT0_>:
|
|
construct(allocator_type& __a __attribute__((__unused__)), _Up* __p,
|
|
8008da6: b580 push {r7, lr}
|
|
8008da8: b084 sub sp, #16
|
|
8008daa: af00 add r7, sp, #0
|
|
8008dac: 60f8 str r0, [r7, #12]
|
|
8008dae: 60b9 str r1, [r7, #8]
|
|
8008db0: 607a str r2, [r7, #4]
|
|
__a.construct(__p, std::forward<_Args>(__args)...);
|
|
8008db2: 6878 ldr r0, [r7, #4]
|
|
8008db4: f000 f85e bl 8008e74 <_ZSt7forwardISt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8008db8: 4603 mov r3, r0
|
|
8008dba: 461a mov r2, r3
|
|
8008dbc: 68b9 ldr r1, [r7, #8]
|
|
8008dbe: 68f8 ldr r0, [r7, #12]
|
|
8008dc0: f000 f863 bl 8008e8a <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE9constructIS4_JS4_EEEvPT_DpOT0_>
|
|
}
|
|
8008dc4: bf00 nop
|
|
8008dc6: 3710 adds r7, #16
|
|
8008dc8: 46bd mov sp, r7
|
|
8008dca: bd80 pop {r7, pc}
|
|
|
|
08008dcc <_ZStneIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEbRKSt13move_iteratorIT_ESA_>:
|
|
operator!=(const move_iterator<_Iterator>& __x,
|
|
8008dcc: b580 push {r7, lr}
|
|
8008dce: b082 sub sp, #8
|
|
8008dd0: af00 add r7, sp, #0
|
|
8008dd2: 6078 str r0, [r7, #4]
|
|
8008dd4: 6039 str r1, [r7, #0]
|
|
{ return !(__x == __y); }
|
|
8008dd6: 6839 ldr r1, [r7, #0]
|
|
8008dd8: 6878 ldr r0, [r7, #4]
|
|
8008dda: f000 f86e bl 8008eba <_ZSteqIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEbRKSt13move_iteratorIT_ESA_>
|
|
8008dde: 4603 mov r3, r0
|
|
8008de0: f083 0301 eor.w r3, r3, #1
|
|
8008de4: b2db uxtb r3, r3
|
|
8008de6: 4618 mov r0, r3
|
|
8008de8: 3708 adds r7, #8
|
|
8008dea: 46bd mov sp, r7
|
|
8008dec: bd80 pop {r7, pc}
|
|
|
|
08008dee <_ZNSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEppEv>:
|
|
operator++()
|
|
8008dee: b480 push {r7}
|
|
8008df0: b083 sub sp, #12
|
|
8008df2: af00 add r7, sp, #0
|
|
8008df4: 6078 str r0, [r7, #4]
|
|
++_M_current;
|
|
8008df6: 687b ldr r3, [r7, #4]
|
|
8008df8: 681b ldr r3, [r3, #0]
|
|
8008dfa: f103 0208 add.w r2, r3, #8
|
|
8008dfe: 687b ldr r3, [r7, #4]
|
|
8008e00: 601a str r2, [r3, #0]
|
|
return *this;
|
|
8008e02: 687b ldr r3, [r7, #4]
|
|
}
|
|
8008e04: 4618 mov r0, r3
|
|
8008e06: 370c adds r7, #12
|
|
8008e08: 46bd mov sp, r7
|
|
8008e0a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008e0e: 4770 bx lr
|
|
|
|
08008e10 <_ZNKSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEdeEv>:
|
|
operator*() const
|
|
8008e10: b480 push {r7}
|
|
8008e12: b083 sub sp, #12
|
|
8008e14: af00 add r7, sp, #0
|
|
8008e16: 6078 str r0, [r7, #4]
|
|
{ return static_cast<reference>(*_M_current); }
|
|
8008e18: 687b ldr r3, [r7, #4]
|
|
8008e1a: 681b ldr r3, [r3, #0]
|
|
8008e1c: 4618 mov r0, r3
|
|
8008e1e: 370c adds r7, #12
|
|
8008e20: 46bd mov sp, r7
|
|
8008e22: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008e26: 4770 bx lr
|
|
|
|
08008e28 <_ZSt10_ConstructISt10shared_ptrIN3sta5tacos11TacosThreadEEJS4_EEvPT_DpOT0_>:
|
|
_Construct(_Tp* __p, _Args&&... __args)
|
|
8008e28: b590 push {r4, r7, lr}
|
|
8008e2a: b083 sub sp, #12
|
|
8008e2c: af00 add r7, sp, #0
|
|
8008e2e: 6078 str r0, [r7, #4]
|
|
8008e30: 6039 str r1, [r7, #0]
|
|
::new((void*)__p) _Tp(std::forward<_Args>(__args)...);
|
|
8008e32: 687b ldr r3, [r7, #4]
|
|
8008e34: 4619 mov r1, r3
|
|
8008e36: 2008 movs r0, #8
|
|
8008e38: f7f8 f83e bl 8000eb8 <_ZnwjPv>
|
|
8008e3c: 4604 mov r4, r0
|
|
8008e3e: 6838 ldr r0, [r7, #0]
|
|
8008e40: f000 f818 bl 8008e74 <_ZSt7forwardISt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8008e44: 4603 mov r3, r0
|
|
8008e46: 4619 mov r1, r3
|
|
8008e48: 4620 mov r0, r4
|
|
8008e4a: f000 f84c bl 8008ee6 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1EOS3_>
|
|
}
|
|
8008e4e: bf00 nop
|
|
8008e50: 370c adds r7, #12
|
|
8008e52: 46bd mov sp, r7
|
|
8008e54: bd90 pop {r4, r7, pc}
|
|
...
|
|
|
|
08008e58 <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE11_M_max_sizeEv>:
|
|
_M_max_size() const _GLIBCXX_USE_NOEXCEPT
|
|
8008e58: b480 push {r7}
|
|
8008e5a: b083 sub sp, #12
|
|
8008e5c: af00 add r7, sp, #0
|
|
8008e5e: 6078 str r0, [r7, #4]
|
|
return std::size_t(__PTRDIFF_MAX__) / sizeof(_Tp);
|
|
8008e60: 4b03 ldr r3, [pc, #12] @ (8008e70 <_ZNKSt15__new_allocatorISt13_Rb_tree_nodeISt10shared_ptrIN3sta5tacos11TacosThreadEEEE11_M_max_sizeEv+0x18>)
|
|
}
|
|
8008e62: 4618 mov r0, r3
|
|
8008e64: 370c adds r7, #12
|
|
8008e66: 46bd mov sp, r7
|
|
8008e68: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008e6c: 4770 bx lr
|
|
8008e6e: bf00 nop
|
|
8008e70: 05555555 .word 0x05555555
|
|
|
|
08008e74 <_ZSt7forwardISt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS5_E4typeE>:
|
|
forward(typename std::remove_reference<_Tp>::type& __t) noexcept
|
|
8008e74: b480 push {r7}
|
|
8008e76: b083 sub sp, #12
|
|
8008e78: af00 add r7, sp, #0
|
|
8008e7a: 6078 str r0, [r7, #4]
|
|
{ return static_cast<_Tp&&>(__t); }
|
|
8008e7c: 687b ldr r3, [r7, #4]
|
|
8008e7e: 4618 mov r0, r3
|
|
8008e80: 370c adds r7, #12
|
|
8008e82: 46bd mov sp, r7
|
|
8008e84: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008e88: 4770 bx lr
|
|
|
|
08008e8a <_ZNSt15__new_allocatorISt10shared_ptrIN3sta5tacos11TacosThreadEEE9constructIS4_JS4_EEEvPT_DpOT0_>:
|
|
construct(_Up* __p, _Args&&... __args)
|
|
8008e8a: b590 push {r4, r7, lr}
|
|
8008e8c: b085 sub sp, #20
|
|
8008e8e: af00 add r7, sp, #0
|
|
8008e90: 60f8 str r0, [r7, #12]
|
|
8008e92: 60b9 str r1, [r7, #8]
|
|
8008e94: 607a str r2, [r7, #4]
|
|
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
|
|
8008e96: 68bb ldr r3, [r7, #8]
|
|
8008e98: 4619 mov r1, r3
|
|
8008e9a: 2008 movs r0, #8
|
|
8008e9c: f7f8 f80c bl 8000eb8 <_ZnwjPv>
|
|
8008ea0: 4604 mov r4, r0
|
|
8008ea2: 6878 ldr r0, [r7, #4]
|
|
8008ea4: f7ff ffe6 bl 8008e74 <_ZSt7forwardISt10shared_ptrIN3sta5tacos11TacosThreadEEEOT_RNSt16remove_referenceIS5_E4typeE>
|
|
8008ea8: 4603 mov r3, r0
|
|
8008eaa: 4619 mov r1, r3
|
|
8008eac: 4620 mov r0, r4
|
|
8008eae: f000 f81a bl 8008ee6 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1EOS3_>
|
|
8008eb2: bf00 nop
|
|
8008eb4: 3714 adds r7, #20
|
|
8008eb6: 46bd mov sp, r7
|
|
8008eb8: bd90 pop {r4, r7, pc}
|
|
|
|
08008eba <_ZSteqIPSt10shared_ptrIN3sta5tacos11TacosThreadEEEbRKSt13move_iteratorIT_ESA_>:
|
|
operator==(const move_iterator<_Iterator>& __x,
|
|
8008eba: b590 push {r4, r7, lr}
|
|
8008ebc: b083 sub sp, #12
|
|
8008ebe: af00 add r7, sp, #0
|
|
8008ec0: 6078 str r0, [r7, #4]
|
|
8008ec2: 6039 str r1, [r7, #0]
|
|
{ return __x.base() == __y.base(); }
|
|
8008ec4: 6878 ldr r0, [r7, #4]
|
|
8008ec6: f000 f821 bl 8008f0c <_ZNKSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEE4baseEv>
|
|
8008eca: 4604 mov r4, r0
|
|
8008ecc: 6838 ldr r0, [r7, #0]
|
|
8008ece: f000 f81d bl 8008f0c <_ZNKSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEE4baseEv>
|
|
8008ed2: 4603 mov r3, r0
|
|
8008ed4: 429c cmp r4, r3
|
|
8008ed6: bf0c ite eq
|
|
8008ed8: 2301 moveq r3, #1
|
|
8008eda: 2300 movne r3, #0
|
|
8008edc: b2db uxtb r3, r3
|
|
8008ede: 4618 mov r0, r3
|
|
8008ee0: 370c adds r7, #12
|
|
8008ee2: 46bd mov sp, r7
|
|
8008ee4: bd90 pop {r4, r7, pc}
|
|
|
|
08008ee6 <_ZNSt10shared_ptrIN3sta5tacos11TacosThreadEEC1EOS3_>:
|
|
shared_ptr(shared_ptr&& __r) noexcept
|
|
8008ee6: b590 push {r4, r7, lr}
|
|
8008ee8: b083 sub sp, #12
|
|
8008eea: af00 add r7, sp, #0
|
|
8008eec: 6078 str r0, [r7, #4]
|
|
8008eee: 6039 str r1, [r7, #0]
|
|
: __shared_ptr<_Tp>(std::move(__r)) { }
|
|
8008ef0: 687c ldr r4, [r7, #4]
|
|
8008ef2: 6838 ldr r0, [r7, #0]
|
|
8008ef4: f7ff ff4c bl 8008d90 <_ZSt4moveIRSt10shared_ptrIN3sta5tacos11TacosThreadEEEONSt16remove_referenceIT_E4typeEOS7_>
|
|
8008ef8: 4603 mov r3, r0
|
|
8008efa: 4619 mov r1, r3
|
|
8008efc: 4620 mov r0, r4
|
|
8008efe: f000 f811 bl 8008f24 <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1EOS5_>
|
|
8008f02: 687b ldr r3, [r7, #4]
|
|
8008f04: 4618 mov r0, r3
|
|
8008f06: 370c adds r7, #12
|
|
8008f08: 46bd mov sp, r7
|
|
8008f0a: bd90 pop {r4, r7, pc}
|
|
|
|
08008f0c <_ZNKSt13move_iteratorIPSt10shared_ptrIN3sta5tacos11TacosThreadEEE4baseEv>:
|
|
base() const
|
|
8008f0c: b480 push {r7}
|
|
8008f0e: b083 sub sp, #12
|
|
8008f10: af00 add r7, sp, #0
|
|
8008f12: 6078 str r0, [r7, #4]
|
|
{ return _M_current; }
|
|
8008f14: 687b ldr r3, [r7, #4]
|
|
8008f16: 681b ldr r3, [r3, #0]
|
|
8008f18: 4618 mov r0, r3
|
|
8008f1a: 370c adds r7, #12
|
|
8008f1c: 46bd mov sp, r7
|
|
8008f1e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008f22: 4770 bx lr
|
|
|
|
08008f24 <_ZNSt12__shared_ptrIN3sta5tacos11TacosThreadELN9__gnu_cxx12_Lock_policyE0EEC1EOS5_>:
|
|
__shared_ptr(__shared_ptr&& __r) noexcept
|
|
8008f24: b580 push {r7, lr}
|
|
8008f26: b082 sub sp, #8
|
|
8008f28: af00 add r7, sp, #0
|
|
8008f2a: 6078 str r0, [r7, #4]
|
|
8008f2c: 6039 str r1, [r7, #0]
|
|
: _M_ptr(__r._M_ptr), _M_refcount()
|
|
8008f2e: 683b ldr r3, [r7, #0]
|
|
8008f30: 681a ldr r2, [r3, #0]
|
|
8008f32: 687b ldr r3, [r7, #4]
|
|
8008f34: 601a str r2, [r3, #0]
|
|
8008f36: 687b ldr r3, [r7, #4]
|
|
8008f38: 3304 adds r3, #4
|
|
8008f3a: 4618 mov r0, r3
|
|
8008f3c: f000 f810 bl 8008f60 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1Ev>
|
|
_M_refcount._M_swap(__r._M_refcount);
|
|
8008f40: 687b ldr r3, [r7, #4]
|
|
8008f42: 1d1a adds r2, r3, #4
|
|
8008f44: 683b ldr r3, [r7, #0]
|
|
8008f46: 3304 adds r3, #4
|
|
8008f48: 4619 mov r1, r3
|
|
8008f4a: 4610 mov r0, r2
|
|
8008f4c: f000 f816 bl 8008f7c <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EE7_M_swapERS2_>
|
|
__r._M_ptr = nullptr;
|
|
8008f50: 683b ldr r3, [r7, #0]
|
|
8008f52: 2200 movs r2, #0
|
|
8008f54: 601a str r2, [r3, #0]
|
|
}
|
|
8008f56: 687b ldr r3, [r7, #4]
|
|
8008f58: 4618 mov r0, r3
|
|
8008f5a: 3708 adds r7, #8
|
|
8008f5c: 46bd mov sp, r7
|
|
8008f5e: bd80 pop {r7, pc}
|
|
|
|
08008f60 <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EEC1Ev>:
|
|
constexpr __shared_count() noexcept : _M_pi(0)
|
|
8008f60: b480 push {r7}
|
|
8008f62: b083 sub sp, #12
|
|
8008f64: af00 add r7, sp, #0
|
|
8008f66: 6078 str r0, [r7, #4]
|
|
8008f68: 687b ldr r3, [r7, #4]
|
|
8008f6a: 2200 movs r2, #0
|
|
8008f6c: 601a str r2, [r3, #0]
|
|
{ }
|
|
8008f6e: 687b ldr r3, [r7, #4]
|
|
8008f70: 4618 mov r0, r3
|
|
8008f72: 370c adds r7, #12
|
|
8008f74: 46bd mov sp, r7
|
|
8008f76: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008f7a: 4770 bx lr
|
|
|
|
08008f7c <_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE0EE7_M_swapERS2_>:
|
|
_M_swap(__shared_count& __r) noexcept
|
|
8008f7c: b480 push {r7}
|
|
8008f7e: b085 sub sp, #20
|
|
8008f80: af00 add r7, sp, #0
|
|
8008f82: 6078 str r0, [r7, #4]
|
|
8008f84: 6039 str r1, [r7, #0]
|
|
_Sp_counted_base<_Lp>* __tmp = __r._M_pi;
|
|
8008f86: 683b ldr r3, [r7, #0]
|
|
8008f88: 681b ldr r3, [r3, #0]
|
|
8008f8a: 60fb str r3, [r7, #12]
|
|
__r._M_pi = _M_pi;
|
|
8008f8c: 687b ldr r3, [r7, #4]
|
|
8008f8e: 681a ldr r2, [r3, #0]
|
|
8008f90: 683b ldr r3, [r7, #0]
|
|
8008f92: 601a str r2, [r3, #0]
|
|
_M_pi = __tmp;
|
|
8008f94: 687b ldr r3, [r7, #4]
|
|
8008f96: 68fa ldr r2, [r7, #12]
|
|
8008f98: 601a str r2, [r3, #0]
|
|
}
|
|
8008f9a: bf00 nop
|
|
8008f9c: 3714 adds r7, #20
|
|
8008f9e: 46bd mov sp, r7
|
|
8008fa0: f85d 7b04 ldr.w r7, [sp], #4
|
|
8008fa4: 4770 bx lr
|
|
...
|
|
|
|
08008fa8 <_Z41__static_initialization_and_destruction_0ii>:
|
|
|
|
Statemachine* Statemachine::_instance = nullptr;
|
|
|
|
RtosEvent Statemachine::stateChangeEvent;
|
|
} // namespace tacos
|
|
} // namespace sta
|
|
8008fa8: b580 push {r7, lr}
|
|
8008faa: b082 sub sp, #8
|
|
8008fac: af00 add r7, sp, #0
|
|
8008fae: 6078 str r0, [r7, #4]
|
|
8008fb0: 6039 str r1, [r7, #0]
|
|
8008fb2: 687b ldr r3, [r7, #4]
|
|
8008fb4: 2b01 cmp r3, #1
|
|
8008fb6: d107 bne.n 8008fc8 <_Z41__static_initialization_and_destruction_0ii+0x20>
|
|
8008fb8: 683b ldr r3, [r7, #0]
|
|
8008fba: f64f 72ff movw r2, #65535 @ 0xffff
|
|
8008fbe: 4293 cmp r3, r2
|
|
8008fc0: d102 bne.n 8008fc8 <_Z41__static_initialization_and_destruction_0ii+0x20>
|
|
RtosEvent Statemachine::stateChangeEvent;
|
|
8008fc2: 4809 ldr r0, [pc, #36] @ (8008fe8 <_Z41__static_initialization_and_destruction_0ii+0x40>)
|
|
8008fc4: f000 f93c bl 8009240 <_ZN3sta9RtosEventC1Ev>
|
|
8008fc8: 687b ldr r3, [r7, #4]
|
|
8008fca: 2b00 cmp r3, #0
|
|
8008fcc: d107 bne.n 8008fde <_Z41__static_initialization_and_destruction_0ii+0x36>
|
|
8008fce: 683b ldr r3, [r7, #0]
|
|
8008fd0: f64f 72ff movw r2, #65535 @ 0xffff
|
|
8008fd4: 4293 cmp r3, r2
|
|
8008fd6: d102 bne.n 8008fde <_Z41__static_initialization_and_destruction_0ii+0x36>
|
|
8008fd8: 4803 ldr r0, [pc, #12] @ (8008fe8 <_Z41__static_initialization_and_destruction_0ii+0x40>)
|
|
8008fda: f000 f953 bl 8009284 <_ZN3sta9RtosEventD1Ev>
|
|
} // namespace sta
|
|
8008fde: bf00 nop
|
|
8008fe0: 3708 adds r7, #8
|
|
8008fe2: 46bd mov sp, r7
|
|
8008fe4: bd80 pop {r7, pc}
|
|
8008fe6: bf00 nop
|
|
8008fe8: 20000300 .word 0x20000300
|
|
|
|
08008fec <_GLOBAL__sub_I__ZN3sta5tacos12StatemachineC2Ev>:
|
|
8008fec: b580 push {r7, lr}
|
|
8008fee: af00 add r7, sp, #0
|
|
8008ff0: f64f 71ff movw r1, #65535 @ 0xffff
|
|
8008ff4: 2001 movs r0, #1
|
|
8008ff6: f7ff ffd7 bl 8008fa8 <_Z41__static_initialization_and_destruction_0ii>
|
|
8008ffa: bd80 pop {r7, pc}
|
|
|
|
08008ffc <_GLOBAL__sub_D__ZN3sta5tacos12StatemachineC2Ev>:
|
|
8008ffc: b580 push {r7, lr}
|
|
8008ffe: af00 add r7, sp, #0
|
|
8009000: f64f 71ff movw r1, #65535 @ 0xffff
|
|
8009004: 2000 movs r0, #0
|
|
8009006: f7ff ffcf bl 8008fa8 <_Z41__static_initialization_and_destruction_0ii>
|
|
800900a: bd80 pop {r7, pc}
|
|
|
|
0800900c <_ZN3sta5tacos11TacosThreadC1EPKc12osPriority_tmm>:
|
|
|
|
namespace sta
|
|
{
|
|
namespace tacos
|
|
{
|
|
TacosThread::TacosThread(const char* name, osPriority_t prio, uint32_t stack_size /* = 0 */, uint32_t cb_size /* = 0 */)
|
|
800900c: b580 push {r7, lr}
|
|
800900e: b086 sub sp, #24
|
|
8009010: af02 add r7, sp, #8
|
|
8009012: 60f8 str r0, [r7, #12]
|
|
8009014: 60b9 str r1, [r7, #8]
|
|
8009016: 607a str r2, [r7, #4]
|
|
8009018: 603b str r3, [r7, #0]
|
|
#ifdef STA_CAN_BUS_FWD_ENABLE
|
|
CAN_queue_{STA_RTOS_CAN_BUS_QUEUE_LENGTH},
|
|
canID_{0},
|
|
#endif // STA_CAN_BUS_FWD_ENABLE
|
|
terminate_{false},
|
|
previous_tick_{0}
|
|
800901a: 68f8 ldr r0, [r7, #12]
|
|
800901c: 69bb ldr r3, [r7, #24]
|
|
800901e: 9300 str r3, [sp, #0]
|
|
8009020: 683b ldr r3, [r7, #0]
|
|
8009022: 687a ldr r2, [r7, #4]
|
|
8009024: 68b9 ldr r1, [r7, #8]
|
|
8009026: f000 f9f1 bl 800940c <_ZN3sta10RtosThreadC1EPKc12osPriority_tmm>
|
|
800902a: 4a14 ldr r2, [pc, #80] @ (800907c <_ZN3sta5tacos11TacosThreadC1EPKc12osPriority_tmm+0x70>)
|
|
800902c: 68fb ldr r3, [r7, #12]
|
|
800902e: 601a str r2, [r3, #0]
|
|
instance_{ NULL },
|
|
8009030: 68fb ldr r3, [r7, #12]
|
|
8009032: 2200 movs r2, #0
|
|
8009034: 62da str r2, [r3, #44] @ 0x2c
|
|
attribs_{ .name=name, .cb_size=cb_size, .stack_size=stack_size, .priority=prio },
|
|
8009036: 68fb ldr r3, [r7, #12]
|
|
8009038: 3330 adds r3, #48 @ 0x30
|
|
800903a: 2224 movs r2, #36 @ 0x24
|
|
800903c: 2100 movs r1, #0
|
|
800903e: 4618 mov r0, r3
|
|
8009040: f007 fc06 bl 8010850 <memset>
|
|
8009044: 68fb ldr r3, [r7, #12]
|
|
8009046: 68ba ldr r2, [r7, #8]
|
|
8009048: 631a str r2, [r3, #48] @ 0x30
|
|
800904a: 68fb ldr r3, [r7, #12]
|
|
800904c: 69ba ldr r2, [r7, #24]
|
|
800904e: 63da str r2, [r3, #60] @ 0x3c
|
|
8009050: 68fb ldr r3, [r7, #12]
|
|
8009052: 683a ldr r2, [r7, #0]
|
|
8009054: 645a str r2, [r3, #68] @ 0x44
|
|
8009056: 68fb ldr r3, [r7, #12]
|
|
8009058: 687a ldr r2, [r7, #4]
|
|
800905a: 649a str r2, [r3, #72] @ 0x48
|
|
running_{false},
|
|
800905c: 68fb ldr r3, [r7, #12]
|
|
800905e: 2200 movs r2, #0
|
|
8009060: f883 2054 strb.w r2, [r3, #84] @ 0x54
|
|
terminate_{false},
|
|
8009064: 68fb ldr r3, [r7, #12]
|
|
8009066: 2200 movs r2, #0
|
|
8009068: f883 2055 strb.w r2, [r3, #85] @ 0x55
|
|
previous_tick_{0}
|
|
800906c: 68fb ldr r3, [r7, #12]
|
|
800906e: 2200 movs r2, #0
|
|
8009070: 659a str r2, [r3, #88] @ 0x58
|
|
{
|
|
STA_ASSERT(stack_size >= 0);
|
|
STA_ASSERT(cb_size >= 0);
|
|
}
|
|
8009072: 68fb ldr r3, [r7, #12]
|
|
8009074: 4618 mov r0, r3
|
|
8009076: 3710 adds r7, #16
|
|
8009078: 46bd mov sp, r7
|
|
800907a: bd80 pop {r7, pc}
|
|
800907c: 0801311c .word 0x0801311c
|
|
|
|
08009080 <_ZN3sta5tacos11TacosThread9isRunningEv>:
|
|
|
|
bool TacosThread::isRunning()
|
|
{
|
|
8009080: b480 push {r7}
|
|
8009082: b083 sub sp, #12
|
|
8009084: af00 add r7, sp, #0
|
|
8009086: 6078 str r0, [r7, #4]
|
|
return running_;
|
|
8009088: 687b ldr r3, [r7, #4]
|
|
800908a: f893 3054 ldrb.w r3, [r3, #84] @ 0x54
|
|
}
|
|
800908e: 4618 mov r0, r3
|
|
8009090: 370c adds r7, #12
|
|
8009092: 46bd mov sp, r7
|
|
8009094: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009098: 4770 bx lr
|
|
|
|
0800909a <_ZN3sta5tacos11TacosThread5startEv>:
|
|
|
|
void TacosThread::start()
|
|
{
|
|
800909a: b580 push {r7, lr}
|
|
800909c: b082 sub sp, #8
|
|
800909e: af00 add r7, sp, #0
|
|
80090a0: 6078 str r0, [r7, #4]
|
|
if (getInstance() == NULL)
|
|
80090a2: 687b ldr r3, [r7, #4]
|
|
80090a4: 4618 mov r0, r3
|
|
80090a6: f000 f9d9 bl 800945c <_ZN3sta10RtosThread11getInstanceEv>
|
|
80090aa: 4603 mov r3, r0
|
|
80090ac: 2b00 cmp r3, #0
|
|
80090ae: bf0c ite eq
|
|
80090b0: 2301 moveq r3, #1
|
|
80090b2: 2300 movne r3, #0
|
|
80090b4: b2db uxtb r3, r3
|
|
80090b6: 2b00 cmp r3, #0
|
|
80090b8: d004 beq.n 80090c4 <_ZN3sta5tacos11TacosThread5startEv+0x2a>
|
|
{
|
|
RtosThread::start();
|
|
80090ba: 687b ldr r3, [r7, #4]
|
|
80090bc: 4618 mov r0, r3
|
|
80090be: f000 f9d9 bl 8009474 <_ZN3sta10RtosThread5startEv>
|
|
}
|
|
else
|
|
{
|
|
sysNotify(STA_RTOS_THREAD_FLAG_START);
|
|
}
|
|
}
|
|
80090c2: e005 b.n 80090d0 <_ZN3sta5tacos11TacosThread5startEv+0x36>
|
|
sysNotify(STA_RTOS_THREAD_FLAG_START);
|
|
80090c4: 687b ldr r3, [r7, #4]
|
|
80090c6: f04f 4180 mov.w r1, #1073741824 @ 0x40000000
|
|
80090ca: 4618 mov r0, r3
|
|
80090cc: f000 fa26 bl 800951c <_ZN3sta10RtosThread9sysNotifyEm>
|
|
}
|
|
80090d0: bf00 nop
|
|
80090d2: 3708 adds r7, #8
|
|
80090d4: 46bd mov sp, r7
|
|
80090d6: bd80 pop {r7, pc}
|
|
|
|
080090d8 <_ZN3sta5tacos11TacosThread4initEv>:
|
|
|
|
void TacosThread::init() {}
|
|
80090d8: b480 push {r7}
|
|
80090da: b083 sub sp, #12
|
|
80090dc: af00 add r7, sp, #0
|
|
80090de: 6078 str r0, [r7, #4]
|
|
80090e0: bf00 nop
|
|
80090e2: 370c adds r7, #12
|
|
80090e4: 46bd mov sp, r7
|
|
80090e6: f85d 7b04 ldr.w r7, [sp], #4
|
|
80090ea: 4770 bx lr
|
|
|
|
080090ec <_ZN3sta5tacos11TacosThread4loopEv>:
|
|
|
|
void TacosThread::loop()
|
|
{
|
|
80090ec: b580 push {r7, lr}
|
|
80090ee: b082 sub sp, #8
|
|
80090f0: af00 add r7, sp, #0
|
|
80090f2: 6078 str r0, [r7, #4]
|
|
// Infinite loop allowing quick restarts of this thread after termination.
|
|
while (true)
|
|
{
|
|
// The thread has to wait until the system startup has been completed.
|
|
sta::tacos::waitForStartupEvent();
|
|
80090f4: f7fd f912 bl 800631c <_ZN3sta5tacos19waitForStartupEventEv>
|
|
|
|
// Wait for a thread start flag.
|
|
wait(STA_RTOS_THREAD_FLAG_START);
|
|
80090f8: 687b ldr r3, [r7, #4]
|
|
80090fa: f04f 4180 mov.w r1, #1073741824 @ 0x40000000
|
|
80090fe: 4618 mov r0, r3
|
|
8009100: f000 fa64 bl 80095cc <_ZN3sta10RtosThread4waitEm>
|
|
|
|
// Call user-defined initialization code.
|
|
running_ = true;
|
|
8009104: 687b ldr r3, [r7, #4]
|
|
8009106: 2201 movs r2, #1
|
|
8009108: f883 2054 strb.w r2, [r3, #84] @ 0x54
|
|
init();
|
|
800910c: 687b ldr r3, [r7, #4]
|
|
800910e: 681b ldr r3, [r3, #0]
|
|
8009110: 3310 adds r3, #16
|
|
8009112: 681b ldr r3, [r3, #0]
|
|
8009114: 6878 ldr r0, [r7, #4]
|
|
8009116: 4798 blx r3
|
|
|
|
// Run the thread until the termination flag is set. Reset this
|
|
while (!isTerminationRequested())
|
|
8009118: e005 b.n 8009126 <_ZN3sta5tacos11TacosThread4loopEv+0x3a>
|
|
heartbeat();
|
|
}
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
|
|
// Execute user-space implementation.
|
|
func();
|
|
800911a: 687b ldr r3, [r7, #4]
|
|
800911c: 681b ldr r3, [r3, #0]
|
|
800911e: 3314 adds r3, #20
|
|
8009120: 681b ldr r3, [r3, #0]
|
|
8009122: 6878 ldr r0, [r7, #4]
|
|
8009124: 4798 blx r3
|
|
while (!isTerminationRequested())
|
|
8009126: 6878 ldr r0, [r7, #4]
|
|
8009128: f000 f85c bl 80091e4 <_ZN3sta5tacos11TacosThread22isTerminationRequestedEv>
|
|
800912c: 4603 mov r3, r0
|
|
800912e: f083 0301 eor.w r3, r3, #1
|
|
8009132: b2db uxtb r3, r3
|
|
8009134: 2b00 cmp r3, #0
|
|
8009136: d1f0 bne.n 800911a <_ZN3sta5tacos11TacosThread4loopEv+0x2e>
|
|
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
|
status_ = ThreadStatus::STOPPED;
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
|
|
// Clear the termination request flag for this thread.
|
|
deleteTerminationRequest();
|
|
8009138: 6878 ldr r0, [r7, #4]
|
|
800913a: f000 f845 bl 80091c8 <_ZN3sta5tacos11TacosThread24deleteTerminationRequestEv>
|
|
|
|
// Call user-defined cleanup code.
|
|
cleanup();
|
|
800913e: 687b ldr r3, [r7, #4]
|
|
8009140: 681b ldr r3, [r3, #0]
|
|
8009142: 3318 adds r3, #24
|
|
8009144: 681b ldr r3, [r3, #0]
|
|
8009146: 6878 ldr r0, [r7, #4]
|
|
8009148: 4798 blx r3
|
|
running_ = false;
|
|
800914a: 687b ldr r3, [r7, #4]
|
|
800914c: 2200 movs r2, #0
|
|
800914e: f883 2054 strb.w r2, [r3, #84] @ 0x54
|
|
sta::tacos::waitForStartupEvent();
|
|
8009152: e7cf b.n 80090f4 <_ZN3sta5tacos11TacosThread4loopEv+0x8>
|
|
|
|
08009154 <_ZN3sta5tacos11TacosThread7cleanupEv>:
|
|
}
|
|
|
|
osThreadExit();
|
|
}
|
|
|
|
void TacosThread::cleanup() {}
|
|
8009154: b480 push {r7}
|
|
8009156: b083 sub sp, #12
|
|
8009158: af00 add r7, sp, #0
|
|
800915a: 6078 str r0, [r7, #4]
|
|
800915c: bf00 nop
|
|
800915e: 370c adds r7, #12
|
|
8009160: 46bd mov sp, r7
|
|
8009162: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009166: 4770 bx lr
|
|
|
|
08009168 <_ZN3sta5tacos11TacosThread13periodicDelayEm>:
|
|
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
|
heartbeat();
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
}
|
|
|
|
void TacosThread::periodicDelay(uint32_t frequency){
|
|
8009168: b580 push {r7, lr}
|
|
800916a: b082 sub sp, #8
|
|
800916c: af00 add r7, sp, #0
|
|
800916e: 6078 str r0, [r7, #4]
|
|
8009170: 6039 str r1, [r7, #0]
|
|
if (previous_tick_ == 0)
|
|
8009172: 687b ldr r3, [r7, #4]
|
|
8009174: 6d9b ldr r3, [r3, #88] @ 0x58
|
|
8009176: 2b00 cmp r3, #0
|
|
8009178: d104 bne.n 8009184 <_ZN3sta5tacos11TacosThread13periodicDelayEm+0x1c>
|
|
{
|
|
previous_tick_ = osKernelGetTickCount();
|
|
800917a: f001 fc2d bl 800a9d8 <osKernelGetTickCount>
|
|
800917e: 4602 mov r2, r0
|
|
8009180: 687b ldr r3, [r7, #4]
|
|
8009182: 659a str r2, [r3, #88] @ 0x58
|
|
}
|
|
|
|
previous_tick_ += osKernelGetTickFreq()/frequency;
|
|
8009184: f001 fc3d bl 800aa02 <osKernelGetTickFreq>
|
|
8009188: 4602 mov r2, r0
|
|
800918a: 683b ldr r3, [r7, #0]
|
|
800918c: fbb2 f2f3 udiv r2, r2, r3
|
|
8009190: 687b ldr r3, [r7, #4]
|
|
8009192: 6d9b ldr r3, [r3, #88] @ 0x58
|
|
8009194: 441a add r2, r3
|
|
8009196: 687b ldr r3, [r7, #4]
|
|
8009198: 659a str r2, [r3, #88] @ 0x58
|
|
|
|
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
|
waiting();
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
|
|
osDelayUntil(previous_tick_);
|
|
800919a: 687b ldr r3, [r7, #4]
|
|
800919c: 6d9b ldr r3, [r3, #88] @ 0x58
|
|
800919e: 4618 mov r0, r3
|
|
80091a0: f001 fdc8 bl 800ad34 <osDelayUntil>
|
|
|
|
#ifdef STA_TACOS_WATCHDOG_ENABLED
|
|
heartbeat();
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
}
|
|
80091a4: bf00 nop
|
|
80091a6: 3708 adds r7, #8
|
|
80091a8: 46bd mov sp, r7
|
|
80091aa: bd80 pop {r7, pc}
|
|
|
|
080091ac <_ZN3sta5tacos11TacosThread18requestTerminationEv>:
|
|
status_ = ThreadStatus::IGNORED;
|
|
}
|
|
#endif // STA_TACOS_WATCHDOG_ENABLED
|
|
|
|
void TacosThread::requestTermination()
|
|
{
|
|
80091ac: b480 push {r7}
|
|
80091ae: b083 sub sp, #12
|
|
80091b0: af00 add r7, sp, #0
|
|
80091b2: 6078 str r0, [r7, #4]
|
|
terminate_ = true;
|
|
80091b4: 687b ldr r3, [r7, #4]
|
|
80091b6: 2201 movs r2, #1
|
|
80091b8: f883 2055 strb.w r2, [r3, #85] @ 0x55
|
|
}
|
|
80091bc: bf00 nop
|
|
80091be: 370c adds r7, #12
|
|
80091c0: 46bd mov sp, r7
|
|
80091c2: f85d 7b04 ldr.w r7, [sp], #4
|
|
80091c6: 4770 bx lr
|
|
|
|
080091c8 <_ZN3sta5tacos11TacosThread24deleteTerminationRequestEv>:
|
|
|
|
void TacosThread::deleteTerminationRequest()
|
|
{
|
|
80091c8: b480 push {r7}
|
|
80091ca: b083 sub sp, #12
|
|
80091cc: af00 add r7, sp, #0
|
|
80091ce: 6078 str r0, [r7, #4]
|
|
terminate_ = false;
|
|
80091d0: 687b ldr r3, [r7, #4]
|
|
80091d2: 2200 movs r2, #0
|
|
80091d4: f883 2055 strb.w r2, [r3, #85] @ 0x55
|
|
}
|
|
80091d8: bf00 nop
|
|
80091da: 370c adds r7, #12
|
|
80091dc: 46bd mov sp, r7
|
|
80091de: f85d 7b04 ldr.w r7, [sp], #4
|
|
80091e2: 4770 bx lr
|
|
|
|
080091e4 <_ZN3sta5tacos11TacosThread22isTerminationRequestedEv>:
|
|
|
|
bool TacosThread::isTerminationRequested()
|
|
{
|
|
80091e4: b480 push {r7}
|
|
80091e6: b083 sub sp, #12
|
|
80091e8: af00 add r7, sp, #0
|
|
80091ea: 6078 str r0, [r7, #4]
|
|
return terminate_;
|
|
80091ec: 687b ldr r3, [r7, #4]
|
|
80091ee: f893 3055 ldrb.w r3, [r3, #85] @ 0x55
|
|
}
|
|
80091f2: 4618 mov r0, r3
|
|
80091f4: 370c adds r7, #12
|
|
80091f6: 46bd mov sp, r7
|
|
80091f8: f85d 7b04 ldr.w r7, [sp], #4
|
|
80091fc: 4770 bx lr
|
|
...
|
|
|
|
08009200 <_ZN3sta5tacos11TacosThreadD1Ev>:
|
|
bool TacosThread::operator<(const TacosThread& other) const
|
|
{
|
|
return std::strcmp(this->getName(), other.getName()) < 0;
|
|
}
|
|
|
|
TacosThread::~TacosThread(){}
|
|
8009200: b480 push {r7}
|
|
8009202: b083 sub sp, #12
|
|
8009204: af00 add r7, sp, #0
|
|
8009206: 6078 str r0, [r7, #4]
|
|
8009208: 4a04 ldr r2, [pc, #16] @ (800921c <_ZN3sta5tacos11TacosThreadD1Ev+0x1c>)
|
|
800920a: 687b ldr r3, [r7, #4]
|
|
800920c: 601a str r2, [r3, #0]
|
|
800920e: 687b ldr r3, [r7, #4]
|
|
8009210: 4618 mov r0, r3
|
|
8009212: 370c adds r7, #12
|
|
8009214: 46bd mov sp, r7
|
|
8009216: f85d 7b04 ldr.w r7, [sp], #4
|
|
800921a: 4770 bx lr
|
|
800921c: 0801311c .word 0x0801311c
|
|
|
|
08009220 <_ZN3sta5EventC1Ev>:
|
|
/**
|
|
* @brief Interface for event objects.
|
|
*
|
|
* @ingroup sta_core
|
|
*/
|
|
class Event
|
|
8009220: b480 push {r7}
|
|
8009222: b083 sub sp, #12
|
|
8009224: af00 add r7, sp, #0
|
|
8009226: 6078 str r0, [r7, #4]
|
|
8009228: 4a04 ldr r2, [pc, #16] @ (800923c <_ZN3sta5EventC1Ev+0x1c>)
|
|
800922a: 687b ldr r3, [r7, #4]
|
|
800922c: 601a str r2, [r3, #0]
|
|
800922e: 687b ldr r3, [r7, #4]
|
|
8009230: 4618 mov r0, r3
|
|
8009232: 370c adds r7, #12
|
|
8009234: 46bd mov sp, r7
|
|
8009236: f85d 7b04 ldr.w r7, [sp], #4
|
|
800923a: 4770 bx lr
|
|
800923c: 0801315c .word 0x0801315c
|
|
|
|
08009240 <_ZN3sta9RtosEventC1Ev>:
|
|
#include <sta/rtos/event.hpp>
|
|
|
|
namespace sta {
|
|
RtosEvent::RtosEvent() {
|
|
8009240: b580 push {r7, lr}
|
|
8009242: b086 sub sp, #24
|
|
8009244: af00 add r7, sp, #0
|
|
8009246: 6078 str r0, [r7, #4]
|
|
8009248: 687b ldr r3, [r7, #4]
|
|
800924a: 4618 mov r0, r3
|
|
800924c: f7ff ffe8 bl 8009220 <_ZN3sta5EventC1Ev>
|
|
8009250: 4a0b ldr r2, [pc, #44] @ (8009280 <_ZN3sta9RtosEventC1Ev+0x40>)
|
|
8009252: 687b ldr r3, [r7, #4]
|
|
8009254: 601a str r2, [r3, #0]
|
|
osEventFlagsAttr_t attr = { 0 };
|
|
8009256: f107 0308 add.w r3, r7, #8
|
|
800925a: 2200 movs r2, #0
|
|
800925c: 601a str r2, [r3, #0]
|
|
800925e: 605a str r2, [r3, #4]
|
|
8009260: 609a str r2, [r3, #8]
|
|
8009262: 60da str r2, [r3, #12]
|
|
event_id = osEventFlagsNew(&attr);
|
|
8009264: f107 0308 add.w r3, r7, #8
|
|
8009268: 4618 mov r0, r3
|
|
800926a: f001 fed6 bl 800b01a <osEventFlagsNew>
|
|
800926e: 4602 mov r2, r0
|
|
8009270: 687b ldr r3, [r7, #4]
|
|
8009272: 605a str r2, [r3, #4]
|
|
}
|
|
8009274: 687b ldr r3, [r7, #4]
|
|
8009276: 4618 mov r0, r3
|
|
8009278: 3718 adds r7, #24
|
|
800927a: 46bd mov sp, r7
|
|
800927c: bd80 pop {r7, pc}
|
|
800927e: bf00 nop
|
|
8009280: 08013140 .word 0x08013140
|
|
|
|
08009284 <_ZN3sta9RtosEventD1Ev>:
|
|
|
|
RtosEvent::~RtosEvent() {
|
|
8009284: b580 push {r7, lr}
|
|
8009286: b082 sub sp, #8
|
|
8009288: af00 add r7, sp, #0
|
|
800928a: 6078 str r0, [r7, #4]
|
|
800928c: 4a06 ldr r2, [pc, #24] @ (80092a8 <_ZN3sta9RtosEventD1Ev+0x24>)
|
|
800928e: 687b ldr r3, [r7, #4]
|
|
8009290: 601a str r2, [r3, #0]
|
|
osEventFlagsDelete(event_id);
|
|
8009292: 687b ldr r3, [r7, #4]
|
|
8009294: 685b ldr r3, [r3, #4]
|
|
8009296: 4618 mov r0, r3
|
|
8009298: f001 fff7 bl 800b28a <osEventFlagsDelete>
|
|
}
|
|
800929c: 687b ldr r3, [r7, #4]
|
|
800929e: 4618 mov r0, r3
|
|
80092a0: 3708 adds r7, #8
|
|
80092a2: 46bd mov sp, r7
|
|
80092a4: bd80 pop {r7, pc}
|
|
80092a6: bf00 nop
|
|
80092a8: 08013140 .word 0x08013140
|
|
|
|
080092ac <_ZN3sta9RtosEvent3setEm>:
|
|
|
|
void RtosEvent::set(uint32_t flags) {
|
|
80092ac: b580 push {r7, lr}
|
|
80092ae: b082 sub sp, #8
|
|
80092b0: af00 add r7, sp, #0
|
|
80092b2: 6078 str r0, [r7, #4]
|
|
80092b4: 6039 str r1, [r7, #0]
|
|
osEventFlagsSet(event_id, flags);
|
|
80092b6: 687b ldr r3, [r7, #4]
|
|
80092b8: 685b ldr r3, [r3, #4]
|
|
80092ba: 6839 ldr r1, [r7, #0]
|
|
80092bc: 4618 mov r0, r3
|
|
80092be: f001 feeb bl 800b098 <osEventFlagsSet>
|
|
}
|
|
80092c2: bf00 nop
|
|
80092c4: 3708 adds r7, #8
|
|
80092c6: 46bd mov sp, r7
|
|
80092c8: bd80 pop {r7, pc}
|
|
|
|
080092ca <_ZN3sta9RtosEvent5clearEm>:
|
|
|
|
void RtosEvent::clear(uint32_t flags) {
|
|
80092ca: b580 push {r7, lr}
|
|
80092cc: b082 sub sp, #8
|
|
80092ce: af00 add r7, sp, #0
|
|
80092d0: 6078 str r0, [r7, #4]
|
|
80092d2: 6039 str r1, [r7, #0]
|
|
osEventFlagsClear(event_id, flags);
|
|
80092d4: 687b ldr r3, [r7, #4]
|
|
80092d6: 685b ldr r3, [r3, #4]
|
|
80092d8: 6839 ldr r1, [r7, #0]
|
|
80092da: 4618 mov r0, r3
|
|
80092dc: f001 ff1e bl 800b11c <osEventFlagsClear>
|
|
}
|
|
80092e0: bf00 nop
|
|
80092e2: 3708 adds r7, #8
|
|
80092e4: 46bd mov sp, r7
|
|
80092e6: bd80 pop {r7, pc}
|
|
|
|
080092e8 <_ZN3sta9RtosEvent3getEv>:
|
|
|
|
uint32_t RtosEvent::get() {
|
|
80092e8: b580 push {r7, lr}
|
|
80092ea: b082 sub sp, #8
|
|
80092ec: af00 add r7, sp, #0
|
|
80092ee: 6078 str r0, [r7, #4]
|
|
return osEventFlagsGet(event_id);
|
|
80092f0: 687b ldr r3, [r7, #4]
|
|
80092f2: 685b ldr r3, [r3, #4]
|
|
80092f4: 4618 mov r0, r3
|
|
80092f6: f001 ff42 bl 800b17e <osEventFlagsGet>
|
|
80092fa: 4603 mov r3, r0
|
|
}
|
|
80092fc: 4618 mov r0, r3
|
|
80092fe: 3708 adds r7, #8
|
|
8009300: 46bd mov sp, r7
|
|
8009302: bd80 pop {r7, pc}
|
|
|
|
08009304 <_ZN3sta9RtosEvent4waitEmm>:
|
|
|
|
uint32_t RtosEvent::wait(uint32_t flags, uint32_t timeout /* = osWaitForever */) {
|
|
8009304: b580 push {r7, lr}
|
|
8009306: b084 sub sp, #16
|
|
8009308: af00 add r7, sp, #0
|
|
800930a: 60f8 str r0, [r7, #12]
|
|
800930c: 60b9 str r1, [r7, #8]
|
|
800930e: 607a str r2, [r7, #4]
|
|
return osEventFlagsWait(event_id, flags, osFlagsWaitAny, timeout);
|
|
8009310: 68fb ldr r3, [r7, #12]
|
|
8009312: 6858 ldr r0, [r3, #4]
|
|
8009314: 687b ldr r3, [r7, #4]
|
|
8009316: 2200 movs r2, #0
|
|
8009318: 68b9 ldr r1, [r7, #8]
|
|
800931a: f001 ff51 bl 800b1c0 <osEventFlagsWait>
|
|
800931e: 4603 mov r3, r0
|
|
}
|
|
8009320: 4618 mov r0, r3
|
|
8009322: 3710 adds r7, #16
|
|
8009324: 46bd mov sp, r7
|
|
8009326: bd80 pop {r7, pc}
|
|
|
|
08009328 <_ZN3sta9RtosEvent4peekEmm>:
|
|
|
|
uint32_t RtosEvent::peek(uint32_t flags, uint32_t timeout /* = osWaitForever */)
|
|
{
|
|
8009328: b580 push {r7, lr}
|
|
800932a: b084 sub sp, #16
|
|
800932c: af00 add r7, sp, #0
|
|
800932e: 60f8 str r0, [r7, #12]
|
|
8009330: 60b9 str r1, [r7, #8]
|
|
8009332: 607a str r2, [r7, #4]
|
|
return osEventFlagsWait(event_id, flags, osFlagsWaitAny | osFlagsNoClear, timeout);
|
|
8009334: 68fb ldr r3, [r7, #12]
|
|
8009336: 6858 ldr r0, [r3, #4]
|
|
8009338: 687b ldr r3, [r7, #4]
|
|
800933a: 2202 movs r2, #2
|
|
800933c: 68b9 ldr r1, [r7, #8]
|
|
800933e: f001 ff3f bl 800b1c0 <osEventFlagsWait>
|
|
8009342: 4603 mov r3, r0
|
|
}
|
|
8009344: 4618 mov r0, r3
|
|
8009346: 3710 adds r7, #16
|
|
8009348: 46bd mov sp, r7
|
|
800934a: bd80 pop {r7, pc}
|
|
|
|
0800934c <_ZN3sta5MutexC1Ev>:
|
|
/**
|
|
* @brief Interface for mutex objects.
|
|
*
|
|
* @ingroup sta_core
|
|
*/
|
|
class Mutex
|
|
800934c: b480 push {r7}
|
|
800934e: b083 sub sp, #12
|
|
8009350: af00 add r7, sp, #0
|
|
8009352: 6078 str r0, [r7, #4]
|
|
8009354: 4a04 ldr r2, [pc, #16] @ (8009368 <_ZN3sta5MutexC1Ev+0x1c>)
|
|
8009356: 687b ldr r3, [r7, #4]
|
|
8009358: 601a str r2, [r3, #0]
|
|
800935a: 687b ldr r3, [r7, #4]
|
|
800935c: 4618 mov r0, r3
|
|
800935e: 370c adds r7, #12
|
|
8009360: 46bd mov sp, r7
|
|
8009362: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009366: 4770 bx lr
|
|
8009368: 08013188 .word 0x08013188
|
|
|
|
0800936c <_ZN3sta9RtosMutexC1EPKc>:
|
|
{
|
|
RtosMutex::RtosMutex(osMutexId_t handle)
|
|
: handle_{handle}
|
|
{}
|
|
|
|
RtosMutex::RtosMutex(const char* name)
|
|
800936c: b580 push {r7, lr}
|
|
800936e: b086 sub sp, #24
|
|
8009370: af00 add r7, sp, #0
|
|
8009372: 6078 str r0, [r7, #4]
|
|
8009374: 6039 str r1, [r7, #0]
|
|
8009376: 687b ldr r3, [r7, #4]
|
|
8009378: 4618 mov r0, r3
|
|
800937a: f7ff ffe7 bl 800934c <_ZN3sta5MutexC1Ev>
|
|
800937e: 4a12 ldr r2, [pc, #72] @ (80093c8 <_ZN3sta9RtosMutexC1EPKc+0x5c>)
|
|
8009380: 687b ldr r3, [r7, #4]
|
|
8009382: 601a str r2, [r3, #0]
|
|
{
|
|
osMutexAttr_t attribs = { .name = name};
|
|
8009384: f107 0308 add.w r3, r7, #8
|
|
8009388: 2200 movs r2, #0
|
|
800938a: 601a str r2, [r3, #0]
|
|
800938c: 605a str r2, [r3, #4]
|
|
800938e: 609a str r2, [r3, #8]
|
|
8009390: 60da str r2, [r3, #12]
|
|
8009392: 683b ldr r3, [r7, #0]
|
|
8009394: 60bb str r3, [r7, #8]
|
|
handle_ = osMutexNew(&attribs);
|
|
8009396: f107 0308 add.w r3, r7, #8
|
|
800939a: 4618 mov r0, r3
|
|
800939c: f001 ff96 bl 800b2cc <osMutexNew>
|
|
80093a0: 4602 mov r2, r0
|
|
80093a2: 687b ldr r3, [r7, #4]
|
|
80093a4: 605a str r2, [r3, #4]
|
|
|
|
STA_ASSERT(handle_ != NULL);
|
|
80093a6: 687b ldr r3, [r7, #4]
|
|
80093a8: 685b ldr r3, [r3, #4]
|
|
80093aa: 2b00 cmp r3, #0
|
|
80093ac: d106 bne.n 80093bc <_ZN3sta9RtosMutexC1EPKc+0x50>
|
|
80093ae: 2211 movs r2, #17
|
|
80093b0: 4906 ldr r1, [pc, #24] @ (80093cc <_ZN3sta9RtosMutexC1EPKc+0x60>)
|
|
80093b2: 4807 ldr r0, [pc, #28] @ (80093d0 <_ZN3sta9RtosMutexC1EPKc+0x64>)
|
|
80093b4: f000 fc50 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80093b8: f000 fc7e bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
80093bc: 687b ldr r3, [r7, #4]
|
|
80093be: 4618 mov r0, r3
|
|
80093c0: 3718 adds r7, #24
|
|
80093c2: 46bd mov sp, r7
|
|
80093c4: bd80 pop {r7, pc}
|
|
80093c6: bf00 nop
|
|
80093c8: 08013178 .word 0x08013178
|
|
80093cc: 08012c10 .word 0x08012c10
|
|
80093d0: 08012c34 .word 0x08012c34
|
|
|
|
080093d4 <_ZN3sta9RtosMutex7acquireEv>:
|
|
|
|
void RtosMutex::acquire()
|
|
{
|
|
80093d4: b580 push {r7, lr}
|
|
80093d6: b082 sub sp, #8
|
|
80093d8: af00 add r7, sp, #0
|
|
80093da: 6078 str r0, [r7, #4]
|
|
osMutexAcquire(handle_, osWaitForever);
|
|
80093dc: 687b ldr r3, [r7, #4]
|
|
80093de: 685b ldr r3, [r3, #4]
|
|
80093e0: f04f 31ff mov.w r1, #4294967295
|
|
80093e4: 4618 mov r0, r3
|
|
80093e6: f001 fff7 bl 800b3d8 <osMutexAcquire>
|
|
}
|
|
80093ea: bf00 nop
|
|
80093ec: 3708 adds r7, #8
|
|
80093ee: 46bd mov sp, r7
|
|
80093f0: bd80 pop {r7, pc}
|
|
|
|
080093f2 <_ZN3sta9RtosMutex7releaseEv>:
|
|
|
|
void RtosMutex::release()
|
|
{
|
|
80093f2: b580 push {r7, lr}
|
|
80093f4: b082 sub sp, #8
|
|
80093f6: af00 add r7, sp, #0
|
|
80093f8: 6078 str r0, [r7, #4]
|
|
osMutexRelease(handle_);
|
|
80093fa: 687b ldr r3, [r7, #4]
|
|
80093fc: 685b ldr r3, [r3, #4]
|
|
80093fe: 4618 mov r0, r3
|
|
8009400: f002 f835 bl 800b46e <osMutexRelease>
|
|
}
|
|
8009404: bf00 nop
|
|
8009406: 3708 adds r7, #8
|
|
8009408: 46bd mov sp, r7
|
|
800940a: bd80 pop {r7, pc}
|
|
|
|
0800940c <_ZN3sta10RtosThreadC1EPKc12osPriority_tmm>:
|
|
#define IS_THREAD_USER_FLAGS(flags) ( ( flags & STA_RTOS_THREAD_FLAGS_VALID_USER_BITS ) == flags )
|
|
|
|
|
|
namespace sta
|
|
{
|
|
RtosThread::RtosThread(const char* name, osPriority_t prio, uint32_t stack_size /* = 0 */, uint32_t cb_size /* = 0 */)
|
|
800940c: b580 push {r7, lr}
|
|
800940e: b084 sub sp, #16
|
|
8009410: af00 add r7, sp, #0
|
|
8009412: 60f8 str r0, [r7, #12]
|
|
8009414: 60b9 str r1, [r7, #8]
|
|
8009416: 607a str r2, [r7, #4]
|
|
8009418: 603b str r3, [r7, #0]
|
|
: instance_{NULL},
|
|
attribs_{ .name = name, .cb_size = cb_size, .stack_size = stack_size, .priority = prio }
|
|
800941a: 4a0f ldr r2, [pc, #60] @ (8009458 <_ZN3sta10RtosThreadC1EPKc12osPriority_tmm+0x4c>)
|
|
800941c: 68fb ldr r3, [r7, #12]
|
|
800941e: 601a str r2, [r3, #0]
|
|
: instance_{NULL},
|
|
8009420: 68fb ldr r3, [r7, #12]
|
|
8009422: 2200 movs r2, #0
|
|
8009424: 605a str r2, [r3, #4]
|
|
attribs_{ .name = name, .cb_size = cb_size, .stack_size = stack_size, .priority = prio }
|
|
8009426: 68fb ldr r3, [r7, #12]
|
|
8009428: 3308 adds r3, #8
|
|
800942a: 2224 movs r2, #36 @ 0x24
|
|
800942c: 2100 movs r1, #0
|
|
800942e: 4618 mov r0, r3
|
|
8009430: f007 fa0e bl 8010850 <memset>
|
|
8009434: 68fb ldr r3, [r7, #12]
|
|
8009436: 68ba ldr r2, [r7, #8]
|
|
8009438: 609a str r2, [r3, #8]
|
|
800943a: 68fb ldr r3, [r7, #12]
|
|
800943c: 69ba ldr r2, [r7, #24]
|
|
800943e: 615a str r2, [r3, #20]
|
|
8009440: 68fb ldr r3, [r7, #12]
|
|
8009442: 683a ldr r2, [r7, #0]
|
|
8009444: 61da str r2, [r3, #28]
|
|
8009446: 68fb ldr r3, [r7, #12]
|
|
8009448: 687a ldr r2, [r7, #4]
|
|
800944a: 621a str r2, [r3, #32]
|
|
{}
|
|
800944c: 68fb ldr r3, [r7, #12]
|
|
800944e: 4618 mov r0, r3
|
|
8009450: 3710 adds r7, #16
|
|
8009452: 46bd mov sp, r7
|
|
8009454: bd80 pop {r7, pc}
|
|
8009456: bf00 nop
|
|
8009458: 08013198 .word 0x08013198
|
|
|
|
0800945c <_ZN3sta10RtosThread11getInstanceEv>:
|
|
|
|
osThreadId_t RtosThread::getInstance()
|
|
{
|
|
800945c: b480 push {r7}
|
|
800945e: b083 sub sp, #12
|
|
8009460: af00 add r7, sp, #0
|
|
8009462: 6078 str r0, [r7, #4]
|
|
return instance_;
|
|
8009464: 687b ldr r3, [r7, #4]
|
|
8009466: 685b ldr r3, [r3, #4]
|
|
}
|
|
8009468: 4618 mov r0, r3
|
|
800946a: 370c adds r7, #12
|
|
800946c: 46bd mov sp, r7
|
|
800946e: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009472: 4770 bx lr
|
|
|
|
08009474 <_ZN3sta10RtosThread5startEv>:
|
|
{
|
|
return attribs_.name;
|
|
}
|
|
|
|
void RtosThread::start()
|
|
{
|
|
8009474: b580 push {r7, lr}
|
|
8009476: b082 sub sp, #8
|
|
8009478: af00 add r7, sp, #0
|
|
800947a: 6078 str r0, [r7, #4]
|
|
// Check if there is no instance that is currently running.
|
|
STA_ASSERT(instance_ == NULL);
|
|
800947c: 687b ldr r3, [r7, #4]
|
|
800947e: 685b ldr r3, [r3, #4]
|
|
8009480: 2b00 cmp r3, #0
|
|
8009482: d006 beq.n 8009492 <_ZN3sta10RtosThread5startEv+0x1e>
|
|
8009484: 221c movs r2, #28
|
|
8009486: 4912 ldr r1, [pc, #72] @ (80094d0 <_ZN3sta10RtosThread5startEv+0x5c>)
|
|
8009488: 4812 ldr r0, [pc, #72] @ (80094d4 <_ZN3sta10RtosThread5startEv+0x60>)
|
|
800948a: f000 fbe5 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800948e: f000 fc13 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
instance_ = osThreadNew(entry_point, this, &attribs_);
|
|
8009492: 687b ldr r3, [r7, #4]
|
|
8009494: 3308 adds r3, #8
|
|
8009496: 461a mov r2, r3
|
|
8009498: 6879 ldr r1, [r7, #4]
|
|
800949a: 480f ldr r0, [pc, #60] @ (80094d8 <_ZN3sta10RtosThread5startEv+0x64>)
|
|
800949c: f001 faba bl 800aa14 <osThreadNew>
|
|
80094a0: 4602 mov r2, r0
|
|
80094a2: 687b ldr r3, [r7, #4]
|
|
80094a4: 605a str r2, [r3, #4]
|
|
STA_ASSERT(instance_ != NULL);
|
|
80094a6: 687b ldr r3, [r7, #4]
|
|
80094a8: 685b ldr r3, [r3, #4]
|
|
80094aa: 2b00 cmp r3, #0
|
|
80094ac: d106 bne.n 80094bc <_ZN3sta10RtosThread5startEv+0x48>
|
|
80094ae: 221f movs r2, #31
|
|
80094b0: 4907 ldr r1, [pc, #28] @ (80094d0 <_ZN3sta10RtosThread5startEv+0x5c>)
|
|
80094b2: 480a ldr r0, [pc, #40] @ (80094dc <_ZN3sta10RtosThread5startEv+0x68>)
|
|
80094b4: f000 fbd0 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80094b8: f000 fbfe bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
// Send a thread start signal.
|
|
sysNotify(STA_RTOS_THREAD_FLAG_START);
|
|
80094bc: f04f 4180 mov.w r1, #1073741824 @ 0x40000000
|
|
80094c0: 6878 ldr r0, [r7, #4]
|
|
80094c2: f000 f82b bl 800951c <_ZN3sta10RtosThread9sysNotifyEm>
|
|
}
|
|
80094c6: bf00 nop
|
|
80094c8: 3708 adds r7, #8
|
|
80094ca: 46bd mov sp, r7
|
|
80094cc: bd80 pop {r7, pc}
|
|
80094ce: bf00 nop
|
|
80094d0: 08012c44 .word 0x08012c44
|
|
80094d4: 08012c68 .word 0x08012c68
|
|
80094d8: 080094e1 .word 0x080094e1
|
|
80094dc: 08012c7c .word 0x08012c7c
|
|
|
|
080094e0 <_ZN3sta10RtosThread11entry_pointEPv>:
|
|
|
|
void RtosThread::entry_point(void* arg)
|
|
{
|
|
80094e0: b580 push {r7, lr}
|
|
80094e2: b084 sub sp, #16
|
|
80094e4: af00 add r7, sp, #0
|
|
80094e6: 6078 str r0, [r7, #4]
|
|
STA_ASSERT(arg != nullptr);
|
|
80094e8: 687b ldr r3, [r7, #4]
|
|
80094ea: 2b00 cmp r3, #0
|
|
80094ec: d106 bne.n 80094fc <_ZN3sta10RtosThread11entry_pointEPv+0x1c>
|
|
80094ee: 2227 movs r2, #39 @ 0x27
|
|
80094f0: 4908 ldr r1, [pc, #32] @ (8009514 <_ZN3sta10RtosThread11entry_pointEPv+0x34>)
|
|
80094f2: 4809 ldr r0, [pc, #36] @ (8009518 <_ZN3sta10RtosThread11entry_pointEPv+0x38>)
|
|
80094f4: f000 fbb0 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80094f8: f000 fbde bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
RtosThread* instance = reinterpret_cast<RtosThread*>(arg) ;
|
|
80094fc: 687b ldr r3, [r7, #4]
|
|
80094fe: 60fb str r3, [r7, #12]
|
|
instance->loop();
|
|
8009500: 68fb ldr r3, [r7, #12]
|
|
8009502: 681b ldr r3, [r3, #0]
|
|
8009504: 3304 adds r3, #4
|
|
8009506: 681b ldr r3, [r3, #0]
|
|
8009508: 68f8 ldr r0, [r7, #12]
|
|
800950a: 4798 blx r3
|
|
}
|
|
800950c: bf00 nop
|
|
800950e: 3710 adds r7, #16
|
|
8009510: 46bd mov sp, r7
|
|
8009512: bd80 pop {r7, pc}
|
|
8009514: 08012c44 .word 0x08012c44
|
|
8009518: 08012c90 .word 0x08012c90
|
|
|
|
0800951c <_ZN3sta10RtosThread9sysNotifyEm>:
|
|
|
|
osThreadFlagsSet(instance_, flags);
|
|
}
|
|
|
|
void RtosThread::sysNotify(uint32_t flags)
|
|
{
|
|
800951c: b580 push {r7, lr}
|
|
800951e: b084 sub sp, #16
|
|
8009520: af00 add r7, sp, #0
|
|
8009522: 6078 str r0, [r7, #4]
|
|
8009524: 6039 str r1, [r7, #0]
|
|
STA_ASSERT(instance_ != NULL);
|
|
8009526: 687b ldr r3, [r7, #4]
|
|
8009528: 685b ldr r3, [r3, #4]
|
|
800952a: 2b00 cmp r3, #0
|
|
800952c: d106 bne.n 800953c <_ZN3sta10RtosThread9sysNotifyEm+0x20>
|
|
800952e: 2240 movs r2, #64 @ 0x40
|
|
8009530: 4920 ldr r1, [pc, #128] @ (80095b4 <_ZN3sta10RtosThread9sysNotifyEm+0x98>)
|
|
8009532: 4821 ldr r0, [pc, #132] @ (80095b8 <_ZN3sta10RtosThread9sysNotifyEm+0x9c>)
|
|
8009534: f000 fb90 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8009538: f000 fbbe bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
STA_ASSERT_MSG(IS_THREAD_SYS_FLAGS(flags), "Only system flags allowed");
|
|
800953c: 683b ldr r3, [r7, #0]
|
|
800953e: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000
|
|
8009542: 683a ldr r2, [r7, #0]
|
|
8009544: 429a cmp r2, r3
|
|
8009546: d006 beq.n 8009556 <_ZN3sta10RtosThread9sysNotifyEm+0x3a>
|
|
8009548: 2241 movs r2, #65 @ 0x41
|
|
800954a: 491a ldr r1, [pc, #104] @ (80095b4 <_ZN3sta10RtosThread9sysNotifyEm+0x98>)
|
|
800954c: 481b ldr r0, [pc, #108] @ (80095bc <_ZN3sta10RtosThread9sysNotifyEm+0xa0>)
|
|
800954e: f000 fb83 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8009552: f000 fbb1 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
uint32_t rslt = osThreadFlagsSet(instance_, flags);
|
|
8009556: 687b ldr r3, [r7, #4]
|
|
8009558: 685b ldr r3, [r3, #4]
|
|
800955a: 6839 ldr r1, [r7, #0]
|
|
800955c: 4618 mov r0, r3
|
|
800955e: f001 faff bl 800ab60 <osThreadFlagsSet>
|
|
8009562: 60f8 str r0, [r7, #12]
|
|
|
|
STA_ASSERT_MSG(rslt != osFlagsErrorUnknown, "Unknown thread flag error.");
|
|
8009564: 68fb ldr r3, [r7, #12]
|
|
8009566: f1b3 3fff cmp.w r3, #4294967295
|
|
800956a: d106 bne.n 800957a <_ZN3sta10RtosThread9sysNotifyEm+0x5e>
|
|
800956c: 2245 movs r2, #69 @ 0x45
|
|
800956e: 4911 ldr r1, [pc, #68] @ (80095b4 <_ZN3sta10RtosThread9sysNotifyEm+0x98>)
|
|
8009570: 4813 ldr r0, [pc, #76] @ (80095c0 <_ZN3sta10RtosThread9sysNotifyEm+0xa4>)
|
|
8009572: f000 fb71 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8009576: f000 fb9f bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
STA_ASSERT_MSG(rslt != osFlagsErrorParameter, "Parameter thread_id is not a valid thread or flags has highest bit set.");
|
|
800957a: 68fb ldr r3, [r7, #12]
|
|
800957c: f113 0f04 cmn.w r3, #4
|
|
8009580: d106 bne.n 8009590 <_ZN3sta10RtosThread9sysNotifyEm+0x74>
|
|
8009582: 2246 movs r2, #70 @ 0x46
|
|
8009584: 490b ldr r1, [pc, #44] @ (80095b4 <_ZN3sta10RtosThread9sysNotifyEm+0x98>)
|
|
8009586: 480f ldr r0, [pc, #60] @ (80095c4 <_ZN3sta10RtosThread9sysNotifyEm+0xa8>)
|
|
8009588: f000 fb66 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800958c: f000 fb94 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
STA_ASSERT_MSG(rslt != osFlagsErrorResource, "The thread is in invalid state.");
|
|
8009590: 68fb ldr r3, [r7, #12]
|
|
8009592: f113 0f03 cmn.w r3, #3
|
|
8009596: d107 bne.n 80095a8 <_ZN3sta10RtosThread9sysNotifyEm+0x8c>
|
|
8009598: 2247 movs r2, #71 @ 0x47
|
|
800959a: 4906 ldr r1, [pc, #24] @ (80095b4 <_ZN3sta10RtosThread9sysNotifyEm+0x98>)
|
|
800959c: 480a ldr r0, [pc, #40] @ (80095c8 <_ZN3sta10RtosThread9sysNotifyEm+0xac>)
|
|
800959e: f000 fb5b bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80095a2: f000 fb89 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
80095a6: e000 b.n 80095aa <_ZN3sta10RtosThread9sysNotifyEm+0x8e>
|
|
}
|
|
80095a8: bf00 nop
|
|
80095aa: bf00 nop
|
|
80095ac: 3710 adds r7, #16
|
|
80095ae: 46bd mov sp, r7
|
|
80095b0: bd80 pop {r7, pc}
|
|
80095b2: bf00 nop
|
|
80095b4: 08012c44 .word 0x08012c44
|
|
80095b8: 08012c7c .word 0x08012c7c
|
|
80095bc: 08012cd8 .word 0x08012cd8
|
|
80095c0: 08012cf4 .word 0x08012cf4
|
|
80095c4: 08012d10 .word 0x08012d10
|
|
80095c8: 08012d58 .word 0x08012d58
|
|
|
|
080095cc <_ZN3sta10RtosThread4waitEm>:
|
|
|
|
uint32_t RtosThread::wait(uint32_t flags)
|
|
{
|
|
80095cc: b580 push {r7, lr}
|
|
80095ce: b082 sub sp, #8
|
|
80095d0: af00 add r7, sp, #0
|
|
80095d2: 6078 str r0, [r7, #4]
|
|
80095d4: 6039 str r1, [r7, #0]
|
|
// Make sure that the calling thread is this thread. If not, the
|
|
// developer very likely has made a mistake.
|
|
STA_ASSERT(osThreadGetId() == instance_);
|
|
80095d6: f001 fab0 bl 800ab3a <osThreadGetId>
|
|
80095da: 4602 mov r2, r0
|
|
80095dc: 687b ldr r3, [r7, #4]
|
|
80095de: 685b ldr r3, [r3, #4]
|
|
80095e0: 429a cmp r2, r3
|
|
80095e2: d006 beq.n 80095f2 <_ZN3sta10RtosThread4waitEm+0x26>
|
|
80095e4: 224e movs r2, #78 @ 0x4e
|
|
80095e6: 4908 ldr r1, [pc, #32] @ (8009608 <_ZN3sta10RtosThread4waitEm+0x3c>)
|
|
80095e8: 4808 ldr r0, [pc, #32] @ (800960c <_ZN3sta10RtosThread4waitEm+0x40>)
|
|
80095ea: f000 fb35 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80095ee: f000 fb63 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
return osThreadFlagsWait(flags, osFlagsWaitAny, osWaitForever);
|
|
80095f2: f04f 32ff mov.w r2, #4294967295
|
|
80095f6: 2100 movs r1, #0
|
|
80095f8: 6838 ldr r0, [r7, #0]
|
|
80095fa: f001 faff bl 800abfc <osThreadFlagsWait>
|
|
80095fe: 4603 mov r3, r0
|
|
}
|
|
8009600: 4618 mov r0, r3
|
|
8009602: 3708 adds r7, #8
|
|
8009604: 46bd mov sp, r7
|
|
8009606: bd80 pop {r7, pc}
|
|
8009608: 08012c44 .word 0x08012c44
|
|
800960c: 08012ca0 .word 0x08012ca0
|
|
|
|
08009610 <_ZNKSt14_Function_base8_M_emptyEv>:
|
|
bool _M_empty() const { return !_M_manager; }
|
|
8009610: b480 push {r7}
|
|
8009612: b083 sub sp, #12
|
|
8009614: af00 add r7, sp, #0
|
|
8009616: 6078 str r0, [r7, #4]
|
|
8009618: 687b ldr r3, [r7, #4]
|
|
800961a: 689b ldr r3, [r3, #8]
|
|
800961c: 2b00 cmp r3, #0
|
|
800961e: bf0c ite eq
|
|
8009620: 2301 moveq r3, #1
|
|
8009622: 2300 movne r3, #0
|
|
8009624: b2db uxtb r3, r3
|
|
8009626: 4618 mov r0, r3
|
|
8009628: 370c adds r7, #12
|
|
800962a: 46bd mov sp, r7
|
|
800962c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009630: 4770 bx lr
|
|
...
|
|
|
|
08009634 <_ZN3sta5TimerC1Ev>:
|
|
/**
|
|
* @brief Interface for timer objects.
|
|
*
|
|
* @ingroup sta_core
|
|
*/
|
|
class Timer
|
|
8009634: b480 push {r7}
|
|
8009636: b083 sub sp, #12
|
|
8009638: af00 add r7, sp, #0
|
|
800963a: 6078 str r0, [r7, #4]
|
|
800963c: 4a04 ldr r2, [pc, #16] @ (8009650 <_ZN3sta5TimerC1Ev+0x1c>)
|
|
800963e: 687b ldr r3, [r7, #4]
|
|
8009640: 601a str r2, [r3, #0]
|
|
8009642: 687b ldr r3, [r7, #4]
|
|
8009644: 4618 mov r0, r3
|
|
8009646: 370c adds r7, #12
|
|
8009648: 46bd mov sp, r7
|
|
800964a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800964e: 4770 bx lr
|
|
8009650: 080131bc .word 0x080131bc
|
|
|
|
08009654 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b>:
|
|
#include <sta/debug/assert.hpp>
|
|
|
|
#include "cmsis_os2.h"
|
|
|
|
namespace sta {
|
|
RtosTimer::RtosTimer(std::function<void(void*)> callback, void *arg, bool repeating /*= false */)
|
|
8009654: b580 push {r7, lr}
|
|
8009656: b086 sub sp, #24
|
|
8009658: af00 add r7, sp, #0
|
|
800965a: 60f8 str r0, [r7, #12]
|
|
800965c: 60b9 str r1, [r7, #8]
|
|
800965e: 607a str r2, [r7, #4]
|
|
8009660: 70fb strb r3, [r7, #3]
|
|
: timer_id_{NULL},
|
|
timer_attr_{.name="Timer", .attr_bits=repeating ? osTimerPeriodic : osTimerOnce},
|
|
callback_{callback},
|
|
callbackArg_{arg},
|
|
running_{false}
|
|
8009662: 68fb ldr r3, [r7, #12]
|
|
8009664: 4618 mov r0, r3
|
|
8009666: f7ff ffe5 bl 8009634 <_ZN3sta5TimerC1Ev>
|
|
800966a: 4a23 ldr r2, [pc, #140] @ (80096f8 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0xa4>)
|
|
800966c: 68fb ldr r3, [r7, #12]
|
|
800966e: 601a str r2, [r3, #0]
|
|
: timer_id_{NULL},
|
|
8009670: 68fb ldr r3, [r7, #12]
|
|
8009672: 2200 movs r2, #0
|
|
8009674: 605a str r2, [r3, #4]
|
|
timer_attr_{.name="Timer", .attr_bits=repeating ? osTimerPeriodic : osTimerOnce},
|
|
8009676: 68fb ldr r3, [r7, #12]
|
|
8009678: 3308 adds r3, #8
|
|
800967a: 2200 movs r2, #0
|
|
800967c: 601a str r2, [r3, #0]
|
|
800967e: 605a str r2, [r3, #4]
|
|
8009680: 609a str r2, [r3, #8]
|
|
8009682: 60da str r2, [r3, #12]
|
|
8009684: 68fb ldr r3, [r7, #12]
|
|
8009686: 4a1d ldr r2, [pc, #116] @ (80096fc <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0xa8>)
|
|
8009688: 609a str r2, [r3, #8]
|
|
800968a: 78fb ldrb r3, [r7, #3]
|
|
800968c: 2b00 cmp r3, #0
|
|
800968e: d001 beq.n 8009694 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0x40>
|
|
8009690: 2201 movs r2, #1
|
|
8009692: e000 b.n 8009696 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0x42>
|
|
8009694: 2200 movs r2, #0
|
|
8009696: 68fb ldr r3, [r7, #12]
|
|
8009698: 60da str r2, [r3, #12]
|
|
callback_{callback},
|
|
800969a: 68fb ldr r3, [r7, #12]
|
|
800969c: 3318 adds r3, #24
|
|
800969e: 68b9 ldr r1, [r7, #8]
|
|
80096a0: 4618 mov r0, r3
|
|
80096a2: f000 f8dc bl 800985e <_ZNSt8functionIFvPvEEC1ERKS2_>
|
|
callbackArg_{arg},
|
|
80096a6: 68fb ldr r3, [r7, #12]
|
|
80096a8: 687a ldr r2, [r7, #4]
|
|
80096aa: 629a str r2, [r3, #40] @ 0x28
|
|
running_{false}
|
|
80096ac: 68fb ldr r3, [r7, #12]
|
|
80096ae: 2200 movs r2, #0
|
|
80096b0: f883 202c strb.w r2, [r3, #44] @ 0x2c
|
|
{
|
|
osTimerType_t type = repeating ? osTimerPeriodic : osTimerOnce;
|
|
80096b4: 78fb ldrb r3, [r7, #3]
|
|
80096b6: 2b00 cmp r3, #0
|
|
80096b8: d001 beq.n 80096be <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0x6a>
|
|
80096ba: 2301 movs r3, #1
|
|
80096bc: e000 b.n 80096c0 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0x6c>
|
|
80096be: 2300 movs r3, #0
|
|
80096c0: 75fb strb r3, [r7, #23]
|
|
|
|
// Pass an anonymous function as the callback which will invoke the currently registered callback.
|
|
timer_id_ = osTimerNew(timeoutHandler, type, this, &timer_attr_);
|
|
80096c2: 68fb ldr r3, [r7, #12]
|
|
80096c4: 3308 adds r3, #8
|
|
80096c6: 7df9 ldrb r1, [r7, #23]
|
|
80096c8: 68fa ldr r2, [r7, #12]
|
|
80096ca: 480d ldr r0, [pc, #52] @ (8009700 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0xac>)
|
|
80096cc: f001 fb74 bl 800adb8 <osTimerNew>
|
|
80096d0: 4602 mov r2, r0
|
|
80096d2: 68fb ldr r3, [r7, #12]
|
|
80096d4: 605a str r2, [r3, #4]
|
|
|
|
STA_ASSERT_MSG(timer_id_ != NULL, "Failed to create timer!");
|
|
80096d6: 68fb ldr r3, [r7, #12]
|
|
80096d8: 685b ldr r3, [r3, #4]
|
|
80096da: 2b00 cmp r3, #0
|
|
80096dc: d106 bne.n 80096ec <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0x98>
|
|
80096de: 2214 movs r2, #20
|
|
80096e0: 4908 ldr r1, [pc, #32] @ (8009704 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0xb0>)
|
|
80096e2: 4809 ldr r0, [pc, #36] @ (8009708 <_ZN3sta9RtosTimerC1ESt8functionIFvPvEES2_b+0xb4>)
|
|
80096e4: f000 fab8 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
80096e8: f000 fae6 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
80096ec: 68fb ldr r3, [r7, #12]
|
|
80096ee: 4618 mov r0, r3
|
|
80096f0: 3718 adds r7, #24
|
|
80096f2: 46bd mov sp, r7
|
|
80096f4: bd80 pop {r7, pc}
|
|
80096f6: bf00 nop
|
|
80096f8: 080131a8 .word 0x080131a8
|
|
80096fc: 08012d98 .word 0x08012d98
|
|
8009700: 08009823 .word 0x08009823
|
|
8009704: 08012da0 .word 0x08012da0
|
|
8009708: 08012dc4 .word 0x08012dc4
|
|
|
|
0800970c <_ZN3sta9RtosTimerD1Ev>:
|
|
|
|
RtosTimer::RtosTimer()
|
|
: RtosTimer([](void *){}, NULL)
|
|
{}
|
|
|
|
RtosTimer::~RtosTimer()
|
|
800970c: b580 push {r7, lr}
|
|
800970e: b082 sub sp, #8
|
|
8009710: af00 add r7, sp, #0
|
|
8009712: 6078 str r0, [r7, #4]
|
|
8009714: 4a0d ldr r2, [pc, #52] @ (800974c <_ZN3sta9RtosTimerD1Ev+0x40>)
|
|
8009716: 687b ldr r3, [r7, #4]
|
|
8009718: 601a str r2, [r3, #0]
|
|
{
|
|
if (isRunning()) stop();
|
|
800971a: 6878 ldr r0, [r7, #4]
|
|
800971c: f000 f86e bl 80097fc <_ZN3sta9RtosTimer9isRunningEv>
|
|
8009720: 4603 mov r3, r0
|
|
8009722: 2b00 cmp r3, #0
|
|
8009724: d002 beq.n 800972c <_ZN3sta9RtosTimerD1Ev+0x20>
|
|
8009726: 6878 ldr r0, [r7, #4]
|
|
8009728: f000 f848 bl 80097bc <_ZN3sta9RtosTimer4stopEv>
|
|
|
|
osTimerDelete(timer_id_);
|
|
800972c: 687b ldr r3, [r7, #4]
|
|
800972e: 685b ldr r3, [r3, #4]
|
|
8009730: 4618 mov r0, r3
|
|
8009732: f001 fc3e bl 800afb2 <osTimerDelete>
|
|
}
|
|
8009736: 687b ldr r3, [r7, #4]
|
|
8009738: 3318 adds r3, #24
|
|
800973a: 4618 mov r0, r3
|
|
800973c: f7fc ff02 bl 8006544 <_ZNSt8functionIFvPvEED1Ev>
|
|
8009740: 687b ldr r3, [r7, #4]
|
|
8009742: 4618 mov r0, r3
|
|
8009744: 3708 adds r7, #8
|
|
8009746: 46bd mov sp, r7
|
|
8009748: bd80 pop {r7, pc}
|
|
800974a: bf00 nop
|
|
800974c: 080131a8 .word 0x080131a8
|
|
|
|
08009750 <_ZN3sta9RtosTimer11setCallbackESt8functionIFvPvEES2_>:
|
|
|
|
void RtosTimer::setCallback(std::function<void(void*)> callback, void *arg)
|
|
{
|
|
8009750: b580 push {r7, lr}
|
|
8009752: b084 sub sp, #16
|
|
8009754: af00 add r7, sp, #0
|
|
8009756: 60f8 str r0, [r7, #12]
|
|
8009758: 60b9 str r1, [r7, #8]
|
|
800975a: 607a str r2, [r7, #4]
|
|
callback_ = callback;
|
|
800975c: 68fb ldr r3, [r7, #12]
|
|
800975e: 3318 adds r3, #24
|
|
8009760: 68b9 ldr r1, [r7, #8]
|
|
8009762: 4618 mov r0, r3
|
|
8009764: f000 f8a6 bl 80098b4 <_ZNSt8functionIFvPvEEaSERKS2_>
|
|
callbackArg_ = arg;
|
|
8009768: 68fb ldr r3, [r7, #12]
|
|
800976a: 687a ldr r2, [r7, #4]
|
|
800976c: 629a str r2, [r3, #40] @ 0x28
|
|
}
|
|
800976e: bf00 nop
|
|
8009770: 3710 adds r7, #16
|
|
8009772: 46bd mov sp, r7
|
|
8009774: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08009778 <_ZN3sta9RtosTimer5startEm>:
|
|
|
|
void RtosTimer::start(uint32_t millis)
|
|
{
|
|
8009778: b580 push {r7, lr}
|
|
800977a: b084 sub sp, #16
|
|
800977c: af00 add r7, sp, #0
|
|
800977e: 6078 str r0, [r7, #4]
|
|
8009780: 6039 str r1, [r7, #0]
|
|
osStatus_t status = osTimerStart(timer_id_, millis);
|
|
8009782: 687b ldr r3, [r7, #4]
|
|
8009784: 685b ldr r3, [r3, #4]
|
|
8009786: 6839 ldr r1, [r7, #0]
|
|
8009788: 4618 mov r0, r3
|
|
800978a: f001 fb91 bl 800aeb0 <osTimerStart>
|
|
800978e: 60f8 str r0, [r7, #12]
|
|
|
|
if (status != osOK)
|
|
8009790: 68fb ldr r3, [r7, #12]
|
|
8009792: 2b00 cmp r3, #0
|
|
8009794: d006 beq.n 80097a4 <_ZN3sta9RtosTimer5startEm+0x2c>
|
|
{
|
|
STA_DEBUG_PRINTLN("Timer start failed");
|
|
8009796: 4b07 ldr r3, [pc, #28] @ (80097b4 <_ZN3sta9RtosTimer5startEm+0x3c>)
|
|
8009798: 681b ldr r3, [r3, #0]
|
|
800979a: 4907 ldr r1, [pc, #28] @ (80097b8 <_ZN3sta9RtosTimer5startEm+0x40>)
|
|
800979c: 4618 mov r0, r3
|
|
800979e: f000 fb39 bl 8009e14 <_ZN3sta9Printable7printlnEPKc>
|
|
return;
|
|
80097a2: e003 b.n 80097ac <_ZN3sta9RtosTimer5startEm+0x34>
|
|
}
|
|
|
|
running_ = true;
|
|
80097a4: 687b ldr r3, [r7, #4]
|
|
80097a6: 2201 movs r2, #1
|
|
80097a8: f883 202c strb.w r2, [r3, #44] @ 0x2c
|
|
}
|
|
80097ac: 3710 adds r7, #16
|
|
80097ae: 46bd mov sp, r7
|
|
80097b0: bd80 pop {r7, pc}
|
|
80097b2: bf00 nop
|
|
80097b4: 200002f8 .word 0x200002f8
|
|
80097b8: 08012ddc .word 0x08012ddc
|
|
|
|
080097bc <_ZN3sta9RtosTimer4stopEv>:
|
|
|
|
void RtosTimer::stop()
|
|
{
|
|
80097bc: b580 push {r7, lr}
|
|
80097be: b084 sub sp, #16
|
|
80097c0: af00 add r7, sp, #0
|
|
80097c2: 6078 str r0, [r7, #4]
|
|
osStatus_t status = osTimerStop(timer_id_);
|
|
80097c4: 687b ldr r3, [r7, #4]
|
|
80097c6: 685b ldr r3, [r3, #4]
|
|
80097c8: 4618 mov r0, r3
|
|
80097ca: f001 fb9f bl 800af0c <osTimerStop>
|
|
80097ce: 60f8 str r0, [r7, #12]
|
|
|
|
if (status != osOK)
|
|
80097d0: 68fb ldr r3, [r7, #12]
|
|
80097d2: 2b00 cmp r3, #0
|
|
80097d4: d006 beq.n 80097e4 <_ZN3sta9RtosTimer4stopEv+0x28>
|
|
{
|
|
STA_DEBUG_PRINTLN("Timer stop failed");
|
|
80097d6: 4b07 ldr r3, [pc, #28] @ (80097f4 <_ZN3sta9RtosTimer4stopEv+0x38>)
|
|
80097d8: 681b ldr r3, [r3, #0]
|
|
80097da: 4907 ldr r1, [pc, #28] @ (80097f8 <_ZN3sta9RtosTimer4stopEv+0x3c>)
|
|
80097dc: 4618 mov r0, r3
|
|
80097de: f000 fb19 bl 8009e14 <_ZN3sta9Printable7printlnEPKc>
|
|
return;
|
|
80097e2: e003 b.n 80097ec <_ZN3sta9RtosTimer4stopEv+0x30>
|
|
}
|
|
|
|
running_ = false;
|
|
80097e4: 687b ldr r3, [r7, #4]
|
|
80097e6: 2200 movs r2, #0
|
|
80097e8: f883 202c strb.w r2, [r3, #44] @ 0x2c
|
|
}
|
|
80097ec: 3710 adds r7, #16
|
|
80097ee: 46bd mov sp, r7
|
|
80097f0: bd80 pop {r7, pc}
|
|
80097f2: bf00 nop
|
|
80097f4: 200002f8 .word 0x200002f8
|
|
80097f8: 08012df0 .word 0x08012df0
|
|
|
|
080097fc <_ZN3sta9RtosTimer9isRunningEv>:
|
|
|
|
bool RtosTimer::isRunning()
|
|
{
|
|
80097fc: b580 push {r7, lr}
|
|
80097fe: b082 sub sp, #8
|
|
8009800: af00 add r7, sp, #0
|
|
8009802: 6078 str r0, [r7, #4]
|
|
return osTimerIsRunning(timer_id_);
|
|
8009804: 687b ldr r3, [r7, #4]
|
|
8009806: 685b ldr r3, [r3, #4]
|
|
8009808: 4618 mov r0, r3
|
|
800980a: f001 fbb6 bl 800af7a <osTimerIsRunning>
|
|
800980e: 4603 mov r3, r0
|
|
8009810: 2b00 cmp r3, #0
|
|
8009812: bf14 ite ne
|
|
8009814: 2301 movne r3, #1
|
|
8009816: 2300 moveq r3, #0
|
|
8009818: b2db uxtb r3, r3
|
|
}
|
|
800981a: 4618 mov r0, r3
|
|
800981c: 3708 adds r7, #8
|
|
800981e: 46bd mov sp, r7
|
|
8009820: bd80 pop {r7, pc}
|
|
|
|
08009822 <_ZN3sta9RtosTimer14timeoutHandlerEPv>:
|
|
|
|
void RtosTimer::timeoutHandler(void* arg)
|
|
{
|
|
8009822: b580 push {r7, lr}
|
|
8009824: b084 sub sp, #16
|
|
8009826: af00 add r7, sp, #0
|
|
8009828: 6078 str r0, [r7, #4]
|
|
RtosTimer* timer = static_cast<RtosTimer*>(arg);
|
|
800982a: 687b ldr r3, [r7, #4]
|
|
800982c: 60fb str r3, [r7, #12]
|
|
timer->running_ = timer->isRunning();
|
|
800982e: 68fb ldr r3, [r7, #12]
|
|
8009830: 681b ldr r3, [r3, #0]
|
|
8009832: 3308 adds r3, #8
|
|
8009834: 681b ldr r3, [r3, #0]
|
|
8009836: 68f8 ldr r0, [r7, #12]
|
|
8009838: 4798 blx r3
|
|
800983a: 4603 mov r3, r0
|
|
800983c: 461a mov r2, r3
|
|
800983e: 68fb ldr r3, [r7, #12]
|
|
8009840: f883 202c strb.w r2, [r3, #44] @ 0x2c
|
|
timer->callback_(timer->callbackArg_);
|
|
8009844: 68fb ldr r3, [r7, #12]
|
|
8009846: f103 0218 add.w r2, r3, #24
|
|
800984a: 68fb ldr r3, [r7, #12]
|
|
800984c: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
800984e: 4619 mov r1, r3
|
|
8009850: 4610 mov r0, r2
|
|
8009852: f000 f84a bl 80098ea <_ZNKSt8functionIFvPvEEclES0_>
|
|
}
|
|
8009856: bf00 nop
|
|
8009858: 3710 adds r7, #16
|
|
800985a: 46bd mov sp, r7
|
|
800985c: bd80 pop {r7, pc}
|
|
|
|
0800985e <_ZNSt8functionIFvPvEEC1ERKS2_>:
|
|
function(const function& __x)
|
|
800985e: b580 push {r7, lr}
|
|
8009860: b082 sub sp, #8
|
|
8009862: af00 add r7, sp, #0
|
|
8009864: 6078 str r0, [r7, #4]
|
|
8009866: 6039 str r1, [r7, #0]
|
|
: _Function_base()
|
|
8009868: 687b ldr r3, [r7, #4]
|
|
800986a: 461a mov r2, r3
|
|
800986c: 2300 movs r3, #0
|
|
800986e: 6013 str r3, [r2, #0]
|
|
8009870: 6053 str r3, [r2, #4]
|
|
8009872: 6093 str r3, [r2, #8]
|
|
8009874: 687b ldr r3, [r7, #4]
|
|
8009876: 4618 mov r0, r3
|
|
8009878: f7fd f9c2 bl 8006c00 <_ZNSt14_Function_baseC1Ev>
|
|
800987c: 687b ldr r3, [r7, #4]
|
|
800987e: 2200 movs r2, #0
|
|
8009880: 60da str r2, [r3, #12]
|
|
if (static_cast<bool>(__x))
|
|
8009882: 6838 ldr r0, [r7, #0]
|
|
8009884: f000 f84e bl 8009924 <_ZNKSt8functionIFvPvEEcvbEv>
|
|
8009888: 4603 mov r3, r0
|
|
800988a: 2b00 cmp r3, #0
|
|
800988c: d00d beq.n 80098aa <_ZNSt8functionIFvPvEEC1ERKS2_+0x4c>
|
|
__x._M_manager(_M_functor, __x._M_functor, __clone_functor);
|
|
800988e: 683b ldr r3, [r7, #0]
|
|
8009890: 689b ldr r3, [r3, #8]
|
|
8009892: 6878 ldr r0, [r7, #4]
|
|
8009894: 6839 ldr r1, [r7, #0]
|
|
8009896: 2202 movs r2, #2
|
|
8009898: 4798 blx r3
|
|
_M_invoker = __x._M_invoker;
|
|
800989a: 683b ldr r3, [r7, #0]
|
|
800989c: 68da ldr r2, [r3, #12]
|
|
800989e: 687b ldr r3, [r7, #4]
|
|
80098a0: 60da str r2, [r3, #12]
|
|
_M_manager = __x._M_manager;
|
|
80098a2: 683b ldr r3, [r7, #0]
|
|
80098a4: 689a ldr r2, [r3, #8]
|
|
80098a6: 687b ldr r3, [r7, #4]
|
|
80098a8: 609a str r2, [r3, #8]
|
|
}
|
|
80098aa: 687b ldr r3, [r7, #4]
|
|
80098ac: 4618 mov r0, r3
|
|
80098ae: 3708 adds r7, #8
|
|
80098b0: 46bd mov sp, r7
|
|
80098b2: bd80 pop {r7, pc}
|
|
|
|
080098b4 <_ZNSt8functionIFvPvEEaSERKS2_>:
|
|
*
|
|
* If `__x` targets a function pointer or a reference to a function
|
|
* object, then this operation will not throw an exception.
|
|
*/
|
|
function&
|
|
operator=(const function& __x)
|
|
80098b4: b580 push {r7, lr}
|
|
80098b6: b086 sub sp, #24
|
|
80098b8: af00 add r7, sp, #0
|
|
80098ba: 6078 str r0, [r7, #4]
|
|
80098bc: 6039 str r1, [r7, #0]
|
|
{
|
|
function(__x).swap(*this);
|
|
80098be: f107 0308 add.w r3, r7, #8
|
|
80098c2: 6839 ldr r1, [r7, #0]
|
|
80098c4: 4618 mov r0, r3
|
|
80098c6: f7ff ffca bl 800985e <_ZNSt8functionIFvPvEEC1ERKS2_>
|
|
80098ca: f107 0308 add.w r3, r7, #8
|
|
80098ce: 6879 ldr r1, [r7, #4]
|
|
80098d0: 4618 mov r0, r3
|
|
80098d2: f000 f837 bl 8009944 <_ZNSt8functionIFvPvEE4swapERS2_>
|
|
80098d6: f107 0308 add.w r3, r7, #8
|
|
80098da: 4618 mov r0, r3
|
|
80098dc: f7fc fe32 bl 8006544 <_ZNSt8functionIFvPvEED1Ev>
|
|
return *this;
|
|
80098e0: 687b ldr r3, [r7, #4]
|
|
}
|
|
80098e2: 4618 mov r0, r3
|
|
80098e4: 3718 adds r7, #24
|
|
80098e6: 46bd mov sp, r7
|
|
80098e8: bd80 pop {r7, pc}
|
|
|
|
080098ea <_ZNKSt8functionIFvPvEEclES0_>:
|
|
*
|
|
* The function call operator invokes the target function object
|
|
* stored by `this`.
|
|
*/
|
|
_Res
|
|
operator()(_ArgTypes... __args) const
|
|
80098ea: b5b0 push {r4, r5, r7, lr}
|
|
80098ec: b082 sub sp, #8
|
|
80098ee: af00 add r7, sp, #0
|
|
80098f0: 6078 str r0, [r7, #4]
|
|
80098f2: 6039 str r1, [r7, #0]
|
|
{
|
|
if (_M_empty())
|
|
80098f4: 687b ldr r3, [r7, #4]
|
|
80098f6: 4618 mov r0, r3
|
|
80098f8: f7ff fe8a bl 8009610 <_ZNKSt14_Function_base8_M_emptyEv>
|
|
80098fc: 4603 mov r3, r0
|
|
80098fe: 2b00 cmp r3, #0
|
|
8009900: d001 beq.n 8009906 <_ZNKSt8functionIFvPvEEclES0_+0x1c>
|
|
__throw_bad_function_call();
|
|
8009902: f005 ffee bl 800f8e2 <_ZSt25__throw_bad_function_callv>
|
|
return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...);
|
|
8009906: 687b ldr r3, [r7, #4]
|
|
8009908: 68dc ldr r4, [r3, #12]
|
|
800990a: 687d ldr r5, [r7, #4]
|
|
800990c: 463b mov r3, r7
|
|
800990e: 4618 mov r0, r3
|
|
8009910: f7fd ffc0 bl 8007894 <_ZSt7forwardIPvEOT_RNSt16remove_referenceIS1_E4typeE>
|
|
8009914: 4603 mov r3, r0
|
|
8009916: 4619 mov r1, r3
|
|
8009918: 4628 mov r0, r5
|
|
800991a: 47a0 blx r4
|
|
800991c: bf00 nop
|
|
}
|
|
800991e: 3708 adds r7, #8
|
|
8009920: 46bd mov sp, r7
|
|
8009922: bdb0 pop {r4, r5, r7, pc}
|
|
|
|
08009924 <_ZNKSt8functionIFvPvEEcvbEv>:
|
|
explicit operator bool() const noexcept
|
|
8009924: b580 push {r7, lr}
|
|
8009926: b082 sub sp, #8
|
|
8009928: af00 add r7, sp, #0
|
|
800992a: 6078 str r0, [r7, #4]
|
|
{ return !_M_empty(); }
|
|
800992c: 687b ldr r3, [r7, #4]
|
|
800992e: 4618 mov r0, r3
|
|
8009930: f7ff fe6e bl 8009610 <_ZNKSt14_Function_base8_M_emptyEv>
|
|
8009934: 4603 mov r3, r0
|
|
8009936: f083 0301 eor.w r3, r3, #1
|
|
800993a: b2db uxtb r3, r3
|
|
800993c: 4618 mov r0, r3
|
|
800993e: 3708 adds r7, #8
|
|
8009940: 46bd mov sp, r7
|
|
8009942: bd80 pop {r7, pc}
|
|
|
|
08009944 <_ZNSt8functionIFvPvEE4swapERS2_>:
|
|
void swap(function& __x) noexcept
|
|
8009944: b580 push {r7, lr}
|
|
8009946: b082 sub sp, #8
|
|
8009948: af00 add r7, sp, #0
|
|
800994a: 6078 str r0, [r7, #4]
|
|
800994c: 6039 str r1, [r7, #0]
|
|
std::swap(_M_functor, __x._M_functor);
|
|
800994e: 687b ldr r3, [r7, #4]
|
|
8009950: 683a ldr r2, [r7, #0]
|
|
8009952: 4611 mov r1, r2
|
|
8009954: 4618 mov r0, r3
|
|
8009956: f000 f816 bl 8009986 <_ZSt4swapISt9_Any_dataENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SF_>
|
|
std::swap(_M_manager, __x._M_manager);
|
|
800995a: 687b ldr r3, [r7, #4]
|
|
800995c: f103 0208 add.w r2, r3, #8
|
|
8009960: 683b ldr r3, [r7, #0]
|
|
8009962: 3308 adds r3, #8
|
|
8009964: 4619 mov r1, r3
|
|
8009966: 4610 mov r0, r2
|
|
8009968: f000 f834 bl 80099d4 <_ZSt4swapIPFbRSt9_Any_dataRKS0_St18_Manager_operationEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_>
|
|
std::swap(_M_invoker, __x._M_invoker);
|
|
800996c: 687b ldr r3, [r7, #4]
|
|
800996e: f103 020c add.w r2, r3, #12
|
|
8009972: 683b ldr r3, [r7, #0]
|
|
8009974: 330c adds r3, #12
|
|
8009976: 4619 mov r1, r3
|
|
8009978: 4610 mov r0, r2
|
|
800997a: f000 f84a bl 8009a12 <_ZSt4swapIPFvRKSt9_Any_dataOPvEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_>
|
|
}
|
|
800997e: bf00 nop
|
|
8009980: 3708 adds r7, #8
|
|
8009982: 46bd mov sp, r7
|
|
8009984: bd80 pop {r7, pc}
|
|
|
|
08009986 <_ZSt4swapISt9_Any_dataENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SF_>:
|
|
is_move_constructible<_Tp>,
|
|
is_move_assignable<_Tp>>::value>::type
|
|
#else
|
|
void
|
|
#endif
|
|
swap(_Tp& __a, _Tp& __b)
|
|
8009986: b580 push {r7, lr}
|
|
8009988: b084 sub sp, #16
|
|
800998a: af00 add r7, sp, #0
|
|
800998c: 6078 str r0, [r7, #4]
|
|
800998e: 6039 str r1, [r7, #0]
|
|
{
|
|
#if __cplusplus < 201103L
|
|
// concept requirements
|
|
__glibcxx_function_requires(_SGIAssignableConcept<_Tp>)
|
|
#endif
|
|
_Tp __tmp = _GLIBCXX_MOVE(__a);
|
|
8009990: 6878 ldr r0, [r7, #4]
|
|
8009992: f000 f85d bl 8009a50 <_ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_>
|
|
8009996: 4602 mov r2, r0
|
|
8009998: f107 0308 add.w r3, r7, #8
|
|
800999c: e892 0003 ldmia.w r2, {r0, r1}
|
|
80099a0: e883 0003 stmia.w r3, {r0, r1}
|
|
__a = _GLIBCXX_MOVE(__b);
|
|
80099a4: 6838 ldr r0, [r7, #0]
|
|
80099a6: f000 f853 bl 8009a50 <_ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_>
|
|
80099aa: 4602 mov r2, r0
|
|
80099ac: 687b ldr r3, [r7, #4]
|
|
80099ae: e892 0003 ldmia.w r2, {r0, r1}
|
|
80099b2: e883 0003 stmia.w r3, {r0, r1}
|
|
__b = _GLIBCXX_MOVE(__tmp);
|
|
80099b6: f107 0308 add.w r3, r7, #8
|
|
80099ba: 4618 mov r0, r3
|
|
80099bc: f000 f848 bl 8009a50 <_ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_>
|
|
80099c0: 4602 mov r2, r0
|
|
80099c2: 683b ldr r3, [r7, #0]
|
|
80099c4: e892 0003 ldmia.w r2, {r0, r1}
|
|
80099c8: e883 0003 stmia.w r3, {r0, r1}
|
|
}
|
|
80099cc: bf00 nop
|
|
80099ce: 3710 adds r7, #16
|
|
80099d0: 46bd mov sp, r7
|
|
80099d2: bd80 pop {r7, pc}
|
|
|
|
080099d4 <_ZSt4swapIPFbRSt9_Any_dataRKS0_St18_Manager_operationEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_>:
|
|
swap(_Tp& __a, _Tp& __b)
|
|
80099d4: b580 push {r7, lr}
|
|
80099d6: b084 sub sp, #16
|
|
80099d8: af00 add r7, sp, #0
|
|
80099da: 6078 str r0, [r7, #4]
|
|
80099dc: 6039 str r1, [r7, #0]
|
|
_Tp __tmp = _GLIBCXX_MOVE(__a);
|
|
80099de: 6878 ldr r0, [r7, #4]
|
|
80099e0: f000 f841 bl 8009a66 <_ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
80099e4: 4603 mov r3, r0
|
|
80099e6: 681b ldr r3, [r3, #0]
|
|
80099e8: 60fb str r3, [r7, #12]
|
|
__a = _GLIBCXX_MOVE(__b);
|
|
80099ea: 6838 ldr r0, [r7, #0]
|
|
80099ec: f000 f83b bl 8009a66 <_ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
80099f0: 4603 mov r3, r0
|
|
80099f2: 681a ldr r2, [r3, #0]
|
|
80099f4: 687b ldr r3, [r7, #4]
|
|
80099f6: 601a str r2, [r3, #0]
|
|
__b = _GLIBCXX_MOVE(__tmp);
|
|
80099f8: f107 030c add.w r3, r7, #12
|
|
80099fc: 4618 mov r0, r3
|
|
80099fe: f000 f832 bl 8009a66 <_ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
8009a02: 4603 mov r3, r0
|
|
8009a04: 681a ldr r2, [r3, #0]
|
|
8009a06: 683b ldr r3, [r7, #0]
|
|
8009a08: 601a str r2, [r3, #0]
|
|
}
|
|
8009a0a: bf00 nop
|
|
8009a0c: 3710 adds r7, #16
|
|
8009a0e: 46bd mov sp, r7
|
|
8009a10: bd80 pop {r7, pc}
|
|
|
|
08009a12 <_ZSt4swapIPFvRKSt9_Any_dataOPvEENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleISB_ESt18is_move_assignableISB_EEE5valueEvE4typeERSB_SL_>:
|
|
swap(_Tp& __a, _Tp& __b)
|
|
8009a12: b580 push {r7, lr}
|
|
8009a14: b084 sub sp, #16
|
|
8009a16: af00 add r7, sp, #0
|
|
8009a18: 6078 str r0, [r7, #4]
|
|
8009a1a: 6039 str r1, [r7, #0]
|
|
_Tp __tmp = _GLIBCXX_MOVE(__a);
|
|
8009a1c: 6878 ldr r0, [r7, #4]
|
|
8009a1e: f000 f82d bl 8009a7c <_ZSt4moveIRPFvRKSt9_Any_dataOPvEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
8009a22: 4603 mov r3, r0
|
|
8009a24: 681b ldr r3, [r3, #0]
|
|
8009a26: 60fb str r3, [r7, #12]
|
|
__a = _GLIBCXX_MOVE(__b);
|
|
8009a28: 6838 ldr r0, [r7, #0]
|
|
8009a2a: f000 f827 bl 8009a7c <_ZSt4moveIRPFvRKSt9_Any_dataOPvEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
8009a2e: 4603 mov r3, r0
|
|
8009a30: 681a ldr r2, [r3, #0]
|
|
8009a32: 687b ldr r3, [r7, #4]
|
|
8009a34: 601a str r2, [r3, #0]
|
|
__b = _GLIBCXX_MOVE(__tmp);
|
|
8009a36: f107 030c add.w r3, r7, #12
|
|
8009a3a: 4618 mov r0, r3
|
|
8009a3c: f000 f81e bl 8009a7c <_ZSt4moveIRPFvRKSt9_Any_dataOPvEEONSt16remove_referenceIT_E4typeEOS9_>
|
|
8009a40: 4603 mov r3, r0
|
|
8009a42: 681a ldr r2, [r3, #0]
|
|
8009a44: 683b ldr r3, [r7, #0]
|
|
8009a46: 601a str r2, [r3, #0]
|
|
}
|
|
8009a48: bf00 nop
|
|
8009a4a: 3710 adds r7, #16
|
|
8009a4c: 46bd mov sp, r7
|
|
8009a4e: bd80 pop {r7, pc}
|
|
|
|
08009a50 <_ZSt4moveIRSt9_Any_dataEONSt16remove_referenceIT_E4typeEOS3_>:
|
|
move(_Tp&& __t) noexcept
|
|
8009a50: b480 push {r7}
|
|
8009a52: b083 sub sp, #12
|
|
8009a54: af00 add r7, sp, #0
|
|
8009a56: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8009a58: 687b ldr r3, [r7, #4]
|
|
8009a5a: 4618 mov r0, r3
|
|
8009a5c: 370c adds r7, #12
|
|
8009a5e: 46bd mov sp, r7
|
|
8009a60: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009a64: 4770 bx lr
|
|
|
|
08009a66 <_ZSt4moveIRPFbRSt9_Any_dataRKS0_St18_Manager_operationEEONSt16remove_referenceIT_E4typeEOS9_>:
|
|
move(_Tp&& __t) noexcept
|
|
8009a66: b480 push {r7}
|
|
8009a68: b083 sub sp, #12
|
|
8009a6a: af00 add r7, sp, #0
|
|
8009a6c: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8009a6e: 687b ldr r3, [r7, #4]
|
|
8009a70: 4618 mov r0, r3
|
|
8009a72: 370c adds r7, #12
|
|
8009a74: 46bd mov sp, r7
|
|
8009a76: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009a7a: 4770 bx lr
|
|
|
|
08009a7c <_ZSt4moveIRPFvRKSt9_Any_dataOPvEEONSt16remove_referenceIT_E4typeEOS9_>:
|
|
move(_Tp&& __t) noexcept
|
|
8009a7c: b480 push {r7}
|
|
8009a7e: b083 sub sp, #12
|
|
8009a80: af00 add r7, sp, #0
|
|
8009a82: 6078 str r0, [r7, #4]
|
|
{ return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); }
|
|
8009a84: 687b ldr r3, [r7, #4]
|
|
8009a86: 4618 mov r0, r3
|
|
8009a88: 370c adds r7, #12
|
|
8009a8a: 46bd mov sp, r7
|
|
8009a8c: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009a90: 4770 bx lr
|
|
...
|
|
|
|
08009a94 <_ZN3sta9InterfaceC1EPNS_5MutexE>:
|
|
|
|
#include <sta/debug/assert.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
Interface::Interface(Mutex * mutex)
|
|
8009a94: b580 push {r7, lr}
|
|
8009a96: b082 sub sp, #8
|
|
8009a98: af00 add r7, sp, #0
|
|
8009a9a: 6078 str r0, [r7, #4]
|
|
8009a9c: 6039 str r1, [r7, #0]
|
|
: mutex_{mutex}, acquired_{false}
|
|
8009a9e: 4a0c ldr r2, [pc, #48] @ (8009ad0 <_ZN3sta9InterfaceC1EPNS_5MutexE+0x3c>)
|
|
8009aa0: 687b ldr r3, [r7, #4]
|
|
8009aa2: 601a str r2, [r3, #0]
|
|
8009aa4: 687b ldr r3, [r7, #4]
|
|
8009aa6: 683a ldr r2, [r7, #0]
|
|
8009aa8: 605a str r2, [r3, #4]
|
|
8009aaa: 687b ldr r3, [r7, #4]
|
|
8009aac: 2200 movs r2, #0
|
|
8009aae: 721a strb r2, [r3, #8]
|
|
{
|
|
STA_ASSERT(mutex != nullptr);
|
|
8009ab0: 683b ldr r3, [r7, #0]
|
|
8009ab2: 2b00 cmp r3, #0
|
|
8009ab4: d106 bne.n 8009ac4 <_ZN3sta9InterfaceC1EPNS_5MutexE+0x30>
|
|
8009ab6: 220a movs r2, #10
|
|
8009ab8: 4906 ldr r1, [pc, #24] @ (8009ad4 <_ZN3sta9InterfaceC1EPNS_5MutexE+0x40>)
|
|
8009aba: 4807 ldr r0, [pc, #28] @ (8009ad8 <_ZN3sta9InterfaceC1EPNS_5MutexE+0x44>)
|
|
8009abc: f000 f8cc bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8009ac0: f000 f8fa bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
8009ac4: 687b ldr r3, [r7, #4]
|
|
8009ac6: 4618 mov r0, r3
|
|
8009ac8: 3708 adds r7, #8
|
|
8009aca: 46bd mov sp, r7
|
|
8009acc: bd80 pop {r7, pc}
|
|
8009ace: bf00 nop
|
|
8009ad0: 080131d0 .word 0x080131d0
|
|
8009ad4: 08012e04 .word 0x08012e04
|
|
8009ad8: 08012e2c .word 0x08012e2c
|
|
|
|
08009adc <_ZN3sta9Interface11writeMemoryEhPKhjm>:
|
|
|
|
bool Interface::writeMemory(uint8_t regAddr, const uint8_t * buffer, size_t size, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
8009adc: b590 push {r4, r7, lr}
|
|
8009ade: b085 sub sp, #20
|
|
8009ae0: af00 add r7, sp, #0
|
|
8009ae2: 60f8 str r0, [r7, #12]
|
|
8009ae4: 607a str r2, [r7, #4]
|
|
8009ae6: 603b str r3, [r7, #0]
|
|
8009ae8: 460b mov r3, r1
|
|
8009aea: 72fb strb r3, [r7, #11]
|
|
if (!transfer(regAddr, timeout))
|
|
8009aec: 68fb ldr r3, [r7, #12]
|
|
8009aee: 681b ldr r3, [r3, #0]
|
|
8009af0: 681b ldr r3, [r3, #0]
|
|
8009af2: 7af9 ldrb r1, [r7, #11]
|
|
8009af4: 6a3a ldr r2, [r7, #32]
|
|
8009af6: 68f8 ldr r0, [r7, #12]
|
|
8009af8: 4798 blx r3
|
|
8009afa: 4603 mov r3, r0
|
|
8009afc: f083 0301 eor.w r3, r3, #1
|
|
8009b00: b2db uxtb r3, r3
|
|
8009b02: 2b00 cmp r3, #0
|
|
8009b04: d001 beq.n 8009b0a <_ZN3sta9Interface11writeMemoryEhPKhjm+0x2e>
|
|
return false;
|
|
8009b06: 2300 movs r3, #0
|
|
8009b08: e011 b.n 8009b2e <_ZN3sta9Interface11writeMemoryEhPKhjm+0x52>
|
|
|
|
if (!transfer(buffer, size, timeout))
|
|
8009b0a: 68fb ldr r3, [r7, #12]
|
|
8009b0c: 681b ldr r3, [r3, #0]
|
|
8009b0e: 3308 adds r3, #8
|
|
8009b10: 681c ldr r4, [r3, #0]
|
|
8009b12: 6a3b ldr r3, [r7, #32]
|
|
8009b14: 683a ldr r2, [r7, #0]
|
|
8009b16: 6879 ldr r1, [r7, #4]
|
|
8009b18: 68f8 ldr r0, [r7, #12]
|
|
8009b1a: 47a0 blx r4
|
|
8009b1c: 4603 mov r3, r0
|
|
8009b1e: f083 0301 eor.w r3, r3, #1
|
|
8009b22: b2db uxtb r3, r3
|
|
8009b24: 2b00 cmp r3, #0
|
|
8009b26: d001 beq.n 8009b2c <_ZN3sta9Interface11writeMemoryEhPKhjm+0x50>
|
|
return false;
|
|
8009b28: 2300 movs r3, #0
|
|
8009b2a: e000 b.n 8009b2e <_ZN3sta9Interface11writeMemoryEhPKhjm+0x52>
|
|
|
|
return true;
|
|
8009b2c: 2301 movs r3, #1
|
|
}
|
|
8009b2e: 4618 mov r0, r3
|
|
8009b30: 3714 adds r7, #20
|
|
8009b32: 46bd mov sp, r7
|
|
8009b34: bd90 pop {r4, r7, pc}
|
|
|
|
08009b36 <_ZN3sta9Interface10readMemoryEhPhjm>:
|
|
|
|
bool Interface::readMemory(uint8_t regAddr, uint8_t * buffer, size_t size, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
8009b36: b590 push {r4, r7, lr}
|
|
8009b38: b085 sub sp, #20
|
|
8009b3a: af00 add r7, sp, #0
|
|
8009b3c: 60f8 str r0, [r7, #12]
|
|
8009b3e: 607a str r2, [r7, #4]
|
|
8009b40: 603b str r3, [r7, #0]
|
|
8009b42: 460b mov r3, r1
|
|
8009b44: 72fb strb r3, [r7, #11]
|
|
if (!transfer(regAddr, timeout))
|
|
8009b46: 68fb ldr r3, [r7, #12]
|
|
8009b48: 681b ldr r3, [r3, #0]
|
|
8009b4a: 681b ldr r3, [r3, #0]
|
|
8009b4c: 7af9 ldrb r1, [r7, #11]
|
|
8009b4e: 6a3a ldr r2, [r7, #32]
|
|
8009b50: 68f8 ldr r0, [r7, #12]
|
|
8009b52: 4798 blx r3
|
|
8009b54: 4603 mov r3, r0
|
|
8009b56: f083 0301 eor.w r3, r3, #1
|
|
8009b5a: b2db uxtb r3, r3
|
|
8009b5c: 2b00 cmp r3, #0
|
|
8009b5e: d001 beq.n 8009b64 <_ZN3sta9Interface10readMemoryEhPhjm+0x2e>
|
|
return false;
|
|
8009b60: 2300 movs r3, #0
|
|
8009b62: e011 b.n 8009b88 <_ZN3sta9Interface10readMemoryEhPhjm+0x52>
|
|
|
|
if (!receive(buffer, size, timeout))
|
|
8009b64: 68fb ldr r3, [r7, #12]
|
|
8009b66: 681b ldr r3, [r3, #0]
|
|
8009b68: 3310 adds r3, #16
|
|
8009b6a: 681c ldr r4, [r3, #0]
|
|
8009b6c: 6a3b ldr r3, [r7, #32]
|
|
8009b6e: 683a ldr r2, [r7, #0]
|
|
8009b70: 6879 ldr r1, [r7, #4]
|
|
8009b72: 68f8 ldr r0, [r7, #12]
|
|
8009b74: 47a0 blx r4
|
|
8009b76: 4603 mov r3, r0
|
|
8009b78: f083 0301 eor.w r3, r3, #1
|
|
8009b7c: b2db uxtb r3, r3
|
|
8009b7e: 2b00 cmp r3, #0
|
|
8009b80: d001 beq.n 8009b86 <_ZN3sta9Interface10readMemoryEhPhjm+0x50>
|
|
return false;
|
|
8009b82: 2300 movs r3, #0
|
|
8009b84: e000 b.n 8009b88 <_ZN3sta9Interface10readMemoryEhPhjm+0x52>
|
|
|
|
return true;
|
|
8009b86: 2301 movs r3, #1
|
|
}
|
|
8009b88: 4618 mov r0, r3
|
|
8009b8a: 3714 adds r7, #20
|
|
8009b8c: 46bd mov sp, r7
|
|
8009b8e: bd90 pop {r4, r7, pc}
|
|
|
|
08009b90 <_ZN3sta9Interface7acquireEm>:
|
|
|
|
void Interface::acquire(uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
8009b90: b580 push {r7, lr}
|
|
8009b92: b082 sub sp, #8
|
|
8009b94: af00 add r7, sp, #0
|
|
8009b96: 6078 str r0, [r7, #4]
|
|
8009b98: 6039 str r1, [r7, #0]
|
|
mutex_->acquire();
|
|
8009b9a: 687b ldr r3, [r7, #4]
|
|
8009b9c: 685a ldr r2, [r3, #4]
|
|
8009b9e: 687b ldr r3, [r7, #4]
|
|
8009ba0: 685b ldr r3, [r3, #4]
|
|
8009ba2: 681b ldr r3, [r3, #0]
|
|
8009ba4: 681b ldr r3, [r3, #0]
|
|
8009ba6: 4610 mov r0, r2
|
|
8009ba8: 4798 blx r3
|
|
acquired_ = true;
|
|
8009baa: 687b ldr r3, [r7, #4]
|
|
8009bac: 2201 movs r2, #1
|
|
8009bae: 721a strb r2, [r3, #8]
|
|
}
|
|
8009bb0: bf00 nop
|
|
8009bb2: 3708 adds r7, #8
|
|
8009bb4: 46bd mov sp, r7
|
|
8009bb6: bd80 pop {r7, pc}
|
|
|
|
08009bb8 <_ZN3sta9Interface7releaseEm>:
|
|
|
|
void Interface::release(uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
8009bb8: b580 push {r7, lr}
|
|
8009bba: b082 sub sp, #8
|
|
8009bbc: af00 add r7, sp, #0
|
|
8009bbe: 6078 str r0, [r7, #4]
|
|
8009bc0: 6039 str r1, [r7, #0]
|
|
acquired_ = false;
|
|
8009bc2: 687b ldr r3, [r7, #4]
|
|
8009bc4: 2200 movs r2, #0
|
|
8009bc6: 721a strb r2, [r3, #8]
|
|
mutex_->release();
|
|
8009bc8: 687b ldr r3, [r7, #4]
|
|
8009bca: 685a ldr r2, [r3, #4]
|
|
8009bcc: 687b ldr r3, [r7, #4]
|
|
8009bce: 685b ldr r3, [r3, #4]
|
|
8009bd0: 681b ldr r3, [r3, #0]
|
|
8009bd2: 3304 adds r3, #4
|
|
8009bd4: 681b ldr r3, [r3, #0]
|
|
8009bd6: 4610 mov r0, r2
|
|
8009bd8: 4798 blx r3
|
|
}
|
|
8009bda: bf00 nop
|
|
8009bdc: 3708 adds r7, #8
|
|
8009bde: 46bd mov sp, r7
|
|
8009be0: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08009be4 <_ZN3sta4UARTC1ERNS_12UARTSettingsEPNS_5MutexE>:
|
|
#include <sta/bus/uart/uart.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
UART::UART(UARTSettings & settings, Mutex * mutex)
|
|
8009be4: b580 push {r7, lr}
|
|
8009be6: b084 sub sp, #16
|
|
8009be8: af00 add r7, sp, #0
|
|
8009bea: 60f8 str r0, [r7, #12]
|
|
8009bec: 60b9 str r1, [r7, #8]
|
|
8009bee: 607a str r2, [r7, #4]
|
|
: Interface{mutex}, settings_{settings}
|
|
8009bf0: 68fb ldr r3, [r7, #12]
|
|
8009bf2: 6879 ldr r1, [r7, #4]
|
|
8009bf4: 4618 mov r0, r3
|
|
8009bf6: f7ff ff4d bl 8009a94 <_ZN3sta9InterfaceC1EPNS_5MutexE>
|
|
8009bfa: 4a06 ldr r2, [pc, #24] @ (8009c14 <_ZN3sta4UARTC1ERNS_12UARTSettingsEPNS_5MutexE+0x30>)
|
|
8009bfc: 68fb ldr r3, [r7, #12]
|
|
8009bfe: 601a str r2, [r3, #0]
|
|
8009c00: 68fb ldr r3, [r7, #12]
|
|
8009c02: 68ba ldr r2, [r7, #8]
|
|
8009c04: 6812 ldr r2, [r2, #0]
|
|
8009c06: 60da str r2, [r3, #12]
|
|
{
|
|
|
|
}
|
|
8009c08: 68fb ldr r3, [r7, #12]
|
|
8009c0a: 4618 mov r0, r3
|
|
8009c0c: 3710 adds r7, #16
|
|
8009c0e: 46bd mov sp, r7
|
|
8009c10: bd80 pop {r7, pc}
|
|
8009c12: bf00 nop
|
|
8009c14: 080131fc .word 0x080131fc
|
|
|
|
08009c18 <_ZN3sta4UART8settingsEv>:
|
|
|
|
const UARTSettings & UART::settings()
|
|
{
|
|
8009c18: b480 push {r7}
|
|
8009c1a: b083 sub sp, #12
|
|
8009c1c: af00 add r7, sp, #0
|
|
8009c1e: 6078 str r0, [r7, #4]
|
|
return settings_;
|
|
8009c20: 687b ldr r3, [r7, #4]
|
|
8009c22: 330c adds r3, #12
|
|
}
|
|
8009c24: 4618 mov r0, r3
|
|
8009c26: 370c adds r7, #12
|
|
8009c28: 46bd mov sp, r7
|
|
8009c2a: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009c2e: 4770 bx lr
|
|
|
|
08009c30 <_ZN3sta17CanPendingRxFifosC1Emh>:
|
|
return ( (rxFlags_ >> idx_) & 0x1 );
|
|
}
|
|
|
|
|
|
|
|
CanPendingRxFifos::CanPendingRxFifos(uint32_t rxFlags, uint8_t numFifos)
|
|
8009c30: b480 push {r7}
|
|
8009c32: b085 sub sp, #20
|
|
8009c34: af00 add r7, sp, #0
|
|
8009c36: 60f8 str r0, [r7, #12]
|
|
8009c38: 60b9 str r1, [r7, #8]
|
|
8009c3a: 4613 mov r3, r2
|
|
8009c3c: 71fb strb r3, [r7, #7]
|
|
: rxFlags_{rxFlags}, numFifos_{numFifos}
|
|
8009c3e: 68fb ldr r3, [r7, #12]
|
|
8009c40: 68ba ldr r2, [r7, #8]
|
|
8009c42: 601a str r2, [r3, #0]
|
|
8009c44: 68fb ldr r3, [r7, #12]
|
|
8009c46: 79fa ldrb r2, [r7, #7]
|
|
8009c48: 711a strb r2, [r3, #4]
|
|
{}
|
|
8009c4a: 68fb ldr r3, [r7, #12]
|
|
8009c4c: 4618 mov r0, r3
|
|
8009c4e: 3714 adds r7, #20
|
|
8009c50: 46bd mov sp, r7
|
|
8009c52: f85d 7b04 ldr.w r7, [sp], #4
|
|
8009c56: 4770 bx lr
|
|
|
|
08009c58 <_ZN3sta13assert_failedEPKcS1_m>:
|
|
|
|
namespace sta
|
|
{
|
|
STA_WEAK
|
|
void assert_failed(const char * expr, const char * file, uint32_t line)
|
|
{
|
|
8009c58: b580 push {r7, lr}
|
|
8009c5a: b084 sub sp, #16
|
|
8009c5c: af00 add r7, sp, #0
|
|
8009c5e: 60f8 str r0, [r7, #12]
|
|
8009c60: 60b9 str r1, [r7, #8]
|
|
8009c62: 607a str r2, [r7, #4]
|
|
STA_DEBUG_PRINT(file);
|
|
8009c64: 4b12 ldr r3, [pc, #72] @ (8009cb0 <_ZN3sta13assert_failedEPKcS1_m+0x58>)
|
|
8009c66: 681b ldr r3, [r3, #0]
|
|
8009c68: 2200 movs r2, #0
|
|
8009c6a: 68b9 ldr r1, [r7, #8]
|
|
8009c6c: 4618 mov r0, r3
|
|
8009c6e: f000 f8bb bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
STA_DEBUG_PRINT(':');
|
|
8009c72: 4b0f ldr r3, [pc, #60] @ (8009cb0 <_ZN3sta13assert_failedEPKcS1_m+0x58>)
|
|
8009c74: 681b ldr r3, [r3, #0]
|
|
8009c76: 2200 movs r2, #0
|
|
8009c78: 213a movs r1, #58 @ 0x3a
|
|
8009c7a: 4618 mov r0, r3
|
|
8009c7c: f000 f882 bl 8009d84 <_ZN3sta9Printable5printEcb>
|
|
STA_DEBUG_PRINT(line);
|
|
8009c80: 4b0b ldr r3, [pc, #44] @ (8009cb0 <_ZN3sta13assert_failedEPKcS1_m+0x58>)
|
|
8009c82: 6818 ldr r0, [r3, #0]
|
|
8009c84: 2300 movs r3, #0
|
|
8009c86: 2200 movs r2, #0
|
|
8009c88: 6879 ldr r1, [r7, #4]
|
|
8009c8a: f000 f88f bl 8009dac <_ZN3sta9Printable5printEmNS_11IntegerBaseEb>
|
|
STA_DEBUG_PRINT(": Assertion failed: ");
|
|
8009c8e: 4b08 ldr r3, [pc, #32] @ (8009cb0 <_ZN3sta13assert_failedEPKcS1_m+0x58>)
|
|
8009c90: 681b ldr r3, [r3, #0]
|
|
8009c92: 2200 movs r2, #0
|
|
8009c94: 4907 ldr r1, [pc, #28] @ (8009cb4 <_ZN3sta13assert_failedEPKcS1_m+0x5c>)
|
|
8009c96: 4618 mov r0, r3
|
|
8009c98: f000 f8a6 bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
STA_DEBUG_PRINTLN(expr);
|
|
8009c9c: 4b04 ldr r3, [pc, #16] @ (8009cb0 <_ZN3sta13assert_failedEPKcS1_m+0x58>)
|
|
8009c9e: 681b ldr r3, [r3, #0]
|
|
8009ca0: 68f9 ldr r1, [r7, #12]
|
|
8009ca2: 4618 mov r0, r3
|
|
8009ca4: f000 f8b6 bl 8009e14 <_ZN3sta9Printable7printlnEPKc>
|
|
}
|
|
8009ca8: bf00 nop
|
|
8009caa: 3710 adds r7, #16
|
|
8009cac: 46bd mov sp, r7
|
|
8009cae: bd80 pop {r7, pc}
|
|
8009cb0: 200002f8 .word 0x200002f8
|
|
8009cb4: 08012e40 .word 0x08012e40
|
|
|
|
08009cb8 <_ZN3sta11assert_haltEv>:
|
|
|
|
STA_WEAK
|
|
void assert_halt()
|
|
{
|
|
8009cb8: b480 push {r7}
|
|
8009cba: af00 add r7, sp, #0
|
|
STA_BKPT();
|
|
8009cbc: be00 bkpt 0x0000
|
|
while (true);
|
|
8009cbe: bf00 nop
|
|
8009cc0: e7fd b.n 8009cbe <_ZN3sta11assert_haltEv+0x6>
|
|
...
|
|
|
|
08009cc4 <_ZN3sta9Printable6printfEPKcz>:
|
|
#include <sta/lang.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
void Printable::printf(const char * fmt, ...)
|
|
{
|
|
8009cc4: b40e push {r1, r2, r3}
|
|
8009cc6: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr}
|
|
8009cca: b088 sub sp, #32
|
|
8009ccc: af00 add r7, sp, #0
|
|
8009cce: 6078 str r0, [r7, #4]
|
|
char str[n+1];
|
|
vsnprintf(str, n+1, fmt, args);
|
|
STA_ASSERT(n > 0);
|
|
|
|
println(str);
|
|
}
|
|
8009cd0: 466b mov r3, sp
|
|
8009cd2: 461e mov r6, r3
|
|
va_start (args, fmt);
|
|
8009cd4: f107 0340 add.w r3, r7, #64 @ 0x40
|
|
8009cd8: 613b str r3, [r7, #16]
|
|
int n = vsnprintf(temp, 1, fmt, args);
|
|
8009cda: f107 000c add.w r0, r7, #12
|
|
8009cde: 693b ldr r3, [r7, #16]
|
|
8009ce0: 6bfa ldr r2, [r7, #60] @ 0x3c
|
|
8009ce2: 2101 movs r1, #1
|
|
8009ce4: f006 fda6 bl 8010834 <vsniprintf>
|
|
8009ce8: 61f8 str r0, [r7, #28]
|
|
va_start (args, fmt);
|
|
8009cea: f107 0340 add.w r3, r7, #64 @ 0x40
|
|
8009cee: 613b str r3, [r7, #16]
|
|
char str[n+1];
|
|
8009cf0: 69fb ldr r3, [r7, #28]
|
|
8009cf2: 1c59 adds r1, r3, #1
|
|
8009cf4: 1e4b subs r3, r1, #1
|
|
8009cf6: 61bb str r3, [r7, #24]
|
|
8009cf8: 460a mov r2, r1
|
|
8009cfa: 2300 movs r3, #0
|
|
8009cfc: 4690 mov r8, r2
|
|
8009cfe: 4699 mov r9, r3
|
|
8009d00: f04f 0200 mov.w r2, #0
|
|
8009d04: f04f 0300 mov.w r3, #0
|
|
8009d08: ea4f 03c9 mov.w r3, r9, lsl #3
|
|
8009d0c: ea43 7358 orr.w r3, r3, r8, lsr #29
|
|
8009d10: ea4f 02c8 mov.w r2, r8, lsl #3
|
|
8009d14: 460a mov r2, r1
|
|
8009d16: 2300 movs r3, #0
|
|
8009d18: 4614 mov r4, r2
|
|
8009d1a: 461d mov r5, r3
|
|
8009d1c: f04f 0200 mov.w r2, #0
|
|
8009d20: f04f 0300 mov.w r3, #0
|
|
8009d24: 00eb lsls r3, r5, #3
|
|
8009d26: ea43 7354 orr.w r3, r3, r4, lsr #29
|
|
8009d2a: 00e2 lsls r2, r4, #3
|
|
8009d2c: 460b mov r3, r1
|
|
8009d2e: 3307 adds r3, #7
|
|
8009d30: 08db lsrs r3, r3, #3
|
|
8009d32: 00db lsls r3, r3, #3
|
|
8009d34: ebad 0d03 sub.w sp, sp, r3
|
|
8009d38: 466b mov r3, sp
|
|
8009d3a: 3300 adds r3, #0
|
|
8009d3c: 617b str r3, [r7, #20]
|
|
vsnprintf(str, n+1, fmt, args);
|
|
8009d3e: 69fb ldr r3, [r7, #28]
|
|
8009d40: 3301 adds r3, #1
|
|
8009d42: 4619 mov r1, r3
|
|
8009d44: 693b ldr r3, [r7, #16]
|
|
8009d46: 6bfa ldr r2, [r7, #60] @ 0x3c
|
|
8009d48: 6978 ldr r0, [r7, #20]
|
|
8009d4a: f006 fd73 bl 8010834 <vsniprintf>
|
|
STA_ASSERT(n > 0);
|
|
8009d4e: 69fb ldr r3, [r7, #28]
|
|
8009d50: 2b00 cmp r3, #0
|
|
8009d52: dc06 bgt.n 8009d62 <_ZN3sta9Printable6printfEPKcz+0x9e>
|
|
8009d54: 2219 movs r2, #25
|
|
8009d56: 4909 ldr r1, [pc, #36] @ (8009d7c <_ZN3sta9Printable6printfEPKcz+0xb8>)
|
|
8009d58: 4809 ldr r0, [pc, #36] @ (8009d80 <_ZN3sta9Printable6printfEPKcz+0xbc>)
|
|
8009d5a: f7ff ff7d bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
8009d5e: f7ff ffab bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
println(str);
|
|
8009d62: 6979 ldr r1, [r7, #20]
|
|
8009d64: 6878 ldr r0, [r7, #4]
|
|
8009d66: f000 f855 bl 8009e14 <_ZN3sta9Printable7printlnEPKc>
|
|
8009d6a: 46b5 mov sp, r6
|
|
}
|
|
8009d6c: bf00 nop
|
|
8009d6e: 3720 adds r7, #32
|
|
8009d70: 46bd mov sp, r7
|
|
8009d72: e8bd 43f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, lr}
|
|
8009d76: b003 add sp, #12
|
|
8009d78: 4770 bx lr
|
|
8009d7a: bf00 nop
|
|
8009d7c: 08012e58 .word 0x08012e58
|
|
8009d80: 08012e8c .word 0x08012e8c
|
|
|
|
08009d84 <_ZN3sta9Printable5printEcb>:
|
|
|
|
void Printable::print(char c, bool newline /* = false */)
|
|
{
|
|
8009d84: b590 push {r4, r7, lr}
|
|
8009d86: b083 sub sp, #12
|
|
8009d88: af00 add r7, sp, #0
|
|
8009d8a: 6078 str r0, [r7, #4]
|
|
8009d8c: 460b mov r3, r1
|
|
8009d8e: 70fb strb r3, [r7, #3]
|
|
8009d90: 4613 mov r3, r2
|
|
8009d92: 70bb strb r3, [r7, #2]
|
|
print(&c, 1, newline);
|
|
8009d94: 687b ldr r3, [r7, #4]
|
|
8009d96: 681b ldr r3, [r3, #0]
|
|
8009d98: 681c ldr r4, [r3, #0]
|
|
8009d9a: 78bb ldrb r3, [r7, #2]
|
|
8009d9c: 1cf9 adds r1, r7, #3
|
|
8009d9e: 2201 movs r2, #1
|
|
8009da0: 6878 ldr r0, [r7, #4]
|
|
8009da2: 47a0 blx r4
|
|
}
|
|
8009da4: bf00 nop
|
|
8009da6: 370c adds r7, #12
|
|
8009da8: 46bd mov sp, r7
|
|
8009daa: bd90 pop {r4, r7, pc}
|
|
|
|
08009dac <_ZN3sta9Printable5printEmNS_11IntegerBaseEb>:
|
|
{
|
|
printBase(num, base, "%" PRIu16, sizeof(num), newline);
|
|
}
|
|
|
|
void Printable::print(uint32_t num, IntegerBase base, bool newline /* = false */)
|
|
{
|
|
8009dac: b5b0 push {r4, r5, r7, lr}
|
|
8009dae: b088 sub sp, #32
|
|
8009db0: af04 add r7, sp, #16
|
|
8009db2: 60f8 str r0, [r7, #12]
|
|
8009db4: 60b9 str r1, [r7, #8]
|
|
8009db6: 607a str r2, [r7, #4]
|
|
8009db8: 70fb strb r3, [r7, #3]
|
|
printBase(num, base, "%" PRIu32, sizeof(num), newline);
|
|
8009dba: 68bb ldr r3, [r7, #8]
|
|
8009dbc: 2200 movs r2, #0
|
|
8009dbe: 461c mov r4, r3
|
|
8009dc0: 4615 mov r5, r2
|
|
8009dc2: 78fb ldrb r3, [r7, #3]
|
|
8009dc4: 9303 str r3, [sp, #12]
|
|
8009dc6: 2304 movs r3, #4
|
|
8009dc8: 9302 str r3, [sp, #8]
|
|
8009dca: 4b06 ldr r3, [pc, #24] @ (8009de4 <_ZN3sta9Printable5printEmNS_11IntegerBaseEb+0x38>)
|
|
8009dcc: 9301 str r3, [sp, #4]
|
|
8009dce: 687b ldr r3, [r7, #4]
|
|
8009dd0: 9300 str r3, [sp, #0]
|
|
8009dd2: 4622 mov r2, r4
|
|
8009dd4: 462b mov r3, r5
|
|
8009dd6: 68f8 ldr r0, [r7, #12]
|
|
8009dd8: f000 f840 bl 8009e5c <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb>
|
|
}
|
|
8009ddc: bf00 nop
|
|
8009dde: 3710 adds r7, #16
|
|
8009de0: 46bd mov sp, r7
|
|
8009de2: bdb0 pop {r4, r5, r7, pc}
|
|
8009de4: 08012eb4 .word 0x08012eb4
|
|
|
|
08009de8 <_ZN3sta9Printable5printEPKcb>:
|
|
|
|
void Printable::print(const char * str, bool newline /* = false */)
|
|
{
|
|
8009de8: b590 push {r4, r7, lr}
|
|
8009dea: b085 sub sp, #20
|
|
8009dec: af00 add r7, sp, #0
|
|
8009dee: 60f8 str r0, [r7, #12]
|
|
8009df0: 60b9 str r1, [r7, #8]
|
|
8009df2: 4613 mov r3, r2
|
|
8009df4: 71fb strb r3, [r7, #7]
|
|
print(str, strlen(str), newline);
|
|
8009df6: 68fb ldr r3, [r7, #12]
|
|
8009df8: 681b ldr r3, [r3, #0]
|
|
8009dfa: 681c ldr r4, [r3, #0]
|
|
8009dfc: 68b8 ldr r0, [r7, #8]
|
|
8009dfe: f7f6 fa47 bl 8000290 <strlen>
|
|
8009e02: 4602 mov r2, r0
|
|
8009e04: 79fb ldrb r3, [r7, #7]
|
|
8009e06: 68b9 ldr r1, [r7, #8]
|
|
8009e08: 68f8 ldr r0, [r7, #12]
|
|
8009e0a: 47a0 blx r4
|
|
}
|
|
8009e0c: bf00 nop
|
|
8009e0e: 3714 adds r7, #20
|
|
8009e10: 46bd mov sp, r7
|
|
8009e12: bd90 pop {r4, r7, pc}
|
|
|
|
08009e14 <_ZN3sta9Printable7printlnEPKc>:
|
|
{
|
|
print(num, base, true);
|
|
}
|
|
|
|
void Printable::println(const char * str)
|
|
{
|
|
8009e14: b580 push {r7, lr}
|
|
8009e16: b082 sub sp, #8
|
|
8009e18: af00 add r7, sp, #0
|
|
8009e1a: 6078 str r0, [r7, #4]
|
|
8009e1c: 6039 str r1, [r7, #0]
|
|
println(str, strlen(str));
|
|
8009e1e: 6838 ldr r0, [r7, #0]
|
|
8009e20: f7f6 fa36 bl 8000290 <strlen>
|
|
8009e24: 4603 mov r3, r0
|
|
8009e26: 461a mov r2, r3
|
|
8009e28: 6839 ldr r1, [r7, #0]
|
|
8009e2a: 6878 ldr r0, [r7, #4]
|
|
8009e2c: f000 f804 bl 8009e38 <_ZN3sta9Printable7printlnEPKcj>
|
|
}
|
|
8009e30: bf00 nop
|
|
8009e32: 3708 adds r7, #8
|
|
8009e34: 46bd mov sp, r7
|
|
8009e36: bd80 pop {r7, pc}
|
|
|
|
08009e38 <_ZN3sta9Printable7printlnEPKcj>:
|
|
|
|
void Printable::println(const char * str, size_t length)
|
|
{
|
|
8009e38: b590 push {r4, r7, lr}
|
|
8009e3a: b085 sub sp, #20
|
|
8009e3c: af00 add r7, sp, #0
|
|
8009e3e: 60f8 str r0, [r7, #12]
|
|
8009e40: 60b9 str r1, [r7, #8]
|
|
8009e42: 607a str r2, [r7, #4]
|
|
print(str, length, true);
|
|
8009e44: 68fb ldr r3, [r7, #12]
|
|
8009e46: 681b ldr r3, [r3, #0]
|
|
8009e48: 681c ldr r4, [r3, #0]
|
|
8009e4a: 2301 movs r3, #1
|
|
8009e4c: 687a ldr r2, [r7, #4]
|
|
8009e4e: 68b9 ldr r1, [r7, #8]
|
|
8009e50: 68f8 ldr r0, [r7, #12]
|
|
8009e52: 47a0 blx r4
|
|
}
|
|
8009e54: bf00 nop
|
|
8009e56: 3714 adds r7, #20
|
|
8009e58: 46bd mov sp, r7
|
|
8009e5a: bd90 pop {r4, r7, pc}
|
|
|
|
08009e5c <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb>:
|
|
|
|
void Printable::printBase(uintmax_t num, IntegerBase base, const char * fmt, size_t size, bool newline /* = false */)
|
|
{
|
|
8009e5c: b580 push {r7, lr}
|
|
8009e5e: b086 sub sp, #24
|
|
8009e60: af02 add r7, sp, #8
|
|
8009e62: 60f8 str r0, [r7, #12]
|
|
8009e64: e9c7 2300 strd r2, r3, [r7]
|
|
switch (base)
|
|
8009e68: 69bb ldr r3, [r7, #24]
|
|
8009e6a: 2b02 cmp r3, #2
|
|
8009e6c: d020 beq.n 8009eb0 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x54>
|
|
8009e6e: 69bb ldr r3, [r7, #24]
|
|
8009e70: 2b02 cmp r3, #2
|
|
8009e72: dc29 bgt.n 8009ec8 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x6c>
|
|
8009e74: 69bb ldr r3, [r7, #24]
|
|
8009e76: 2b00 cmp r3, #0
|
|
8009e78: d003 beq.n 8009e82 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x26>
|
|
8009e7a: 69bb ldr r3, [r7, #24]
|
|
8009e7c: 2b01 cmp r3, #1
|
|
8009e7e: d00b beq.n 8009e98 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x3c>
|
|
8009e80: e022 b.n 8009ec8 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x6c>
|
|
{
|
|
case IntegerBase::DEC:
|
|
printDec(num, fmt, newline);
|
|
8009e82: f897 3024 ldrb.w r3, [r7, #36] @ 0x24
|
|
8009e86: 9301 str r3, [sp, #4]
|
|
8009e88: 69fb ldr r3, [r7, #28]
|
|
8009e8a: 9300 str r3, [sp, #0]
|
|
8009e8c: e9d7 2300 ldrd r2, r3, [r7]
|
|
8009e90: 68f8 ldr r0, [r7, #12]
|
|
8009e92: f000 f825 bl 8009ee0 <_ZN3sta9Printable8printDecEyPKcb>
|
|
break;
|
|
8009e96: e01d b.n 8009ed4 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x78>
|
|
|
|
case IntegerBase::BIN:
|
|
// Digits in base 2 = size in bytes * 8
|
|
printBin(num, size * 8, newline);
|
|
8009e98: 6a3b ldr r3, [r7, #32]
|
|
8009e9a: 00db lsls r3, r3, #3
|
|
8009e9c: f897 2024 ldrb.w r2, [r7, #36] @ 0x24
|
|
8009ea0: 9201 str r2, [sp, #4]
|
|
8009ea2: 9300 str r3, [sp, #0]
|
|
8009ea4: e9d7 2300 ldrd r2, r3, [r7]
|
|
8009ea8: 68f8 ldr r0, [r7, #12]
|
|
8009eaa: f000 f833 bl 8009f14 <_ZN3sta9Printable8printBinEyjb>
|
|
break;
|
|
8009eae: e011 b.n 8009ed4 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x78>
|
|
|
|
case IntegerBase::HEX:
|
|
// Digits in base 16 = size in bytes * 2
|
|
printHex(num, size * 2, newline);
|
|
8009eb0: 6a3b ldr r3, [r7, #32]
|
|
8009eb2: 005b lsls r3, r3, #1
|
|
8009eb4: f897 2024 ldrb.w r2, [r7, #36] @ 0x24
|
|
8009eb8: 9201 str r2, [sp, #4]
|
|
8009eba: 9300 str r3, [sp, #0]
|
|
8009ebc: e9d7 2300 ldrd r2, r3, [r7]
|
|
8009ec0: 68f8 ldr r0, [r7, #12]
|
|
8009ec2: f000 f875 bl 8009fb0 <_ZN3sta9Printable8printHexEyjb>
|
|
break;
|
|
8009ec6: e005 b.n 8009ed4 <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x78>
|
|
|
|
default:
|
|
print("<invalid_base>");
|
|
8009ec8: 2200 movs r2, #0
|
|
8009eca: 4904 ldr r1, [pc, #16] @ (8009edc <_ZN3sta9Printable9printBaseEyNS_11IntegerBaseEPKcjb+0x80>)
|
|
8009ecc: 68f8 ldr r0, [r7, #12]
|
|
8009ece: f7ff ff8b bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
}
|
|
}
|
|
8009ed2: bf00 nop
|
|
8009ed4: bf00 nop
|
|
8009ed6: 3710 adds r7, #16
|
|
8009ed8: 46bd mov sp, r7
|
|
8009eda: bd80 pop {r7, pc}
|
|
8009edc: 08012ebc .word 0x08012ebc
|
|
|
|
08009ee0 <_ZN3sta9Printable8printDecEyPKcb>:
|
|
|
|
void Printable::printDec(uintmax_t num, const char * fmt, bool newline /* = false */)
|
|
{
|
|
8009ee0: b580 push {r7, lr}
|
|
8009ee2: b094 sub sp, #80 @ 0x50
|
|
8009ee4: af00 add r7, sp, #0
|
|
8009ee6: 60f8 str r0, [r7, #12]
|
|
8009ee8: e9c7 2300 strd r2, r3, [r7]
|
|
char buffer[64];
|
|
snprintf(buffer, sizeof(buffer), fmt, static_cast<uint32_t>(num));
|
|
8009eec: 683b ldr r3, [r7, #0]
|
|
8009eee: f107 0010 add.w r0, r7, #16
|
|
8009ef2: 6dba ldr r2, [r7, #88] @ 0x58
|
|
8009ef4: 2140 movs r1, #64 @ 0x40
|
|
8009ef6: f006 fbfb bl 80106f0 <sniprintf>
|
|
print(buffer, newline);
|
|
8009efa: f897 205c ldrb.w r2, [r7, #92] @ 0x5c
|
|
8009efe: f107 0310 add.w r3, r7, #16
|
|
8009f02: 4619 mov r1, r3
|
|
8009f04: 68f8 ldr r0, [r7, #12]
|
|
8009f06: f7ff ff6f bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
}
|
|
8009f0a: bf00 nop
|
|
8009f0c: 3750 adds r7, #80 @ 0x50
|
|
8009f0e: 46bd mov sp, r7
|
|
8009f10: bd80 pop {r7, pc}
|
|
...
|
|
|
|
08009f14 <_ZN3sta9Printable8printBinEyjb>:
|
|
|
|
void Printable::printBin(uintmax_t value, size_t digits, bool newline /* = false */)
|
|
{
|
|
8009f14: b5f0 push {r4, r5, r6, r7, lr}
|
|
8009f16: b097 sub sp, #92 @ 0x5c
|
|
8009f18: af00 add r7, sp, #0
|
|
8009f1a: 60f8 str r0, [r7, #12]
|
|
8009f1c: e9c7 2300 strd r2, r3, [r7]
|
|
// Need 8 digits for every byte
|
|
char buffer[sizeof(value) * 8];
|
|
|
|
// Check bounds
|
|
if (digits > sizeof(buffer))
|
|
8009f20: 6f3b ldr r3, [r7, #112] @ 0x70
|
|
8009f22: 2b40 cmp r3, #64 @ 0x40
|
|
8009f24: d905 bls.n 8009f32 <_ZN3sta9Printable8printBinEyjb+0x1e>
|
|
{
|
|
print("<bin_value_too_big>");
|
|
8009f26: 2200 movs r2, #0
|
|
8009f28: 4920 ldr r1, [pc, #128] @ (8009fac <_ZN3sta9Printable8printBinEyjb+0x98>)
|
|
8009f2a: 68f8 ldr r0, [r7, #12]
|
|
8009f2c: f7ff ff5c bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
return;
|
|
8009f30: e038 b.n 8009fa4 <_ZN3sta9Printable8printBinEyjb+0x90>
|
|
}
|
|
// Nothing to do
|
|
if (digits == 0)
|
|
8009f32: 6f3b ldr r3, [r7, #112] @ 0x70
|
|
8009f34: 2b00 cmp r3, #0
|
|
8009f36: d034 beq.n 8009fa2 <_ZN3sta9Printable8printBinEyjb+0x8e>
|
|
return;
|
|
|
|
for (size_t i = 0; i < digits; ++i)
|
|
8009f38: 2300 movs r3, #0
|
|
8009f3a: 657b str r3, [r7, #84] @ 0x54
|
|
8009f3c: e022 b.n 8009f84 <_ZN3sta9Printable8printBinEyjb+0x70>
|
|
{
|
|
// Convert bit to '0' or '1'
|
|
// First digit in buffer is MSB in value, so shift from high to low
|
|
buffer[i] = '0' + ((value >> (digits - 1 - i)) & 0x1);
|
|
8009f3e: 6f3a ldr r2, [r7, #112] @ 0x70
|
|
8009f40: 6d7b ldr r3, [r7, #84] @ 0x54
|
|
8009f42: 1ad3 subs r3, r2, r3
|
|
8009f44: 1e59 subs r1, r3, #1
|
|
8009f46: e9d7 2300 ldrd r2, r3, [r7]
|
|
8009f4a: f1c1 0620 rsb r6, r1, #32
|
|
8009f4e: f1a1 0020 sub.w r0, r1, #32
|
|
8009f52: fa22 f401 lsr.w r4, r2, r1
|
|
8009f56: fa03 f606 lsl.w r6, r3, r6
|
|
8009f5a: 4334 orrs r4, r6
|
|
8009f5c: fa23 f000 lsr.w r0, r3, r0
|
|
8009f60: 4304 orrs r4, r0
|
|
8009f62: fa23 f501 lsr.w r5, r3, r1
|
|
8009f66: b2e3 uxtb r3, r4
|
|
8009f68: f003 0301 and.w r3, r3, #1
|
|
8009f6c: b2db uxtb r3, r3
|
|
8009f6e: 3330 adds r3, #48 @ 0x30
|
|
8009f70: b2d9 uxtb r1, r3
|
|
8009f72: f107 0214 add.w r2, r7, #20
|
|
8009f76: 6d7b ldr r3, [r7, #84] @ 0x54
|
|
8009f78: 4413 add r3, r2
|
|
8009f7a: 460a mov r2, r1
|
|
8009f7c: 701a strb r2, [r3, #0]
|
|
for (size_t i = 0; i < digits; ++i)
|
|
8009f7e: 6d7b ldr r3, [r7, #84] @ 0x54
|
|
8009f80: 3301 adds r3, #1
|
|
8009f82: 657b str r3, [r7, #84] @ 0x54
|
|
8009f84: 6d7a ldr r2, [r7, #84] @ 0x54
|
|
8009f86: 6f3b ldr r3, [r7, #112] @ 0x70
|
|
8009f88: 429a cmp r2, r3
|
|
8009f8a: d3d8 bcc.n 8009f3e <_ZN3sta9Printable8printBinEyjb+0x2a>
|
|
}
|
|
|
|
print(buffer, digits, newline);
|
|
8009f8c: 68fb ldr r3, [r7, #12]
|
|
8009f8e: 681b ldr r3, [r3, #0]
|
|
8009f90: 681c ldr r4, [r3, #0]
|
|
8009f92: f897 3074 ldrb.w r3, [r7, #116] @ 0x74
|
|
8009f96: f107 0114 add.w r1, r7, #20
|
|
8009f9a: 6f3a ldr r2, [r7, #112] @ 0x70
|
|
8009f9c: 68f8 ldr r0, [r7, #12]
|
|
8009f9e: 47a0 blx r4
|
|
8009fa0: e000 b.n 8009fa4 <_ZN3sta9Printable8printBinEyjb+0x90>
|
|
return;
|
|
8009fa2: bf00 nop
|
|
}
|
|
8009fa4: 375c adds r7, #92 @ 0x5c
|
|
8009fa6: 46bd mov sp, r7
|
|
8009fa8: bdf0 pop {r4, r5, r6, r7, pc}
|
|
8009faa: bf00 nop
|
|
8009fac: 08012ecc .word 0x08012ecc
|
|
|
|
08009fb0 <_ZN3sta9Printable8printHexEyjb>:
|
|
|
|
void Printable::printHex(uintmax_t value, size_t digits, bool newline /* = false */)
|
|
{
|
|
8009fb0: b5f0 push {r4, r5, r6, r7, lr}
|
|
8009fb2: b08b sub sp, #44 @ 0x2c
|
|
8009fb4: af00 add r7, sp, #0
|
|
8009fb6: 60f8 str r0, [r7, #12]
|
|
8009fb8: e9c7 2300 strd r2, r3, [r7]
|
|
// Need 2 digits for every byte
|
|
char buffer[sizeof(value) * 2];
|
|
|
|
// Check bounds
|
|
if (digits > sizeof(buffer))
|
|
8009fbc: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
8009fbe: 2b10 cmp r3, #16
|
|
8009fc0: d907 bls.n 8009fd2 <_ZN3sta9Printable8printHexEyjb+0x22>
|
|
{
|
|
print("<hex_value_too_big>", newline);
|
|
8009fc2: f897 3044 ldrb.w r3, [r7, #68] @ 0x44
|
|
8009fc6: 461a mov r2, r3
|
|
8009fc8: 4929 ldr r1, [pc, #164] @ (800a070 <_ZN3sta9Printable8printHexEyjb+0xc0>)
|
|
8009fca: 68f8 ldr r0, [r7, #12]
|
|
8009fcc: f7ff ff0c bl 8009de8 <_ZN3sta9Printable5printEPKcb>
|
|
return;
|
|
8009fd0: e04b b.n 800a06a <_ZN3sta9Printable8printHexEyjb+0xba>
|
|
}
|
|
// Nothing to do
|
|
if (digits == 0)
|
|
8009fd2: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
8009fd4: 2b00 cmp r3, #0
|
|
8009fd6: d047 beq.n 800a068 <_ZN3sta9Printable8printHexEyjb+0xb8>
|
|
return;
|
|
|
|
for (size_t i = 0; i < digits; ++i)
|
|
8009fd8: 2300 movs r3, #0
|
|
8009fda: 627b str r3, [r7, #36] @ 0x24
|
|
8009fdc: e035 b.n 800a04a <_ZN3sta9Printable8printHexEyjb+0x9a>
|
|
{
|
|
// Convert 4 bits to hex
|
|
// First digit in buffer is 4 MSBs in value, so shift from high to low
|
|
uint8_t hex = ((value >> ((digits - 1 - i) * 4)) & 0xF);
|
|
8009fde: 6c3a ldr r2, [r7, #64] @ 0x40
|
|
8009fe0: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
8009fe2: 1ad3 subs r3, r2, r3
|
|
8009fe4: 3b01 subs r3, #1
|
|
8009fe6: 0099 lsls r1, r3, #2
|
|
8009fe8: e9d7 2300 ldrd r2, r3, [r7]
|
|
8009fec: f1c1 0620 rsb r6, r1, #32
|
|
8009ff0: f1a1 0020 sub.w r0, r1, #32
|
|
8009ff4: fa22 f401 lsr.w r4, r2, r1
|
|
8009ff8: fa03 f606 lsl.w r6, r3, r6
|
|
8009ffc: 4334 orrs r4, r6
|
|
8009ffe: fa23 f000 lsr.w r0, r3, r0
|
|
800a002: 4304 orrs r4, r0
|
|
800a004: fa23 f501 lsr.w r5, r3, r1
|
|
800a008: b2e3 uxtb r3, r4
|
|
800a00a: f003 030f and.w r3, r3, #15
|
|
800a00e: f887 3023 strb.w r3, [r7, #35] @ 0x23
|
|
if (hex > 9)
|
|
800a012: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
|
|
800a016: 2b09 cmp r3, #9
|
|
800a018: d90a bls.n 800a030 <_ZN3sta9Printable8printHexEyjb+0x80>
|
|
buffer[i] = 'A' + (hex - 10);
|
|
800a01a: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
|
|
800a01e: 3337 adds r3, #55 @ 0x37
|
|
800a020: b2d9 uxtb r1, r3
|
|
800a022: f107 0210 add.w r2, r7, #16
|
|
800a026: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800a028: 4413 add r3, r2
|
|
800a02a: 460a mov r2, r1
|
|
800a02c: 701a strb r2, [r3, #0]
|
|
800a02e: e009 b.n 800a044 <_ZN3sta9Printable8printHexEyjb+0x94>
|
|
else
|
|
buffer[i] = '0' + hex;
|
|
800a030: f897 3023 ldrb.w r3, [r7, #35] @ 0x23
|
|
800a034: 3330 adds r3, #48 @ 0x30
|
|
800a036: b2d9 uxtb r1, r3
|
|
800a038: f107 0210 add.w r2, r7, #16
|
|
800a03c: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800a03e: 4413 add r3, r2
|
|
800a040: 460a mov r2, r1
|
|
800a042: 701a strb r2, [r3, #0]
|
|
for (size_t i = 0; i < digits; ++i)
|
|
800a044: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800a046: 3301 adds r3, #1
|
|
800a048: 627b str r3, [r7, #36] @ 0x24
|
|
800a04a: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800a04c: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
800a04e: 429a cmp r2, r3
|
|
800a050: d3c5 bcc.n 8009fde <_ZN3sta9Printable8printHexEyjb+0x2e>
|
|
}
|
|
|
|
print(buffer, digits, newline);
|
|
800a052: 68fb ldr r3, [r7, #12]
|
|
800a054: 681b ldr r3, [r3, #0]
|
|
800a056: 681c ldr r4, [r3, #0]
|
|
800a058: f897 3044 ldrb.w r3, [r7, #68] @ 0x44
|
|
800a05c: f107 0110 add.w r1, r7, #16
|
|
800a060: 6c3a ldr r2, [r7, #64] @ 0x40
|
|
800a062: 68f8 ldr r0, [r7, #12]
|
|
800a064: 47a0 blx r4
|
|
800a066: e000 b.n 800a06a <_ZN3sta9Printable8printHexEyjb+0xba>
|
|
return;
|
|
800a068: bf00 nop
|
|
}
|
|
800a06a: 372c adds r7, #44 @ 0x2c
|
|
800a06c: 46bd mov sp, r7
|
|
800a06e: bdf0 pop {r4, r5, r6, r7, pc}
|
|
800a070: 08012ee0 .word 0x08012ee0
|
|
|
|
0800a074 <_ZN3sta9PrintableC1Ev>:
|
|
/**
|
|
* @brief Printable UART interface.
|
|
*
|
|
* @ingroup sta_core
|
|
*/
|
|
class Printable
|
|
800a074: b480 push {r7}
|
|
800a076: b083 sub sp, #12
|
|
800a078: af00 add r7, sp, #0
|
|
800a07a: 6078 str r0, [r7, #4]
|
|
800a07c: 4a04 ldr r2, [pc, #16] @ (800a090 <_ZN3sta9PrintableC1Ev+0x1c>)
|
|
800a07e: 687b ldr r3, [r7, #4]
|
|
800a080: 601a str r2, [r3, #0]
|
|
800a082: 687b ldr r3, [r7, #4]
|
|
800a084: 4618 mov r0, r3
|
|
800a086: 370c adds r7, #12
|
|
800a088: 46bd mov sp, r7
|
|
800a08a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a08e: 4770 bx lr
|
|
800a090: 08013228 .word 0x08013228
|
|
|
|
0800a094 <_ZN3sta13PrintableUARTC1EPNS_4UARTE>:
|
|
|
|
|
|
namespace sta
|
|
{
|
|
|
|
PrintableUART::PrintableUART(UART * intf)
|
|
800a094: b580 push {r7, lr}
|
|
800a096: b082 sub sp, #8
|
|
800a098: af00 add r7, sp, #0
|
|
800a09a: 6078 str r0, [r7, #4]
|
|
800a09c: 6039 str r1, [r7, #0]
|
|
: intf_{intf}
|
|
800a09e: 687b ldr r3, [r7, #4]
|
|
800a0a0: 4618 mov r0, r3
|
|
800a0a2: f7ff ffe7 bl 800a074 <_ZN3sta9PrintableC1Ev>
|
|
800a0a6: 4a15 ldr r2, [pc, #84] @ (800a0fc <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x68>)
|
|
800a0a8: 687b ldr r3, [r7, #4]
|
|
800a0aa: 601a str r2, [r3, #0]
|
|
800a0ac: 687b ldr r3, [r7, #4]
|
|
800a0ae: 683a ldr r2, [r7, #0]
|
|
800a0b0: 605a str r2, [r3, #4]
|
|
{
|
|
STA_ASSERT(intf != nullptr);
|
|
800a0b2: 683b ldr r3, [r7, #0]
|
|
800a0b4: 2b00 cmp r3, #0
|
|
800a0b6: d106 bne.n 800a0c6 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x32>
|
|
800a0b8: 2210 movs r2, #16
|
|
800a0ba: 4911 ldr r1, [pc, #68] @ (800a100 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x6c>)
|
|
800a0bc: 4811 ldr r0, [pc, #68] @ (800a104 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x70>)
|
|
800a0be: f7ff fdcb bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a0c2: f7ff fdf9 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
STA_ASSERT(intf->settings().mode == UARTMode::RX || intf->settings().mode == UARTMode::RX_TX);
|
|
800a0c6: 6838 ldr r0, [r7, #0]
|
|
800a0c8: f7ff fda6 bl 8009c18 <_ZN3sta4UART8settingsEv>
|
|
800a0cc: 4603 mov r3, r0
|
|
800a0ce: 681b ldr r3, [r3, #0]
|
|
800a0d0: 2b00 cmp r3, #0
|
|
800a0d2: d00d beq.n 800a0f0 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x5c>
|
|
800a0d4: 6838 ldr r0, [r7, #0]
|
|
800a0d6: f7ff fd9f bl 8009c18 <_ZN3sta4UART8settingsEv>
|
|
800a0da: 4603 mov r3, r0
|
|
800a0dc: 681b ldr r3, [r3, #0]
|
|
800a0de: 2b02 cmp r3, #2
|
|
800a0e0: d006 beq.n 800a0f0 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x5c>
|
|
800a0e2: 2211 movs r2, #17
|
|
800a0e4: 4906 ldr r1, [pc, #24] @ (800a100 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x6c>)
|
|
800a0e6: 4808 ldr r0, [pc, #32] @ (800a108 <_ZN3sta13PrintableUARTC1EPNS_4UARTE+0x74>)
|
|
800a0e8: f7ff fdb6 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a0ec: f7ff fde4 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
800a0f0: 687b ldr r3, [r7, #4]
|
|
800a0f2: 4618 mov r0, r3
|
|
800a0f4: 3708 adds r7, #8
|
|
800a0f6: 46bd mov sp, r7
|
|
800a0f8: bd80 pop {r7, pc}
|
|
800a0fa: bf00 nop
|
|
800a0fc: 08013238 .word 0x08013238
|
|
800a100: 08012ef4 .word 0x08012ef4
|
|
800a104: 08012f2c .word 0x08012f2c
|
|
800a108: 08012f3c .word 0x08012f3c
|
|
|
|
0800a10c <_ZN3sta13PrintableUART5printEPKcjb>:
|
|
|
|
void PrintableUART::print(const char * str, size_t length, bool newline /* = false */)
|
|
{
|
|
800a10c: b590 push {r4, r7, lr}
|
|
800a10e: b087 sub sp, #28
|
|
800a110: af00 add r7, sp, #0
|
|
800a112: 60f8 str r0, [r7, #12]
|
|
800a114: 60b9 str r1, [r7, #8]
|
|
800a116: 607a str r2, [r7, #4]
|
|
800a118: 70fb strb r3, [r7, #3]
|
|
intf_->acquire();
|
|
800a11a: 68fb ldr r3, [r7, #12]
|
|
800a11c: 685b ldr r3, [r3, #4]
|
|
800a11e: 461a mov r2, r3
|
|
800a120: 68fb ldr r3, [r7, #12]
|
|
800a122: 685b ldr r3, [r3, #4]
|
|
800a124: 681b ldr r3, [r3, #0]
|
|
800a126: 331c adds r3, #28
|
|
800a128: 681b ldr r3, [r3, #0]
|
|
800a12a: f04f 31ff mov.w r1, #4294967295
|
|
800a12e: 4610 mov r0, r2
|
|
800a130: 4798 blx r3
|
|
intf_->transfer(reinterpret_cast<const uint8_t *>(str), length);
|
|
800a132: 68fb ldr r3, [r7, #12]
|
|
800a134: 685b ldr r3, [r3, #4]
|
|
800a136: 4618 mov r0, r3
|
|
800a138: 68fb ldr r3, [r7, #12]
|
|
800a13a: 685b ldr r3, [r3, #4]
|
|
800a13c: 681b ldr r3, [r3, #0]
|
|
800a13e: 3308 adds r3, #8
|
|
800a140: 681c ldr r4, [r3, #0]
|
|
800a142: f04f 33ff mov.w r3, #4294967295
|
|
800a146: 687a ldr r2, [r7, #4]
|
|
800a148: 68b9 ldr r1, [r7, #8]
|
|
800a14a: 47a0 blx r4
|
|
|
|
if (newline)
|
|
800a14c: 78fb ldrb r3, [r7, #3]
|
|
800a14e: 2b00 cmp r3, #0
|
|
800a150: d00e beq.n 800a170 <_ZN3sta13PrintableUART5printEPKcjb+0x64>
|
|
{
|
|
const char * linebreak = "\r\n";
|
|
800a152: 4b0f ldr r3, [pc, #60] @ (800a190 <_ZN3sta13PrintableUART5printEPKcjb+0x84>)
|
|
800a154: 617b str r3, [r7, #20]
|
|
intf_->transfer(reinterpret_cast<const uint8_t *>(linebreak), 2);
|
|
800a156: 68fb ldr r3, [r7, #12]
|
|
800a158: 685b ldr r3, [r3, #4]
|
|
800a15a: 4618 mov r0, r3
|
|
800a15c: 68fb ldr r3, [r7, #12]
|
|
800a15e: 685b ldr r3, [r3, #4]
|
|
800a160: 681b ldr r3, [r3, #0]
|
|
800a162: 3308 adds r3, #8
|
|
800a164: 681c ldr r4, [r3, #0]
|
|
800a166: f04f 33ff mov.w r3, #4294967295
|
|
800a16a: 2202 movs r2, #2
|
|
800a16c: 6979 ldr r1, [r7, #20]
|
|
800a16e: 47a0 blx r4
|
|
}
|
|
|
|
intf_->release();
|
|
800a170: 68fb ldr r3, [r7, #12]
|
|
800a172: 685b ldr r3, [r3, #4]
|
|
800a174: 461a mov r2, r3
|
|
800a176: 68fb ldr r3, [r7, #12]
|
|
800a178: 685b ldr r3, [r3, #4]
|
|
800a17a: 681b ldr r3, [r3, #0]
|
|
800a17c: 3320 adds r3, #32
|
|
800a17e: 681b ldr r3, [r3, #0]
|
|
800a180: f04f 31ff mov.w r1, #4294967295
|
|
800a184: 4610 mov r0, r2
|
|
800a186: 4798 blx r3
|
|
}
|
|
800a188: bf00 nop
|
|
800a18a: 371c adds r7, #28
|
|
800a18c: 46bd mov sp, r7
|
|
800a18e: bd90 pop {r4, r7, pc}
|
|
800a190: 08012f90 .word 0x08012f90
|
|
|
|
0800a194 <_ZN3sta13PrintableUART4readEPhj>:
|
|
|
|
void PrintableUART::read(uint8_t * buffer, size_t length)
|
|
{
|
|
800a194: b590 push {r4, r7, lr}
|
|
800a196: b085 sub sp, #20
|
|
800a198: af00 add r7, sp, #0
|
|
800a19a: 60f8 str r0, [r7, #12]
|
|
800a19c: 60b9 str r1, [r7, #8]
|
|
800a19e: 607a str r2, [r7, #4]
|
|
intf_->acquire();
|
|
800a1a0: 68fb ldr r3, [r7, #12]
|
|
800a1a2: 685b ldr r3, [r3, #4]
|
|
800a1a4: 461a mov r2, r3
|
|
800a1a6: 68fb ldr r3, [r7, #12]
|
|
800a1a8: 685b ldr r3, [r3, #4]
|
|
800a1aa: 681b ldr r3, [r3, #0]
|
|
800a1ac: 331c adds r3, #28
|
|
800a1ae: 681b ldr r3, [r3, #0]
|
|
800a1b0: f04f 31ff mov.w r1, #4294967295
|
|
800a1b4: 4610 mov r0, r2
|
|
800a1b6: 4798 blx r3
|
|
intf_->receive(buffer, length);
|
|
800a1b8: 68fb ldr r3, [r7, #12]
|
|
800a1ba: 685b ldr r3, [r3, #4]
|
|
800a1bc: 4618 mov r0, r3
|
|
800a1be: 68fb ldr r3, [r7, #12]
|
|
800a1c0: 685b ldr r3, [r3, #4]
|
|
800a1c2: 681b ldr r3, [r3, #0]
|
|
800a1c4: 3310 adds r3, #16
|
|
800a1c6: 681c ldr r4, [r3, #0]
|
|
800a1c8: f04f 33ff mov.w r3, #4294967295
|
|
800a1cc: 687a ldr r2, [r7, #4]
|
|
800a1ce: 68b9 ldr r1, [r7, #8]
|
|
800a1d0: 47a0 blx r4
|
|
intf_->release();
|
|
800a1d2: 68fb ldr r3, [r7, #12]
|
|
800a1d4: 685b ldr r3, [r3, #4]
|
|
800a1d6: 461a mov r2, r3
|
|
800a1d8: 68fb ldr r3, [r7, #12]
|
|
800a1da: 685b ldr r3, [r3, #4]
|
|
800a1dc: 681b ldr r3, [r3, #0]
|
|
800a1de: 3320 adds r3, #32
|
|
800a1e0: 681b ldr r3, [r3, #0]
|
|
800a1e2: f04f 31ff mov.w r1, #4294967295
|
|
800a1e6: 4610 mov r0, r2
|
|
800a1e8: 4798 blx r3
|
|
}
|
|
800a1ea: bf00 nop
|
|
800a1ec: 3714 adds r7, #20
|
|
800a1ee: 46bd mov sp, r7
|
|
800a1f0: bd90 pop {r4, r7, pc}
|
|
...
|
|
|
|
0800a1f4 <_ZN3sta13CanControllerC1Ev>:
|
|
/**
|
|
* @brief CAN controller driver interface.
|
|
*
|
|
* @ingroup sta_core_can
|
|
*/
|
|
class CanController
|
|
800a1f4: b480 push {r7}
|
|
800a1f6: b083 sub sp, #12
|
|
800a1f8: af00 add r7, sp, #0
|
|
800a1fa: 6078 str r0, [r7, #4]
|
|
800a1fc: 4a04 ldr r2, [pc, #16] @ (800a210 <_ZN3sta13CanControllerC1Ev+0x1c>)
|
|
800a1fe: 687b ldr r3, [r7, #4]
|
|
800a200: 601a str r2, [r3, #0]
|
|
800a202: 687b ldr r3, [r7, #4]
|
|
800a204: 4618 mov r0, r3
|
|
800a206: 370c adds r7, #12
|
|
800a208: 46bd mov sp, r7
|
|
800a20a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a20e: 4770 bx lr
|
|
800a210: 0801327c .word 0x0801327c
|
|
|
|
0800a214 <_ZN3sta18STM32CanControllerC1EP17CAN_HandleTypeDefm>:
|
|
#include <sta/lang.hpp>
|
|
|
|
|
|
namespace sta
|
|
{
|
|
STM32CanController::STM32CanController(CAN_HandleTypeDef * handle, uint32_t filter_start)
|
|
800a214: b580 push {r7, lr}
|
|
800a216: b084 sub sp, #16
|
|
800a218: af00 add r7, sp, #0
|
|
800a21a: 60f8 str r0, [r7, #12]
|
|
800a21c: 60b9 str r1, [r7, #8]
|
|
800a21e: 607a str r2, [r7, #4]
|
|
: handle_{handle}, filter_start_{filter_start}
|
|
800a220: 68fb ldr r3, [r7, #12]
|
|
800a222: 4618 mov r0, r3
|
|
800a224: f7ff ffe6 bl 800a1f4 <_ZN3sta13CanControllerC1Ev>
|
|
800a228: 4a08 ldr r2, [pc, #32] @ (800a24c <_ZN3sta18STM32CanControllerC1EP17CAN_HandleTypeDefm+0x38>)
|
|
800a22a: 68fb ldr r3, [r7, #12]
|
|
800a22c: 601a str r2, [r3, #0]
|
|
800a22e: 68fb ldr r3, [r7, #12]
|
|
800a230: 68ba ldr r2, [r7, #8]
|
|
800a232: 605a str r2, [r3, #4]
|
|
800a234: 68fb ldr r3, [r7, #12]
|
|
800a236: 687a ldr r2, [r7, #4]
|
|
800a238: f8c3 2238 str.w r2, [r3, #568] @ 0x238
|
|
{
|
|
initFilters();
|
|
800a23c: 68f8 ldr r0, [r7, #12]
|
|
800a23e: f000 f986 bl 800a54e <_ZN3sta18STM32CanController11initFiltersEv>
|
|
}
|
|
800a242: 68fb ldr r3, [r7, #12]
|
|
800a244: 4618 mov r0, r3
|
|
800a246: 3710 adds r7, #16
|
|
800a248: 46bd mov sp, r7
|
|
800a24a: bd80 pop {r7, pc}
|
|
800a24c: 08013248 .word 0x08013248
|
|
|
|
0800a250 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh>:
|
|
HAL_CAN_Stop(handle_);
|
|
}
|
|
|
|
|
|
bool STM32CanController::sendFrame(const CanTxHeader & header, const uint8_t * payload)
|
|
{
|
|
800a250: b580 push {r7, lr}
|
|
800a252: b08c sub sp, #48 @ 0x30
|
|
800a254: af00 add r7, sp, #0
|
|
800a256: 60f8 str r0, [r7, #12]
|
|
800a258: 60b9 str r1, [r7, #8]
|
|
800a25a: 607a str r2, [r7, #4]
|
|
STA_ASSERT_MSG(header.payloadLength <= 8, "CAN 2.0B payload size exceeded");
|
|
800a25c: 68bb ldr r3, [r7, #8]
|
|
800a25e: 7b1b ldrb r3, [r3, #12]
|
|
800a260: 2b08 cmp r3, #8
|
|
800a262: d906 bls.n 800a272 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x22>
|
|
800a264: 2226 movs r2, #38 @ 0x26
|
|
800a266: 491a ldr r1, [pc, #104] @ (800a2d0 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x80>)
|
|
800a268: 481a ldr r0, [pc, #104] @ (800a2d4 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x84>)
|
|
800a26a: f7ff fcf5 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a26e: f7ff fd23 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
CAN_TxHeaderTypeDef halHeader;
|
|
|
|
if (header.id.format == CanIdFormat::STD)
|
|
800a272: 68bb ldr r3, [r7, #8]
|
|
800a274: 781b ldrb r3, [r3, #0]
|
|
800a276: 2b00 cmp r3, #0
|
|
800a278: d107 bne.n 800a28a <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x3a>
|
|
{
|
|
halHeader.StdId = header.id.sid & 0x7FF;
|
|
800a27a: 68bb ldr r3, [r7, #8]
|
|
800a27c: 685b ldr r3, [r3, #4]
|
|
800a27e: f3c3 030a ubfx r3, r3, #0, #11
|
|
800a282: 61bb str r3, [r7, #24]
|
|
halHeader.IDE = CAN_ID_STD;
|
|
800a284: 2300 movs r3, #0
|
|
800a286: 623b str r3, [r7, #32]
|
|
800a288: e00c b.n 800a2a4 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x54>
|
|
}
|
|
else
|
|
{
|
|
// Combine SID and EID
|
|
halHeader.ExtId = ((header.id.sid & 0x7FF) << 18) | (header.id.eid & 0x3FFFF);
|
|
800a28a: 68bb ldr r3, [r7, #8]
|
|
800a28c: 685b ldr r3, [r3, #4]
|
|
800a28e: 049a lsls r2, r3, #18
|
|
800a290: 4b11 ldr r3, [pc, #68] @ (800a2d8 <_ZN3sta18STM32CanController9sendFrameERKNS_11CanTxHeaderEPKh+0x88>)
|
|
800a292: 4013 ands r3, r2
|
|
800a294: 68ba ldr r2, [r7, #8]
|
|
800a296: 6892 ldr r2, [r2, #8]
|
|
800a298: f3c2 0211 ubfx r2, r2, #0, #18
|
|
800a29c: 4313 orrs r3, r2
|
|
800a29e: 61fb str r3, [r7, #28]
|
|
halHeader.IDE = CAN_ID_EXT;
|
|
800a2a0: 2304 movs r3, #4
|
|
800a2a2: 623b str r3, [r7, #32]
|
|
}
|
|
|
|
halHeader.DLC = header.payloadLength;
|
|
800a2a4: 68bb ldr r3, [r7, #8]
|
|
800a2a6: 7b1b ldrb r3, [r3, #12]
|
|
800a2a8: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
uint32_t mailbox; // Don't care
|
|
return (HAL_OK == HAL_CAN_AddTxMessage(handle_, &halHeader, const_cast<uint8_t *>(payload), &mailbox));
|
|
800a2aa: 68fb ldr r3, [r7, #12]
|
|
800a2ac: 6858 ldr r0, [r3, #4]
|
|
800a2ae: f107 0314 add.w r3, r7, #20
|
|
800a2b2: f107 0118 add.w r1, r7, #24
|
|
800a2b6: 687a ldr r2, [r7, #4]
|
|
800a2b8: f7f9 ff26 bl 8004108 <HAL_CAN_AddTxMessage>
|
|
800a2bc: 4603 mov r3, r0
|
|
800a2be: 2b00 cmp r3, #0
|
|
800a2c0: bf0c ite eq
|
|
800a2c2: 2301 moveq r3, #1
|
|
800a2c4: 2300 movne r3, #0
|
|
800a2c6: b2db uxtb r3, r3
|
|
}
|
|
800a2c8: 4618 mov r0, r3
|
|
800a2ca: 3730 adds r7, #48 @ 0x30
|
|
800a2cc: 46bd mov sp, r7
|
|
800a2ce: bd80 pop {r7, pc}
|
|
800a2d0: 08012f94 .word 0x08012f94
|
|
800a2d4: 08012fc0 .word 0x08012fc0
|
|
800a2d8: 1ffc0000 .word 0x1ffc0000
|
|
|
|
0800a2dc <_ZN3sta18STM32CanController12receiveFrameEhPNS_11CanRxHeaderEPh>:
|
|
|
|
bool STM32CanController::receiveFrame(uint8_t fifo, CanRxHeader * header, uint8_t * payload)
|
|
{
|
|
800a2dc: b580 push {r7, lr}
|
|
800a2de: b08c sub sp, #48 @ 0x30
|
|
800a2e0: af00 add r7, sp, #0
|
|
800a2e2: 60f8 str r0, [r7, #12]
|
|
800a2e4: 607a str r2, [r7, #4]
|
|
800a2e6: 603b str r3, [r7, #0]
|
|
800a2e8: 460b mov r3, r1
|
|
800a2ea: 72fb strb r3, [r7, #11]
|
|
// Check if message is available
|
|
if (HAL_CAN_GetRxFifoFillLevel(handle_, fifo) == 0)
|
|
800a2ec: 68fb ldr r3, [r7, #12]
|
|
800a2ee: 685b ldr r3, [r3, #4]
|
|
800a2f0: 7afa ldrb r2, [r7, #11]
|
|
800a2f2: 4611 mov r1, r2
|
|
800a2f4: 4618 mov r0, r3
|
|
800a2f6: f7fa f8f9 bl 80044ec <HAL_CAN_GetRxFifoFillLevel>
|
|
800a2fa: 4603 mov r3, r0
|
|
800a2fc: 2b00 cmp r3, #0
|
|
800a2fe: bf0c ite eq
|
|
800a300: 2301 moveq r3, #1
|
|
800a302: 2300 movne r3, #0
|
|
800a304: b2db uxtb r3, r3
|
|
800a306: 2b00 cmp r3, #0
|
|
800a308: d001 beq.n 800a30e <_ZN3sta18STM32CanController12receiveFrameEhPNS_11CanRxHeaderEPh+0x32>
|
|
return false;
|
|
800a30a: 2300 movs r3, #0
|
|
800a30c: e02c b.n 800a368 <_ZN3sta18STM32CanController12receiveFrameEhPNS_11CanRxHeaderEPh+0x8c>
|
|
|
|
// Retrieve message
|
|
CAN_RxHeaderTypeDef halHeader;
|
|
HAL_CAN_GetRxMessage(handle_, fifo, &halHeader, payload);
|
|
800a30e: 68fb ldr r3, [r7, #12]
|
|
800a310: 6858 ldr r0, [r3, #4]
|
|
800a312: 7af9 ldrb r1, [r7, #11]
|
|
800a314: f107 0214 add.w r2, r7, #20
|
|
800a318: 683b ldr r3, [r7, #0]
|
|
800a31a: f7f9 ffc5 bl 80042a8 <HAL_CAN_GetRxMessage>
|
|
|
|
if (halHeader.IDE == CAN_ID_STD)
|
|
800a31e: 69fb ldr r3, [r7, #28]
|
|
800a320: 2b00 cmp r3, #0
|
|
800a322: d109 bne.n 800a338 <_ZN3sta18STM32CanController12receiveFrameEhPNS_11CanRxHeaderEPh+0x5c>
|
|
{
|
|
header->id.format = CanIdFormat::STD;
|
|
800a324: 687b ldr r3, [r7, #4]
|
|
800a326: 2200 movs r2, #0
|
|
800a328: 701a strb r2, [r3, #0]
|
|
header->id.sid = halHeader.StdId;
|
|
800a32a: 697a ldr r2, [r7, #20]
|
|
800a32c: 687b ldr r3, [r7, #4]
|
|
800a32e: 605a str r2, [r3, #4]
|
|
header->id.eid = 0;
|
|
800a330: 687b ldr r3, [r7, #4]
|
|
800a332: 2200 movs r2, #0
|
|
800a334: 609a str r2, [r3, #8]
|
|
800a336: e00b b.n 800a350 <_ZN3sta18STM32CanController12receiveFrameEhPNS_11CanRxHeaderEPh+0x74>
|
|
}
|
|
else
|
|
{
|
|
header->id.format = CanIdFormat::EXT;
|
|
800a338: 687b ldr r3, [r7, #4]
|
|
800a33a: 2201 movs r2, #1
|
|
800a33c: 701a strb r2, [r3, #0]
|
|
// Separate SID and EID
|
|
header->id.sid = (halHeader.ExtId >> 18);
|
|
800a33e: 69bb ldr r3, [r7, #24]
|
|
800a340: 0c9a lsrs r2, r3, #18
|
|
800a342: 687b ldr r3, [r7, #4]
|
|
800a344: 605a str r2, [r3, #4]
|
|
header->id.eid = halHeader.ExtId & 0x3FFFF;
|
|
800a346: 69bb ldr r3, [r7, #24]
|
|
800a348: f3c3 0211 ubfx r2, r3, #0, #18
|
|
800a34c: 687b ldr r3, [r7, #4]
|
|
800a34e: 609a str r2, [r3, #8]
|
|
}
|
|
// No conversion required for CAN 2B standard
|
|
header->payloadLength = halHeader.DLC;
|
|
800a350: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800a352: b2da uxtb r2, r3
|
|
800a354: 687b ldr r3, [r7, #4]
|
|
800a356: 731a strb r2, [r3, #12]
|
|
header->timestamp = halHeader.Timestamp;
|
|
800a358: 6aba ldr r2, [r7, #40] @ 0x28
|
|
800a35a: 687b ldr r3, [r7, #4]
|
|
800a35c: 611a str r2, [r3, #16]
|
|
header->filter = halHeader.FilterMatchIndex;
|
|
800a35e: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800a360: b2da uxtb r2, r3
|
|
800a362: 687b ldr r3, [r7, #4]
|
|
800a364: 751a strb r2, [r3, #20]
|
|
|
|
return true;
|
|
800a366: 2301 movs r3, #1
|
|
}
|
|
800a368: 4618 mov r0, r3
|
|
800a36a: 3730 adds r7, #48 @ 0x30
|
|
800a36c: 46bd mov sp, r7
|
|
800a36e: bd80 pop {r7, pc}
|
|
|
|
0800a370 <_ZN3sta18STM32CanController14getRxFifoFlagsEv>:
|
|
|
|
uint32_t STM32CanController::getRxFifoFlags()
|
|
{
|
|
800a370: b590 push {r4, r7, lr}
|
|
800a372: b083 sub sp, #12
|
|
800a374: af00 add r7, sp, #0
|
|
800a376: 6078 str r0, [r7, #4]
|
|
//
|
|
return (HAL_CAN_GetRxFifoFillLevel(handle_, CAN_RX_FIFO0) != 0)
|
|
800a378: 687b ldr r3, [r7, #4]
|
|
800a37a: 685b ldr r3, [r3, #4]
|
|
800a37c: 2100 movs r1, #0
|
|
800a37e: 4618 mov r0, r3
|
|
800a380: f7fa f8b4 bl 80044ec <HAL_CAN_GetRxFifoFillLevel>
|
|
800a384: 4603 mov r3, r0
|
|
800a386: 2b00 cmp r3, #0
|
|
800a388: bf14 ite ne
|
|
800a38a: 2301 movne r3, #1
|
|
800a38c: 2300 moveq r3, #0
|
|
800a38e: b2db uxtb r3, r3
|
|
800a390: 461c mov r4, r3
|
|
| (HAL_CAN_GetRxFifoFillLevel(handle_, CAN_RX_FIFO1) != 0) << 1;
|
|
800a392: 687b ldr r3, [r7, #4]
|
|
800a394: 685b ldr r3, [r3, #4]
|
|
800a396: 2101 movs r1, #1
|
|
800a398: 4618 mov r0, r3
|
|
800a39a: f7fa f8a7 bl 80044ec <HAL_CAN_GetRxFifoFillLevel>
|
|
800a39e: 4603 mov r3, r0
|
|
800a3a0: 2b00 cmp r3, #0
|
|
800a3a2: d001 beq.n 800a3a8 <_ZN3sta18STM32CanController14getRxFifoFlagsEv+0x38>
|
|
800a3a4: 2302 movs r3, #2
|
|
800a3a6: e000 b.n 800a3aa <_ZN3sta18STM32CanController14getRxFifoFlagsEv+0x3a>
|
|
800a3a8: 2300 movs r3, #0
|
|
800a3aa: 4323 orrs r3, r4
|
|
}
|
|
800a3ac: 4618 mov r0, r3
|
|
800a3ae: 370c adds r7, #12
|
|
800a3b0: 46bd mov sp, r7
|
|
800a3b2: bd90 pop {r4, r7, pc}
|
|
|
|
0800a3b4 <_ZN3sta18STM32CanController15configureFilterEhRKNS_9CanFilterEb>:
|
|
|
|
|
|
void STM32CanController::configureFilter(uint8_t idx, const CanFilter & filter, bool active /* = false */)
|
|
{
|
|
800a3b4: b580 push {r7, lr}
|
|
800a3b6: b086 sub sp, #24
|
|
800a3b8: af00 add r7, sp, #0
|
|
800a3ba: 60f8 str r0, [r7, #12]
|
|
800a3bc: 607a str r2, [r7, #4]
|
|
800a3be: 461a mov r2, r3
|
|
800a3c0: 460b mov r3, r1
|
|
800a3c2: 72fb strb r3, [r7, #11]
|
|
800a3c4: 4613 mov r3, r2
|
|
800a3c6: 72bb strb r3, [r7, #10]
|
|
CAN_FilterTypeDef * config = &filters_[idx];
|
|
800a3c8: 7afa ldrb r2, [r7, #11]
|
|
800a3ca: 4613 mov r3, r2
|
|
800a3cc: 009b lsls r3, r3, #2
|
|
800a3ce: 4413 add r3, r2
|
|
800a3d0: 00db lsls r3, r3, #3
|
|
800a3d2: 3308 adds r3, #8
|
|
800a3d4: 68fa ldr r2, [r7, #12]
|
|
800a3d6: 4413 add r3, r2
|
|
800a3d8: 617b str r3, [r7, #20]
|
|
|
|
if (filter.type == CanFilterIdFormat::STD)
|
|
800a3da: 687b ldr r3, [r7, #4]
|
|
800a3dc: 691b ldr r3, [r3, #16]
|
|
800a3de: 2b01 cmp r3, #1
|
|
800a3e0: d112 bne.n 800a408 <_ZN3sta18STM32CanController15configureFilterEhRKNS_9CanFilterEb+0x54>
|
|
{
|
|
config->FilterIdHigh = 0;
|
|
800a3e2: 697b ldr r3, [r7, #20]
|
|
800a3e4: 2200 movs r2, #0
|
|
800a3e6: 601a str r2, [r3, #0]
|
|
config->FilterIdLow = filter.obj.sid & 0x7FF;
|
|
800a3e8: 687b ldr r3, [r7, #4]
|
|
800a3ea: 681b ldr r3, [r3, #0]
|
|
800a3ec: f3c3 020a ubfx r2, r3, #0, #11
|
|
800a3f0: 697b ldr r3, [r7, #20]
|
|
800a3f2: 605a str r2, [r3, #4]
|
|
config->FilterMaskIdHigh = 0;
|
|
800a3f4: 697b ldr r3, [r7, #20]
|
|
800a3f6: 2200 movs r2, #0
|
|
800a3f8: 609a str r2, [r3, #8]
|
|
config->FilterMaskIdLow = filter.mask.sid & 0x7FF;
|
|
800a3fa: 687b ldr r3, [r7, #4]
|
|
800a3fc: 689b ldr r3, [r3, #8]
|
|
800a3fe: f3c3 020a ubfx r2, r3, #0, #11
|
|
800a402: 697b ldr r3, [r7, #20]
|
|
800a404: 60da str r2, [r3, #12]
|
|
800a406: e025 b.n 800a454 <_ZN3sta18STM32CanController15configureFilterEhRKNS_9CanFilterEb+0xa0>
|
|
}
|
|
else
|
|
{
|
|
config->FilterIdHigh = ((filter.obj.sid & 0x7FF) << 2) | ((filter.obj.eid >> 16) & 0x3);
|
|
800a408: 687b ldr r3, [r7, #4]
|
|
800a40a: 681b ldr r3, [r3, #0]
|
|
800a40c: 009a lsls r2, r3, #2
|
|
800a40e: f641 73fc movw r3, #8188 @ 0x1ffc
|
|
800a412: 4013 ands r3, r2
|
|
800a414: 687a ldr r2, [r7, #4]
|
|
800a416: 6852 ldr r2, [r2, #4]
|
|
800a418: 0c12 lsrs r2, r2, #16
|
|
800a41a: f002 0203 and.w r2, r2, #3
|
|
800a41e: 431a orrs r2, r3
|
|
800a420: 697b ldr r3, [r7, #20]
|
|
800a422: 601a str r2, [r3, #0]
|
|
config->FilterIdLow = filter.obj.eid & 0xFFFF;
|
|
800a424: 687b ldr r3, [r7, #4]
|
|
800a426: 685b ldr r3, [r3, #4]
|
|
800a428: b29a uxth r2, r3
|
|
800a42a: 697b ldr r3, [r7, #20]
|
|
800a42c: 605a str r2, [r3, #4]
|
|
config->FilterMaskIdHigh = ((filter.mask.sid & 0x7FF) << 2) | ((filter.mask.eid >> 16) & 0x3);
|
|
800a42e: 687b ldr r3, [r7, #4]
|
|
800a430: 689b ldr r3, [r3, #8]
|
|
800a432: 009a lsls r2, r3, #2
|
|
800a434: f641 73fc movw r3, #8188 @ 0x1ffc
|
|
800a438: 4013 ands r3, r2
|
|
800a43a: 687a ldr r2, [r7, #4]
|
|
800a43c: 68d2 ldr r2, [r2, #12]
|
|
800a43e: 0c12 lsrs r2, r2, #16
|
|
800a440: f002 0203 and.w r2, r2, #3
|
|
800a444: 431a orrs r2, r3
|
|
800a446: 697b ldr r3, [r7, #20]
|
|
800a448: 609a str r2, [r3, #8]
|
|
config->FilterMaskIdLow = filter.mask.eid & 0xFFFF;
|
|
800a44a: 687b ldr r3, [r7, #4]
|
|
800a44c: 68db ldr r3, [r3, #12]
|
|
800a44e: b29a uxth r2, r3
|
|
800a450: 697b ldr r3, [r7, #20]
|
|
800a452: 60da str r2, [r3, #12]
|
|
}
|
|
|
|
config->FilterFIFOAssignment = filter.fifo;
|
|
800a454: 687b ldr r3, [r7, #4]
|
|
800a456: 7d1b ldrb r3, [r3, #20]
|
|
800a458: 461a mov r2, r3
|
|
800a45a: 697b ldr r3, [r7, #20]
|
|
800a45c: 611a str r2, [r3, #16]
|
|
config->FilterActivation = (active ? CAN_FILTER_ENABLE : CAN_FILTER_DISABLE);
|
|
800a45e: 7abb ldrb r3, [r7, #10]
|
|
800a460: 2b00 cmp r3, #0
|
|
800a462: d001 beq.n 800a468 <_ZN3sta18STM32CanController15configureFilterEhRKNS_9CanFilterEb+0xb4>
|
|
800a464: 2201 movs r2, #1
|
|
800a466: e000 b.n 800a46a <_ZN3sta18STM32CanController15configureFilterEhRKNS_9CanFilterEb+0xb6>
|
|
800a468: 2200 movs r2, #0
|
|
800a46a: 697b ldr r3, [r7, #20]
|
|
800a46c: 621a str r2, [r3, #32]
|
|
|
|
HAL_CAN_ConfigFilter(handle_, config);
|
|
800a46e: 68fb ldr r3, [r7, #12]
|
|
800a470: 685b ldr r3, [r3, #4]
|
|
800a472: 6979 ldr r1, [r7, #20]
|
|
800a474: 4618 mov r0, r3
|
|
800a476: f7f9 fd67 bl 8003f48 <HAL_CAN_ConfigFilter>
|
|
}
|
|
800a47a: bf00 nop
|
|
800a47c: 3718 adds r7, #24
|
|
800a47e: 46bd mov sp, r7
|
|
800a480: bd80 pop {r7, pc}
|
|
|
|
0800a482 <_ZN3sta18STM32CanController12enableFilterEh>:
|
|
|
|
void STM32CanController::enableFilter(uint8_t idx)
|
|
{
|
|
800a482: b580 push {r7, lr}
|
|
800a484: b084 sub sp, #16
|
|
800a486: af00 add r7, sp, #0
|
|
800a488: 6078 str r0, [r7, #4]
|
|
800a48a: 460b mov r3, r1
|
|
800a48c: 70fb strb r3, [r7, #3]
|
|
CAN_FilterTypeDef * config = &filters_[idx];
|
|
800a48e: 78fa ldrb r2, [r7, #3]
|
|
800a490: 4613 mov r3, r2
|
|
800a492: 009b lsls r3, r3, #2
|
|
800a494: 4413 add r3, r2
|
|
800a496: 00db lsls r3, r3, #3
|
|
800a498: 3308 adds r3, #8
|
|
800a49a: 687a ldr r2, [r7, #4]
|
|
800a49c: 4413 add r3, r2
|
|
800a49e: 60fb str r3, [r7, #12]
|
|
|
|
config->FilterActivation = CAN_FILTER_ENABLE;
|
|
800a4a0: 68fb ldr r3, [r7, #12]
|
|
800a4a2: 2201 movs r2, #1
|
|
800a4a4: 621a str r2, [r3, #32]
|
|
|
|
HAL_CAN_ConfigFilter(handle_, config);
|
|
800a4a6: 687b ldr r3, [r7, #4]
|
|
800a4a8: 685b ldr r3, [r3, #4]
|
|
800a4aa: 68f9 ldr r1, [r7, #12]
|
|
800a4ac: 4618 mov r0, r3
|
|
800a4ae: f7f9 fd4b bl 8003f48 <HAL_CAN_ConfigFilter>
|
|
}
|
|
800a4b2: bf00 nop
|
|
800a4b4: 3710 adds r7, #16
|
|
800a4b6: 46bd mov sp, r7
|
|
800a4b8: bd80 pop {r7, pc}
|
|
|
|
0800a4ba <_ZN3sta18STM32CanController13disableFilterEh>:
|
|
|
|
void STM32CanController::disableFilter(uint8_t idx)
|
|
{
|
|
800a4ba: b580 push {r7, lr}
|
|
800a4bc: b084 sub sp, #16
|
|
800a4be: af00 add r7, sp, #0
|
|
800a4c0: 6078 str r0, [r7, #4]
|
|
800a4c2: 460b mov r3, r1
|
|
800a4c4: 70fb strb r3, [r7, #3]
|
|
CAN_FilterTypeDef * config = &filters_[idx];
|
|
800a4c6: 78fa ldrb r2, [r7, #3]
|
|
800a4c8: 4613 mov r3, r2
|
|
800a4ca: 009b lsls r3, r3, #2
|
|
800a4cc: 4413 add r3, r2
|
|
800a4ce: 00db lsls r3, r3, #3
|
|
800a4d0: 3308 adds r3, #8
|
|
800a4d2: 687a ldr r2, [r7, #4]
|
|
800a4d4: 4413 add r3, r2
|
|
800a4d6: 60fb str r3, [r7, #12]
|
|
|
|
config->FilterActivation = CAN_FILTER_DISABLE;
|
|
800a4d8: 68fb ldr r3, [r7, #12]
|
|
800a4da: 2200 movs r2, #0
|
|
800a4dc: 621a str r2, [r3, #32]
|
|
|
|
HAL_CAN_ConfigFilter(handle_, config);
|
|
800a4de: 687b ldr r3, [r7, #4]
|
|
800a4e0: 685b ldr r3, [r3, #4]
|
|
800a4e2: 68f9 ldr r1, [r7, #12]
|
|
800a4e4: 4618 mov r0, r3
|
|
800a4e6: f7f9 fd2f bl 8003f48 <HAL_CAN_ConfigFilter>
|
|
}
|
|
800a4ea: bf00 nop
|
|
800a4ec: 3710 adds r7, #16
|
|
800a4ee: 46bd mov sp, r7
|
|
800a4f0: bd80 pop {r7, pc}
|
|
|
|
0800a4f2 <_ZN3sta18STM32CanController12clearFiltersEv>:
|
|
|
|
void STM32CanController::clearFilters()
|
|
{
|
|
800a4f2: b580 push {r7, lr}
|
|
800a4f4: b084 sub sp, #16
|
|
800a4f6: af00 add r7, sp, #0
|
|
800a4f8: 6078 str r0, [r7, #4]
|
|
for (uint32_t i = filter_start_; i < filter_start_ + MAX_FILTER_COUNT; ++i)
|
|
800a4fa: 687b ldr r3, [r7, #4]
|
|
800a4fc: f8d3 3238 ldr.w r3, [r3, #568] @ 0x238
|
|
800a500: 60fb str r3, [r7, #12]
|
|
800a502: e018 b.n 800a536 <_ZN3sta18STM32CanController12clearFiltersEv+0x44>
|
|
{
|
|
CAN_FilterTypeDef * config = &filters_[i];
|
|
800a504: 68fa ldr r2, [r7, #12]
|
|
800a506: 4613 mov r3, r2
|
|
800a508: 009b lsls r3, r3, #2
|
|
800a50a: 4413 add r3, r2
|
|
800a50c: 00db lsls r3, r3, #3
|
|
800a50e: 3308 adds r3, #8
|
|
800a510: 687a ldr r2, [r7, #4]
|
|
800a512: 4413 add r3, r2
|
|
800a514: 60bb str r3, [r7, #8]
|
|
|
|
// Only disable active filters
|
|
if (config->FilterActivation == CAN_FILTER_ENABLE)
|
|
800a516: 68bb ldr r3, [r7, #8]
|
|
800a518: 6a1b ldr r3, [r3, #32]
|
|
800a51a: 2b01 cmp r3, #1
|
|
800a51c: d108 bne.n 800a530 <_ZN3sta18STM32CanController12clearFiltersEv+0x3e>
|
|
{
|
|
config->FilterActivation = CAN_FILTER_DISABLE;
|
|
800a51e: 68bb ldr r3, [r7, #8]
|
|
800a520: 2200 movs r2, #0
|
|
800a522: 621a str r2, [r3, #32]
|
|
HAL_CAN_ConfigFilter(handle_, config);
|
|
800a524: 687b ldr r3, [r7, #4]
|
|
800a526: 685b ldr r3, [r3, #4]
|
|
800a528: 68b9 ldr r1, [r7, #8]
|
|
800a52a: 4618 mov r0, r3
|
|
800a52c: f7f9 fd0c bl 8003f48 <HAL_CAN_ConfigFilter>
|
|
for (uint32_t i = filter_start_; i < filter_start_ + MAX_FILTER_COUNT; ++i)
|
|
800a530: 68fb ldr r3, [r7, #12]
|
|
800a532: 3301 adds r3, #1
|
|
800a534: 60fb str r3, [r7, #12]
|
|
800a536: 687b ldr r3, [r7, #4]
|
|
800a538: f8d3 3238 ldr.w r3, [r3, #568] @ 0x238
|
|
800a53c: 330e adds r3, #14
|
|
800a53e: 68fa ldr r2, [r7, #12]
|
|
800a540: 429a cmp r2, r3
|
|
800a542: d3df bcc.n 800a504 <_ZN3sta18STM32CanController12clearFiltersEv+0x12>
|
|
}
|
|
}
|
|
}
|
|
800a544: bf00 nop
|
|
800a546: bf00 nop
|
|
800a548: 3710 adds r7, #16
|
|
800a54a: 46bd mov sp, r7
|
|
800a54c: bd80 pop {r7, pc}
|
|
|
|
0800a54e <_ZN3sta18STM32CanController11initFiltersEv>:
|
|
|
|
|
|
void STM32CanController::initFilters()
|
|
{
|
|
800a54e: b580 push {r7, lr}
|
|
800a550: b084 sub sp, #16
|
|
800a552: af00 add r7, sp, #0
|
|
800a554: 6078 str r0, [r7, #4]
|
|
CAN_FilterTypeDef * config = &filters_[filter_start_];
|
|
800a556: 687b ldr r3, [r7, #4]
|
|
800a558: f8d3 2238 ldr.w r2, [r3, #568] @ 0x238
|
|
800a55c: 4613 mov r3, r2
|
|
800a55e: 009b lsls r3, r3, #2
|
|
800a560: 4413 add r3, r2
|
|
800a562: 00db lsls r3, r3, #3
|
|
800a564: 3308 adds r3, #8
|
|
800a566: 687a ldr r2, [r7, #4]
|
|
800a568: 4413 add r3, r2
|
|
800a56a: 60fb str r3, [r7, #12]
|
|
if (filter_start_ == 0){
|
|
800a56c: 687b ldr r3, [r7, #4]
|
|
800a56e: f8d3 3238 ldr.w r3, [r3, #568] @ 0x238
|
|
800a572: 2b00 cmp r3, #0
|
|
800a574: d103 bne.n 800a57e <_ZN3sta18STM32CanController11initFiltersEv+0x30>
|
|
config->FilterBank = 0;
|
|
800a576: 68fb ldr r3, [r7, #12]
|
|
800a578: 2200 movs r2, #0
|
|
800a57a: 615a str r2, [r3, #20]
|
|
800a57c: e005 b.n 800a58a <_ZN3sta18STM32CanController11initFiltersEv+0x3c>
|
|
}else{
|
|
// Split can peripheral bank for any STM F4 series supporting multiple CAN peripherals
|
|
config->FilterBank = filter_start_+1;
|
|
800a57e: 687b ldr r3, [r7, #4]
|
|
800a580: f8d3 3238 ldr.w r3, [r3, #568] @ 0x238
|
|
800a584: 1c5a adds r2, r3, #1
|
|
800a586: 68fb ldr r3, [r7, #12]
|
|
800a588: 615a str r2, [r3, #20]
|
|
}
|
|
|
|
config->FilterMode = CAN_FILTERMODE_IDMASK;
|
|
800a58a: 68fb ldr r3, [r7, #12]
|
|
800a58c: 2200 movs r2, #0
|
|
800a58e: 619a str r2, [r3, #24]
|
|
config->FilterScale = CAN_FILTERSCALE_32BIT;
|
|
800a590: 68fb ldr r3, [r7, #12]
|
|
800a592: 2201 movs r2, #1
|
|
800a594: 61da str r2, [r3, #28]
|
|
config->FilterActivation = ENABLE;
|
|
800a596: 68fb ldr r3, [r7, #12]
|
|
800a598: 2201 movs r2, #1
|
|
800a59a: 621a str r2, [r3, #32]
|
|
config->FilterIdHigh = 0x0000;
|
|
800a59c: 68fb ldr r3, [r7, #12]
|
|
800a59e: 2200 movs r2, #0
|
|
800a5a0: 601a str r2, [r3, #0]
|
|
config->FilterIdLow = 0x0000;
|
|
800a5a2: 68fb ldr r3, [r7, #12]
|
|
800a5a4: 2200 movs r2, #0
|
|
800a5a6: 605a str r2, [r3, #4]
|
|
config->FilterMaskIdHigh = 0x0000;
|
|
800a5a8: 68fb ldr r3, [r7, #12]
|
|
800a5aa: 2200 movs r2, #0
|
|
800a5ac: 609a str r2, [r3, #8]
|
|
config->FilterMaskIdLow = 0x0000;
|
|
800a5ae: 68fb ldr r3, [r7, #12]
|
|
800a5b0: 2200 movs r2, #0
|
|
800a5b2: 60da str r2, [r3, #12]
|
|
config->SlaveStartFilterBank = filter_start_;
|
|
800a5b4: 687b ldr r3, [r7, #4]
|
|
800a5b6: f8d3 2238 ldr.w r2, [r3, #568] @ 0x238
|
|
800a5ba: 68fb ldr r3, [r7, #12]
|
|
800a5bc: 625a str r2, [r3, #36] @ 0x24
|
|
HAL_CAN_ConfigFilter(handle_, config);
|
|
800a5be: 687b ldr r3, [r7, #4]
|
|
800a5c0: 685b ldr r3, [r3, #4]
|
|
800a5c2: 68f9 ldr r1, [r7, #12]
|
|
800a5c4: 4618 mov r0, r3
|
|
800a5c6: f7f9 fcbf bl 8003f48 <HAL_CAN_ConfigFilter>
|
|
}
|
|
800a5ca: bf00 nop
|
|
800a5cc: 3710 adds r7, #16
|
|
800a5ce: 46bd mov sp, r7
|
|
800a5d0: bd80 pop {r7, pc}
|
|
|
|
0800a5d2 <_ZN3sta18STM32CanController17getPendingRxFifosEv>:
|
|
|
|
CanPendingRxFifos STM32CanController::getPendingRxFifos(){
|
|
800a5d2: b580 push {r7, lr}
|
|
800a5d4: b084 sub sp, #16
|
|
800a5d6: af00 add r7, sp, #0
|
|
800a5d8: 6078 str r0, [r7, #4]
|
|
800a5da: 6039 str r1, [r7, #0]
|
|
|
|
|
|
uint32_t rxFlags = 0;
|
|
800a5dc: 2300 movs r3, #0
|
|
800a5de: 60fb str r3, [r7, #12]
|
|
|
|
// Conditions to set the least significant bits
|
|
if (HAL_CAN_GetRxFifoFillLevel(handle_, CAN_RX_FIFO0) != 0) {
|
|
800a5e0: 683b ldr r3, [r7, #0]
|
|
800a5e2: 685b ldr r3, [r3, #4]
|
|
800a5e4: 2100 movs r1, #0
|
|
800a5e6: 4618 mov r0, r3
|
|
800a5e8: f7f9 ff80 bl 80044ec <HAL_CAN_GetRxFifoFillLevel>
|
|
800a5ec: 4603 mov r3, r0
|
|
800a5ee: 2b00 cmp r3, #0
|
|
800a5f0: bf14 ite ne
|
|
800a5f2: 2301 movne r3, #1
|
|
800a5f4: 2300 moveq r3, #0
|
|
800a5f6: b2db uxtb r3, r3
|
|
800a5f8: 2b00 cmp r3, #0
|
|
800a5fa: d003 beq.n 800a604 <_ZN3sta18STM32CanController17getPendingRxFifosEv+0x32>
|
|
// Set the first least significant bit
|
|
rxFlags |= 0x01; // 0x01 is 00000001 in binary (LSB set, others cleared)
|
|
800a5fc: 68fb ldr r3, [r7, #12]
|
|
800a5fe: f043 0301 orr.w r3, r3, #1
|
|
800a602: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
if (HAL_CAN_GetRxFifoFillLevel(handle_, CAN_RX_FIFO1) != 0) {
|
|
800a604: 683b ldr r3, [r7, #0]
|
|
800a606: 685b ldr r3, [r3, #4]
|
|
800a608: 2101 movs r1, #1
|
|
800a60a: 4618 mov r0, r3
|
|
800a60c: f7f9 ff6e bl 80044ec <HAL_CAN_GetRxFifoFillLevel>
|
|
800a610: 4603 mov r3, r0
|
|
800a612: 2b00 cmp r3, #0
|
|
800a614: bf14 ite ne
|
|
800a616: 2301 movne r3, #1
|
|
800a618: 2300 moveq r3, #0
|
|
800a61a: b2db uxtb r3, r3
|
|
800a61c: 2b00 cmp r3, #0
|
|
800a61e: d003 beq.n 800a628 <_ZN3sta18STM32CanController17getPendingRxFifosEv+0x56>
|
|
// Set the second least significant bit
|
|
rxFlags |= 0x02; // 0x02 is 00000010 in binary (2nd LSB set, others cleared)
|
|
800a620: 68fb ldr r3, [r7, #12]
|
|
800a622: f043 0302 orr.w r3, r3, #2
|
|
800a626: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
return CanPendingRxFifos(rxFlags, MAX_FIFO_COUNT);;
|
|
800a628: 2202 movs r2, #2
|
|
800a62a: 68f9 ldr r1, [r7, #12]
|
|
800a62c: 6878 ldr r0, [r7, #4]
|
|
800a62e: f7ff faff bl 8009c30 <_ZN3sta17CanPendingRxFifosC1Emh>
|
|
}
|
|
800a632: 6878 ldr r0, [r7, #4]
|
|
800a634: 3710 adds r7, #16
|
|
800a636: 46bd mov sp, r7
|
|
800a638: bd80 pop {r7, pc}
|
|
|
|
0800a63a <_ZNK3sta18STM32CanController14maxFilterCountEv>:
|
|
|
|
uint8_t STM32CanController::maxFilterCount() const{
|
|
800a63a: b480 push {r7}
|
|
800a63c: b083 sub sp, #12
|
|
800a63e: af00 add r7, sp, #0
|
|
800a640: 6078 str r0, [r7, #4]
|
|
return MAX_FILTER_COUNT;
|
|
800a642: 230e movs r3, #14
|
|
}
|
|
800a644: 4618 mov r0, r3
|
|
800a646: 370c adds r7, #12
|
|
800a648: 46bd mov sp, r7
|
|
800a64a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a64e: 4770 bx lr
|
|
|
|
0800a650 <_ZNK3sta18STM32CanController12maxFifoCountEv>:
|
|
|
|
uint8_t STM32CanController::maxFifoCount() const {
|
|
800a650: b480 push {r7}
|
|
800a652: b083 sub sp, #12
|
|
800a654: af00 add r7, sp, #0
|
|
800a656: 6078 str r0, [r7, #4]
|
|
return MAX_FIFO_COUNT;
|
|
800a658: 2302 movs r3, #2
|
|
}
|
|
800a65a: 4618 mov r0, r3
|
|
800a65c: 370c adds r7, #12
|
|
800a65e: 46bd mov sp, r7
|
|
800a660: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a664: 4770 bx lr
|
|
|
|
0800a666 <_ZNK3sta18STM32CanController14maxPayloadSizeEv>:
|
|
|
|
uint8_t STM32CanController::maxPayloadSize() const {
|
|
800a666: b480 push {r7}
|
|
800a668: b083 sub sp, #12
|
|
800a66a: af00 add r7, sp, #0
|
|
800a66c: 6078 str r0, [r7, #4]
|
|
return MAX_PAYLOAD_SIZE;
|
|
800a66e: 2308 movs r3, #8
|
|
}
|
|
800a670: 4618 mov r0, r3
|
|
800a672: 370c adds r7, #12
|
|
800a674: 46bd mov sp, r7
|
|
800a676: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a67a: 4770 bx lr
|
|
|
|
0800a67c <_Z41__static_initialization_and_destruction_0ii>:
|
|
}
|
|
else{
|
|
sta::CanBus_RxPendingCallbackSecondary(CAN_RX_FIFO1);
|
|
}
|
|
}
|
|
}
|
|
800a67c: b580 push {r7, lr}
|
|
800a67e: b082 sub sp, #8
|
|
800a680: af00 add r7, sp, #0
|
|
800a682: 6078 str r0, [r7, #4]
|
|
800a684: 6039 str r1, [r7, #0]
|
|
800a686: 687b ldr r3, [r7, #4]
|
|
800a688: 2b01 cmp r3, #1
|
|
800a68a: d109 bne.n 800a6a0 <_Z41__static_initialization_and_destruction_0ii+0x24>
|
|
800a68c: 683b ldr r3, [r7, #0]
|
|
800a68e: f64f 72ff movw r2, #65535 @ 0xffff
|
|
800a692: 4293 cmp r3, r2
|
|
800a694: d104 bne.n 800a6a0 <_Z41__static_initialization_and_destruction_0ii+0x24>
|
|
STM32CanController CanBus(&STA_STM32_CAN_HANDLE);
|
|
800a696: 2200 movs r2, #0
|
|
800a698: 4903 ldr r1, [pc, #12] @ (800a6a8 <_Z41__static_initialization_and_destruction_0ii+0x2c>)
|
|
800a69a: 4804 ldr r0, [pc, #16] @ (800a6ac <_Z41__static_initialization_and_destruction_0ii+0x30>)
|
|
800a69c: f7ff fdba bl 800a214 <_ZN3sta18STM32CanControllerC1EP17CAN_HandleTypeDefm>
|
|
}
|
|
800a6a0: bf00 nop
|
|
800a6a2: 3708 adds r7, #8
|
|
800a6a4: 46bd mov sp, r7
|
|
800a6a6: bd80 pop {r7, pc}
|
|
800a6a8: 20000200 .word 0x20000200
|
|
800a6ac: 20000308 .word 0x20000308
|
|
|
|
0800a6b0 <_GLOBAL__sub_I__ZN3sta18STM32CanControllerC2EP17CAN_HandleTypeDefm>:
|
|
800a6b0: b580 push {r7, lr}
|
|
800a6b2: af00 add r7, sp, #0
|
|
800a6b4: f64f 71ff movw r1, #65535 @ 0xffff
|
|
800a6b8: 2001 movs r0, #1
|
|
800a6ba: f7ff ffdf bl 800a67c <_Z41__static_initialization_and_destruction_0ii>
|
|
800a6be: bd80 pop {r7, pc}
|
|
|
|
0800a6c0 <_ZN3sta7initHALEv>:
|
|
|
|
|
|
namespace sta
|
|
{
|
|
void initHAL()
|
|
{
|
|
800a6c0: b480 push {r7}
|
|
800a6c2: af00 add r7, sp, #0
|
|
// Start timer base
|
|
HAL_TIM_Base_Start(&STA_STM32_DELAY_US_TIM);
|
|
#else
|
|
|
|
#endif // STA_STM32_DELAY_US_TIM
|
|
}
|
|
800a6c4: bf00 nop
|
|
800a6c6: 46bd mov sp, r7
|
|
800a6c8: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a6cc: 4770 bx lr
|
|
...
|
|
|
|
0800a6d0 <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE>:
|
|
#include <sta/debug/assert.hpp>
|
|
#include <cstring>
|
|
|
|
namespace sta
|
|
{
|
|
STM32UART::STM32UART(UART_HandleTypeDef * handle, UARTSettings & settings, Mutex * mutex)
|
|
800a6d0: b580 push {r7, lr}
|
|
800a6d2: b084 sub sp, #16
|
|
800a6d4: af00 add r7, sp, #0
|
|
800a6d6: 60f8 str r0, [r7, #12]
|
|
800a6d8: 60b9 str r1, [r7, #8]
|
|
800a6da: 607a str r2, [r7, #4]
|
|
800a6dc: 603b str r3, [r7, #0]
|
|
: UART{settings, mutex}, handle_{handle}
|
|
800a6de: 68fb ldr r3, [r7, #12]
|
|
800a6e0: 683a ldr r2, [r7, #0]
|
|
800a6e2: 6879 ldr r1, [r7, #4]
|
|
800a6e4: 4618 mov r0, r3
|
|
800a6e6: f7ff fa7d bl 8009be4 <_ZN3sta4UARTC1ERNS_12UARTSettingsEPNS_5MutexE>
|
|
800a6ea: 4a0a ldr r2, [pc, #40] @ (800a714 <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE+0x44>)
|
|
800a6ec: 68fb ldr r3, [r7, #12]
|
|
800a6ee: 601a str r2, [r3, #0]
|
|
800a6f0: 68fb ldr r3, [r7, #12]
|
|
800a6f2: 68ba ldr r2, [r7, #8]
|
|
800a6f4: 611a str r2, [r3, #16]
|
|
{
|
|
STA_ASSERT(handle != nullptr);
|
|
800a6f6: 68bb ldr r3, [r7, #8]
|
|
800a6f8: 2b00 cmp r3, #0
|
|
800a6fa: d106 bne.n 800a70a <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE+0x3a>
|
|
800a6fc: 220c movs r2, #12
|
|
800a6fe: 4906 ldr r1, [pc, #24] @ (800a718 <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE+0x48>)
|
|
800a700: 4806 ldr r0, [pc, #24] @ (800a71c <_ZN3sta9STM32UARTC1EP20__UART_HandleTypeDefRNS_12UARTSettingsEPNS_5MutexE+0x4c>)
|
|
800a702: f7ff faa9 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a706: f7ff fad7 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
}
|
|
800a70a: 68fb ldr r3, [r7, #12]
|
|
800a70c: 4618 mov r0, r3
|
|
800a70e: 3710 adds r7, #16
|
|
800a710: 46bd mov sp, r7
|
|
800a712: bd80 pop {r7, pc}
|
|
800a714: 080132b0 .word 0x080132b0
|
|
800a718: 08012fe0 .word 0x08012fe0
|
|
800a71c: 08013010 .word 0x08013010
|
|
|
|
0800a720 <_ZN3sta9STM32UART8transferEhm>:
|
|
|
|
bool STM32UART::transfer(uint8_t value, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
800a720: b580 push {r7, lr}
|
|
800a722: b084 sub sp, #16
|
|
800a724: af00 add r7, sp, #0
|
|
800a726: 60f8 str r0, [r7, #12]
|
|
800a728: 460b mov r3, r1
|
|
800a72a: 607a str r2, [r7, #4]
|
|
800a72c: 72fb strb r3, [r7, #11]
|
|
return HAL_UART_Transmit(handle_, &value, 1, timeout) != HAL_OK;
|
|
800a72e: 68fb ldr r3, [r7, #12]
|
|
800a730: 6918 ldr r0, [r3, #16]
|
|
800a732: f107 010b add.w r1, r7, #11
|
|
800a736: 687b ldr r3, [r7, #4]
|
|
800a738: 2201 movs r2, #1
|
|
800a73a: f7fb f939 bl 80059b0 <HAL_UART_Transmit>
|
|
800a73e: 4603 mov r3, r0
|
|
800a740: 2b00 cmp r3, #0
|
|
800a742: bf14 ite ne
|
|
800a744: 2301 movne r3, #1
|
|
800a746: 2300 moveq r3, #0
|
|
800a748: b2db uxtb r3, r3
|
|
}
|
|
800a74a: 4618 mov r0, r3
|
|
800a74c: 3710 adds r7, #16
|
|
800a74e: 46bd mov sp, r7
|
|
800a750: bd80 pop {r7, pc}
|
|
|
|
0800a752 <_ZN3sta9STM32UART10transfer16Etm>:
|
|
|
|
bool STM32UART::transfer16(uint16_t value, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
800a752: b580 push {r7, lr}
|
|
800a754: b084 sub sp, #16
|
|
800a756: af00 add r7, sp, #0
|
|
800a758: 60f8 str r0, [r7, #12]
|
|
800a75a: 460b mov r3, r1
|
|
800a75c: 607a str r2, [r7, #4]
|
|
800a75e: 817b strh r3, [r7, #10]
|
|
return HAL_UART_Transmit(handle_, reinterpret_cast<uint8_t *>(&value), 2, timeout) == HAL_OK;
|
|
800a760: 68fb ldr r3, [r7, #12]
|
|
800a762: 6918 ldr r0, [r3, #16]
|
|
800a764: f107 010a add.w r1, r7, #10
|
|
800a768: 687b ldr r3, [r7, #4]
|
|
800a76a: 2202 movs r2, #2
|
|
800a76c: f7fb f920 bl 80059b0 <HAL_UART_Transmit>
|
|
800a770: 4603 mov r3, r0
|
|
800a772: 2b00 cmp r3, #0
|
|
800a774: bf0c ite eq
|
|
800a776: 2301 moveq r3, #1
|
|
800a778: 2300 movne r3, #0
|
|
800a77a: b2db uxtb r3, r3
|
|
}
|
|
800a77c: 4618 mov r0, r3
|
|
800a77e: 3710 adds r7, #16
|
|
800a780: 46bd mov sp, r7
|
|
800a782: bd80 pop {r7, pc}
|
|
|
|
0800a784 <_ZN3sta9STM32UART8transferEPKhjm>:
|
|
|
|
bool STM32UART::transfer(const uint8_t * buffer, size_t size, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
800a784: b580 push {r7, lr}
|
|
800a786: b084 sub sp, #16
|
|
800a788: af00 add r7, sp, #0
|
|
800a78a: 60f8 str r0, [r7, #12]
|
|
800a78c: 60b9 str r1, [r7, #8]
|
|
800a78e: 607a str r2, [r7, #4]
|
|
800a790: 603b str r3, [r7, #0]
|
|
STA_ASSERT(buffer != nullptr);
|
|
800a792: 68bb ldr r3, [r7, #8]
|
|
800a794: 2b00 cmp r3, #0
|
|
800a796: d106 bne.n 800a7a6 <_ZN3sta9STM32UART8transferEPKhjm+0x22>
|
|
800a798: 221b movs r2, #27
|
|
800a79a: 490c ldr r1, [pc, #48] @ (800a7cc <_ZN3sta9STM32UART8transferEPKhjm+0x48>)
|
|
800a79c: 480c ldr r0, [pc, #48] @ (800a7d0 <_ZN3sta9STM32UART8transferEPKhjm+0x4c>)
|
|
800a79e: f7ff fa5b bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a7a2: f7ff fa89 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
return HAL_UART_Transmit(handle_, const_cast<uint8_t *>(buffer), size, timeout) == HAL_OK;
|
|
800a7a6: 68fb ldr r3, [r7, #12]
|
|
800a7a8: 6918 ldr r0, [r3, #16]
|
|
800a7aa: 687b ldr r3, [r7, #4]
|
|
800a7ac: b29a uxth r2, r3
|
|
800a7ae: 683b ldr r3, [r7, #0]
|
|
800a7b0: 68b9 ldr r1, [r7, #8]
|
|
800a7b2: f7fb f8fd bl 80059b0 <HAL_UART_Transmit>
|
|
800a7b6: 4603 mov r3, r0
|
|
800a7b8: 2b00 cmp r3, #0
|
|
800a7ba: bf0c ite eq
|
|
800a7bc: 2301 moveq r3, #1
|
|
800a7be: 2300 movne r3, #0
|
|
800a7c0: b2db uxtb r3, r3
|
|
}
|
|
800a7c2: 4618 mov r0, r3
|
|
800a7c4: 3710 adds r7, #16
|
|
800a7c6: 46bd mov sp, r7
|
|
800a7c8: bd80 pop {r7, pc}
|
|
800a7ca: bf00 nop
|
|
800a7cc: 08012fe0 .word 0x08012fe0
|
|
800a7d0: 08013024 .word 0x08013024
|
|
|
|
0800a7d4 <_ZN3sta9STM32UART7receiveEPhjm>:
|
|
|
|
bool STM32UART::receive(uint8_t * buffer, size_t size, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
800a7d4: b580 push {r7, lr}
|
|
800a7d6: b084 sub sp, #16
|
|
800a7d8: af00 add r7, sp, #0
|
|
800a7da: 60f8 str r0, [r7, #12]
|
|
800a7dc: 60b9 str r1, [r7, #8]
|
|
800a7de: 607a str r2, [r7, #4]
|
|
800a7e0: 603b str r3, [r7, #0]
|
|
STA_ASSERT(buffer != nullptr);
|
|
800a7e2: 68bb ldr r3, [r7, #8]
|
|
800a7e4: 2b00 cmp r3, #0
|
|
800a7e6: d106 bne.n 800a7f6 <_ZN3sta9STM32UART7receiveEPhjm+0x22>
|
|
800a7e8: 2222 movs r2, #34 @ 0x22
|
|
800a7ea: 490c ldr r1, [pc, #48] @ (800a81c <_ZN3sta9STM32UART7receiveEPhjm+0x48>)
|
|
800a7ec: 480c ldr r0, [pc, #48] @ (800a820 <_ZN3sta9STM32UART7receiveEPhjm+0x4c>)
|
|
800a7ee: f7ff fa33 bl 8009c58 <_ZN3sta13assert_failedEPKcS1_m>
|
|
800a7f2: f7ff fa61 bl 8009cb8 <_ZN3sta11assert_haltEv>
|
|
|
|
return HAL_UART_Receive(handle_, buffer, size, timeout) == HAL_OK;
|
|
800a7f6: 68fb ldr r3, [r7, #12]
|
|
800a7f8: 6918 ldr r0, [r3, #16]
|
|
800a7fa: 687b ldr r3, [r7, #4]
|
|
800a7fc: b29a uxth r2, r3
|
|
800a7fe: 683b ldr r3, [r7, #0]
|
|
800a800: 68b9 ldr r1, [r7, #8]
|
|
800a802: f7fb f960 bl 8005ac6 <HAL_UART_Receive>
|
|
800a806: 4603 mov r3, r0
|
|
800a808: 2b00 cmp r3, #0
|
|
800a80a: bf0c ite eq
|
|
800a80c: 2301 moveq r3, #1
|
|
800a80e: 2300 movne r3, #0
|
|
800a810: b2db uxtb r3, r3
|
|
}
|
|
800a812: 4618 mov r0, r3
|
|
800a814: 3710 adds r7, #16
|
|
800a816: 46bd mov sp, r7
|
|
800a818: bd80 pop {r7, pc}
|
|
800a81a: bf00 nop
|
|
800a81c: 08012fe0 .word 0x08012fe0
|
|
800a820: 08013024 .word 0x08013024
|
|
|
|
0800a824 <_ZN3sta9STM32UART4fillEhjm>:
|
|
|
|
bool STM32UART::fill(uint8_t value, size_t count, uint32_t timeout /* = STA_MAX_TIMEOUT */)
|
|
{
|
|
800a824: b590 push {r4, r7, lr}
|
|
800a826: b087 sub sp, #28
|
|
800a828: af00 add r7, sp, #0
|
|
800a82a: 60f8 str r0, [r7, #12]
|
|
800a82c: 607a str r2, [r7, #4]
|
|
800a82e: 603b str r3, [r7, #0]
|
|
800a830: 460b mov r3, r1
|
|
800a832: 72fb strb r3, [r7, #11]
|
|
// Initialize a buffer of size count and fill it with the value.
|
|
uint8_t *buffer = new uint8_t[count];
|
|
800a834: 687b ldr r3, [r7, #4]
|
|
800a836: 4618 mov r0, r3
|
|
800a838: f004 ff89 bl 800f74e <_Znaj>
|
|
800a83c: 4603 mov r3, r0
|
|
800a83e: 617b str r3, [r7, #20]
|
|
memset(buffer, value, count);
|
|
800a840: 7afb ldrb r3, [r7, #11]
|
|
800a842: 687a ldr r2, [r7, #4]
|
|
800a844: 4619 mov r1, r3
|
|
800a846: 6978 ldr r0, [r7, #20]
|
|
800a848: f006 f802 bl 8010850 <memset>
|
|
|
|
// Transfer the buffer via the bus.
|
|
bool rslt = transfer(buffer, count, timeout);
|
|
800a84c: 68fb ldr r3, [r7, #12]
|
|
800a84e: 681b ldr r3, [r3, #0]
|
|
800a850: 3308 adds r3, #8
|
|
800a852: 681c ldr r4, [r3, #0]
|
|
800a854: 683b ldr r3, [r7, #0]
|
|
800a856: 687a ldr r2, [r7, #4]
|
|
800a858: 6979 ldr r1, [r7, #20]
|
|
800a85a: 68f8 ldr r0, [r7, #12]
|
|
800a85c: 47a0 blx r4
|
|
800a85e: 4603 mov r3, r0
|
|
800a860: 74fb strb r3, [r7, #19]
|
|
|
|
delete [] buffer;
|
|
800a862: 697b ldr r3, [r7, #20]
|
|
800a864: 2b00 cmp r3, #0
|
|
800a866: d002 beq.n 800a86e <_ZN3sta9STM32UART4fillEhjm+0x4a>
|
|
800a868: 6978 ldr r0, [r7, #20]
|
|
800a86a: f004 ff5d bl 800f728 <_ZdaPv>
|
|
|
|
return rslt;
|
|
800a86e: 7cfb ldrb r3, [r7, #19]
|
|
}
|
|
800a870: 4618 mov r0, r3
|
|
800a872: 371c adds r7, #28
|
|
800a874: 46bd mov sp, r7
|
|
800a876: bd90 pop {r4, r7, pc}
|
|
|
|
0800a878 <__NVIC_SetPriority>:
|
|
{
|
|
800a878: b480 push {r7}
|
|
800a87a: b083 sub sp, #12
|
|
800a87c: af00 add r7, sp, #0
|
|
800a87e: 4603 mov r3, r0
|
|
800a880: 6039 str r1, [r7, #0]
|
|
800a882: 71fb strb r3, [r7, #7]
|
|
if ((int32_t)(IRQn) >= 0)
|
|
800a884: f997 3007 ldrsb.w r3, [r7, #7]
|
|
800a888: 2b00 cmp r3, #0
|
|
800a88a: db0a blt.n 800a8a2 <__NVIC_SetPriority+0x2a>
|
|
NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
|
|
800a88c: 683b ldr r3, [r7, #0]
|
|
800a88e: b2da uxtb r2, r3
|
|
800a890: 490c ldr r1, [pc, #48] @ (800a8c4 <__NVIC_SetPriority+0x4c>)
|
|
800a892: f997 3007 ldrsb.w r3, [r7, #7]
|
|
800a896: 0112 lsls r2, r2, #4
|
|
800a898: b2d2 uxtb r2, r2
|
|
800a89a: 440b add r3, r1
|
|
800a89c: f883 2300 strb.w r2, [r3, #768] @ 0x300
|
|
}
|
|
800a8a0: e00a b.n 800a8b8 <__NVIC_SetPriority+0x40>
|
|
SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
|
|
800a8a2: 683b ldr r3, [r7, #0]
|
|
800a8a4: b2da uxtb r2, r3
|
|
800a8a6: 4908 ldr r1, [pc, #32] @ (800a8c8 <__NVIC_SetPriority+0x50>)
|
|
800a8a8: 79fb ldrb r3, [r7, #7]
|
|
800a8aa: f003 030f and.w r3, r3, #15
|
|
800a8ae: 3b04 subs r3, #4
|
|
800a8b0: 0112 lsls r2, r2, #4
|
|
800a8b2: b2d2 uxtb r2, r2
|
|
800a8b4: 440b add r3, r1
|
|
800a8b6: 761a strb r2, [r3, #24]
|
|
}
|
|
800a8b8: bf00 nop
|
|
800a8ba: 370c adds r7, #12
|
|
800a8bc: 46bd mov sp, r7
|
|
800a8be: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a8c2: 4770 bx lr
|
|
800a8c4: e000e100 .word 0xe000e100
|
|
800a8c8: e000ed00 .word 0xe000ed00
|
|
|
|
0800a8cc <SysTick_Handler>:
|
|
|
|
/*
|
|
SysTick handler implementation that also clears overflow flag.
|
|
*/
|
|
#if (USE_CUSTOM_SYSTICK_HANDLER_IMPLEMENTATION == 0)
|
|
void SysTick_Handler (void) {
|
|
800a8cc: b580 push {r7, lr}
|
|
800a8ce: af00 add r7, sp, #0
|
|
/* Clear overflow flag */
|
|
SysTick->CTRL;
|
|
800a8d0: 4b05 ldr r3, [pc, #20] @ (800a8e8 <SysTick_Handler+0x1c>)
|
|
800a8d2: 681b ldr r3, [r3, #0]
|
|
|
|
if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED) {
|
|
800a8d4: f003 fa22 bl 800dd1c <xTaskGetSchedulerState>
|
|
800a8d8: 4603 mov r3, r0
|
|
800a8da: 2b01 cmp r3, #1
|
|
800a8dc: d001 beq.n 800a8e2 <SysTick_Handler+0x16>
|
|
/* Call tick handler */
|
|
xPortSysTickHandler();
|
|
800a8de: f004 fc43 bl 800f168 <xPortSysTickHandler>
|
|
}
|
|
}
|
|
800a8e2: bf00 nop
|
|
800a8e4: bd80 pop {r7, pc}
|
|
800a8e6: bf00 nop
|
|
800a8e8: e000e010 .word 0xe000e010
|
|
|
|
0800a8ec <SVC_Setup>:
|
|
#endif /* SysTick */
|
|
|
|
/*
|
|
Setup SVC to reset value.
|
|
*/
|
|
__STATIC_INLINE void SVC_Setup (void) {
|
|
800a8ec: b580 push {r7, lr}
|
|
800a8ee: af00 add r7, sp, #0
|
|
#if (__ARM_ARCH_7A__ == 0U)
|
|
/* Service Call interrupt might be configured before kernel start */
|
|
/* and when its priority is lower or equal to BASEPRI, svc intruction */
|
|
/* causes a Hard Fault. */
|
|
NVIC_SetPriority (SVCall_IRQ_NBR, 0U);
|
|
800a8f0: 2100 movs r1, #0
|
|
800a8f2: f06f 0004 mvn.w r0, #4
|
|
800a8f6: f7ff ffbf bl 800a878 <__NVIC_SetPriority>
|
|
#endif
|
|
}
|
|
800a8fa: bf00 nop
|
|
800a8fc: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800a900 <osKernelInitialize>:
|
|
static uint32_t OS_Tick_GetOverflow (void);
|
|
/* Get OS Tick interval */
|
|
static uint32_t OS_Tick_GetInterval (void);
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
osStatus_t osKernelInitialize (void) {
|
|
800a900: b480 push {r7}
|
|
800a902: b083 sub sp, #12
|
|
800a904: af00 add r7, sp, #0
|
|
*/
|
|
__STATIC_FORCEINLINE uint32_t __get_IPSR(void)
|
|
{
|
|
uint32_t result;
|
|
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800a906: f3ef 8305 mrs r3, IPSR
|
|
800a90a: 603b str r3, [r7, #0]
|
|
return(result);
|
|
800a90c: 683b ldr r3, [r7, #0]
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800a90e: 2b00 cmp r3, #0
|
|
800a910: d003 beq.n 800a91a <osKernelInitialize+0x1a>
|
|
stat = osErrorISR;
|
|
800a912: f06f 0305 mvn.w r3, #5
|
|
800a916: 607b str r3, [r7, #4]
|
|
800a918: e00c b.n 800a934 <osKernelInitialize+0x34>
|
|
}
|
|
else {
|
|
if (KernelState == osKernelInactive) {
|
|
800a91a: 4b0a ldr r3, [pc, #40] @ (800a944 <osKernelInitialize+0x44>)
|
|
800a91c: 681b ldr r3, [r3, #0]
|
|
800a91e: 2b00 cmp r3, #0
|
|
800a920: d105 bne.n 800a92e <osKernelInitialize+0x2e>
|
|
EvrFreeRTOSSetup(0U);
|
|
#endif
|
|
#if defined(USE_FreeRTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
|
|
vPortDefineHeapRegions (configHEAP_5_REGIONS);
|
|
#endif
|
|
KernelState = osKernelReady;
|
|
800a922: 4b08 ldr r3, [pc, #32] @ (800a944 <osKernelInitialize+0x44>)
|
|
800a924: 2201 movs r2, #1
|
|
800a926: 601a str r2, [r3, #0]
|
|
stat = osOK;
|
|
800a928: 2300 movs r3, #0
|
|
800a92a: 607b str r3, [r7, #4]
|
|
800a92c: e002 b.n 800a934 <osKernelInitialize+0x34>
|
|
} else {
|
|
stat = osError;
|
|
800a92e: f04f 33ff mov.w r3, #4294967295
|
|
800a932: 607b str r3, [r7, #4]
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800a934: 687b ldr r3, [r7, #4]
|
|
}
|
|
800a936: 4618 mov r0, r3
|
|
800a938: 370c adds r7, #12
|
|
800a93a: 46bd mov sp, r7
|
|
800a93c: f85d 7b04 ldr.w r7, [sp], #4
|
|
800a940: 4770 bx lr
|
|
800a942: bf00 nop
|
|
800a944: 20000544 .word 0x20000544
|
|
|
|
0800a948 <osKernelGetState>:
|
|
}
|
|
|
|
return (osOK);
|
|
}
|
|
|
|
osKernelState_t osKernelGetState (void) {
|
|
800a948: b580 push {r7, lr}
|
|
800a94a: b082 sub sp, #8
|
|
800a94c: af00 add r7, sp, #0
|
|
osKernelState_t state;
|
|
|
|
switch (xTaskGetSchedulerState()) {
|
|
800a94e: f003 f9e5 bl 800dd1c <xTaskGetSchedulerState>
|
|
800a952: 4603 mov r3, r0
|
|
800a954: 2b00 cmp r3, #0
|
|
800a956: d004 beq.n 800a962 <osKernelGetState+0x1a>
|
|
800a958: 2b02 cmp r3, #2
|
|
800a95a: d105 bne.n 800a968 <osKernelGetState+0x20>
|
|
case taskSCHEDULER_RUNNING:
|
|
state = osKernelRunning;
|
|
800a95c: 2302 movs r3, #2
|
|
800a95e: 607b str r3, [r7, #4]
|
|
break;
|
|
800a960: e00c b.n 800a97c <osKernelGetState+0x34>
|
|
|
|
case taskSCHEDULER_SUSPENDED:
|
|
state = osKernelLocked;
|
|
800a962: 2303 movs r3, #3
|
|
800a964: 607b str r3, [r7, #4]
|
|
break;
|
|
800a966: e009 b.n 800a97c <osKernelGetState+0x34>
|
|
|
|
case taskSCHEDULER_NOT_STARTED:
|
|
default:
|
|
if (KernelState == osKernelReady) {
|
|
800a968: 4b07 ldr r3, [pc, #28] @ (800a988 <osKernelGetState+0x40>)
|
|
800a96a: 681b ldr r3, [r3, #0]
|
|
800a96c: 2b01 cmp r3, #1
|
|
800a96e: d102 bne.n 800a976 <osKernelGetState+0x2e>
|
|
state = osKernelReady;
|
|
800a970: 2301 movs r3, #1
|
|
800a972: 607b str r3, [r7, #4]
|
|
} else {
|
|
state = osKernelInactive;
|
|
}
|
|
break;
|
|
800a974: e001 b.n 800a97a <osKernelGetState+0x32>
|
|
state = osKernelInactive;
|
|
800a976: 2300 movs r3, #0
|
|
800a978: 607b str r3, [r7, #4]
|
|
break;
|
|
800a97a: bf00 nop
|
|
}
|
|
|
|
return (state);
|
|
800a97c: 687b ldr r3, [r7, #4]
|
|
}
|
|
800a97e: 4618 mov r0, r3
|
|
800a980: 3708 adds r7, #8
|
|
800a982: 46bd mov sp, r7
|
|
800a984: bd80 pop {r7, pc}
|
|
800a986: bf00 nop
|
|
800a988: 20000544 .word 0x20000544
|
|
|
|
0800a98c <osKernelStart>:
|
|
|
|
osStatus_t osKernelStart (void) {
|
|
800a98c: b580 push {r7, lr}
|
|
800a98e: b082 sub sp, #8
|
|
800a990: af00 add r7, sp, #0
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800a992: f3ef 8305 mrs r3, IPSR
|
|
800a996: 603b str r3, [r7, #0]
|
|
return(result);
|
|
800a998: 683b ldr r3, [r7, #0]
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800a99a: 2b00 cmp r3, #0
|
|
800a99c: d003 beq.n 800a9a6 <osKernelStart+0x1a>
|
|
stat = osErrorISR;
|
|
800a99e: f06f 0305 mvn.w r3, #5
|
|
800a9a2: 607b str r3, [r7, #4]
|
|
800a9a4: e010 b.n 800a9c8 <osKernelStart+0x3c>
|
|
}
|
|
else {
|
|
if (KernelState == osKernelReady) {
|
|
800a9a6: 4b0b ldr r3, [pc, #44] @ (800a9d4 <osKernelStart+0x48>)
|
|
800a9a8: 681b ldr r3, [r3, #0]
|
|
800a9aa: 2b01 cmp r3, #1
|
|
800a9ac: d109 bne.n 800a9c2 <osKernelStart+0x36>
|
|
/* Ensure SVC priority is at the reset value */
|
|
SVC_Setup();
|
|
800a9ae: f7ff ff9d bl 800a8ec <SVC_Setup>
|
|
/* Change state to enable IRQ masking check */
|
|
KernelState = osKernelRunning;
|
|
800a9b2: 4b08 ldr r3, [pc, #32] @ (800a9d4 <osKernelStart+0x48>)
|
|
800a9b4: 2202 movs r2, #2
|
|
800a9b6: 601a str r2, [r3, #0]
|
|
/* Start the kernel scheduler */
|
|
vTaskStartScheduler();
|
|
800a9b8: f002 fc7a bl 800d2b0 <vTaskStartScheduler>
|
|
stat = osOK;
|
|
800a9bc: 2300 movs r3, #0
|
|
800a9be: 607b str r3, [r7, #4]
|
|
800a9c0: e002 b.n 800a9c8 <osKernelStart+0x3c>
|
|
} else {
|
|
stat = osError;
|
|
800a9c2: f04f 33ff mov.w r3, #4294967295
|
|
800a9c6: 607b str r3, [r7, #4]
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800a9c8: 687b ldr r3, [r7, #4]
|
|
}
|
|
800a9ca: 4618 mov r0, r3
|
|
800a9cc: 3708 adds r7, #8
|
|
800a9ce: 46bd mov sp, r7
|
|
800a9d0: bd80 pop {r7, pc}
|
|
800a9d2: bf00 nop
|
|
800a9d4: 20000544 .word 0x20000544
|
|
|
|
0800a9d8 <osKernelGetTickCount>:
|
|
}
|
|
|
|
return (lock);
|
|
}
|
|
|
|
uint32_t osKernelGetTickCount (void) {
|
|
800a9d8: b580 push {r7, lr}
|
|
800a9da: b082 sub sp, #8
|
|
800a9dc: af00 add r7, sp, #0
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800a9de: f3ef 8305 mrs r3, IPSR
|
|
800a9e2: 603b str r3, [r7, #0]
|
|
return(result);
|
|
800a9e4: 683b ldr r3, [r7, #0]
|
|
TickType_t ticks;
|
|
|
|
if (IS_IRQ()) {
|
|
800a9e6: 2b00 cmp r3, #0
|
|
800a9e8: d003 beq.n 800a9f2 <osKernelGetTickCount+0x1a>
|
|
ticks = xTaskGetTickCountFromISR();
|
|
800a9ea: f002 fd8d bl 800d508 <xTaskGetTickCountFromISR>
|
|
800a9ee: 6078 str r0, [r7, #4]
|
|
800a9f0: e002 b.n 800a9f8 <osKernelGetTickCount+0x20>
|
|
} else {
|
|
ticks = xTaskGetTickCount();
|
|
800a9f2: f002 fd79 bl 800d4e8 <xTaskGetTickCount>
|
|
800a9f6: 6078 str r0, [r7, #4]
|
|
}
|
|
|
|
return (ticks);
|
|
800a9f8: 687b ldr r3, [r7, #4]
|
|
}
|
|
800a9fa: 4618 mov r0, r3
|
|
800a9fc: 3708 adds r7, #8
|
|
800a9fe: 46bd mov sp, r7
|
|
800aa00: bd80 pop {r7, pc}
|
|
|
|
0800aa02 <osKernelGetTickFreq>:
|
|
|
|
uint32_t osKernelGetTickFreq (void) {
|
|
800aa02: b480 push {r7}
|
|
800aa04: af00 add r7, sp, #0
|
|
return (configTICK_RATE_HZ);
|
|
800aa06: f44f 737a mov.w r3, #1000 @ 0x3e8
|
|
}
|
|
800aa0a: 4618 mov r0, r3
|
|
800aa0c: 46bd mov sp, r7
|
|
800aa0e: f85d 7b04 ldr.w r7, [sp], #4
|
|
800aa12: 4770 bx lr
|
|
|
|
0800aa14 <osThreadNew>:
|
|
return (configCPU_CLOCK_HZ);
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
|
|
800aa14: b580 push {r7, lr}
|
|
800aa16: b08e sub sp, #56 @ 0x38
|
|
800aa18: af04 add r7, sp, #16
|
|
800aa1a: 60f8 str r0, [r7, #12]
|
|
800aa1c: 60b9 str r1, [r7, #8]
|
|
800aa1e: 607a str r2, [r7, #4]
|
|
uint32_t stack;
|
|
TaskHandle_t hTask;
|
|
UBaseType_t prio;
|
|
int32_t mem;
|
|
|
|
hTask = NULL;
|
|
800aa20: 2300 movs r3, #0
|
|
800aa22: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800aa24: f3ef 8305 mrs r3, IPSR
|
|
800aa28: 617b str r3, [r7, #20]
|
|
return(result);
|
|
800aa2a: 697b ldr r3, [r7, #20]
|
|
|
|
if (!IS_IRQ() && (func != NULL)) {
|
|
800aa2c: 2b00 cmp r3, #0
|
|
800aa2e: d17f bne.n 800ab30 <osThreadNew+0x11c>
|
|
800aa30: 68fb ldr r3, [r7, #12]
|
|
800aa32: 2b00 cmp r3, #0
|
|
800aa34: d07c beq.n 800ab30 <osThreadNew+0x11c>
|
|
stack = configMINIMAL_STACK_SIZE;
|
|
800aa36: f44f 7300 mov.w r3, #512 @ 0x200
|
|
800aa3a: 623b str r3, [r7, #32]
|
|
prio = (UBaseType_t)osPriorityNormal;
|
|
800aa3c: 2318 movs r3, #24
|
|
800aa3e: 61fb str r3, [r7, #28]
|
|
|
|
name = NULL;
|
|
800aa40: 2300 movs r3, #0
|
|
800aa42: 627b str r3, [r7, #36] @ 0x24
|
|
mem = -1;
|
|
800aa44: f04f 33ff mov.w r3, #4294967295
|
|
800aa48: 61bb str r3, [r7, #24]
|
|
|
|
if (attr != NULL) {
|
|
800aa4a: 687b ldr r3, [r7, #4]
|
|
800aa4c: 2b00 cmp r3, #0
|
|
800aa4e: d045 beq.n 800aadc <osThreadNew+0xc8>
|
|
if (attr->name != NULL) {
|
|
800aa50: 687b ldr r3, [r7, #4]
|
|
800aa52: 681b ldr r3, [r3, #0]
|
|
800aa54: 2b00 cmp r3, #0
|
|
800aa56: d002 beq.n 800aa5e <osThreadNew+0x4a>
|
|
name = attr->name;
|
|
800aa58: 687b ldr r3, [r7, #4]
|
|
800aa5a: 681b ldr r3, [r3, #0]
|
|
800aa5c: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
if (attr->priority != osPriorityNone) {
|
|
800aa5e: 687b ldr r3, [r7, #4]
|
|
800aa60: 699b ldr r3, [r3, #24]
|
|
800aa62: 2b00 cmp r3, #0
|
|
800aa64: d002 beq.n 800aa6c <osThreadNew+0x58>
|
|
prio = (UBaseType_t)attr->priority;
|
|
800aa66: 687b ldr r3, [r7, #4]
|
|
800aa68: 699b ldr r3, [r3, #24]
|
|
800aa6a: 61fb str r3, [r7, #28]
|
|
}
|
|
|
|
if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
|
|
800aa6c: 69fb ldr r3, [r7, #28]
|
|
800aa6e: 2b00 cmp r3, #0
|
|
800aa70: d008 beq.n 800aa84 <osThreadNew+0x70>
|
|
800aa72: 69fb ldr r3, [r7, #28]
|
|
800aa74: 2b38 cmp r3, #56 @ 0x38
|
|
800aa76: d805 bhi.n 800aa84 <osThreadNew+0x70>
|
|
800aa78: 687b ldr r3, [r7, #4]
|
|
800aa7a: 685b ldr r3, [r3, #4]
|
|
800aa7c: f003 0301 and.w r3, r3, #1
|
|
800aa80: 2b00 cmp r3, #0
|
|
800aa82: d001 beq.n 800aa88 <osThreadNew+0x74>
|
|
return (NULL);
|
|
800aa84: 2300 movs r3, #0
|
|
800aa86: e054 b.n 800ab32 <osThreadNew+0x11e>
|
|
}
|
|
|
|
if (attr->stack_size > 0U) {
|
|
800aa88: 687b ldr r3, [r7, #4]
|
|
800aa8a: 695b ldr r3, [r3, #20]
|
|
800aa8c: 2b00 cmp r3, #0
|
|
800aa8e: d003 beq.n 800aa98 <osThreadNew+0x84>
|
|
/* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
|
|
/* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
|
|
stack = attr->stack_size / sizeof(StackType_t);
|
|
800aa90: 687b ldr r3, [r7, #4]
|
|
800aa92: 695b ldr r3, [r3, #20]
|
|
800aa94: 089b lsrs r3, r3, #2
|
|
800aa96: 623b str r3, [r7, #32]
|
|
}
|
|
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
|
|
800aa98: 687b ldr r3, [r7, #4]
|
|
800aa9a: 689b ldr r3, [r3, #8]
|
|
800aa9c: 2b00 cmp r3, #0
|
|
800aa9e: d00e beq.n 800aabe <osThreadNew+0xaa>
|
|
800aaa0: 687b ldr r3, [r7, #4]
|
|
800aaa2: 68db ldr r3, [r3, #12]
|
|
800aaa4: 2ba7 cmp r3, #167 @ 0xa7
|
|
800aaa6: d90a bls.n 800aabe <osThreadNew+0xaa>
|
|
(attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
|
|
800aaa8: 687b ldr r3, [r7, #4]
|
|
800aaaa: 691b ldr r3, [r3, #16]
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
|
|
800aaac: 2b00 cmp r3, #0
|
|
800aaae: d006 beq.n 800aabe <osThreadNew+0xaa>
|
|
(attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
|
|
800aab0: 687b ldr r3, [r7, #4]
|
|
800aab2: 695b ldr r3, [r3, #20]
|
|
800aab4: 2b00 cmp r3, #0
|
|
800aab6: d002 beq.n 800aabe <osThreadNew+0xaa>
|
|
mem = 1;
|
|
800aab8: 2301 movs r3, #1
|
|
800aaba: 61bb str r3, [r7, #24]
|
|
800aabc: e010 b.n 800aae0 <osThreadNew+0xcc>
|
|
}
|
|
else {
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
|
|
800aabe: 687b ldr r3, [r7, #4]
|
|
800aac0: 689b ldr r3, [r3, #8]
|
|
800aac2: 2b00 cmp r3, #0
|
|
800aac4: d10c bne.n 800aae0 <osThreadNew+0xcc>
|
|
800aac6: 687b ldr r3, [r7, #4]
|
|
800aac8: 68db ldr r3, [r3, #12]
|
|
800aaca: 2b00 cmp r3, #0
|
|
800aacc: d108 bne.n 800aae0 <osThreadNew+0xcc>
|
|
800aace: 687b ldr r3, [r7, #4]
|
|
800aad0: 691b ldr r3, [r3, #16]
|
|
800aad2: 2b00 cmp r3, #0
|
|
800aad4: d104 bne.n 800aae0 <osThreadNew+0xcc>
|
|
mem = 0;
|
|
800aad6: 2300 movs r3, #0
|
|
800aad8: 61bb str r3, [r7, #24]
|
|
800aada: e001 b.n 800aae0 <osThreadNew+0xcc>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
mem = 0;
|
|
800aadc: 2300 movs r3, #0
|
|
800aade: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
if (mem == 1) {
|
|
800aae0: 69bb ldr r3, [r7, #24]
|
|
800aae2: 2b01 cmp r3, #1
|
|
800aae4: d110 bne.n 800ab08 <osThreadNew+0xf4>
|
|
#if (configSUPPORT_STATIC_ALLOCATION == 1)
|
|
hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
|
|
800aae6: 687b ldr r3, [r7, #4]
|
|
800aae8: 691b ldr r3, [r3, #16]
|
|
(StaticTask_t *)attr->cb_mem);
|
|
800aaea: 687a ldr r2, [r7, #4]
|
|
800aaec: 6892 ldr r2, [r2, #8]
|
|
hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
|
|
800aaee: 9202 str r2, [sp, #8]
|
|
800aaf0: 9301 str r3, [sp, #4]
|
|
800aaf2: 69fb ldr r3, [r7, #28]
|
|
800aaf4: 9300 str r3, [sp, #0]
|
|
800aaf6: 68bb ldr r3, [r7, #8]
|
|
800aaf8: 6a3a ldr r2, [r7, #32]
|
|
800aafa: 6a79 ldr r1, [r7, #36] @ 0x24
|
|
800aafc: 68f8 ldr r0, [r7, #12]
|
|
800aafe: f002 f8ef bl 800cce0 <xTaskCreateStatic>
|
|
800ab02: 4603 mov r3, r0
|
|
800ab04: 613b str r3, [r7, #16]
|
|
800ab06: e013 b.n 800ab30 <osThreadNew+0x11c>
|
|
#endif
|
|
}
|
|
else {
|
|
if (mem == 0) {
|
|
800ab08: 69bb ldr r3, [r7, #24]
|
|
800ab0a: 2b00 cmp r3, #0
|
|
800ab0c: d110 bne.n 800ab30 <osThreadNew+0x11c>
|
|
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
|
if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
|
|
800ab0e: 6a3b ldr r3, [r7, #32]
|
|
800ab10: b29a uxth r2, r3
|
|
800ab12: f107 0310 add.w r3, r7, #16
|
|
800ab16: 9301 str r3, [sp, #4]
|
|
800ab18: 69fb ldr r3, [r7, #28]
|
|
800ab1a: 9300 str r3, [sp, #0]
|
|
800ab1c: 68bb ldr r3, [r7, #8]
|
|
800ab1e: 6a79 ldr r1, [r7, #36] @ 0x24
|
|
800ab20: 68f8 ldr r0, [r7, #12]
|
|
800ab22: f002 f93d bl 800cda0 <xTaskCreate>
|
|
800ab26: 4603 mov r3, r0
|
|
800ab28: 2b01 cmp r3, #1
|
|
800ab2a: d001 beq.n 800ab30 <osThreadNew+0x11c>
|
|
hTask = NULL;
|
|
800ab2c: 2300 movs r3, #0
|
|
800ab2e: 613b str r3, [r7, #16]
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|
|
return ((osThreadId_t)hTask);
|
|
800ab30: 693b ldr r3, [r7, #16]
|
|
}
|
|
800ab32: 4618 mov r0, r3
|
|
800ab34: 3728 adds r7, #40 @ 0x28
|
|
800ab36: 46bd mov sp, r7
|
|
800ab38: bd80 pop {r7, pc}
|
|
|
|
0800ab3a <osThreadGetId>:
|
|
}
|
|
|
|
return (name);
|
|
}
|
|
|
|
osThreadId_t osThreadGetId (void) {
|
|
800ab3a: b580 push {r7, lr}
|
|
800ab3c: b082 sub sp, #8
|
|
800ab3e: af00 add r7, sp, #0
|
|
osThreadId_t id;
|
|
|
|
id = (osThreadId_t)xTaskGetCurrentTaskHandle();
|
|
800ab40: f003 f8dc bl 800dcfc <xTaskGetCurrentTaskHandle>
|
|
800ab44: 6078 str r0, [r7, #4]
|
|
|
|
return (id);
|
|
800ab46: 687b ldr r3, [r7, #4]
|
|
}
|
|
800ab48: 4618 mov r0, r3
|
|
800ab4a: 3708 adds r7, #8
|
|
800ab4c: 46bd mov sp, r7
|
|
800ab4e: bd80 pop {r7, pc}
|
|
|
|
0800ab50 <osThreadExit>:
|
|
|
|
return (stat);
|
|
}
|
|
#endif /* (configUSE_OS2_THREAD_SUSPEND_RESUME == 1) */
|
|
|
|
__NO_RETURN void osThreadExit (void) {
|
|
800ab50: b580 push {r7, lr}
|
|
800ab52: af00 add r7, sp, #0
|
|
#ifndef USE_FreeRTOS_HEAP_1
|
|
vTaskDelete (NULL);
|
|
800ab54: 2000 movs r0, #0
|
|
800ab56: f002 fa81 bl 800d05c <vTaskDelete>
|
|
#endif
|
|
for (;;);
|
|
800ab5a: bf00 nop
|
|
800ab5c: e7fd b.n 800ab5a <osThreadExit+0xa>
|
|
...
|
|
|
|
0800ab60 <osThreadFlagsSet>:
|
|
return (count);
|
|
}
|
|
#endif /* (configUSE_OS2_THREAD_ENUMERATE == 1) */
|
|
|
|
#if (configUSE_OS2_THREAD_FLAGS == 1)
|
|
uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags) {
|
|
800ab60: b580 push {r7, lr}
|
|
800ab62: b088 sub sp, #32
|
|
800ab64: af02 add r7, sp, #8
|
|
800ab66: 6078 str r0, [r7, #4]
|
|
800ab68: 6039 str r1, [r7, #0]
|
|
TaskHandle_t hTask = (TaskHandle_t)thread_id;
|
|
800ab6a: 687b ldr r3, [r7, #4]
|
|
800ab6c: 617b str r3, [r7, #20]
|
|
uint32_t rflags;
|
|
BaseType_t yield;
|
|
|
|
if ((hTask == NULL) || ((flags & THREAD_FLAGS_INVALID_BITS) != 0U)) {
|
|
800ab6e: 697b ldr r3, [r7, #20]
|
|
800ab70: 2b00 cmp r3, #0
|
|
800ab72: d002 beq.n 800ab7a <osThreadFlagsSet+0x1a>
|
|
800ab74: 683b ldr r3, [r7, #0]
|
|
800ab76: 2b00 cmp r3, #0
|
|
800ab78: da03 bge.n 800ab82 <osThreadFlagsSet+0x22>
|
|
rflags = (uint32_t)osErrorParameter;
|
|
800ab7a: f06f 0303 mvn.w r3, #3
|
|
800ab7e: 60fb str r3, [r7, #12]
|
|
800ab80: e035 b.n 800abee <osThreadFlagsSet+0x8e>
|
|
}
|
|
else {
|
|
rflags = (uint32_t)osError;
|
|
800ab82: f04f 33ff mov.w r3, #4294967295
|
|
800ab86: 60fb str r3, [r7, #12]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800ab88: f3ef 8305 mrs r3, IPSR
|
|
800ab8c: 613b str r3, [r7, #16]
|
|
return(result);
|
|
800ab8e: 693b ldr r3, [r7, #16]
|
|
|
|
if (IS_IRQ()) {
|
|
800ab90: 2b00 cmp r3, #0
|
|
800ab92: d01f beq.n 800abd4 <osThreadFlagsSet+0x74>
|
|
yield = pdFALSE;
|
|
800ab94: 2300 movs r3, #0
|
|
800ab96: 60bb str r3, [r7, #8]
|
|
|
|
(void)xTaskNotifyFromISR (hTask, flags, eSetBits, &yield);
|
|
800ab98: f107 0308 add.w r3, r7, #8
|
|
800ab9c: 9300 str r3, [sp, #0]
|
|
800ab9e: 2300 movs r3, #0
|
|
800aba0: 2201 movs r2, #1
|
|
800aba2: 6839 ldr r1, [r7, #0]
|
|
800aba4: 6978 ldr r0, [r7, #20]
|
|
800aba6: f003 fb81 bl 800e2ac <xTaskGenericNotifyFromISR>
|
|
(void)xTaskNotifyAndQueryFromISR (hTask, 0, eNoAction, &rflags, NULL);
|
|
800abaa: f107 030c add.w r3, r7, #12
|
|
800abae: 2200 movs r2, #0
|
|
800abb0: 9200 str r2, [sp, #0]
|
|
800abb2: 2200 movs r2, #0
|
|
800abb4: 2100 movs r1, #0
|
|
800abb6: 6978 ldr r0, [r7, #20]
|
|
800abb8: f003 fb78 bl 800e2ac <xTaskGenericNotifyFromISR>
|
|
|
|
portYIELD_FROM_ISR (yield);
|
|
800abbc: 68bb ldr r3, [r7, #8]
|
|
800abbe: 2b00 cmp r3, #0
|
|
800abc0: d015 beq.n 800abee <osThreadFlagsSet+0x8e>
|
|
800abc2: 4b0d ldr r3, [pc, #52] @ (800abf8 <osThreadFlagsSet+0x98>)
|
|
800abc4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800abc8: 601a str r2, [r3, #0]
|
|
800abca: f3bf 8f4f dsb sy
|
|
800abce: f3bf 8f6f isb sy
|
|
800abd2: e00c b.n 800abee <osThreadFlagsSet+0x8e>
|
|
}
|
|
else {
|
|
(void)xTaskNotify (hTask, flags, eSetBits);
|
|
800abd4: 2300 movs r3, #0
|
|
800abd6: 2201 movs r2, #1
|
|
800abd8: 6839 ldr r1, [r7, #0]
|
|
800abda: 6978 ldr r0, [r7, #20]
|
|
800abdc: f003 faa4 bl 800e128 <xTaskGenericNotify>
|
|
(void)xTaskNotifyAndQuery (hTask, 0, eNoAction, &rflags);
|
|
800abe0: f107 030c add.w r3, r7, #12
|
|
800abe4: 2200 movs r2, #0
|
|
800abe6: 2100 movs r1, #0
|
|
800abe8: 6978 ldr r0, [r7, #20]
|
|
800abea: f003 fa9d bl 800e128 <xTaskGenericNotify>
|
|
}
|
|
}
|
|
/* Return flags after setting */
|
|
return (rflags);
|
|
800abee: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800abf0: 4618 mov r0, r3
|
|
800abf2: 3718 adds r7, #24
|
|
800abf4: 46bd mov sp, r7
|
|
800abf6: bd80 pop {r7, pc}
|
|
800abf8: e000ed04 .word 0xe000ed04
|
|
|
|
0800abfc <osThreadFlagsWait>:
|
|
}
|
|
|
|
return (rflags);
|
|
}
|
|
|
|
uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout) {
|
|
800abfc: b580 push {r7, lr}
|
|
800abfe: b08c sub sp, #48 @ 0x30
|
|
800ac00: af00 add r7, sp, #0
|
|
800ac02: 60f8 str r0, [r7, #12]
|
|
800ac04: 60b9 str r1, [r7, #8]
|
|
800ac06: 607a str r2, [r7, #4]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800ac08: f3ef 8305 mrs r3, IPSR
|
|
800ac0c: 617b str r3, [r7, #20]
|
|
return(result);
|
|
800ac0e: 697b ldr r3, [r7, #20]
|
|
uint32_t rflags, nval;
|
|
uint32_t clear;
|
|
TickType_t t0, td, tout;
|
|
BaseType_t rval;
|
|
|
|
if (IS_IRQ()) {
|
|
800ac10: 2b00 cmp r3, #0
|
|
800ac12: d003 beq.n 800ac1c <osThreadFlagsWait+0x20>
|
|
rflags = (uint32_t)osErrorISR;
|
|
800ac14: f06f 0305 mvn.w r3, #5
|
|
800ac18: 62fb str r3, [r7, #44] @ 0x2c
|
|
800ac1a: e06b b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
}
|
|
else if ((flags & THREAD_FLAGS_INVALID_BITS) != 0U) {
|
|
800ac1c: 68fb ldr r3, [r7, #12]
|
|
800ac1e: 2b00 cmp r3, #0
|
|
800ac20: da03 bge.n 800ac2a <osThreadFlagsWait+0x2e>
|
|
rflags = (uint32_t)osErrorParameter;
|
|
800ac22: f06f 0303 mvn.w r3, #3
|
|
800ac26: 62fb str r3, [r7, #44] @ 0x2c
|
|
800ac28: e064 b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
}
|
|
else {
|
|
if ((options & osFlagsNoClear) == osFlagsNoClear) {
|
|
800ac2a: 68bb ldr r3, [r7, #8]
|
|
800ac2c: f003 0302 and.w r3, r3, #2
|
|
800ac30: 2b00 cmp r3, #0
|
|
800ac32: d002 beq.n 800ac3a <osThreadFlagsWait+0x3e>
|
|
clear = 0U;
|
|
800ac34: 2300 movs r3, #0
|
|
800ac36: 62bb str r3, [r7, #40] @ 0x28
|
|
800ac38: e001 b.n 800ac3e <osThreadFlagsWait+0x42>
|
|
} else {
|
|
clear = flags;
|
|
800ac3a: 68fb ldr r3, [r7, #12]
|
|
800ac3c: 62bb str r3, [r7, #40] @ 0x28
|
|
}
|
|
|
|
rflags = 0U;
|
|
800ac3e: 2300 movs r3, #0
|
|
800ac40: 62fb str r3, [r7, #44] @ 0x2c
|
|
tout = timeout;
|
|
800ac42: 687b ldr r3, [r7, #4]
|
|
800ac44: 627b str r3, [r7, #36] @ 0x24
|
|
|
|
t0 = xTaskGetTickCount();
|
|
800ac46: f002 fc4f bl 800d4e8 <xTaskGetTickCount>
|
|
800ac4a: 6238 str r0, [r7, #32]
|
|
do {
|
|
rval = xTaskNotifyWait (0, clear, &nval, tout);
|
|
800ac4c: f107 0210 add.w r2, r7, #16
|
|
800ac50: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800ac52: 6ab9 ldr r1, [r7, #40] @ 0x28
|
|
800ac54: 2000 movs r0, #0
|
|
800ac56: f003 fa07 bl 800e068 <xTaskNotifyWait>
|
|
800ac5a: 61f8 str r0, [r7, #28]
|
|
|
|
if (rval == pdPASS) {
|
|
800ac5c: 69fb ldr r3, [r7, #28]
|
|
800ac5e: 2b01 cmp r3, #1
|
|
800ac60: d137 bne.n 800acd2 <osThreadFlagsWait+0xd6>
|
|
rflags &= flags;
|
|
800ac62: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
800ac64: 68fb ldr r3, [r7, #12]
|
|
800ac66: 4013 ands r3, r2
|
|
800ac68: 62fb str r3, [r7, #44] @ 0x2c
|
|
rflags |= nval;
|
|
800ac6a: 693b ldr r3, [r7, #16]
|
|
800ac6c: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
800ac6e: 4313 orrs r3, r2
|
|
800ac70: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
if ((options & osFlagsWaitAll) == osFlagsWaitAll) {
|
|
800ac72: 68bb ldr r3, [r7, #8]
|
|
800ac74: f003 0301 and.w r3, r3, #1
|
|
800ac78: 2b00 cmp r3, #0
|
|
800ac7a: d00c beq.n 800ac96 <osThreadFlagsWait+0x9a>
|
|
if ((flags & rflags) == flags) {
|
|
800ac7c: 68fa ldr r2, [r7, #12]
|
|
800ac7e: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800ac80: 4013 ands r3, r2
|
|
800ac82: 68fa ldr r2, [r7, #12]
|
|
800ac84: 429a cmp r2, r3
|
|
800ac86: d032 beq.n 800acee <osThreadFlagsWait+0xf2>
|
|
break;
|
|
} else {
|
|
if (timeout == 0U) {
|
|
800ac88: 687b ldr r3, [r7, #4]
|
|
800ac8a: 2b00 cmp r3, #0
|
|
800ac8c: d10f bne.n 800acae <osThreadFlagsWait+0xb2>
|
|
rflags = (uint32_t)osErrorResource;
|
|
800ac8e: f06f 0302 mvn.w r3, #2
|
|
800ac92: 62fb str r3, [r7, #44] @ 0x2c
|
|
break;
|
|
800ac94: e02e b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
if ((flags & rflags) != 0) {
|
|
800ac96: 68fa ldr r2, [r7, #12]
|
|
800ac98: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800ac9a: 4013 ands r3, r2
|
|
800ac9c: 2b00 cmp r3, #0
|
|
800ac9e: d128 bne.n 800acf2 <osThreadFlagsWait+0xf6>
|
|
break;
|
|
} else {
|
|
if (timeout == 0U) {
|
|
800aca0: 687b ldr r3, [r7, #4]
|
|
800aca2: 2b00 cmp r3, #0
|
|
800aca4: d103 bne.n 800acae <osThreadFlagsWait+0xb2>
|
|
rflags = (uint32_t)osErrorResource;
|
|
800aca6: f06f 0302 mvn.w r3, #2
|
|
800acaa: 62fb str r3, [r7, #44] @ 0x2c
|
|
break;
|
|
800acac: e022 b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Update timeout */
|
|
td = xTaskGetTickCount() - t0;
|
|
800acae: f002 fc1b bl 800d4e8 <xTaskGetTickCount>
|
|
800acb2: 4602 mov r2, r0
|
|
800acb4: 6a3b ldr r3, [r7, #32]
|
|
800acb6: 1ad3 subs r3, r2, r3
|
|
800acb8: 61bb str r3, [r7, #24]
|
|
|
|
if (td > tout) {
|
|
800acba: 69ba ldr r2, [r7, #24]
|
|
800acbc: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800acbe: 429a cmp r2, r3
|
|
800acc0: d902 bls.n 800acc8 <osThreadFlagsWait+0xcc>
|
|
tout = 0;
|
|
800acc2: 2300 movs r3, #0
|
|
800acc4: 627b str r3, [r7, #36] @ 0x24
|
|
800acc6: e00e b.n 800ace6 <osThreadFlagsWait+0xea>
|
|
} else {
|
|
tout -= td;
|
|
800acc8: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800acca: 69bb ldr r3, [r7, #24]
|
|
800accc: 1ad3 subs r3, r2, r3
|
|
800acce: 627b str r3, [r7, #36] @ 0x24
|
|
800acd0: e009 b.n 800ace6 <osThreadFlagsWait+0xea>
|
|
}
|
|
}
|
|
else {
|
|
if (timeout == 0) {
|
|
800acd2: 687b ldr r3, [r7, #4]
|
|
800acd4: 2b00 cmp r3, #0
|
|
800acd6: d103 bne.n 800ace0 <osThreadFlagsWait+0xe4>
|
|
rflags = (uint32_t)osErrorResource;
|
|
800acd8: f06f 0302 mvn.w r3, #2
|
|
800acdc: 62fb str r3, [r7, #44] @ 0x2c
|
|
800acde: e002 b.n 800ace6 <osThreadFlagsWait+0xea>
|
|
} else {
|
|
rflags = (uint32_t)osErrorTimeout;
|
|
800ace0: f06f 0301 mvn.w r3, #1
|
|
800ace4: 62fb str r3, [r7, #44] @ 0x2c
|
|
}
|
|
}
|
|
}
|
|
while (rval != pdFAIL);
|
|
800ace6: 69fb ldr r3, [r7, #28]
|
|
800ace8: 2b00 cmp r3, #0
|
|
800acea: d1af bne.n 800ac4c <osThreadFlagsWait+0x50>
|
|
800acec: e002 b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
break;
|
|
800acee: bf00 nop
|
|
800acf0: e000 b.n 800acf4 <osThreadFlagsWait+0xf8>
|
|
break;
|
|
800acf2: bf00 nop
|
|
}
|
|
|
|
/* Return flags before clearing */
|
|
return (rflags);
|
|
800acf4: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
}
|
|
800acf6: 4618 mov r0, r3
|
|
800acf8: 3730 adds r7, #48 @ 0x30
|
|
800acfa: 46bd mov sp, r7
|
|
800acfc: bd80 pop {r7, pc}
|
|
|
|
0800acfe <osDelay>:
|
|
#endif /* (configUSE_OS2_THREAD_FLAGS == 1) */
|
|
|
|
osStatus_t osDelay (uint32_t ticks) {
|
|
800acfe: b580 push {r7, lr}
|
|
800ad00: b084 sub sp, #16
|
|
800ad02: af00 add r7, sp, #0
|
|
800ad04: 6078 str r0, [r7, #4]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800ad06: f3ef 8305 mrs r3, IPSR
|
|
800ad0a: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
800ad0c: 68bb ldr r3, [r7, #8]
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800ad0e: 2b00 cmp r3, #0
|
|
800ad10: d003 beq.n 800ad1a <osDelay+0x1c>
|
|
stat = osErrorISR;
|
|
800ad12: f06f 0305 mvn.w r3, #5
|
|
800ad16: 60fb str r3, [r7, #12]
|
|
800ad18: e007 b.n 800ad2a <osDelay+0x2c>
|
|
}
|
|
else {
|
|
stat = osOK;
|
|
800ad1a: 2300 movs r3, #0
|
|
800ad1c: 60fb str r3, [r7, #12]
|
|
|
|
if (ticks != 0U) {
|
|
800ad1e: 687b ldr r3, [r7, #4]
|
|
800ad20: 2b00 cmp r3, #0
|
|
800ad22: d002 beq.n 800ad2a <osDelay+0x2c>
|
|
vTaskDelay(ticks);
|
|
800ad24: 6878 ldr r0, [r7, #4]
|
|
800ad26: f002 fa8d bl 800d244 <vTaskDelay>
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800ad2a: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800ad2c: 4618 mov r0, r3
|
|
800ad2e: 3710 adds r7, #16
|
|
800ad30: 46bd mov sp, r7
|
|
800ad32: bd80 pop {r7, pc}
|
|
|
|
0800ad34 <osDelayUntil>:
|
|
|
|
osStatus_t osDelayUntil (uint32_t ticks) {
|
|
800ad34: b580 push {r7, lr}
|
|
800ad36: b086 sub sp, #24
|
|
800ad38: af00 add r7, sp, #0
|
|
800ad3a: 6078 str r0, [r7, #4]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800ad3c: f3ef 8305 mrs r3, IPSR
|
|
800ad40: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800ad42: 68fb ldr r3, [r7, #12]
|
|
TickType_t tcnt, delay;
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800ad44: 2b00 cmp r3, #0
|
|
800ad46: d003 beq.n 800ad50 <osDelayUntil+0x1c>
|
|
stat = osErrorISR;
|
|
800ad48: f06f 0305 mvn.w r3, #5
|
|
800ad4c: 617b str r3, [r7, #20]
|
|
800ad4e: e019 b.n 800ad84 <osDelayUntil+0x50>
|
|
}
|
|
else {
|
|
stat = osOK;
|
|
800ad50: 2300 movs r3, #0
|
|
800ad52: 617b str r3, [r7, #20]
|
|
tcnt = xTaskGetTickCount();
|
|
800ad54: f002 fbc8 bl 800d4e8 <xTaskGetTickCount>
|
|
800ad58: 4603 mov r3, r0
|
|
800ad5a: 60bb str r3, [r7, #8]
|
|
|
|
/* Determine remaining number of ticks to delay */
|
|
delay = (TickType_t)ticks - tcnt;
|
|
800ad5c: 68bb ldr r3, [r7, #8]
|
|
800ad5e: 687a ldr r2, [r7, #4]
|
|
800ad60: 1ad3 subs r3, r2, r3
|
|
800ad62: 613b str r3, [r7, #16]
|
|
|
|
/* Check if target tick has not expired */
|
|
if((delay != 0U) && (0 == (delay >> (8 * sizeof(TickType_t) - 1)))) {
|
|
800ad64: 693b ldr r3, [r7, #16]
|
|
800ad66: 2b00 cmp r3, #0
|
|
800ad68: d009 beq.n 800ad7e <osDelayUntil+0x4a>
|
|
800ad6a: 693b ldr r3, [r7, #16]
|
|
800ad6c: 2b00 cmp r3, #0
|
|
800ad6e: db06 blt.n 800ad7e <osDelayUntil+0x4a>
|
|
vTaskDelayUntil (&tcnt, delay);
|
|
800ad70: f107 0308 add.w r3, r7, #8
|
|
800ad74: 6939 ldr r1, [r7, #16]
|
|
800ad76: 4618 mov r0, r3
|
|
800ad78: f002 f9e4 bl 800d144 <vTaskDelayUntil>
|
|
800ad7c: e002 b.n 800ad84 <osDelayUntil+0x50>
|
|
}
|
|
else
|
|
{
|
|
/* No delay or already expired */
|
|
stat = osErrorParameter;
|
|
800ad7e: f06f 0303 mvn.w r3, #3
|
|
800ad82: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800ad84: 697b ldr r3, [r7, #20]
|
|
}
|
|
800ad86: 4618 mov r0, r3
|
|
800ad88: 3718 adds r7, #24
|
|
800ad8a: 46bd mov sp, r7
|
|
800ad8c: bd80 pop {r7, pc}
|
|
|
|
0800ad8e <TimerCallback>:
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
#if (configUSE_OS2_TIMER == 1)
|
|
|
|
static void TimerCallback (TimerHandle_t hTimer) {
|
|
800ad8e: b580 push {r7, lr}
|
|
800ad90: b084 sub sp, #16
|
|
800ad92: af00 add r7, sp, #0
|
|
800ad94: 6078 str r0, [r7, #4]
|
|
TimerCallback_t *callb;
|
|
|
|
callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
|
|
800ad96: 6878 ldr r0, [r7, #4]
|
|
800ad98: f003 ffe4 bl 800ed64 <pvTimerGetTimerID>
|
|
800ad9c: 60f8 str r0, [r7, #12]
|
|
|
|
if (callb != NULL) {
|
|
800ad9e: 68fb ldr r3, [r7, #12]
|
|
800ada0: 2b00 cmp r3, #0
|
|
800ada2: d005 beq.n 800adb0 <TimerCallback+0x22>
|
|
callb->func (callb->arg);
|
|
800ada4: 68fb ldr r3, [r7, #12]
|
|
800ada6: 681b ldr r3, [r3, #0]
|
|
800ada8: 68fa ldr r2, [r7, #12]
|
|
800adaa: 6852 ldr r2, [r2, #4]
|
|
800adac: 4610 mov r0, r2
|
|
800adae: 4798 blx r3
|
|
}
|
|
}
|
|
800adb0: bf00 nop
|
|
800adb2: 3710 adds r7, #16
|
|
800adb4: 46bd mov sp, r7
|
|
800adb6: bd80 pop {r7, pc}
|
|
|
|
0800adb8 <osTimerNew>:
|
|
|
|
osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr) {
|
|
800adb8: b580 push {r7, lr}
|
|
800adba: b08c sub sp, #48 @ 0x30
|
|
800adbc: af02 add r7, sp, #8
|
|
800adbe: 60f8 str r0, [r7, #12]
|
|
800adc0: 607a str r2, [r7, #4]
|
|
800adc2: 603b str r3, [r7, #0]
|
|
800adc4: 460b mov r3, r1
|
|
800adc6: 72fb strb r3, [r7, #11]
|
|
TimerHandle_t hTimer;
|
|
TimerCallback_t *callb;
|
|
UBaseType_t reload;
|
|
int32_t mem;
|
|
|
|
hTimer = NULL;
|
|
800adc8: 2300 movs r3, #0
|
|
800adca: 623b str r3, [r7, #32]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800adcc: f3ef 8305 mrs r3, IPSR
|
|
800add0: 613b str r3, [r7, #16]
|
|
return(result);
|
|
800add2: 693b ldr r3, [r7, #16]
|
|
|
|
if (!IS_IRQ() && (func != NULL)) {
|
|
800add4: 2b00 cmp r3, #0
|
|
800add6: d163 bne.n 800aea0 <osTimerNew+0xe8>
|
|
800add8: 68fb ldr r3, [r7, #12]
|
|
800adda: 2b00 cmp r3, #0
|
|
800addc: d060 beq.n 800aea0 <osTimerNew+0xe8>
|
|
/* Allocate memory to store callback function and argument */
|
|
callb = pvPortMalloc (sizeof(TimerCallback_t));
|
|
800adde: 2008 movs r0, #8
|
|
800ade0: f004 fa54 bl 800f28c <pvPortMalloc>
|
|
800ade4: 6178 str r0, [r7, #20]
|
|
|
|
if (callb != NULL) {
|
|
800ade6: 697b ldr r3, [r7, #20]
|
|
800ade8: 2b00 cmp r3, #0
|
|
800adea: d059 beq.n 800aea0 <osTimerNew+0xe8>
|
|
callb->func = func;
|
|
800adec: 697b ldr r3, [r7, #20]
|
|
800adee: 68fa ldr r2, [r7, #12]
|
|
800adf0: 601a str r2, [r3, #0]
|
|
callb->arg = argument;
|
|
800adf2: 697b ldr r3, [r7, #20]
|
|
800adf4: 687a ldr r2, [r7, #4]
|
|
800adf6: 605a str r2, [r3, #4]
|
|
|
|
if (type == osTimerOnce) {
|
|
800adf8: 7afb ldrb r3, [r7, #11]
|
|
800adfa: 2b00 cmp r3, #0
|
|
800adfc: d102 bne.n 800ae04 <osTimerNew+0x4c>
|
|
reload = pdFALSE;
|
|
800adfe: 2300 movs r3, #0
|
|
800ae00: 61fb str r3, [r7, #28]
|
|
800ae02: e001 b.n 800ae08 <osTimerNew+0x50>
|
|
} else {
|
|
reload = pdTRUE;
|
|
800ae04: 2301 movs r3, #1
|
|
800ae06: 61fb str r3, [r7, #28]
|
|
}
|
|
|
|
mem = -1;
|
|
800ae08: f04f 33ff mov.w r3, #4294967295
|
|
800ae0c: 61bb str r3, [r7, #24]
|
|
name = NULL;
|
|
800ae0e: 2300 movs r3, #0
|
|
800ae10: 627b str r3, [r7, #36] @ 0x24
|
|
|
|
if (attr != NULL) {
|
|
800ae12: 683b ldr r3, [r7, #0]
|
|
800ae14: 2b00 cmp r3, #0
|
|
800ae16: d01c beq.n 800ae52 <osTimerNew+0x9a>
|
|
if (attr->name != NULL) {
|
|
800ae18: 683b ldr r3, [r7, #0]
|
|
800ae1a: 681b ldr r3, [r3, #0]
|
|
800ae1c: 2b00 cmp r3, #0
|
|
800ae1e: d002 beq.n 800ae26 <osTimerNew+0x6e>
|
|
name = attr->name;
|
|
800ae20: 683b ldr r3, [r7, #0]
|
|
800ae22: 681b ldr r3, [r3, #0]
|
|
800ae24: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTimer_t))) {
|
|
800ae26: 683b ldr r3, [r7, #0]
|
|
800ae28: 689b ldr r3, [r3, #8]
|
|
800ae2a: 2b00 cmp r3, #0
|
|
800ae2c: d006 beq.n 800ae3c <osTimerNew+0x84>
|
|
800ae2e: 683b ldr r3, [r7, #0]
|
|
800ae30: 68db ldr r3, [r3, #12]
|
|
800ae32: 2b2b cmp r3, #43 @ 0x2b
|
|
800ae34: d902 bls.n 800ae3c <osTimerNew+0x84>
|
|
mem = 1;
|
|
800ae36: 2301 movs r3, #1
|
|
800ae38: 61bb str r3, [r7, #24]
|
|
800ae3a: e00c b.n 800ae56 <osTimerNew+0x9e>
|
|
}
|
|
else {
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
|
|
800ae3c: 683b ldr r3, [r7, #0]
|
|
800ae3e: 689b ldr r3, [r3, #8]
|
|
800ae40: 2b00 cmp r3, #0
|
|
800ae42: d108 bne.n 800ae56 <osTimerNew+0x9e>
|
|
800ae44: 683b ldr r3, [r7, #0]
|
|
800ae46: 68db ldr r3, [r3, #12]
|
|
800ae48: 2b00 cmp r3, #0
|
|
800ae4a: d104 bne.n 800ae56 <osTimerNew+0x9e>
|
|
mem = 0;
|
|
800ae4c: 2300 movs r3, #0
|
|
800ae4e: 61bb str r3, [r7, #24]
|
|
800ae50: e001 b.n 800ae56 <osTimerNew+0x9e>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
mem = 0;
|
|
800ae52: 2300 movs r3, #0
|
|
800ae54: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
if (mem == 1) {
|
|
800ae56: 69bb ldr r3, [r7, #24]
|
|
800ae58: 2b01 cmp r3, #1
|
|
800ae5a: d10c bne.n 800ae76 <osTimerNew+0xbe>
|
|
#if (configSUPPORT_STATIC_ALLOCATION == 1)
|
|
hTimer = xTimerCreateStatic (name, 1, reload, callb, TimerCallback, (StaticTimer_t *)attr->cb_mem);
|
|
800ae5c: 683b ldr r3, [r7, #0]
|
|
800ae5e: 689b ldr r3, [r3, #8]
|
|
800ae60: 9301 str r3, [sp, #4]
|
|
800ae62: 4b12 ldr r3, [pc, #72] @ (800aeac <osTimerNew+0xf4>)
|
|
800ae64: 9300 str r3, [sp, #0]
|
|
800ae66: 697b ldr r3, [r7, #20]
|
|
800ae68: 69fa ldr r2, [r7, #28]
|
|
800ae6a: 2101 movs r1, #1
|
|
800ae6c: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
800ae6e: f003 fbc2 bl 800e5f6 <xTimerCreateStatic>
|
|
800ae72: 6238 str r0, [r7, #32]
|
|
800ae74: e00b b.n 800ae8e <osTimerNew+0xd6>
|
|
#endif
|
|
}
|
|
else {
|
|
if (mem == 0) {
|
|
800ae76: 69bb ldr r3, [r7, #24]
|
|
800ae78: 2b00 cmp r3, #0
|
|
800ae7a: d108 bne.n 800ae8e <osTimerNew+0xd6>
|
|
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
|
hTimer = xTimerCreate (name, 1, reload, callb, TimerCallback);
|
|
800ae7c: 4b0b ldr r3, [pc, #44] @ (800aeac <osTimerNew+0xf4>)
|
|
800ae7e: 9300 str r3, [sp, #0]
|
|
800ae80: 697b ldr r3, [r7, #20]
|
|
800ae82: 69fa ldr r2, [r7, #28]
|
|
800ae84: 2101 movs r1, #1
|
|
800ae86: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
800ae88: f003 fb94 bl 800e5b4 <xTimerCreate>
|
|
800ae8c: 6238 str r0, [r7, #32]
|
|
#endif
|
|
}
|
|
}
|
|
|
|
if ((hTimer == NULL) && (callb != NULL)) {
|
|
800ae8e: 6a3b ldr r3, [r7, #32]
|
|
800ae90: 2b00 cmp r3, #0
|
|
800ae92: d105 bne.n 800aea0 <osTimerNew+0xe8>
|
|
800ae94: 697b ldr r3, [r7, #20]
|
|
800ae96: 2b00 cmp r3, #0
|
|
800ae98: d002 beq.n 800aea0 <osTimerNew+0xe8>
|
|
vPortFree (callb);
|
|
800ae9a: 6978 ldr r0, [r7, #20]
|
|
800ae9c: f004 fac4 bl 800f428 <vPortFree>
|
|
}
|
|
}
|
|
}
|
|
|
|
return ((osTimerId_t)hTimer);
|
|
800aea0: 6a3b ldr r3, [r7, #32]
|
|
}
|
|
800aea2: 4618 mov r0, r3
|
|
800aea4: 3728 adds r7, #40 @ 0x28
|
|
800aea6: 46bd mov sp, r7
|
|
800aea8: bd80 pop {r7, pc}
|
|
800aeaa: bf00 nop
|
|
800aeac: 0800ad8f .word 0x0800ad8f
|
|
|
|
0800aeb0 <osTimerStart>:
|
|
}
|
|
|
|
return (p);
|
|
}
|
|
|
|
osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
|
|
800aeb0: b580 push {r7, lr}
|
|
800aeb2: b088 sub sp, #32
|
|
800aeb4: af02 add r7, sp, #8
|
|
800aeb6: 6078 str r0, [r7, #4]
|
|
800aeb8: 6039 str r1, [r7, #0]
|
|
TimerHandle_t hTimer = (TimerHandle_t)timer_id;
|
|
800aeba: 687b ldr r3, [r7, #4]
|
|
800aebc: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800aebe: f3ef 8305 mrs r3, IPSR
|
|
800aec2: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800aec4: 68fb ldr r3, [r7, #12]
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800aec6: 2b00 cmp r3, #0
|
|
800aec8: d003 beq.n 800aed2 <osTimerStart+0x22>
|
|
stat = osErrorISR;
|
|
800aeca: f06f 0305 mvn.w r3, #5
|
|
800aece: 617b str r3, [r7, #20]
|
|
800aed0: e017 b.n 800af02 <osTimerStart+0x52>
|
|
}
|
|
else if (hTimer == NULL) {
|
|
800aed2: 693b ldr r3, [r7, #16]
|
|
800aed4: 2b00 cmp r3, #0
|
|
800aed6: d103 bne.n 800aee0 <osTimerStart+0x30>
|
|
stat = osErrorParameter;
|
|
800aed8: f06f 0303 mvn.w r3, #3
|
|
800aedc: 617b str r3, [r7, #20]
|
|
800aede: e010 b.n 800af02 <osTimerStart+0x52>
|
|
}
|
|
else {
|
|
if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
|
|
800aee0: 2300 movs r3, #0
|
|
800aee2: 9300 str r3, [sp, #0]
|
|
800aee4: 2300 movs r3, #0
|
|
800aee6: 683a ldr r2, [r7, #0]
|
|
800aee8: 2104 movs r1, #4
|
|
800aeea: 6938 ldr r0, [r7, #16]
|
|
800aeec: f003 fc00 bl 800e6f0 <xTimerGenericCommand>
|
|
800aef0: 4603 mov r3, r0
|
|
800aef2: 2b01 cmp r3, #1
|
|
800aef4: d102 bne.n 800aefc <osTimerStart+0x4c>
|
|
stat = osOK;
|
|
800aef6: 2300 movs r3, #0
|
|
800aef8: 617b str r3, [r7, #20]
|
|
800aefa: e002 b.n 800af02 <osTimerStart+0x52>
|
|
} else {
|
|
stat = osErrorResource;
|
|
800aefc: f06f 0302 mvn.w r3, #2
|
|
800af00: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800af02: 697b ldr r3, [r7, #20]
|
|
}
|
|
800af04: 4618 mov r0, r3
|
|
800af06: 3718 adds r7, #24
|
|
800af08: 46bd mov sp, r7
|
|
800af0a: bd80 pop {r7, pc}
|
|
|
|
0800af0c <osTimerStop>:
|
|
|
|
osStatus_t osTimerStop (osTimerId_t timer_id) {
|
|
800af0c: b580 push {r7, lr}
|
|
800af0e: b088 sub sp, #32
|
|
800af10: af02 add r7, sp, #8
|
|
800af12: 6078 str r0, [r7, #4]
|
|
TimerHandle_t hTimer = (TimerHandle_t)timer_id;
|
|
800af14: 687b ldr r3, [r7, #4]
|
|
800af16: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800af18: f3ef 8305 mrs r3, IPSR
|
|
800af1c: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800af1e: 68fb ldr r3, [r7, #12]
|
|
osStatus_t stat;
|
|
|
|
if (IS_IRQ()) {
|
|
800af20: 2b00 cmp r3, #0
|
|
800af22: d003 beq.n 800af2c <osTimerStop+0x20>
|
|
stat = osErrorISR;
|
|
800af24: f06f 0305 mvn.w r3, #5
|
|
800af28: 617b str r3, [r7, #20]
|
|
800af2a: e021 b.n 800af70 <osTimerStop+0x64>
|
|
}
|
|
else if (hTimer == NULL) {
|
|
800af2c: 693b ldr r3, [r7, #16]
|
|
800af2e: 2b00 cmp r3, #0
|
|
800af30: d103 bne.n 800af3a <osTimerStop+0x2e>
|
|
stat = osErrorParameter;
|
|
800af32: f06f 0303 mvn.w r3, #3
|
|
800af36: 617b str r3, [r7, #20]
|
|
800af38: e01a b.n 800af70 <osTimerStop+0x64>
|
|
}
|
|
else {
|
|
if (xTimerIsTimerActive (hTimer) == pdFALSE) {
|
|
800af3a: 6938 ldr r0, [r7, #16]
|
|
800af3c: f003 fee8 bl 800ed10 <xTimerIsTimerActive>
|
|
800af40: 4603 mov r3, r0
|
|
800af42: 2b00 cmp r3, #0
|
|
800af44: d103 bne.n 800af4e <osTimerStop+0x42>
|
|
stat = osErrorResource;
|
|
800af46: f06f 0302 mvn.w r3, #2
|
|
800af4a: 617b str r3, [r7, #20]
|
|
800af4c: e010 b.n 800af70 <osTimerStop+0x64>
|
|
}
|
|
else {
|
|
if (xTimerStop (hTimer, 0) == pdPASS) {
|
|
800af4e: 2300 movs r3, #0
|
|
800af50: 9300 str r3, [sp, #0]
|
|
800af52: 2300 movs r3, #0
|
|
800af54: 2200 movs r2, #0
|
|
800af56: 2103 movs r1, #3
|
|
800af58: 6938 ldr r0, [r7, #16]
|
|
800af5a: f003 fbc9 bl 800e6f0 <xTimerGenericCommand>
|
|
800af5e: 4603 mov r3, r0
|
|
800af60: 2b01 cmp r3, #1
|
|
800af62: d102 bne.n 800af6a <osTimerStop+0x5e>
|
|
stat = osOK;
|
|
800af64: 2300 movs r3, #0
|
|
800af66: 617b str r3, [r7, #20]
|
|
800af68: e002 b.n 800af70 <osTimerStop+0x64>
|
|
} else {
|
|
stat = osError;
|
|
800af6a: f04f 33ff mov.w r3, #4294967295
|
|
800af6e: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800af70: 697b ldr r3, [r7, #20]
|
|
}
|
|
800af72: 4618 mov r0, r3
|
|
800af74: 3718 adds r7, #24
|
|
800af76: 46bd mov sp, r7
|
|
800af78: bd80 pop {r7, pc}
|
|
|
|
0800af7a <osTimerIsRunning>:
|
|
|
|
uint32_t osTimerIsRunning (osTimerId_t timer_id) {
|
|
800af7a: b580 push {r7, lr}
|
|
800af7c: b086 sub sp, #24
|
|
800af7e: af00 add r7, sp, #0
|
|
800af80: 6078 str r0, [r7, #4]
|
|
TimerHandle_t hTimer = (TimerHandle_t)timer_id;
|
|
800af82: 687b ldr r3, [r7, #4]
|
|
800af84: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800af86: f3ef 8305 mrs r3, IPSR
|
|
800af8a: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800af8c: 68fb ldr r3, [r7, #12]
|
|
uint32_t running;
|
|
|
|
if (IS_IRQ() || (hTimer == NULL)) {
|
|
800af8e: 2b00 cmp r3, #0
|
|
800af90: d102 bne.n 800af98 <osTimerIsRunning+0x1e>
|
|
800af92: 693b ldr r3, [r7, #16]
|
|
800af94: 2b00 cmp r3, #0
|
|
800af96: d102 bne.n 800af9e <osTimerIsRunning+0x24>
|
|
running = 0U;
|
|
800af98: 2300 movs r3, #0
|
|
800af9a: 617b str r3, [r7, #20]
|
|
800af9c: e004 b.n 800afa8 <osTimerIsRunning+0x2e>
|
|
} else {
|
|
running = (uint32_t)xTimerIsTimerActive (hTimer);
|
|
800af9e: 6938 ldr r0, [r7, #16]
|
|
800afa0: f003 feb6 bl 800ed10 <xTimerIsTimerActive>
|
|
800afa4: 4603 mov r3, r0
|
|
800afa6: 617b str r3, [r7, #20]
|
|
}
|
|
|
|
return (running);
|
|
800afa8: 697b ldr r3, [r7, #20]
|
|
}
|
|
800afaa: 4618 mov r0, r3
|
|
800afac: 3718 adds r7, #24
|
|
800afae: 46bd mov sp, r7
|
|
800afb0: bd80 pop {r7, pc}
|
|
|
|
0800afb2 <osTimerDelete>:
|
|
|
|
osStatus_t osTimerDelete (osTimerId_t timer_id) {
|
|
800afb2: b580 push {r7, lr}
|
|
800afb4: b088 sub sp, #32
|
|
800afb6: af02 add r7, sp, #8
|
|
800afb8: 6078 str r0, [r7, #4]
|
|
TimerHandle_t hTimer = (TimerHandle_t)timer_id;
|
|
800afba: 687b ldr r3, [r7, #4]
|
|
800afbc: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800afbe: f3ef 8305 mrs r3, IPSR
|
|
800afc2: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
800afc4: 68bb ldr r3, [r7, #8]
|
|
osStatus_t stat;
|
|
#ifndef USE_FreeRTOS_HEAP_1
|
|
TimerCallback_t *callb;
|
|
|
|
if (IS_IRQ()) {
|
|
800afc6: 2b00 cmp r3, #0
|
|
800afc8: d003 beq.n 800afd2 <osTimerDelete+0x20>
|
|
stat = osErrorISR;
|
|
800afca: f06f 0305 mvn.w r3, #5
|
|
800afce: 617b str r3, [r7, #20]
|
|
800afd0: e01e b.n 800b010 <osTimerDelete+0x5e>
|
|
}
|
|
else if (hTimer == NULL) {
|
|
800afd2: 693b ldr r3, [r7, #16]
|
|
800afd4: 2b00 cmp r3, #0
|
|
800afd6: d103 bne.n 800afe0 <osTimerDelete+0x2e>
|
|
stat = osErrorParameter;
|
|
800afd8: f06f 0303 mvn.w r3, #3
|
|
800afdc: 617b str r3, [r7, #20]
|
|
800afde: e017 b.n 800b010 <osTimerDelete+0x5e>
|
|
}
|
|
else {
|
|
callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
|
|
800afe0: 6938 ldr r0, [r7, #16]
|
|
800afe2: f003 febf bl 800ed64 <pvTimerGetTimerID>
|
|
800afe6: 60f8 str r0, [r7, #12]
|
|
|
|
if (xTimerDelete (hTimer, 0) == pdPASS) {
|
|
800afe8: 2300 movs r3, #0
|
|
800afea: 9300 str r3, [sp, #0]
|
|
800afec: 2300 movs r3, #0
|
|
800afee: 2200 movs r2, #0
|
|
800aff0: 2105 movs r1, #5
|
|
800aff2: 6938 ldr r0, [r7, #16]
|
|
800aff4: f003 fb7c bl 800e6f0 <xTimerGenericCommand>
|
|
800aff8: 4603 mov r3, r0
|
|
800affa: 2b01 cmp r3, #1
|
|
800affc: d105 bne.n 800b00a <osTimerDelete+0x58>
|
|
vPortFree (callb);
|
|
800affe: 68f8 ldr r0, [r7, #12]
|
|
800b000: f004 fa12 bl 800f428 <vPortFree>
|
|
stat = osOK;
|
|
800b004: 2300 movs r3, #0
|
|
800b006: 617b str r3, [r7, #20]
|
|
800b008: e002 b.n 800b010 <osTimerDelete+0x5e>
|
|
} else {
|
|
stat = osErrorResource;
|
|
800b00a: f06f 0302 mvn.w r3, #2
|
|
800b00e: 617b str r3, [r7, #20]
|
|
}
|
|
#else
|
|
stat = osError;
|
|
#endif
|
|
|
|
return (stat);
|
|
800b010: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b012: 4618 mov r0, r3
|
|
800b014: 3718 adds r7, #24
|
|
800b016: 46bd mov sp, r7
|
|
800b018: bd80 pop {r7, pc}
|
|
|
|
0800b01a <osEventFlagsNew>:
|
|
#endif /* (configUSE_OS2_TIMER == 1) */
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr) {
|
|
800b01a: b580 push {r7, lr}
|
|
800b01c: b086 sub sp, #24
|
|
800b01e: af00 add r7, sp, #0
|
|
800b020: 6078 str r0, [r7, #4]
|
|
EventGroupHandle_t hEventGroup;
|
|
int32_t mem;
|
|
|
|
hEventGroup = NULL;
|
|
800b022: 2300 movs r3, #0
|
|
800b024: 617b str r3, [r7, #20]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b026: f3ef 8305 mrs r3, IPSR
|
|
800b02a: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800b02c: 68fb ldr r3, [r7, #12]
|
|
|
|
if (!IS_IRQ()) {
|
|
800b02e: 2b00 cmp r3, #0
|
|
800b030: d12d bne.n 800b08e <osEventFlagsNew+0x74>
|
|
mem = -1;
|
|
800b032: f04f 33ff mov.w r3, #4294967295
|
|
800b036: 613b str r3, [r7, #16]
|
|
|
|
if (attr != NULL) {
|
|
800b038: 687b ldr r3, [r7, #4]
|
|
800b03a: 2b00 cmp r3, #0
|
|
800b03c: d015 beq.n 800b06a <osEventFlagsNew+0x50>
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticEventGroup_t))) {
|
|
800b03e: 687b ldr r3, [r7, #4]
|
|
800b040: 689b ldr r3, [r3, #8]
|
|
800b042: 2b00 cmp r3, #0
|
|
800b044: d006 beq.n 800b054 <osEventFlagsNew+0x3a>
|
|
800b046: 687b ldr r3, [r7, #4]
|
|
800b048: 68db ldr r3, [r3, #12]
|
|
800b04a: 2b1f cmp r3, #31
|
|
800b04c: d902 bls.n 800b054 <osEventFlagsNew+0x3a>
|
|
mem = 1;
|
|
800b04e: 2301 movs r3, #1
|
|
800b050: 613b str r3, [r7, #16]
|
|
800b052: e00c b.n 800b06e <osEventFlagsNew+0x54>
|
|
}
|
|
else {
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
|
|
800b054: 687b ldr r3, [r7, #4]
|
|
800b056: 689b ldr r3, [r3, #8]
|
|
800b058: 2b00 cmp r3, #0
|
|
800b05a: d108 bne.n 800b06e <osEventFlagsNew+0x54>
|
|
800b05c: 687b ldr r3, [r7, #4]
|
|
800b05e: 68db ldr r3, [r3, #12]
|
|
800b060: 2b00 cmp r3, #0
|
|
800b062: d104 bne.n 800b06e <osEventFlagsNew+0x54>
|
|
mem = 0;
|
|
800b064: 2300 movs r3, #0
|
|
800b066: 613b str r3, [r7, #16]
|
|
800b068: e001 b.n 800b06e <osEventFlagsNew+0x54>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
mem = 0;
|
|
800b06a: 2300 movs r3, #0
|
|
800b06c: 613b str r3, [r7, #16]
|
|
}
|
|
|
|
if (mem == 1) {
|
|
800b06e: 693b ldr r3, [r7, #16]
|
|
800b070: 2b01 cmp r3, #1
|
|
800b072: d106 bne.n 800b082 <osEventFlagsNew+0x68>
|
|
#if (configSUPPORT_STATIC_ALLOCATION == 1)
|
|
hEventGroup = xEventGroupCreateStatic (attr->cb_mem);
|
|
800b074: 687b ldr r3, [r7, #4]
|
|
800b076: 689b ldr r3, [r3, #8]
|
|
800b078: 4618 mov r0, r3
|
|
800b07a: f000 fb3b bl 800b6f4 <xEventGroupCreateStatic>
|
|
800b07e: 6178 str r0, [r7, #20]
|
|
800b080: e005 b.n 800b08e <osEventFlagsNew+0x74>
|
|
#endif
|
|
}
|
|
else {
|
|
if (mem == 0) {
|
|
800b082: 693b ldr r3, [r7, #16]
|
|
800b084: 2b00 cmp r3, #0
|
|
800b086: d102 bne.n 800b08e <osEventFlagsNew+0x74>
|
|
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
|
hEventGroup = xEventGroupCreate();
|
|
800b088: f000 fb6d bl 800b766 <xEventGroupCreate>
|
|
800b08c: 6178 str r0, [r7, #20]
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|
|
return ((osEventFlagsId_t)hEventGroup);
|
|
800b08e: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b090: 4618 mov r0, r3
|
|
800b092: 3718 adds r7, #24
|
|
800b094: 46bd mov sp, r7
|
|
800b096: bd80 pop {r7, pc}
|
|
|
|
0800b098 <osEventFlagsSet>:
|
|
|
|
uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags) {
|
|
800b098: b580 push {r7, lr}
|
|
800b09a: b086 sub sp, #24
|
|
800b09c: af00 add r7, sp, #0
|
|
800b09e: 6078 str r0, [r7, #4]
|
|
800b0a0: 6039 str r1, [r7, #0]
|
|
EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id;
|
|
800b0a2: 687b ldr r3, [r7, #4]
|
|
800b0a4: 613b str r3, [r7, #16]
|
|
uint32_t rflags;
|
|
BaseType_t yield;
|
|
|
|
if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) {
|
|
800b0a6: 693b ldr r3, [r7, #16]
|
|
800b0a8: 2b00 cmp r3, #0
|
|
800b0aa: d003 beq.n 800b0b4 <osEventFlagsSet+0x1c>
|
|
800b0ac: 683b ldr r3, [r7, #0]
|
|
800b0ae: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800b0b2: d303 bcc.n 800b0bc <osEventFlagsSet+0x24>
|
|
rflags = (uint32_t)osErrorParameter;
|
|
800b0b4: f06f 0303 mvn.w r3, #3
|
|
800b0b8: 617b str r3, [r7, #20]
|
|
800b0ba: e028 b.n 800b10e <osEventFlagsSet+0x76>
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b0bc: f3ef 8305 mrs r3, IPSR
|
|
800b0c0: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800b0c2: 68fb ldr r3, [r7, #12]
|
|
}
|
|
else if (IS_IRQ()) {
|
|
800b0c4: 2b00 cmp r3, #0
|
|
800b0c6: d01d beq.n 800b104 <osEventFlagsSet+0x6c>
|
|
#if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0)
|
|
(void)yield;
|
|
/* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */
|
|
rflags = (uint32_t)osErrorResource;
|
|
#else
|
|
yield = pdFALSE;
|
|
800b0c8: 2300 movs r3, #0
|
|
800b0ca: 60bb str r3, [r7, #8]
|
|
|
|
if (xEventGroupSetBitsFromISR (hEventGroup, (EventBits_t)flags, &yield) == pdFAIL) {
|
|
800b0cc: f107 0308 add.w r3, r7, #8
|
|
800b0d0: 461a mov r2, r3
|
|
800b0d2: 6839 ldr r1, [r7, #0]
|
|
800b0d4: 6938 ldr r0, [r7, #16]
|
|
800b0d6: f000 fda3 bl 800bc20 <xEventGroupSetBitsFromISR>
|
|
800b0da: 4603 mov r3, r0
|
|
800b0dc: 2b00 cmp r3, #0
|
|
800b0de: d103 bne.n 800b0e8 <osEventFlagsSet+0x50>
|
|
rflags = (uint32_t)osErrorResource;
|
|
800b0e0: f06f 0302 mvn.w r3, #2
|
|
800b0e4: 617b str r3, [r7, #20]
|
|
800b0e6: e012 b.n 800b10e <osEventFlagsSet+0x76>
|
|
} else {
|
|
rflags = flags;
|
|
800b0e8: 683b ldr r3, [r7, #0]
|
|
800b0ea: 617b str r3, [r7, #20]
|
|
portYIELD_FROM_ISR (yield);
|
|
800b0ec: 68bb ldr r3, [r7, #8]
|
|
800b0ee: 2b00 cmp r3, #0
|
|
800b0f0: d00d beq.n 800b10e <osEventFlagsSet+0x76>
|
|
800b0f2: 4b09 ldr r3, [pc, #36] @ (800b118 <osEventFlagsSet+0x80>)
|
|
800b0f4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800b0f8: 601a str r2, [r3, #0]
|
|
800b0fa: f3bf 8f4f dsb sy
|
|
800b0fe: f3bf 8f6f isb sy
|
|
800b102: e004 b.n 800b10e <osEventFlagsSet+0x76>
|
|
}
|
|
#endif
|
|
}
|
|
else {
|
|
rflags = xEventGroupSetBits (hEventGroup, (EventBits_t)flags);
|
|
800b104: 6839 ldr r1, [r7, #0]
|
|
800b106: 6938 ldr r0, [r7, #16]
|
|
800b108: f000 fc8c bl 800ba24 <xEventGroupSetBits>
|
|
800b10c: 6178 str r0, [r7, #20]
|
|
}
|
|
|
|
return (rflags);
|
|
800b10e: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b110: 4618 mov r0, r3
|
|
800b112: 3718 adds r7, #24
|
|
800b114: 46bd mov sp, r7
|
|
800b116: bd80 pop {r7, pc}
|
|
800b118: e000ed04 .word 0xe000ed04
|
|
|
|
0800b11c <osEventFlagsClear>:
|
|
|
|
uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags) {
|
|
800b11c: b580 push {r7, lr}
|
|
800b11e: b086 sub sp, #24
|
|
800b120: af00 add r7, sp, #0
|
|
800b122: 6078 str r0, [r7, #4]
|
|
800b124: 6039 str r1, [r7, #0]
|
|
EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id;
|
|
800b126: 687b ldr r3, [r7, #4]
|
|
800b128: 613b str r3, [r7, #16]
|
|
uint32_t rflags;
|
|
|
|
if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) {
|
|
800b12a: 693b ldr r3, [r7, #16]
|
|
800b12c: 2b00 cmp r3, #0
|
|
800b12e: d003 beq.n 800b138 <osEventFlagsClear+0x1c>
|
|
800b130: 683b ldr r3, [r7, #0]
|
|
800b132: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800b136: d303 bcc.n 800b140 <osEventFlagsClear+0x24>
|
|
rflags = (uint32_t)osErrorParameter;
|
|
800b138: f06f 0303 mvn.w r3, #3
|
|
800b13c: 617b str r3, [r7, #20]
|
|
800b13e: e019 b.n 800b174 <osEventFlagsClear+0x58>
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b140: f3ef 8305 mrs r3, IPSR
|
|
800b144: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800b146: 68fb ldr r3, [r7, #12]
|
|
}
|
|
else if (IS_IRQ()) {
|
|
800b148: 2b00 cmp r3, #0
|
|
800b14a: d00e beq.n 800b16a <osEventFlagsClear+0x4e>
|
|
#if (configUSE_OS2_EVENTFLAGS_FROM_ISR == 0)
|
|
/* Enable timers and xTimerPendFunctionCall function to support osEventFlagsSet from ISR */
|
|
rflags = (uint32_t)osErrorResource;
|
|
#else
|
|
rflags = xEventGroupGetBitsFromISR (hEventGroup);
|
|
800b14c: 6938 ldr r0, [r7, #16]
|
|
800b14e: f000 fc45 bl 800b9dc <xEventGroupGetBitsFromISR>
|
|
800b152: 6178 str r0, [r7, #20]
|
|
|
|
if (xEventGroupClearBitsFromISR (hEventGroup, (EventBits_t)flags) == pdFAIL) {
|
|
800b154: 6839 ldr r1, [r7, #0]
|
|
800b156: 6938 ldr r0, [r7, #16]
|
|
800b158: f000 fc2c bl 800b9b4 <xEventGroupClearBitsFromISR>
|
|
800b15c: 4603 mov r3, r0
|
|
800b15e: 2b00 cmp r3, #0
|
|
800b160: d108 bne.n 800b174 <osEventFlagsClear+0x58>
|
|
rflags = (uint32_t)osErrorResource;
|
|
800b162: f06f 0302 mvn.w r3, #2
|
|
800b166: 617b str r3, [r7, #20]
|
|
800b168: e004 b.n 800b174 <osEventFlagsClear+0x58>
|
|
}
|
|
#endif
|
|
}
|
|
else {
|
|
rflags = xEventGroupClearBits (hEventGroup, (EventBits_t)flags);
|
|
800b16a: 6839 ldr r1, [r7, #0]
|
|
800b16c: 6938 ldr r0, [r7, #16]
|
|
800b16e: f000 fbe7 bl 800b940 <xEventGroupClearBits>
|
|
800b172: 6178 str r0, [r7, #20]
|
|
}
|
|
|
|
return (rflags);
|
|
800b174: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b176: 4618 mov r0, r3
|
|
800b178: 3718 adds r7, #24
|
|
800b17a: 46bd mov sp, r7
|
|
800b17c: bd80 pop {r7, pc}
|
|
|
|
0800b17e <osEventFlagsGet>:
|
|
|
|
uint32_t osEventFlagsGet (osEventFlagsId_t ef_id) {
|
|
800b17e: b580 push {r7, lr}
|
|
800b180: b086 sub sp, #24
|
|
800b182: af00 add r7, sp, #0
|
|
800b184: 6078 str r0, [r7, #4]
|
|
EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id;
|
|
800b186: 687b ldr r3, [r7, #4]
|
|
800b188: 613b str r3, [r7, #16]
|
|
uint32_t rflags;
|
|
|
|
if (ef_id == NULL) {
|
|
800b18a: 687b ldr r3, [r7, #4]
|
|
800b18c: 2b00 cmp r3, #0
|
|
800b18e: d102 bne.n 800b196 <osEventFlagsGet+0x18>
|
|
rflags = 0U;
|
|
800b190: 2300 movs r3, #0
|
|
800b192: 617b str r3, [r7, #20]
|
|
800b194: e00f b.n 800b1b6 <osEventFlagsGet+0x38>
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b196: f3ef 8305 mrs r3, IPSR
|
|
800b19a: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800b19c: 68fb ldr r3, [r7, #12]
|
|
}
|
|
else if (IS_IRQ()) {
|
|
800b19e: 2b00 cmp r3, #0
|
|
800b1a0: d004 beq.n 800b1ac <osEventFlagsGet+0x2e>
|
|
rflags = xEventGroupGetBitsFromISR (hEventGroup);
|
|
800b1a2: 6938 ldr r0, [r7, #16]
|
|
800b1a4: f000 fc1a bl 800b9dc <xEventGroupGetBitsFromISR>
|
|
800b1a8: 6178 str r0, [r7, #20]
|
|
800b1aa: e004 b.n 800b1b6 <osEventFlagsGet+0x38>
|
|
}
|
|
else {
|
|
rflags = xEventGroupGetBits (hEventGroup);
|
|
800b1ac: 2100 movs r1, #0
|
|
800b1ae: 6938 ldr r0, [r7, #16]
|
|
800b1b0: f000 fbc6 bl 800b940 <xEventGroupClearBits>
|
|
800b1b4: 6178 str r0, [r7, #20]
|
|
}
|
|
|
|
return (rflags);
|
|
800b1b6: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b1b8: 4618 mov r0, r3
|
|
800b1ba: 3718 adds r7, #24
|
|
800b1bc: 46bd mov sp, r7
|
|
800b1be: bd80 pop {r7, pc}
|
|
|
|
0800b1c0 <osEventFlagsWait>:
|
|
|
|
uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout) {
|
|
800b1c0: b580 push {r7, lr}
|
|
800b1c2: b08c sub sp, #48 @ 0x30
|
|
800b1c4: af02 add r7, sp, #8
|
|
800b1c6: 60f8 str r0, [r7, #12]
|
|
800b1c8: 60b9 str r1, [r7, #8]
|
|
800b1ca: 607a str r2, [r7, #4]
|
|
800b1cc: 603b str r3, [r7, #0]
|
|
EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id;
|
|
800b1ce: 68fb ldr r3, [r7, #12]
|
|
800b1d0: 61bb str r3, [r7, #24]
|
|
BaseType_t wait_all;
|
|
BaseType_t exit_clr;
|
|
uint32_t rflags;
|
|
|
|
if ((hEventGroup == NULL) || ((flags & EVENT_FLAGS_INVALID_BITS) != 0U)) {
|
|
800b1d2: 69bb ldr r3, [r7, #24]
|
|
800b1d4: 2b00 cmp r3, #0
|
|
800b1d6: d003 beq.n 800b1e0 <osEventFlagsWait+0x20>
|
|
800b1d8: 68bb ldr r3, [r7, #8]
|
|
800b1da: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800b1de: d303 bcc.n 800b1e8 <osEventFlagsWait+0x28>
|
|
rflags = (uint32_t)osErrorParameter;
|
|
800b1e0: f06f 0303 mvn.w r3, #3
|
|
800b1e4: 61fb str r3, [r7, #28]
|
|
800b1e6: e04b b.n 800b280 <osEventFlagsWait+0xc0>
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b1e8: f3ef 8305 mrs r3, IPSR
|
|
800b1ec: 617b str r3, [r7, #20]
|
|
return(result);
|
|
800b1ee: 697b ldr r3, [r7, #20]
|
|
}
|
|
else if (IS_IRQ()) {
|
|
800b1f0: 2b00 cmp r3, #0
|
|
800b1f2: d003 beq.n 800b1fc <osEventFlagsWait+0x3c>
|
|
rflags = (uint32_t)osErrorISR;
|
|
800b1f4: f06f 0305 mvn.w r3, #5
|
|
800b1f8: 61fb str r3, [r7, #28]
|
|
800b1fa: e041 b.n 800b280 <osEventFlagsWait+0xc0>
|
|
}
|
|
else {
|
|
if (options & osFlagsWaitAll) {
|
|
800b1fc: 687b ldr r3, [r7, #4]
|
|
800b1fe: f003 0301 and.w r3, r3, #1
|
|
800b202: 2b00 cmp r3, #0
|
|
800b204: d002 beq.n 800b20c <osEventFlagsWait+0x4c>
|
|
wait_all = pdTRUE;
|
|
800b206: 2301 movs r3, #1
|
|
800b208: 627b str r3, [r7, #36] @ 0x24
|
|
800b20a: e001 b.n 800b210 <osEventFlagsWait+0x50>
|
|
} else {
|
|
wait_all = pdFAIL;
|
|
800b20c: 2300 movs r3, #0
|
|
800b20e: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
|
|
if (options & osFlagsNoClear) {
|
|
800b210: 687b ldr r3, [r7, #4]
|
|
800b212: f003 0302 and.w r3, r3, #2
|
|
800b216: 2b00 cmp r3, #0
|
|
800b218: d002 beq.n 800b220 <osEventFlagsWait+0x60>
|
|
exit_clr = pdFAIL;
|
|
800b21a: 2300 movs r3, #0
|
|
800b21c: 623b str r3, [r7, #32]
|
|
800b21e: e001 b.n 800b224 <osEventFlagsWait+0x64>
|
|
} else {
|
|
exit_clr = pdTRUE;
|
|
800b220: 2301 movs r3, #1
|
|
800b222: 623b str r3, [r7, #32]
|
|
}
|
|
|
|
rflags = xEventGroupWaitBits (hEventGroup, (EventBits_t)flags, exit_clr, wait_all, (TickType_t)timeout);
|
|
800b224: 683b ldr r3, [r7, #0]
|
|
800b226: 9300 str r3, [sp, #0]
|
|
800b228: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800b22a: 6a3a ldr r2, [r7, #32]
|
|
800b22c: 68b9 ldr r1, [r7, #8]
|
|
800b22e: 69b8 ldr r0, [r7, #24]
|
|
800b230: f000 fab4 bl 800b79c <xEventGroupWaitBits>
|
|
800b234: 61f8 str r0, [r7, #28]
|
|
|
|
if (options & osFlagsWaitAll) {
|
|
800b236: 687b ldr r3, [r7, #4]
|
|
800b238: f003 0301 and.w r3, r3, #1
|
|
800b23c: 2b00 cmp r3, #0
|
|
800b23e: d010 beq.n 800b262 <osEventFlagsWait+0xa2>
|
|
if ((flags & rflags) != flags) {
|
|
800b240: 68ba ldr r2, [r7, #8]
|
|
800b242: 69fb ldr r3, [r7, #28]
|
|
800b244: 4013 ands r3, r2
|
|
800b246: 68ba ldr r2, [r7, #8]
|
|
800b248: 429a cmp r2, r3
|
|
800b24a: d019 beq.n 800b280 <osEventFlagsWait+0xc0>
|
|
if (timeout > 0U) {
|
|
800b24c: 683b ldr r3, [r7, #0]
|
|
800b24e: 2b00 cmp r3, #0
|
|
800b250: d003 beq.n 800b25a <osEventFlagsWait+0x9a>
|
|
rflags = (uint32_t)osErrorTimeout;
|
|
800b252: f06f 0301 mvn.w r3, #1
|
|
800b256: 61fb str r3, [r7, #28]
|
|
800b258: e012 b.n 800b280 <osEventFlagsWait+0xc0>
|
|
} else {
|
|
rflags = (uint32_t)osErrorResource;
|
|
800b25a: f06f 0302 mvn.w r3, #2
|
|
800b25e: 61fb str r3, [r7, #28]
|
|
800b260: e00e b.n 800b280 <osEventFlagsWait+0xc0>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
if ((flags & rflags) == 0U) {
|
|
800b262: 68ba ldr r2, [r7, #8]
|
|
800b264: 69fb ldr r3, [r7, #28]
|
|
800b266: 4013 ands r3, r2
|
|
800b268: 2b00 cmp r3, #0
|
|
800b26a: d109 bne.n 800b280 <osEventFlagsWait+0xc0>
|
|
if (timeout > 0U) {
|
|
800b26c: 683b ldr r3, [r7, #0]
|
|
800b26e: 2b00 cmp r3, #0
|
|
800b270: d003 beq.n 800b27a <osEventFlagsWait+0xba>
|
|
rflags = (uint32_t)osErrorTimeout;
|
|
800b272: f06f 0301 mvn.w r3, #1
|
|
800b276: 61fb str r3, [r7, #28]
|
|
800b278: e002 b.n 800b280 <osEventFlagsWait+0xc0>
|
|
} else {
|
|
rflags = (uint32_t)osErrorResource;
|
|
800b27a: f06f 0302 mvn.w r3, #2
|
|
800b27e: 61fb str r3, [r7, #28]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return (rflags);
|
|
800b280: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800b282: 4618 mov r0, r3
|
|
800b284: 3728 adds r7, #40 @ 0x28
|
|
800b286: 46bd mov sp, r7
|
|
800b288: bd80 pop {r7, pc}
|
|
|
|
0800b28a <osEventFlagsDelete>:
|
|
|
|
osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id) {
|
|
800b28a: b580 push {r7, lr}
|
|
800b28c: b086 sub sp, #24
|
|
800b28e: af00 add r7, sp, #0
|
|
800b290: 6078 str r0, [r7, #4]
|
|
EventGroupHandle_t hEventGroup = (EventGroupHandle_t)ef_id;
|
|
800b292: 687b ldr r3, [r7, #4]
|
|
800b294: 613b str r3, [r7, #16]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b296: f3ef 8305 mrs r3, IPSR
|
|
800b29a: 60fb str r3, [r7, #12]
|
|
return(result);
|
|
800b29c: 68fb ldr r3, [r7, #12]
|
|
osStatus_t stat;
|
|
|
|
#ifndef USE_FreeRTOS_HEAP_1
|
|
if (IS_IRQ()) {
|
|
800b29e: 2b00 cmp r3, #0
|
|
800b2a0: d003 beq.n 800b2aa <osEventFlagsDelete+0x20>
|
|
stat = osErrorISR;
|
|
800b2a2: f06f 0305 mvn.w r3, #5
|
|
800b2a6: 617b str r3, [r7, #20]
|
|
800b2a8: e00b b.n 800b2c2 <osEventFlagsDelete+0x38>
|
|
}
|
|
else if (hEventGroup == NULL) {
|
|
800b2aa: 693b ldr r3, [r7, #16]
|
|
800b2ac: 2b00 cmp r3, #0
|
|
800b2ae: d103 bne.n 800b2b8 <osEventFlagsDelete+0x2e>
|
|
stat = osErrorParameter;
|
|
800b2b0: f06f 0303 mvn.w r3, #3
|
|
800b2b4: 617b str r3, [r7, #20]
|
|
800b2b6: e004 b.n 800b2c2 <osEventFlagsDelete+0x38>
|
|
}
|
|
else {
|
|
stat = osOK;
|
|
800b2b8: 2300 movs r3, #0
|
|
800b2ba: 617b str r3, [r7, #20]
|
|
vEventGroupDelete (hEventGroup);
|
|
800b2bc: 6938 ldr r0, [r7, #16]
|
|
800b2be: f000 fc3d bl 800bb3c <vEventGroupDelete>
|
|
}
|
|
#else
|
|
stat = osError;
|
|
#endif
|
|
|
|
return (stat);
|
|
800b2c2: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b2c4: 4618 mov r0, r3
|
|
800b2c6: 3718 adds r7, #24
|
|
800b2c8: 46bd mov sp, r7
|
|
800b2ca: bd80 pop {r7, pc}
|
|
|
|
0800b2cc <osMutexNew>:
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
#if (configUSE_OS2_MUTEX == 1)
|
|
|
|
osMutexId_t osMutexNew (const osMutexAttr_t *attr) {
|
|
800b2cc: b580 push {r7, lr}
|
|
800b2ce: b088 sub sp, #32
|
|
800b2d0: af00 add r7, sp, #0
|
|
800b2d2: 6078 str r0, [r7, #4]
|
|
int32_t mem;
|
|
#if (configQUEUE_REGISTRY_SIZE > 0)
|
|
const char *name;
|
|
#endif
|
|
|
|
hMutex = NULL;
|
|
800b2d4: 2300 movs r3, #0
|
|
800b2d6: 61fb str r3, [r7, #28]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b2d8: f3ef 8305 mrs r3, IPSR
|
|
800b2dc: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
800b2de: 68bb ldr r3, [r7, #8]
|
|
|
|
if (!IS_IRQ()) {
|
|
800b2e0: 2b00 cmp r3, #0
|
|
800b2e2: d174 bne.n 800b3ce <osMutexNew+0x102>
|
|
if (attr != NULL) {
|
|
800b2e4: 687b ldr r3, [r7, #4]
|
|
800b2e6: 2b00 cmp r3, #0
|
|
800b2e8: d003 beq.n 800b2f2 <osMutexNew+0x26>
|
|
type = attr->attr_bits;
|
|
800b2ea: 687b ldr r3, [r7, #4]
|
|
800b2ec: 685b ldr r3, [r3, #4]
|
|
800b2ee: 61bb str r3, [r7, #24]
|
|
800b2f0: e001 b.n 800b2f6 <osMutexNew+0x2a>
|
|
} else {
|
|
type = 0U;
|
|
800b2f2: 2300 movs r3, #0
|
|
800b2f4: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
if ((type & osMutexRecursive) == osMutexRecursive) {
|
|
800b2f6: 69bb ldr r3, [r7, #24]
|
|
800b2f8: f003 0301 and.w r3, r3, #1
|
|
800b2fc: 2b00 cmp r3, #0
|
|
800b2fe: d002 beq.n 800b306 <osMutexNew+0x3a>
|
|
rmtx = 1U;
|
|
800b300: 2301 movs r3, #1
|
|
800b302: 617b str r3, [r7, #20]
|
|
800b304: e001 b.n 800b30a <osMutexNew+0x3e>
|
|
} else {
|
|
rmtx = 0U;
|
|
800b306: 2300 movs r3, #0
|
|
800b308: 617b str r3, [r7, #20]
|
|
}
|
|
|
|
if ((type & osMutexRobust) != osMutexRobust) {
|
|
800b30a: 69bb ldr r3, [r7, #24]
|
|
800b30c: f003 0308 and.w r3, r3, #8
|
|
800b310: 2b00 cmp r3, #0
|
|
800b312: d15c bne.n 800b3ce <osMutexNew+0x102>
|
|
mem = -1;
|
|
800b314: f04f 33ff mov.w r3, #4294967295
|
|
800b318: 613b str r3, [r7, #16]
|
|
|
|
if (attr != NULL) {
|
|
800b31a: 687b ldr r3, [r7, #4]
|
|
800b31c: 2b00 cmp r3, #0
|
|
800b31e: d015 beq.n 800b34c <osMutexNew+0x80>
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticSemaphore_t))) {
|
|
800b320: 687b ldr r3, [r7, #4]
|
|
800b322: 689b ldr r3, [r3, #8]
|
|
800b324: 2b00 cmp r3, #0
|
|
800b326: d006 beq.n 800b336 <osMutexNew+0x6a>
|
|
800b328: 687b ldr r3, [r7, #4]
|
|
800b32a: 68db ldr r3, [r3, #12]
|
|
800b32c: 2b4f cmp r3, #79 @ 0x4f
|
|
800b32e: d902 bls.n 800b336 <osMutexNew+0x6a>
|
|
mem = 1;
|
|
800b330: 2301 movs r3, #1
|
|
800b332: 613b str r3, [r7, #16]
|
|
800b334: e00c b.n 800b350 <osMutexNew+0x84>
|
|
}
|
|
else {
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U)) {
|
|
800b336: 687b ldr r3, [r7, #4]
|
|
800b338: 689b ldr r3, [r3, #8]
|
|
800b33a: 2b00 cmp r3, #0
|
|
800b33c: d108 bne.n 800b350 <osMutexNew+0x84>
|
|
800b33e: 687b ldr r3, [r7, #4]
|
|
800b340: 68db ldr r3, [r3, #12]
|
|
800b342: 2b00 cmp r3, #0
|
|
800b344: d104 bne.n 800b350 <osMutexNew+0x84>
|
|
mem = 0;
|
|
800b346: 2300 movs r3, #0
|
|
800b348: 613b str r3, [r7, #16]
|
|
800b34a: e001 b.n 800b350 <osMutexNew+0x84>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
mem = 0;
|
|
800b34c: 2300 movs r3, #0
|
|
800b34e: 613b str r3, [r7, #16]
|
|
}
|
|
|
|
if (mem == 1) {
|
|
800b350: 693b ldr r3, [r7, #16]
|
|
800b352: 2b01 cmp r3, #1
|
|
800b354: d112 bne.n 800b37c <osMutexNew+0xb0>
|
|
#if (configSUPPORT_STATIC_ALLOCATION == 1)
|
|
if (rmtx != 0U) {
|
|
800b356: 697b ldr r3, [r7, #20]
|
|
800b358: 2b00 cmp r3, #0
|
|
800b35a: d007 beq.n 800b36c <osMutexNew+0xa0>
|
|
#if (configUSE_RECURSIVE_MUTEXES == 1)
|
|
hMutex = xSemaphoreCreateRecursiveMutexStatic (attr->cb_mem);
|
|
800b35c: 687b ldr r3, [r7, #4]
|
|
800b35e: 689b ldr r3, [r3, #8]
|
|
800b360: 4619 mov r1, r3
|
|
800b362: 2004 movs r0, #4
|
|
800b364: f000 fe9b bl 800c09e <xQueueCreateMutexStatic>
|
|
800b368: 61f8 str r0, [r7, #28]
|
|
800b36a: e016 b.n 800b39a <osMutexNew+0xce>
|
|
#endif
|
|
}
|
|
else {
|
|
hMutex = xSemaphoreCreateMutexStatic (attr->cb_mem);
|
|
800b36c: 687b ldr r3, [r7, #4]
|
|
800b36e: 689b ldr r3, [r3, #8]
|
|
800b370: 4619 mov r1, r3
|
|
800b372: 2001 movs r0, #1
|
|
800b374: f000 fe93 bl 800c09e <xQueueCreateMutexStatic>
|
|
800b378: 61f8 str r0, [r7, #28]
|
|
800b37a: e00e b.n 800b39a <osMutexNew+0xce>
|
|
}
|
|
#endif
|
|
}
|
|
else {
|
|
if (mem == 0) {
|
|
800b37c: 693b ldr r3, [r7, #16]
|
|
800b37e: 2b00 cmp r3, #0
|
|
800b380: d10b bne.n 800b39a <osMutexNew+0xce>
|
|
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
|
if (rmtx != 0U) {
|
|
800b382: 697b ldr r3, [r7, #20]
|
|
800b384: 2b00 cmp r3, #0
|
|
800b386: d004 beq.n 800b392 <osMutexNew+0xc6>
|
|
#if (configUSE_RECURSIVE_MUTEXES == 1)
|
|
hMutex = xSemaphoreCreateRecursiveMutex ();
|
|
800b388: 2004 movs r0, #4
|
|
800b38a: f000 fe70 bl 800c06e <xQueueCreateMutex>
|
|
800b38e: 61f8 str r0, [r7, #28]
|
|
800b390: e003 b.n 800b39a <osMutexNew+0xce>
|
|
#endif
|
|
} else {
|
|
hMutex = xSemaphoreCreateMutex ();
|
|
800b392: 2001 movs r0, #1
|
|
800b394: f000 fe6b bl 800c06e <xQueueCreateMutex>
|
|
800b398: 61f8 str r0, [r7, #28]
|
|
#endif
|
|
}
|
|
}
|
|
|
|
#if (configQUEUE_REGISTRY_SIZE > 0)
|
|
if (hMutex != NULL) {
|
|
800b39a: 69fb ldr r3, [r7, #28]
|
|
800b39c: 2b00 cmp r3, #0
|
|
800b39e: d00c beq.n 800b3ba <osMutexNew+0xee>
|
|
if (attr != NULL) {
|
|
800b3a0: 687b ldr r3, [r7, #4]
|
|
800b3a2: 2b00 cmp r3, #0
|
|
800b3a4: d003 beq.n 800b3ae <osMutexNew+0xe2>
|
|
name = attr->name;
|
|
800b3a6: 687b ldr r3, [r7, #4]
|
|
800b3a8: 681b ldr r3, [r3, #0]
|
|
800b3aa: 60fb str r3, [r7, #12]
|
|
800b3ac: e001 b.n 800b3b2 <osMutexNew+0xe6>
|
|
} else {
|
|
name = NULL;
|
|
800b3ae: 2300 movs r3, #0
|
|
800b3b0: 60fb str r3, [r7, #12]
|
|
}
|
|
vQueueAddToRegistry (hMutex, name);
|
|
800b3b2: 68f9 ldr r1, [r7, #12]
|
|
800b3b4: 69f8 ldr r0, [r7, #28]
|
|
800b3b6: f001 fc35 bl 800cc24 <vQueueAddToRegistry>
|
|
}
|
|
#endif
|
|
|
|
if ((hMutex != NULL) && (rmtx != 0U)) {
|
|
800b3ba: 69fb ldr r3, [r7, #28]
|
|
800b3bc: 2b00 cmp r3, #0
|
|
800b3be: d006 beq.n 800b3ce <osMutexNew+0x102>
|
|
800b3c0: 697b ldr r3, [r7, #20]
|
|
800b3c2: 2b00 cmp r3, #0
|
|
800b3c4: d003 beq.n 800b3ce <osMutexNew+0x102>
|
|
hMutex = (SemaphoreHandle_t)((uint32_t)hMutex | 1U);
|
|
800b3c6: 69fb ldr r3, [r7, #28]
|
|
800b3c8: f043 0301 orr.w r3, r3, #1
|
|
800b3cc: 61fb str r3, [r7, #28]
|
|
}
|
|
}
|
|
}
|
|
|
|
return ((osMutexId_t)hMutex);
|
|
800b3ce: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800b3d0: 4618 mov r0, r3
|
|
800b3d2: 3720 adds r7, #32
|
|
800b3d4: 46bd mov sp, r7
|
|
800b3d6: bd80 pop {r7, pc}
|
|
|
|
0800b3d8 <osMutexAcquire>:
|
|
|
|
osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout) {
|
|
800b3d8: b580 push {r7, lr}
|
|
800b3da: b086 sub sp, #24
|
|
800b3dc: af00 add r7, sp, #0
|
|
800b3de: 6078 str r0, [r7, #4]
|
|
800b3e0: 6039 str r1, [r7, #0]
|
|
SemaphoreHandle_t hMutex;
|
|
osStatus_t stat;
|
|
uint32_t rmtx;
|
|
|
|
hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
|
|
800b3e2: 687b ldr r3, [r7, #4]
|
|
800b3e4: f023 0301 bic.w r3, r3, #1
|
|
800b3e8: 613b str r3, [r7, #16]
|
|
|
|
rmtx = (uint32_t)mutex_id & 1U;
|
|
800b3ea: 687b ldr r3, [r7, #4]
|
|
800b3ec: f003 0301 and.w r3, r3, #1
|
|
800b3f0: 60fb str r3, [r7, #12]
|
|
|
|
stat = osOK;
|
|
800b3f2: 2300 movs r3, #0
|
|
800b3f4: 617b str r3, [r7, #20]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b3f6: f3ef 8305 mrs r3, IPSR
|
|
800b3fa: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
800b3fc: 68bb ldr r3, [r7, #8]
|
|
|
|
if (IS_IRQ()) {
|
|
800b3fe: 2b00 cmp r3, #0
|
|
800b400: d003 beq.n 800b40a <osMutexAcquire+0x32>
|
|
stat = osErrorISR;
|
|
800b402: f06f 0305 mvn.w r3, #5
|
|
800b406: 617b str r3, [r7, #20]
|
|
800b408: e02c b.n 800b464 <osMutexAcquire+0x8c>
|
|
}
|
|
else if (hMutex == NULL) {
|
|
800b40a: 693b ldr r3, [r7, #16]
|
|
800b40c: 2b00 cmp r3, #0
|
|
800b40e: d103 bne.n 800b418 <osMutexAcquire+0x40>
|
|
stat = osErrorParameter;
|
|
800b410: f06f 0303 mvn.w r3, #3
|
|
800b414: 617b str r3, [r7, #20]
|
|
800b416: e025 b.n 800b464 <osMutexAcquire+0x8c>
|
|
}
|
|
else {
|
|
if (rmtx != 0U) {
|
|
800b418: 68fb ldr r3, [r7, #12]
|
|
800b41a: 2b00 cmp r3, #0
|
|
800b41c: d011 beq.n 800b442 <osMutexAcquire+0x6a>
|
|
#if (configUSE_RECURSIVE_MUTEXES == 1)
|
|
if (xSemaphoreTakeRecursive (hMutex, timeout) != pdPASS) {
|
|
800b41e: 6839 ldr r1, [r7, #0]
|
|
800b420: 6938 ldr r0, [r7, #16]
|
|
800b422: f000 fe8c bl 800c13e <xQueueTakeMutexRecursive>
|
|
800b426: 4603 mov r3, r0
|
|
800b428: 2b01 cmp r3, #1
|
|
800b42a: d01b beq.n 800b464 <osMutexAcquire+0x8c>
|
|
if (timeout != 0U) {
|
|
800b42c: 683b ldr r3, [r7, #0]
|
|
800b42e: 2b00 cmp r3, #0
|
|
800b430: d003 beq.n 800b43a <osMutexAcquire+0x62>
|
|
stat = osErrorTimeout;
|
|
800b432: f06f 0301 mvn.w r3, #1
|
|
800b436: 617b str r3, [r7, #20]
|
|
800b438: e014 b.n 800b464 <osMutexAcquire+0x8c>
|
|
} else {
|
|
stat = osErrorResource;
|
|
800b43a: f06f 0302 mvn.w r3, #2
|
|
800b43e: 617b str r3, [r7, #20]
|
|
800b440: e010 b.n 800b464 <osMutexAcquire+0x8c>
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
else {
|
|
if (xSemaphoreTake (hMutex, timeout) != pdPASS) {
|
|
800b442: 6839 ldr r1, [r7, #0]
|
|
800b444: 6938 ldr r0, [r7, #16]
|
|
800b446: f001 f933 bl 800c6b0 <xQueueSemaphoreTake>
|
|
800b44a: 4603 mov r3, r0
|
|
800b44c: 2b01 cmp r3, #1
|
|
800b44e: d009 beq.n 800b464 <osMutexAcquire+0x8c>
|
|
if (timeout != 0U) {
|
|
800b450: 683b ldr r3, [r7, #0]
|
|
800b452: 2b00 cmp r3, #0
|
|
800b454: d003 beq.n 800b45e <osMutexAcquire+0x86>
|
|
stat = osErrorTimeout;
|
|
800b456: f06f 0301 mvn.w r3, #1
|
|
800b45a: 617b str r3, [r7, #20]
|
|
800b45c: e002 b.n 800b464 <osMutexAcquire+0x8c>
|
|
} else {
|
|
stat = osErrorResource;
|
|
800b45e: f06f 0302 mvn.w r3, #2
|
|
800b462: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800b464: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b466: 4618 mov r0, r3
|
|
800b468: 3718 adds r7, #24
|
|
800b46a: 46bd mov sp, r7
|
|
800b46c: bd80 pop {r7, pc}
|
|
|
|
0800b46e <osMutexRelease>:
|
|
|
|
osStatus_t osMutexRelease (osMutexId_t mutex_id) {
|
|
800b46e: b580 push {r7, lr}
|
|
800b470: b086 sub sp, #24
|
|
800b472: af00 add r7, sp, #0
|
|
800b474: 6078 str r0, [r7, #4]
|
|
SemaphoreHandle_t hMutex;
|
|
osStatus_t stat;
|
|
uint32_t rmtx;
|
|
|
|
hMutex = (SemaphoreHandle_t)((uint32_t)mutex_id & ~1U);
|
|
800b476: 687b ldr r3, [r7, #4]
|
|
800b478: f023 0301 bic.w r3, r3, #1
|
|
800b47c: 613b str r3, [r7, #16]
|
|
|
|
rmtx = (uint32_t)mutex_id & 1U;
|
|
800b47e: 687b ldr r3, [r7, #4]
|
|
800b480: f003 0301 and.w r3, r3, #1
|
|
800b484: 60fb str r3, [r7, #12]
|
|
|
|
stat = osOK;
|
|
800b486: 2300 movs r3, #0
|
|
800b488: 617b str r3, [r7, #20]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b48a: f3ef 8305 mrs r3, IPSR
|
|
800b48e: 60bb str r3, [r7, #8]
|
|
return(result);
|
|
800b490: 68bb ldr r3, [r7, #8]
|
|
|
|
if (IS_IRQ()) {
|
|
800b492: 2b00 cmp r3, #0
|
|
800b494: d003 beq.n 800b49e <osMutexRelease+0x30>
|
|
stat = osErrorISR;
|
|
800b496: f06f 0305 mvn.w r3, #5
|
|
800b49a: 617b str r3, [r7, #20]
|
|
800b49c: e01f b.n 800b4de <osMutexRelease+0x70>
|
|
}
|
|
else if (hMutex == NULL) {
|
|
800b49e: 693b ldr r3, [r7, #16]
|
|
800b4a0: 2b00 cmp r3, #0
|
|
800b4a2: d103 bne.n 800b4ac <osMutexRelease+0x3e>
|
|
stat = osErrorParameter;
|
|
800b4a4: f06f 0303 mvn.w r3, #3
|
|
800b4a8: 617b str r3, [r7, #20]
|
|
800b4aa: e018 b.n 800b4de <osMutexRelease+0x70>
|
|
}
|
|
else {
|
|
if (rmtx != 0U) {
|
|
800b4ac: 68fb ldr r3, [r7, #12]
|
|
800b4ae: 2b00 cmp r3, #0
|
|
800b4b0: d009 beq.n 800b4c6 <osMutexRelease+0x58>
|
|
#if (configUSE_RECURSIVE_MUTEXES == 1)
|
|
if (xSemaphoreGiveRecursive (hMutex) != pdPASS) {
|
|
800b4b2: 6938 ldr r0, [r7, #16]
|
|
800b4b4: f000 fe0e bl 800c0d4 <xQueueGiveMutexRecursive>
|
|
800b4b8: 4603 mov r3, r0
|
|
800b4ba: 2b01 cmp r3, #1
|
|
800b4bc: d00f beq.n 800b4de <osMutexRelease+0x70>
|
|
stat = osErrorResource;
|
|
800b4be: f06f 0302 mvn.w r3, #2
|
|
800b4c2: 617b str r3, [r7, #20]
|
|
800b4c4: e00b b.n 800b4de <osMutexRelease+0x70>
|
|
}
|
|
#endif
|
|
}
|
|
else {
|
|
if (xSemaphoreGive (hMutex) != pdPASS) {
|
|
800b4c6: 2300 movs r3, #0
|
|
800b4c8: 2200 movs r2, #0
|
|
800b4ca: 2100 movs r1, #0
|
|
800b4cc: 6938 ldr r0, [r7, #16]
|
|
800b4ce: f000 fe6d bl 800c1ac <xQueueGenericSend>
|
|
800b4d2: 4603 mov r3, r0
|
|
800b4d4: 2b01 cmp r3, #1
|
|
800b4d6: d002 beq.n 800b4de <osMutexRelease+0x70>
|
|
stat = osErrorResource;
|
|
800b4d8: f06f 0302 mvn.w r3, #2
|
|
800b4dc: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800b4de: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b4e0: 4618 mov r0, r3
|
|
800b4e2: 3718 adds r7, #24
|
|
800b4e4: 46bd mov sp, r7
|
|
800b4e6: bd80 pop {r7, pc}
|
|
|
|
0800b4e8 <osMessageQueueNew>:
|
|
return (stat);
|
|
}
|
|
|
|
/*---------------------------------------------------------------------------*/
|
|
|
|
osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr) {
|
|
800b4e8: b580 push {r7, lr}
|
|
800b4ea: b08a sub sp, #40 @ 0x28
|
|
800b4ec: af02 add r7, sp, #8
|
|
800b4ee: 60f8 str r0, [r7, #12]
|
|
800b4f0: 60b9 str r1, [r7, #8]
|
|
800b4f2: 607a str r2, [r7, #4]
|
|
int32_t mem;
|
|
#if (configQUEUE_REGISTRY_SIZE > 0)
|
|
const char *name;
|
|
#endif
|
|
|
|
hQueue = NULL;
|
|
800b4f4: 2300 movs r3, #0
|
|
800b4f6: 61fb str r3, [r7, #28]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b4f8: f3ef 8305 mrs r3, IPSR
|
|
800b4fc: 613b str r3, [r7, #16]
|
|
return(result);
|
|
800b4fe: 693b ldr r3, [r7, #16]
|
|
|
|
if (!IS_IRQ() && (msg_count > 0U) && (msg_size > 0U)) {
|
|
800b500: 2b00 cmp r3, #0
|
|
800b502: d15f bne.n 800b5c4 <osMessageQueueNew+0xdc>
|
|
800b504: 68fb ldr r3, [r7, #12]
|
|
800b506: 2b00 cmp r3, #0
|
|
800b508: d05c beq.n 800b5c4 <osMessageQueueNew+0xdc>
|
|
800b50a: 68bb ldr r3, [r7, #8]
|
|
800b50c: 2b00 cmp r3, #0
|
|
800b50e: d059 beq.n 800b5c4 <osMessageQueueNew+0xdc>
|
|
mem = -1;
|
|
800b510: f04f 33ff mov.w r3, #4294967295
|
|
800b514: 61bb str r3, [r7, #24]
|
|
|
|
if (attr != NULL) {
|
|
800b516: 687b ldr r3, [r7, #4]
|
|
800b518: 2b00 cmp r3, #0
|
|
800b51a: d029 beq.n 800b570 <osMessageQueueNew+0x88>
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
|
|
800b51c: 687b ldr r3, [r7, #4]
|
|
800b51e: 689b ldr r3, [r3, #8]
|
|
800b520: 2b00 cmp r3, #0
|
|
800b522: d012 beq.n 800b54a <osMessageQueueNew+0x62>
|
|
800b524: 687b ldr r3, [r7, #4]
|
|
800b526: 68db ldr r3, [r3, #12]
|
|
800b528: 2b4f cmp r3, #79 @ 0x4f
|
|
800b52a: d90e bls.n 800b54a <osMessageQueueNew+0x62>
|
|
(attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
|
|
800b52c: 687b ldr r3, [r7, #4]
|
|
800b52e: 691b ldr r3, [r3, #16]
|
|
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticQueue_t)) &&
|
|
800b530: 2b00 cmp r3, #0
|
|
800b532: d00a beq.n 800b54a <osMessageQueueNew+0x62>
|
|
(attr->mq_mem != NULL) && (attr->mq_size >= (msg_count * msg_size))) {
|
|
800b534: 687b ldr r3, [r7, #4]
|
|
800b536: 695a ldr r2, [r3, #20]
|
|
800b538: 68fb ldr r3, [r7, #12]
|
|
800b53a: 68b9 ldr r1, [r7, #8]
|
|
800b53c: fb01 f303 mul.w r3, r1, r3
|
|
800b540: 429a cmp r2, r3
|
|
800b542: d302 bcc.n 800b54a <osMessageQueueNew+0x62>
|
|
mem = 1;
|
|
800b544: 2301 movs r3, #1
|
|
800b546: 61bb str r3, [r7, #24]
|
|
800b548: e014 b.n 800b574 <osMessageQueueNew+0x8c>
|
|
}
|
|
else {
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
|
|
800b54a: 687b ldr r3, [r7, #4]
|
|
800b54c: 689b ldr r3, [r3, #8]
|
|
800b54e: 2b00 cmp r3, #0
|
|
800b550: d110 bne.n 800b574 <osMessageQueueNew+0x8c>
|
|
800b552: 687b ldr r3, [r7, #4]
|
|
800b554: 68db ldr r3, [r3, #12]
|
|
800b556: 2b00 cmp r3, #0
|
|
800b558: d10c bne.n 800b574 <osMessageQueueNew+0x8c>
|
|
(attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
|
|
800b55a: 687b ldr r3, [r7, #4]
|
|
800b55c: 691b ldr r3, [r3, #16]
|
|
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) &&
|
|
800b55e: 2b00 cmp r3, #0
|
|
800b560: d108 bne.n 800b574 <osMessageQueueNew+0x8c>
|
|
(attr->mq_mem == NULL) && (attr->mq_size == 0U)) {
|
|
800b562: 687b ldr r3, [r7, #4]
|
|
800b564: 695b ldr r3, [r3, #20]
|
|
800b566: 2b00 cmp r3, #0
|
|
800b568: d104 bne.n 800b574 <osMessageQueueNew+0x8c>
|
|
mem = 0;
|
|
800b56a: 2300 movs r3, #0
|
|
800b56c: 61bb str r3, [r7, #24]
|
|
800b56e: e001 b.n 800b574 <osMessageQueueNew+0x8c>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
mem = 0;
|
|
800b570: 2300 movs r3, #0
|
|
800b572: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
if (mem == 1) {
|
|
800b574: 69bb ldr r3, [r7, #24]
|
|
800b576: 2b01 cmp r3, #1
|
|
800b578: d10b bne.n 800b592 <osMessageQueueNew+0xaa>
|
|
#if (configSUPPORT_STATIC_ALLOCATION == 1)
|
|
hQueue = xQueueCreateStatic (msg_count, msg_size, attr->mq_mem, attr->cb_mem);
|
|
800b57a: 687b ldr r3, [r7, #4]
|
|
800b57c: 691a ldr r2, [r3, #16]
|
|
800b57e: 687b ldr r3, [r7, #4]
|
|
800b580: 689b ldr r3, [r3, #8]
|
|
800b582: 2100 movs r1, #0
|
|
800b584: 9100 str r1, [sp, #0]
|
|
800b586: 68b9 ldr r1, [r7, #8]
|
|
800b588: 68f8 ldr r0, [r7, #12]
|
|
800b58a: f000 fc7b bl 800be84 <xQueueGenericCreateStatic>
|
|
800b58e: 61f8 str r0, [r7, #28]
|
|
800b590: e008 b.n 800b5a4 <osMessageQueueNew+0xbc>
|
|
#endif
|
|
}
|
|
else {
|
|
if (mem == 0) {
|
|
800b592: 69bb ldr r3, [r7, #24]
|
|
800b594: 2b00 cmp r3, #0
|
|
800b596: d105 bne.n 800b5a4 <osMessageQueueNew+0xbc>
|
|
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
|
hQueue = xQueueCreate (msg_count, msg_size);
|
|
800b598: 2200 movs r2, #0
|
|
800b59a: 68b9 ldr r1, [r7, #8]
|
|
800b59c: 68f8 ldr r0, [r7, #12]
|
|
800b59e: f000 fcee bl 800bf7e <xQueueGenericCreate>
|
|
800b5a2: 61f8 str r0, [r7, #28]
|
|
#endif
|
|
}
|
|
}
|
|
|
|
#if (configQUEUE_REGISTRY_SIZE > 0)
|
|
if (hQueue != NULL) {
|
|
800b5a4: 69fb ldr r3, [r7, #28]
|
|
800b5a6: 2b00 cmp r3, #0
|
|
800b5a8: d00c beq.n 800b5c4 <osMessageQueueNew+0xdc>
|
|
if (attr != NULL) {
|
|
800b5aa: 687b ldr r3, [r7, #4]
|
|
800b5ac: 2b00 cmp r3, #0
|
|
800b5ae: d003 beq.n 800b5b8 <osMessageQueueNew+0xd0>
|
|
name = attr->name;
|
|
800b5b0: 687b ldr r3, [r7, #4]
|
|
800b5b2: 681b ldr r3, [r3, #0]
|
|
800b5b4: 617b str r3, [r7, #20]
|
|
800b5b6: e001 b.n 800b5bc <osMessageQueueNew+0xd4>
|
|
} else {
|
|
name = NULL;
|
|
800b5b8: 2300 movs r3, #0
|
|
800b5ba: 617b str r3, [r7, #20]
|
|
}
|
|
vQueueAddToRegistry (hQueue, name);
|
|
800b5bc: 6979 ldr r1, [r7, #20]
|
|
800b5be: 69f8 ldr r0, [r7, #28]
|
|
800b5c0: f001 fb30 bl 800cc24 <vQueueAddToRegistry>
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
return ((osMessageQueueId_t)hQueue);
|
|
800b5c4: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800b5c6: 4618 mov r0, r3
|
|
800b5c8: 3720 adds r7, #32
|
|
800b5ca: 46bd mov sp, r7
|
|
800b5cc: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800b5d0 <osMessageQueueGet>:
|
|
}
|
|
|
|
return (stat);
|
|
}
|
|
|
|
osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout) {
|
|
800b5d0: b580 push {r7, lr}
|
|
800b5d2: b088 sub sp, #32
|
|
800b5d4: af00 add r7, sp, #0
|
|
800b5d6: 60f8 str r0, [r7, #12]
|
|
800b5d8: 60b9 str r1, [r7, #8]
|
|
800b5da: 607a str r2, [r7, #4]
|
|
800b5dc: 603b str r3, [r7, #0]
|
|
QueueHandle_t hQueue = (QueueHandle_t)mq_id;
|
|
800b5de: 68fb ldr r3, [r7, #12]
|
|
800b5e0: 61bb str r3, [r7, #24]
|
|
osStatus_t stat;
|
|
BaseType_t yield;
|
|
|
|
(void)msg_prio; /* Message priority is ignored */
|
|
|
|
stat = osOK;
|
|
800b5e2: 2300 movs r3, #0
|
|
800b5e4: 61fb str r3, [r7, #28]
|
|
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
|
|
800b5e6: f3ef 8305 mrs r3, IPSR
|
|
800b5ea: 617b str r3, [r7, #20]
|
|
return(result);
|
|
800b5ec: 697b ldr r3, [r7, #20]
|
|
|
|
if (IS_IRQ()) {
|
|
800b5ee: 2b00 cmp r3, #0
|
|
800b5f0: d028 beq.n 800b644 <osMessageQueueGet+0x74>
|
|
if ((hQueue == NULL) || (msg_ptr == NULL) || (timeout != 0U)) {
|
|
800b5f2: 69bb ldr r3, [r7, #24]
|
|
800b5f4: 2b00 cmp r3, #0
|
|
800b5f6: d005 beq.n 800b604 <osMessageQueueGet+0x34>
|
|
800b5f8: 68bb ldr r3, [r7, #8]
|
|
800b5fa: 2b00 cmp r3, #0
|
|
800b5fc: d002 beq.n 800b604 <osMessageQueueGet+0x34>
|
|
800b5fe: 683b ldr r3, [r7, #0]
|
|
800b600: 2b00 cmp r3, #0
|
|
800b602: d003 beq.n 800b60c <osMessageQueueGet+0x3c>
|
|
stat = osErrorParameter;
|
|
800b604: f06f 0303 mvn.w r3, #3
|
|
800b608: 61fb str r3, [r7, #28]
|
|
800b60a: e037 b.n 800b67c <osMessageQueueGet+0xac>
|
|
}
|
|
else {
|
|
yield = pdFALSE;
|
|
800b60c: 2300 movs r3, #0
|
|
800b60e: 613b str r3, [r7, #16]
|
|
|
|
if (xQueueReceiveFromISR (hQueue, msg_ptr, &yield) != pdPASS) {
|
|
800b610: f107 0310 add.w r3, r7, #16
|
|
800b614: 461a mov r2, r3
|
|
800b616: 68b9 ldr r1, [r7, #8]
|
|
800b618: 69b8 ldr r0, [r7, #24]
|
|
800b61a: f001 f959 bl 800c8d0 <xQueueReceiveFromISR>
|
|
800b61e: 4603 mov r3, r0
|
|
800b620: 2b01 cmp r3, #1
|
|
800b622: d003 beq.n 800b62c <osMessageQueueGet+0x5c>
|
|
stat = osErrorResource;
|
|
800b624: f06f 0302 mvn.w r3, #2
|
|
800b628: 61fb str r3, [r7, #28]
|
|
800b62a: e027 b.n 800b67c <osMessageQueueGet+0xac>
|
|
} else {
|
|
portYIELD_FROM_ISR (yield);
|
|
800b62c: 693b ldr r3, [r7, #16]
|
|
800b62e: 2b00 cmp r3, #0
|
|
800b630: d024 beq.n 800b67c <osMessageQueueGet+0xac>
|
|
800b632: 4b15 ldr r3, [pc, #84] @ (800b688 <osMessageQueueGet+0xb8>)
|
|
800b634: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800b638: 601a str r2, [r3, #0]
|
|
800b63a: f3bf 8f4f dsb sy
|
|
800b63e: f3bf 8f6f isb sy
|
|
800b642: e01b b.n 800b67c <osMessageQueueGet+0xac>
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
if ((hQueue == NULL) || (msg_ptr == NULL)) {
|
|
800b644: 69bb ldr r3, [r7, #24]
|
|
800b646: 2b00 cmp r3, #0
|
|
800b648: d002 beq.n 800b650 <osMessageQueueGet+0x80>
|
|
800b64a: 68bb ldr r3, [r7, #8]
|
|
800b64c: 2b00 cmp r3, #0
|
|
800b64e: d103 bne.n 800b658 <osMessageQueueGet+0x88>
|
|
stat = osErrorParameter;
|
|
800b650: f06f 0303 mvn.w r3, #3
|
|
800b654: 61fb str r3, [r7, #28]
|
|
800b656: e011 b.n 800b67c <osMessageQueueGet+0xac>
|
|
}
|
|
else {
|
|
if (xQueueReceive (hQueue, msg_ptr, (TickType_t)timeout) != pdPASS) {
|
|
800b658: 683a ldr r2, [r7, #0]
|
|
800b65a: 68b9 ldr r1, [r7, #8]
|
|
800b65c: 69b8 ldr r0, [r7, #24]
|
|
800b65e: f000 ff45 bl 800c4ec <xQueueReceive>
|
|
800b662: 4603 mov r3, r0
|
|
800b664: 2b01 cmp r3, #1
|
|
800b666: d009 beq.n 800b67c <osMessageQueueGet+0xac>
|
|
if (timeout != 0U) {
|
|
800b668: 683b ldr r3, [r7, #0]
|
|
800b66a: 2b00 cmp r3, #0
|
|
800b66c: d003 beq.n 800b676 <osMessageQueueGet+0xa6>
|
|
stat = osErrorTimeout;
|
|
800b66e: f06f 0301 mvn.w r3, #1
|
|
800b672: 61fb str r3, [r7, #28]
|
|
800b674: e002 b.n 800b67c <osMessageQueueGet+0xac>
|
|
} else {
|
|
stat = osErrorResource;
|
|
800b676: f06f 0302 mvn.w r3, #2
|
|
800b67a: 61fb str r3, [r7, #28]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return (stat);
|
|
800b67c: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800b67e: 4618 mov r0, r3
|
|
800b680: 3720 adds r7, #32
|
|
800b682: 46bd mov sp, r7
|
|
800b684: bd80 pop {r7, pc}
|
|
800b686: bf00 nop
|
|
800b688: e000ed04 .word 0xe000ed04
|
|
|
|
0800b68c <vApplicationGetIdleTaskMemory>:
|
|
|
|
/*
|
|
vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
|
|
equals to 1 and is required for static memory allocation support.
|
|
*/
|
|
__WEAK void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
|
|
800b68c: b480 push {r7}
|
|
800b68e: b085 sub sp, #20
|
|
800b690: af00 add r7, sp, #0
|
|
800b692: 60f8 str r0, [r7, #12]
|
|
800b694: 60b9 str r1, [r7, #8]
|
|
800b696: 607a str r2, [r7, #4]
|
|
/* Idle task control block and stack */
|
|
static StaticTask_t Idle_TCB;
|
|
static StackType_t Idle_Stack[configMINIMAL_STACK_SIZE];
|
|
|
|
*ppxIdleTaskTCBBuffer = &Idle_TCB;
|
|
800b698: 68fb ldr r3, [r7, #12]
|
|
800b69a: 4a07 ldr r2, [pc, #28] @ (800b6b8 <vApplicationGetIdleTaskMemory+0x2c>)
|
|
800b69c: 601a str r2, [r3, #0]
|
|
*ppxIdleTaskStackBuffer = &Idle_Stack[0];
|
|
800b69e: 68bb ldr r3, [r7, #8]
|
|
800b6a0: 4a06 ldr r2, [pc, #24] @ (800b6bc <vApplicationGetIdleTaskMemory+0x30>)
|
|
800b6a2: 601a str r2, [r3, #0]
|
|
*pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
|
|
800b6a4: 687b ldr r3, [r7, #4]
|
|
800b6a6: f44f 7200 mov.w r2, #512 @ 0x200
|
|
800b6aa: 601a str r2, [r3, #0]
|
|
}
|
|
800b6ac: bf00 nop
|
|
800b6ae: 3714 adds r7, #20
|
|
800b6b0: 46bd mov sp, r7
|
|
800b6b2: f85d 7b04 ldr.w r7, [sp], #4
|
|
800b6b6: 4770 bx lr
|
|
800b6b8: 20000548 .word 0x20000548
|
|
800b6bc: 200005f0 .word 0x200005f0
|
|
|
|
0800b6c0 <vApplicationGetTimerTaskMemory>:
|
|
|
|
/*
|
|
vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
|
|
equals to 1 and is required for static memory allocation support.
|
|
*/
|
|
__WEAK void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
|
|
800b6c0: b480 push {r7}
|
|
800b6c2: b085 sub sp, #20
|
|
800b6c4: af00 add r7, sp, #0
|
|
800b6c6: 60f8 str r0, [r7, #12]
|
|
800b6c8: 60b9 str r1, [r7, #8]
|
|
800b6ca: 607a str r2, [r7, #4]
|
|
/* Timer task control block and stack */
|
|
static StaticTask_t Timer_TCB;
|
|
static StackType_t Timer_Stack[configTIMER_TASK_STACK_DEPTH];
|
|
|
|
*ppxTimerTaskTCBBuffer = &Timer_TCB;
|
|
800b6cc: 68fb ldr r3, [r7, #12]
|
|
800b6ce: 4a07 ldr r2, [pc, #28] @ (800b6ec <vApplicationGetTimerTaskMemory+0x2c>)
|
|
800b6d0: 601a str r2, [r3, #0]
|
|
*ppxTimerTaskStackBuffer = &Timer_Stack[0];
|
|
800b6d2: 68bb ldr r3, [r7, #8]
|
|
800b6d4: 4a06 ldr r2, [pc, #24] @ (800b6f0 <vApplicationGetTimerTaskMemory+0x30>)
|
|
800b6d6: 601a str r2, [r3, #0]
|
|
*pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
|
|
800b6d8: 687b ldr r3, [r7, #4]
|
|
800b6da: f44f 6280 mov.w r2, #1024 @ 0x400
|
|
800b6de: 601a str r2, [r3, #0]
|
|
}
|
|
800b6e0: bf00 nop
|
|
800b6e2: 3714 adds r7, #20
|
|
800b6e4: 46bd mov sp, r7
|
|
800b6e6: f85d 7b04 ldr.w r7, [sp], #4
|
|
800b6ea: 4770 bx lr
|
|
800b6ec: 20000df0 .word 0x20000df0
|
|
800b6f0: 20000e98 .word 0x20000e98
|
|
|
|
0800b6f4 <xEventGroupCreateStatic>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
|
|
EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer )
|
|
{
|
|
800b6f4: b580 push {r7, lr}
|
|
800b6f6: b086 sub sp, #24
|
|
800b6f8: af00 add r7, sp, #0
|
|
800b6fa: 6078 str r0, [r7, #4]
|
|
EventGroup_t *pxEventBits;
|
|
|
|
/* A StaticEventGroup_t object must be provided. */
|
|
configASSERT( pxEventGroupBuffer );
|
|
800b6fc: 687b ldr r3, [r7, #4]
|
|
800b6fe: 2b00 cmp r3, #0
|
|
800b700: d10b bne.n 800b71a <xEventGroupCreateStatic+0x26>
|
|
__asm volatile
|
|
800b702: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b706: f383 8811 msr BASEPRI, r3
|
|
800b70a: f3bf 8f6f isb sy
|
|
800b70e: f3bf 8f4f dsb sy
|
|
800b712: 613b str r3, [r7, #16]
|
|
}
|
|
800b714: bf00 nop
|
|
800b716: bf00 nop
|
|
800b718: e7fd b.n 800b716 <xEventGroupCreateStatic+0x22>
|
|
#if( configASSERT_DEFINED == 1 )
|
|
{
|
|
/* Sanity check that the size of the structure used to declare a
|
|
variable of type StaticEventGroup_t equals the size of the real
|
|
event group structure. */
|
|
volatile size_t xSize = sizeof( StaticEventGroup_t );
|
|
800b71a: 2320 movs r3, #32
|
|
800b71c: 60bb str r3, [r7, #8]
|
|
configASSERT( xSize == sizeof( EventGroup_t ) );
|
|
800b71e: 68bb ldr r3, [r7, #8]
|
|
800b720: 2b20 cmp r3, #32
|
|
800b722: d00b beq.n 800b73c <xEventGroupCreateStatic+0x48>
|
|
__asm volatile
|
|
800b724: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b728: f383 8811 msr BASEPRI, r3
|
|
800b72c: f3bf 8f6f isb sy
|
|
800b730: f3bf 8f4f dsb sy
|
|
800b734: 60fb str r3, [r7, #12]
|
|
}
|
|
800b736: bf00 nop
|
|
800b738: bf00 nop
|
|
800b73a: e7fd b.n 800b738 <xEventGroupCreateStatic+0x44>
|
|
} /*lint !e529 xSize is referenced if configASSERT() is defined. */
|
|
#endif /* configASSERT_DEFINED */
|
|
|
|
/* The user has provided a statically allocated event group - use it. */
|
|
pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer; /*lint !e740 !e9087 EventGroup_t and StaticEventGroup_t are deliberately aliased for data hiding purposes and guaranteed to have the same size and alignment requirement - checked by configASSERT(). */
|
|
800b73c: 687b ldr r3, [r7, #4]
|
|
800b73e: 617b str r3, [r7, #20]
|
|
|
|
if( pxEventBits != NULL )
|
|
800b740: 697b ldr r3, [r7, #20]
|
|
800b742: 2b00 cmp r3, #0
|
|
800b744: d00a beq.n 800b75c <xEventGroupCreateStatic+0x68>
|
|
{
|
|
pxEventBits->uxEventBits = 0;
|
|
800b746: 697b ldr r3, [r7, #20]
|
|
800b748: 2200 movs r2, #0
|
|
800b74a: 601a str r2, [r3, #0]
|
|
vListInitialise( &( pxEventBits->xTasksWaitingForBits ) );
|
|
800b74c: 697b ldr r3, [r7, #20]
|
|
800b74e: 3304 adds r3, #4
|
|
800b750: 4618 mov r0, r3
|
|
800b752: f000 fa79 bl 800bc48 <vListInitialise>
|
|
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
{
|
|
/* Both static and dynamic allocation can be used, so note that
|
|
this event group was created statically in case the event group
|
|
is later deleted. */
|
|
pxEventBits->ucStaticallyAllocated = pdTRUE;
|
|
800b756: 697b ldr r3, [r7, #20]
|
|
800b758: 2201 movs r2, #1
|
|
800b75a: 771a strb r2, [r3, #28]
|
|
pxEventGroupBuffer pointing to a pre-allocated (compile time
|
|
allocated) StaticEventGroup_t variable. */
|
|
traceEVENT_GROUP_CREATE_FAILED();
|
|
}
|
|
|
|
return pxEventBits;
|
|
800b75c: 697b ldr r3, [r7, #20]
|
|
}
|
|
800b75e: 4618 mov r0, r3
|
|
800b760: 3718 adds r7, #24
|
|
800b762: 46bd mov sp, r7
|
|
800b764: bd80 pop {r7, pc}
|
|
|
|
0800b766 <xEventGroupCreate>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
|
|
EventGroupHandle_t xEventGroupCreate( void )
|
|
{
|
|
800b766: b580 push {r7, lr}
|
|
800b768: b082 sub sp, #8
|
|
800b76a: af00 add r7, sp, #0
|
|
TickType_t alignment requirements the cast is safe. In other cases,
|
|
where the natural word size of the architecture is less than
|
|
sizeof( TickType_t ), the TickType_t variables will be accessed in two
|
|
or more reads operations, and the alignment requirements is only that
|
|
of each individual read. */
|
|
pxEventBits = ( EventGroup_t * ) pvPortMalloc( sizeof( EventGroup_t ) ); /*lint !e9087 !e9079 see comment above. */
|
|
800b76c: 2020 movs r0, #32
|
|
800b76e: f003 fd8d bl 800f28c <pvPortMalloc>
|
|
800b772: 6078 str r0, [r7, #4]
|
|
|
|
if( pxEventBits != NULL )
|
|
800b774: 687b ldr r3, [r7, #4]
|
|
800b776: 2b00 cmp r3, #0
|
|
800b778: d00a beq.n 800b790 <xEventGroupCreate+0x2a>
|
|
{
|
|
pxEventBits->uxEventBits = 0;
|
|
800b77a: 687b ldr r3, [r7, #4]
|
|
800b77c: 2200 movs r2, #0
|
|
800b77e: 601a str r2, [r3, #0]
|
|
vListInitialise( &( pxEventBits->xTasksWaitingForBits ) );
|
|
800b780: 687b ldr r3, [r7, #4]
|
|
800b782: 3304 adds r3, #4
|
|
800b784: 4618 mov r0, r3
|
|
800b786: f000 fa5f bl 800bc48 <vListInitialise>
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
{
|
|
/* Both static and dynamic allocation can be used, so note this
|
|
event group was allocated statically in case the event group is
|
|
later deleted. */
|
|
pxEventBits->ucStaticallyAllocated = pdFALSE;
|
|
800b78a: 687b ldr r3, [r7, #4]
|
|
800b78c: 2200 movs r2, #0
|
|
800b78e: 771a strb r2, [r3, #28]
|
|
else
|
|
{
|
|
traceEVENT_GROUP_CREATE_FAILED(); /*lint !e9063 Else branch only exists to allow tracing and does not generate code if trace macros are not defined. */
|
|
}
|
|
|
|
return pxEventBits;
|
|
800b790: 687b ldr r3, [r7, #4]
|
|
}
|
|
800b792: 4618 mov r0, r3
|
|
800b794: 3708 adds r7, #8
|
|
800b796: 46bd mov sp, r7
|
|
800b798: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800b79c <xEventGroupWaitBits>:
|
|
return uxReturn;
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait )
|
|
{
|
|
800b79c: b580 push {r7, lr}
|
|
800b79e: b090 sub sp, #64 @ 0x40
|
|
800b7a0: af00 add r7, sp, #0
|
|
800b7a2: 60f8 str r0, [r7, #12]
|
|
800b7a4: 60b9 str r1, [r7, #8]
|
|
800b7a6: 607a str r2, [r7, #4]
|
|
800b7a8: 603b str r3, [r7, #0]
|
|
EventGroup_t *pxEventBits = xEventGroup;
|
|
800b7aa: 68fb ldr r3, [r7, #12]
|
|
800b7ac: 637b str r3, [r7, #52] @ 0x34
|
|
EventBits_t uxReturn, uxControlBits = 0;
|
|
800b7ae: 2300 movs r3, #0
|
|
800b7b0: 63bb str r3, [r7, #56] @ 0x38
|
|
BaseType_t xWaitConditionMet, xAlreadyYielded;
|
|
BaseType_t xTimeoutOccurred = pdFALSE;
|
|
800b7b2: 2300 movs r3, #0
|
|
800b7b4: 633b str r3, [r7, #48] @ 0x30
|
|
|
|
/* Check the user is not attempting to wait on the bits used by the kernel
|
|
itself, and that at least one bit is being requested. */
|
|
configASSERT( xEventGroup );
|
|
800b7b6: 68fb ldr r3, [r7, #12]
|
|
800b7b8: 2b00 cmp r3, #0
|
|
800b7ba: d10b bne.n 800b7d4 <xEventGroupWaitBits+0x38>
|
|
__asm volatile
|
|
800b7bc: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b7c0: f383 8811 msr BASEPRI, r3
|
|
800b7c4: f3bf 8f6f isb sy
|
|
800b7c8: f3bf 8f4f dsb sy
|
|
800b7cc: 623b str r3, [r7, #32]
|
|
}
|
|
800b7ce: bf00 nop
|
|
800b7d0: bf00 nop
|
|
800b7d2: e7fd b.n 800b7d0 <xEventGroupWaitBits+0x34>
|
|
configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
800b7d4: 68bb ldr r3, [r7, #8]
|
|
800b7d6: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800b7da: d30b bcc.n 800b7f4 <xEventGroupWaitBits+0x58>
|
|
__asm volatile
|
|
800b7dc: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b7e0: f383 8811 msr BASEPRI, r3
|
|
800b7e4: f3bf 8f6f isb sy
|
|
800b7e8: f3bf 8f4f dsb sy
|
|
800b7ec: 61fb str r3, [r7, #28]
|
|
}
|
|
800b7ee: bf00 nop
|
|
800b7f0: bf00 nop
|
|
800b7f2: e7fd b.n 800b7f0 <xEventGroupWaitBits+0x54>
|
|
configASSERT( uxBitsToWaitFor != 0 );
|
|
800b7f4: 68bb ldr r3, [r7, #8]
|
|
800b7f6: 2b00 cmp r3, #0
|
|
800b7f8: d10b bne.n 800b812 <xEventGroupWaitBits+0x76>
|
|
__asm volatile
|
|
800b7fa: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b7fe: f383 8811 msr BASEPRI, r3
|
|
800b802: f3bf 8f6f isb sy
|
|
800b806: f3bf 8f4f dsb sy
|
|
800b80a: 61bb str r3, [r7, #24]
|
|
}
|
|
800b80c: bf00 nop
|
|
800b80e: bf00 nop
|
|
800b810: e7fd b.n 800b80e <xEventGroupWaitBits+0x72>
|
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
{
|
|
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
800b812: f002 fa83 bl 800dd1c <xTaskGetSchedulerState>
|
|
800b816: 4603 mov r3, r0
|
|
800b818: 2b00 cmp r3, #0
|
|
800b81a: d102 bne.n 800b822 <xEventGroupWaitBits+0x86>
|
|
800b81c: 6cbb ldr r3, [r7, #72] @ 0x48
|
|
800b81e: 2b00 cmp r3, #0
|
|
800b820: d101 bne.n 800b826 <xEventGroupWaitBits+0x8a>
|
|
800b822: 2301 movs r3, #1
|
|
800b824: e000 b.n 800b828 <xEventGroupWaitBits+0x8c>
|
|
800b826: 2300 movs r3, #0
|
|
800b828: 2b00 cmp r3, #0
|
|
800b82a: d10b bne.n 800b844 <xEventGroupWaitBits+0xa8>
|
|
__asm volatile
|
|
800b82c: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b830: f383 8811 msr BASEPRI, r3
|
|
800b834: f3bf 8f6f isb sy
|
|
800b838: f3bf 8f4f dsb sy
|
|
800b83c: 617b str r3, [r7, #20]
|
|
}
|
|
800b83e: bf00 nop
|
|
800b840: bf00 nop
|
|
800b842: e7fd b.n 800b840 <xEventGroupWaitBits+0xa4>
|
|
}
|
|
#endif
|
|
|
|
vTaskSuspendAll();
|
|
800b844: f001 fda4 bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
const EventBits_t uxCurrentEventBits = pxEventBits->uxEventBits;
|
|
800b848: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b84a: 681b ldr r3, [r3, #0]
|
|
800b84c: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
/* Check to see if the wait condition is already met or not. */
|
|
xWaitConditionMet = prvTestWaitCondition( uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits );
|
|
800b84e: 683a ldr r2, [r7, #0]
|
|
800b850: 68b9 ldr r1, [r7, #8]
|
|
800b852: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800b854: f000 f9c2 bl 800bbdc <prvTestWaitCondition>
|
|
800b858: 62b8 str r0, [r7, #40] @ 0x28
|
|
|
|
if( xWaitConditionMet != pdFALSE )
|
|
800b85a: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800b85c: 2b00 cmp r3, #0
|
|
800b85e: d00e beq.n 800b87e <xEventGroupWaitBits+0xe2>
|
|
{
|
|
/* The wait condition has already been met so there is no need to
|
|
block. */
|
|
uxReturn = uxCurrentEventBits;
|
|
800b860: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800b862: 63fb str r3, [r7, #60] @ 0x3c
|
|
xTicksToWait = ( TickType_t ) 0;
|
|
800b864: 2300 movs r3, #0
|
|
800b866: 64bb str r3, [r7, #72] @ 0x48
|
|
|
|
/* Clear the wait bits if requested to do so. */
|
|
if( xClearOnExit != pdFALSE )
|
|
800b868: 687b ldr r3, [r7, #4]
|
|
800b86a: 2b00 cmp r3, #0
|
|
800b86c: d028 beq.n 800b8c0 <xEventGroupWaitBits+0x124>
|
|
{
|
|
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
800b86e: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b870: 681a ldr r2, [r3, #0]
|
|
800b872: 68bb ldr r3, [r7, #8]
|
|
800b874: 43db mvns r3, r3
|
|
800b876: 401a ands r2, r3
|
|
800b878: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b87a: 601a str r2, [r3, #0]
|
|
800b87c: e020 b.n 800b8c0 <xEventGroupWaitBits+0x124>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
else if( xTicksToWait == ( TickType_t ) 0 )
|
|
800b87e: 6cbb ldr r3, [r7, #72] @ 0x48
|
|
800b880: 2b00 cmp r3, #0
|
|
800b882: d104 bne.n 800b88e <xEventGroupWaitBits+0xf2>
|
|
{
|
|
/* The wait condition has not been met, but no block time was
|
|
specified, so just return the current value. */
|
|
uxReturn = uxCurrentEventBits;
|
|
800b884: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800b886: 63fb str r3, [r7, #60] @ 0x3c
|
|
xTimeoutOccurred = pdTRUE;
|
|
800b888: 2301 movs r3, #1
|
|
800b88a: 633b str r3, [r7, #48] @ 0x30
|
|
800b88c: e018 b.n 800b8c0 <xEventGroupWaitBits+0x124>
|
|
{
|
|
/* The task is going to block to wait for its required bits to be
|
|
set. uxControlBits are used to remember the specified behaviour of
|
|
this call to xEventGroupWaitBits() - for use when the event bits
|
|
unblock the task. */
|
|
if( xClearOnExit != pdFALSE )
|
|
800b88e: 687b ldr r3, [r7, #4]
|
|
800b890: 2b00 cmp r3, #0
|
|
800b892: d003 beq.n 800b89c <xEventGroupWaitBits+0x100>
|
|
{
|
|
uxControlBits |= eventCLEAR_EVENTS_ON_EXIT_BIT;
|
|
800b894: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800b896: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
|
|
800b89a: 63bb str r3, [r7, #56] @ 0x38
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
if( xWaitForAllBits != pdFALSE )
|
|
800b89c: 683b ldr r3, [r7, #0]
|
|
800b89e: 2b00 cmp r3, #0
|
|
800b8a0: d003 beq.n 800b8aa <xEventGroupWaitBits+0x10e>
|
|
{
|
|
uxControlBits |= eventWAIT_FOR_ALL_BITS;
|
|
800b8a2: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800b8a4: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
|
|
800b8a8: 63bb str r3, [r7, #56] @ 0x38
|
|
}
|
|
|
|
/* Store the bits that the calling task is waiting for in the
|
|
task's event list item so the kernel knows when a match is
|
|
found. Then enter the blocked state. */
|
|
vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | uxControlBits ), xTicksToWait );
|
|
800b8aa: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b8ac: 1d18 adds r0, r3, #4
|
|
800b8ae: 68ba ldr r2, [r7, #8]
|
|
800b8b0: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800b8b2: 4313 orrs r3, r2
|
|
800b8b4: 6cba ldr r2, [r7, #72] @ 0x48
|
|
800b8b6: 4619 mov r1, r3
|
|
800b8b8: f001 ff8c bl 800d7d4 <vTaskPlaceOnUnorderedEventList>
|
|
|
|
/* This is obsolete as it will get set after the task unblocks, but
|
|
some compilers mistakenly generate a warning about the variable
|
|
being returned without being set if it is not done. */
|
|
uxReturn = 0;
|
|
800b8bc: 2300 movs r3, #0
|
|
800b8be: 63fb str r3, [r7, #60] @ 0x3c
|
|
|
|
traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor );
|
|
}
|
|
}
|
|
xAlreadyYielded = xTaskResumeAll();
|
|
800b8c0: f001 fd74 bl 800d3ac <xTaskResumeAll>
|
|
800b8c4: 6278 str r0, [r7, #36] @ 0x24
|
|
|
|
if( xTicksToWait != ( TickType_t ) 0 )
|
|
800b8c6: 6cbb ldr r3, [r7, #72] @ 0x48
|
|
800b8c8: 2b00 cmp r3, #0
|
|
800b8ca: d031 beq.n 800b930 <xEventGroupWaitBits+0x194>
|
|
{
|
|
if( xAlreadyYielded == pdFALSE )
|
|
800b8cc: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800b8ce: 2b00 cmp r3, #0
|
|
800b8d0: d107 bne.n 800b8e2 <xEventGroupWaitBits+0x146>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800b8d2: 4b1a ldr r3, [pc, #104] @ (800b93c <xEventGroupWaitBits+0x1a0>)
|
|
800b8d4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800b8d8: 601a str r2, [r3, #0]
|
|
800b8da: f3bf 8f4f dsb sy
|
|
800b8de: f3bf 8f6f isb sy
|
|
|
|
/* The task blocked to wait for its required bits to be set - at this
|
|
point either the required bits were set or the block time expired. If
|
|
the required bits were set they will have been stored in the task's
|
|
event list item, and they should now be retrieved then cleared. */
|
|
uxReturn = uxTaskResetEventItemValue();
|
|
800b8e2: f002 fb95 bl 800e010 <uxTaskResetEventItemValue>
|
|
800b8e6: 63f8 str r0, [r7, #60] @ 0x3c
|
|
|
|
if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 )
|
|
800b8e8: 6bfb ldr r3, [r7, #60] @ 0x3c
|
|
800b8ea: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
|
|
800b8ee: 2b00 cmp r3, #0
|
|
800b8f0: d11a bne.n 800b928 <xEventGroupWaitBits+0x18c>
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800b8f2: f003 fba9 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* The task timed out, just return the current event bit value. */
|
|
uxReturn = pxEventBits->uxEventBits;
|
|
800b8f6: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b8f8: 681b ldr r3, [r3, #0]
|
|
800b8fa: 63fb str r3, [r7, #60] @ 0x3c
|
|
|
|
/* It is possible that the event bits were updated between this
|
|
task leaving the Blocked state and running again. */
|
|
if( prvTestWaitCondition( uxReturn, uxBitsToWaitFor, xWaitForAllBits ) != pdFALSE )
|
|
800b8fc: 683a ldr r2, [r7, #0]
|
|
800b8fe: 68b9 ldr r1, [r7, #8]
|
|
800b900: 6bf8 ldr r0, [r7, #60] @ 0x3c
|
|
800b902: f000 f96b bl 800bbdc <prvTestWaitCondition>
|
|
800b906: 4603 mov r3, r0
|
|
800b908: 2b00 cmp r3, #0
|
|
800b90a: d009 beq.n 800b920 <xEventGroupWaitBits+0x184>
|
|
{
|
|
if( xClearOnExit != pdFALSE )
|
|
800b90c: 687b ldr r3, [r7, #4]
|
|
800b90e: 2b00 cmp r3, #0
|
|
800b910: d006 beq.n 800b920 <xEventGroupWaitBits+0x184>
|
|
{
|
|
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
800b912: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b914: 681a ldr r2, [r3, #0]
|
|
800b916: 68bb ldr r3, [r7, #8]
|
|
800b918: 43db mvns r3, r3
|
|
800b91a: 401a ands r2, r3
|
|
800b91c: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800b91e: 601a str r2, [r3, #0]
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
xTimeoutOccurred = pdTRUE;
|
|
800b920: 2301 movs r3, #1
|
|
800b922: 633b str r3, [r7, #48] @ 0x30
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800b924: f003 fbc2 bl 800f0ac <vPortExitCritical>
|
|
{
|
|
/* The task unblocked because the bits were set. */
|
|
}
|
|
|
|
/* The task blocked so control bits may have been set. */
|
|
uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES;
|
|
800b928: 6bfb ldr r3, [r7, #60] @ 0x3c
|
|
800b92a: f023 437f bic.w r3, r3, #4278190080 @ 0xff000000
|
|
800b92e: 63fb str r3, [r7, #60] @ 0x3c
|
|
traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred );
|
|
|
|
/* Prevent compiler warnings when trace macros are not used. */
|
|
( void ) xTimeoutOccurred;
|
|
|
|
return uxReturn;
|
|
800b930: 6bfb ldr r3, [r7, #60] @ 0x3c
|
|
}
|
|
800b932: 4618 mov r0, r3
|
|
800b934: 3740 adds r7, #64 @ 0x40
|
|
800b936: 46bd mov sp, r7
|
|
800b938: bd80 pop {r7, pc}
|
|
800b93a: bf00 nop
|
|
800b93c: e000ed04 .word 0xe000ed04
|
|
|
|
0800b940 <xEventGroupClearBits>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear )
|
|
{
|
|
800b940: b580 push {r7, lr}
|
|
800b942: b086 sub sp, #24
|
|
800b944: af00 add r7, sp, #0
|
|
800b946: 6078 str r0, [r7, #4]
|
|
800b948: 6039 str r1, [r7, #0]
|
|
EventGroup_t *pxEventBits = xEventGroup;
|
|
800b94a: 687b ldr r3, [r7, #4]
|
|
800b94c: 617b str r3, [r7, #20]
|
|
EventBits_t uxReturn;
|
|
|
|
/* Check the user is not attempting to clear the bits used by the kernel
|
|
itself. */
|
|
configASSERT( xEventGroup );
|
|
800b94e: 687b ldr r3, [r7, #4]
|
|
800b950: 2b00 cmp r3, #0
|
|
800b952: d10b bne.n 800b96c <xEventGroupClearBits+0x2c>
|
|
__asm volatile
|
|
800b954: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b958: f383 8811 msr BASEPRI, r3
|
|
800b95c: f3bf 8f6f isb sy
|
|
800b960: f3bf 8f4f dsb sy
|
|
800b964: 60fb str r3, [r7, #12]
|
|
}
|
|
800b966: bf00 nop
|
|
800b968: bf00 nop
|
|
800b96a: e7fd b.n 800b968 <xEventGroupClearBits+0x28>
|
|
configASSERT( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
800b96c: 683b ldr r3, [r7, #0]
|
|
800b96e: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800b972: d30b bcc.n 800b98c <xEventGroupClearBits+0x4c>
|
|
__asm volatile
|
|
800b974: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b978: f383 8811 msr BASEPRI, r3
|
|
800b97c: f3bf 8f6f isb sy
|
|
800b980: f3bf 8f4f dsb sy
|
|
800b984: 60bb str r3, [r7, #8]
|
|
}
|
|
800b986: bf00 nop
|
|
800b988: bf00 nop
|
|
800b98a: e7fd b.n 800b988 <xEventGroupClearBits+0x48>
|
|
|
|
taskENTER_CRITICAL();
|
|
800b98c: f003 fb5c bl 800f048 <vPortEnterCritical>
|
|
{
|
|
traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear );
|
|
|
|
/* The value returned is the event group value prior to the bits being
|
|
cleared. */
|
|
uxReturn = pxEventBits->uxEventBits;
|
|
800b990: 697b ldr r3, [r7, #20]
|
|
800b992: 681b ldr r3, [r3, #0]
|
|
800b994: 613b str r3, [r7, #16]
|
|
|
|
/* Clear the bits. */
|
|
pxEventBits->uxEventBits &= ~uxBitsToClear;
|
|
800b996: 697b ldr r3, [r7, #20]
|
|
800b998: 681a ldr r2, [r3, #0]
|
|
800b99a: 683b ldr r3, [r7, #0]
|
|
800b99c: 43db mvns r3, r3
|
|
800b99e: 401a ands r2, r3
|
|
800b9a0: 697b ldr r3, [r7, #20]
|
|
800b9a2: 601a str r2, [r3, #0]
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800b9a4: f003 fb82 bl 800f0ac <vPortExitCritical>
|
|
|
|
return uxReturn;
|
|
800b9a8: 693b ldr r3, [r7, #16]
|
|
}
|
|
800b9aa: 4618 mov r0, r3
|
|
800b9ac: 3718 adds r7, #24
|
|
800b9ae: 46bd mov sp, r7
|
|
800b9b0: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800b9b4 <xEventGroupClearBitsFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) )
|
|
|
|
BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear )
|
|
{
|
|
800b9b4: b580 push {r7, lr}
|
|
800b9b6: b084 sub sp, #16
|
|
800b9b8: af00 add r7, sp, #0
|
|
800b9ba: 6078 str r0, [r7, #4]
|
|
800b9bc: 6039 str r1, [r7, #0]
|
|
BaseType_t xReturn;
|
|
|
|
traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear );
|
|
xReturn = xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */
|
|
800b9be: 2300 movs r3, #0
|
|
800b9c0: 683a ldr r2, [r7, #0]
|
|
800b9c2: 6879 ldr r1, [r7, #4]
|
|
800b9c4: 4804 ldr r0, [pc, #16] @ (800b9d8 <xEventGroupClearBitsFromISR+0x24>)
|
|
800b9c6: f003 f9ef bl 800eda8 <xTimerPendFunctionCallFromISR>
|
|
800b9ca: 60f8 str r0, [r7, #12]
|
|
|
|
return xReturn;
|
|
800b9cc: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800b9ce: 4618 mov r0, r3
|
|
800b9d0: 3710 adds r7, #16
|
|
800b9d2: 46bd mov sp, r7
|
|
800b9d4: bd80 pop {r7, pc}
|
|
800b9d6: bf00 nop
|
|
800b9d8: 0800bbc3 .word 0x0800bbc3
|
|
|
|
0800b9dc <xEventGroupGetBitsFromISR>:
|
|
|
|
#endif
|
|
/*-----------------------------------------------------------*/
|
|
|
|
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup )
|
|
{
|
|
800b9dc: b480 push {r7}
|
|
800b9de: b089 sub sp, #36 @ 0x24
|
|
800b9e0: af00 add r7, sp, #0
|
|
800b9e2: 6078 str r0, [r7, #4]
|
|
UBaseType_t uxSavedInterruptStatus;
|
|
EventGroup_t const * const pxEventBits = xEventGroup;
|
|
800b9e4: 687b ldr r3, [r7, #4]
|
|
800b9e6: 61fb str r3, [r7, #28]
|
|
__asm volatile
|
|
800b9e8: f3ef 8211 mrs r2, BASEPRI
|
|
800b9ec: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800b9f0: f383 8811 msr BASEPRI, r3
|
|
800b9f4: f3bf 8f6f isb sy
|
|
800b9f8: f3bf 8f4f dsb sy
|
|
800b9fc: 60fa str r2, [r7, #12]
|
|
800b9fe: 60bb str r3, [r7, #8]
|
|
return ulOriginalBASEPRI;
|
|
800ba00: 68fb ldr r3, [r7, #12]
|
|
EventBits_t uxReturn;
|
|
|
|
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
800ba02: 61bb str r3, [r7, #24]
|
|
{
|
|
uxReturn = pxEventBits->uxEventBits;
|
|
800ba04: 69fb ldr r3, [r7, #28]
|
|
800ba06: 681b ldr r3, [r3, #0]
|
|
800ba08: 617b str r3, [r7, #20]
|
|
800ba0a: 69bb ldr r3, [r7, #24]
|
|
800ba0c: 613b str r3, [r7, #16]
|
|
__asm volatile
|
|
800ba0e: 693b ldr r3, [r7, #16]
|
|
800ba10: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800ba14: bf00 nop
|
|
}
|
|
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
|
|
return uxReturn;
|
|
800ba16: 697b ldr r3, [r7, #20]
|
|
} /*lint !e818 EventGroupHandle_t is a typedef used in other functions to so can't be pointer to const. */
|
|
800ba18: 4618 mov r0, r3
|
|
800ba1a: 3724 adds r7, #36 @ 0x24
|
|
800ba1c: 46bd mov sp, r7
|
|
800ba1e: f85d 7b04 ldr.w r7, [sp], #4
|
|
800ba22: 4770 bx lr
|
|
|
|
0800ba24 <xEventGroupSetBits>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet )
|
|
{
|
|
800ba24: b580 push {r7, lr}
|
|
800ba26: b08e sub sp, #56 @ 0x38
|
|
800ba28: af00 add r7, sp, #0
|
|
800ba2a: 6078 str r0, [r7, #4]
|
|
800ba2c: 6039 str r1, [r7, #0]
|
|
ListItem_t *pxListItem, *pxNext;
|
|
ListItem_t const *pxListEnd;
|
|
List_t const * pxList;
|
|
EventBits_t uxBitsToClear = 0, uxBitsWaitedFor, uxControlBits;
|
|
800ba2e: 2300 movs r3, #0
|
|
800ba30: 633b str r3, [r7, #48] @ 0x30
|
|
EventGroup_t *pxEventBits = xEventGroup;
|
|
800ba32: 687b ldr r3, [r7, #4]
|
|
800ba34: 62bb str r3, [r7, #40] @ 0x28
|
|
BaseType_t xMatchFound = pdFALSE;
|
|
800ba36: 2300 movs r3, #0
|
|
800ba38: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
/* Check the user is not attempting to set the bits used by the kernel
|
|
itself. */
|
|
configASSERT( xEventGroup );
|
|
800ba3a: 687b ldr r3, [r7, #4]
|
|
800ba3c: 2b00 cmp r3, #0
|
|
800ba3e: d10b bne.n 800ba58 <xEventGroupSetBits+0x34>
|
|
__asm volatile
|
|
800ba40: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ba44: f383 8811 msr BASEPRI, r3
|
|
800ba48: f3bf 8f6f isb sy
|
|
800ba4c: f3bf 8f4f dsb sy
|
|
800ba50: 613b str r3, [r7, #16]
|
|
}
|
|
800ba52: bf00 nop
|
|
800ba54: bf00 nop
|
|
800ba56: e7fd b.n 800ba54 <xEventGroupSetBits+0x30>
|
|
configASSERT( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
800ba58: 683b ldr r3, [r7, #0]
|
|
800ba5a: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
800ba5e: d30b bcc.n 800ba78 <xEventGroupSetBits+0x54>
|
|
__asm volatile
|
|
800ba60: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ba64: f383 8811 msr BASEPRI, r3
|
|
800ba68: f3bf 8f6f isb sy
|
|
800ba6c: f3bf 8f4f dsb sy
|
|
800ba70: 60fb str r3, [r7, #12]
|
|
}
|
|
800ba72: bf00 nop
|
|
800ba74: bf00 nop
|
|
800ba76: e7fd b.n 800ba74 <xEventGroupSetBits+0x50>
|
|
|
|
pxList = &( pxEventBits->xTasksWaitingForBits );
|
|
800ba78: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ba7a: 3304 adds r3, #4
|
|
800ba7c: 627b str r3, [r7, #36] @ 0x24
|
|
pxListEnd = listGET_END_MARKER( pxList ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
800ba7e: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800ba80: 3308 adds r3, #8
|
|
800ba82: 623b str r3, [r7, #32]
|
|
vTaskSuspendAll();
|
|
800ba84: f001 fc84 bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet );
|
|
|
|
pxListItem = listGET_HEAD_ENTRY( pxList );
|
|
800ba88: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800ba8a: 68db ldr r3, [r3, #12]
|
|
800ba8c: 637b str r3, [r7, #52] @ 0x34
|
|
|
|
/* Set the bits. */
|
|
pxEventBits->uxEventBits |= uxBitsToSet;
|
|
800ba8e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ba90: 681a ldr r2, [r3, #0]
|
|
800ba92: 683b ldr r3, [r7, #0]
|
|
800ba94: 431a orrs r2, r3
|
|
800ba96: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ba98: 601a str r2, [r3, #0]
|
|
|
|
/* See if the new bit value should unblock any tasks. */
|
|
while( pxListItem != pxListEnd )
|
|
800ba9a: e03c b.n 800bb16 <xEventGroupSetBits+0xf2>
|
|
{
|
|
pxNext = listGET_NEXT( pxListItem );
|
|
800ba9c: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800ba9e: 685b ldr r3, [r3, #4]
|
|
800baa0: 61fb str r3, [r7, #28]
|
|
uxBitsWaitedFor = listGET_LIST_ITEM_VALUE( pxListItem );
|
|
800baa2: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800baa4: 681b ldr r3, [r3, #0]
|
|
800baa6: 61bb str r3, [r7, #24]
|
|
xMatchFound = pdFALSE;
|
|
800baa8: 2300 movs r3, #0
|
|
800baaa: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
/* Split the bits waited for from the control bits. */
|
|
uxControlBits = uxBitsWaitedFor & eventEVENT_BITS_CONTROL_BYTES;
|
|
800baac: 69bb ldr r3, [r7, #24]
|
|
800baae: f003 437f and.w r3, r3, #4278190080 @ 0xff000000
|
|
800bab2: 617b str r3, [r7, #20]
|
|
uxBitsWaitedFor &= ~eventEVENT_BITS_CONTROL_BYTES;
|
|
800bab4: 69bb ldr r3, [r7, #24]
|
|
800bab6: f023 437f bic.w r3, r3, #4278190080 @ 0xff000000
|
|
800baba: 61bb str r3, [r7, #24]
|
|
|
|
if( ( uxControlBits & eventWAIT_FOR_ALL_BITS ) == ( EventBits_t ) 0 )
|
|
800babc: 697b ldr r3, [r7, #20]
|
|
800babe: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
|
|
800bac2: 2b00 cmp r3, #0
|
|
800bac4: d108 bne.n 800bad8 <xEventGroupSetBits+0xb4>
|
|
{
|
|
/* Just looking for single bit being set. */
|
|
if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) != ( EventBits_t ) 0 )
|
|
800bac6: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bac8: 681a ldr r2, [r3, #0]
|
|
800baca: 69bb ldr r3, [r7, #24]
|
|
800bacc: 4013 ands r3, r2
|
|
800bace: 2b00 cmp r3, #0
|
|
800bad0: d00b beq.n 800baea <xEventGroupSetBits+0xc6>
|
|
{
|
|
xMatchFound = pdTRUE;
|
|
800bad2: 2301 movs r3, #1
|
|
800bad4: 62fb str r3, [r7, #44] @ 0x2c
|
|
800bad6: e008 b.n 800baea <xEventGroupSetBits+0xc6>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
else if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) == uxBitsWaitedFor )
|
|
800bad8: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bada: 681a ldr r2, [r3, #0]
|
|
800badc: 69bb ldr r3, [r7, #24]
|
|
800bade: 4013 ands r3, r2
|
|
800bae0: 69ba ldr r2, [r7, #24]
|
|
800bae2: 429a cmp r2, r3
|
|
800bae4: d101 bne.n 800baea <xEventGroupSetBits+0xc6>
|
|
{
|
|
/* All bits are set. */
|
|
xMatchFound = pdTRUE;
|
|
800bae6: 2301 movs r3, #1
|
|
800bae8: 62fb str r3, [r7, #44] @ 0x2c
|
|
else
|
|
{
|
|
/* Need all bits to be set, but not all the bits were set. */
|
|
}
|
|
|
|
if( xMatchFound != pdFALSE )
|
|
800baea: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800baec: 2b00 cmp r3, #0
|
|
800baee: d010 beq.n 800bb12 <xEventGroupSetBits+0xee>
|
|
{
|
|
/* The bits match. Should the bits be cleared on exit? */
|
|
if( ( uxControlBits & eventCLEAR_EVENTS_ON_EXIT_BIT ) != ( EventBits_t ) 0 )
|
|
800baf0: 697b ldr r3, [r7, #20]
|
|
800baf2: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
|
|
800baf6: 2b00 cmp r3, #0
|
|
800baf8: d003 beq.n 800bb02 <xEventGroupSetBits+0xde>
|
|
{
|
|
uxBitsToClear |= uxBitsWaitedFor;
|
|
800bafa: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800bafc: 69bb ldr r3, [r7, #24]
|
|
800bafe: 4313 orrs r3, r2
|
|
800bb00: 633b str r3, [r7, #48] @ 0x30
|
|
/* Store the actual event flag value in the task's event list
|
|
item before removing the task from the event list. The
|
|
eventUNBLOCKED_DUE_TO_BIT_SET bit is set so the task knows
|
|
that is was unblocked due to its required bits matching, rather
|
|
than because it timed out. */
|
|
vTaskRemoveFromUnorderedEventList( pxListItem, pxEventBits->uxEventBits | eventUNBLOCKED_DUE_TO_BIT_SET );
|
|
800bb02: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bb04: 681b ldr r3, [r3, #0]
|
|
800bb06: f043 7300 orr.w r3, r3, #33554432 @ 0x2000000
|
|
800bb0a: 4619 mov r1, r3
|
|
800bb0c: 6b78 ldr r0, [r7, #52] @ 0x34
|
|
800bb0e: f001 ff2f bl 800d970 <vTaskRemoveFromUnorderedEventList>
|
|
}
|
|
|
|
/* Move onto the next list item. Note pxListItem->pxNext is not
|
|
used here as the list item may have been removed from the event list
|
|
and inserted into the ready/pending reading list. */
|
|
pxListItem = pxNext;
|
|
800bb12: 69fb ldr r3, [r7, #28]
|
|
800bb14: 637b str r3, [r7, #52] @ 0x34
|
|
while( pxListItem != pxListEnd )
|
|
800bb16: 6b7a ldr r2, [r7, #52] @ 0x34
|
|
800bb18: 6a3b ldr r3, [r7, #32]
|
|
800bb1a: 429a cmp r2, r3
|
|
800bb1c: d1be bne.n 800ba9c <xEventGroupSetBits+0x78>
|
|
}
|
|
|
|
/* Clear any bits that matched when the eventCLEAR_EVENTS_ON_EXIT_BIT
|
|
bit was set in the control word. */
|
|
pxEventBits->uxEventBits &= ~uxBitsToClear;
|
|
800bb1e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bb20: 681a ldr r2, [r3, #0]
|
|
800bb22: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800bb24: 43db mvns r3, r3
|
|
800bb26: 401a ands r2, r3
|
|
800bb28: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bb2a: 601a str r2, [r3, #0]
|
|
}
|
|
( void ) xTaskResumeAll();
|
|
800bb2c: f001 fc3e bl 800d3ac <xTaskResumeAll>
|
|
|
|
return pxEventBits->uxEventBits;
|
|
800bb30: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800bb32: 681b ldr r3, [r3, #0]
|
|
}
|
|
800bb34: 4618 mov r0, r3
|
|
800bb36: 3738 adds r7, #56 @ 0x38
|
|
800bb38: 46bd mov sp, r7
|
|
800bb3a: bd80 pop {r7, pc}
|
|
|
|
0800bb3c <vEventGroupDelete>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
|
{
|
|
800bb3c: b580 push {r7, lr}
|
|
800bb3e: b086 sub sp, #24
|
|
800bb40: af00 add r7, sp, #0
|
|
800bb42: 6078 str r0, [r7, #4]
|
|
EventGroup_t *pxEventBits = xEventGroup;
|
|
800bb44: 687b ldr r3, [r7, #4]
|
|
800bb46: 617b str r3, [r7, #20]
|
|
const List_t *pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
|
800bb48: 697b ldr r3, [r7, #20]
|
|
800bb4a: 3304 adds r3, #4
|
|
800bb4c: 613b str r3, [r7, #16]
|
|
|
|
vTaskSuspendAll();
|
|
800bb4e: f001 fc1f bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
traceEVENT_GROUP_DELETE( xEventGroup );
|
|
|
|
while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 )
|
|
800bb52: e018 b.n 800bb86 <vEventGroupDelete+0x4a>
|
|
{
|
|
/* Unblock the task, returning 0 as the event list is being deleted
|
|
and cannot therefore have any bits set. */
|
|
configASSERT( pxTasksWaitingForBits->xListEnd.pxNext != ( const ListItem_t * ) &( pxTasksWaitingForBits->xListEnd ) );
|
|
800bb54: 693b ldr r3, [r7, #16]
|
|
800bb56: 68da ldr r2, [r3, #12]
|
|
800bb58: 693b ldr r3, [r7, #16]
|
|
800bb5a: 3308 adds r3, #8
|
|
800bb5c: 429a cmp r2, r3
|
|
800bb5e: d10b bne.n 800bb78 <vEventGroupDelete+0x3c>
|
|
__asm volatile
|
|
800bb60: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bb64: f383 8811 msr BASEPRI, r3
|
|
800bb68: f3bf 8f6f isb sy
|
|
800bb6c: f3bf 8f4f dsb sy
|
|
800bb70: 60fb str r3, [r7, #12]
|
|
}
|
|
800bb72: bf00 nop
|
|
800bb74: bf00 nop
|
|
800bb76: e7fd b.n 800bb74 <vEventGroupDelete+0x38>
|
|
vTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET );
|
|
800bb78: 693b ldr r3, [r7, #16]
|
|
800bb7a: 68db ldr r3, [r3, #12]
|
|
800bb7c: f04f 7100 mov.w r1, #33554432 @ 0x2000000
|
|
800bb80: 4618 mov r0, r3
|
|
800bb82: f001 fef5 bl 800d970 <vTaskRemoveFromUnorderedEventList>
|
|
while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 )
|
|
800bb86: 693b ldr r3, [r7, #16]
|
|
800bb88: 681b ldr r3, [r3, #0]
|
|
800bb8a: 2b00 cmp r3, #0
|
|
800bb8c: d1e2 bne.n 800bb54 <vEventGroupDelete+0x18>
|
|
}
|
|
#elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
|
|
{
|
|
/* The event group could have been allocated statically or
|
|
dynamically, so check before attempting to free the memory. */
|
|
if( pxEventBits->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
|
|
800bb8e: 697b ldr r3, [r7, #20]
|
|
800bb90: 7f1b ldrb r3, [r3, #28]
|
|
800bb92: 2b00 cmp r3, #0
|
|
800bb94: d102 bne.n 800bb9c <vEventGroupDelete+0x60>
|
|
{
|
|
vPortFree( pxEventBits );
|
|
800bb96: 6978 ldr r0, [r7, #20]
|
|
800bb98: f003 fc46 bl 800f428 <vPortFree>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
}
|
|
( void ) xTaskResumeAll();
|
|
800bb9c: f001 fc06 bl 800d3ac <xTaskResumeAll>
|
|
}
|
|
800bba0: bf00 nop
|
|
800bba2: 3718 adds r7, #24
|
|
800bba4: 46bd mov sp, r7
|
|
800bba6: bd80 pop {r7, pc}
|
|
|
|
0800bba8 <vEventGroupSetBitsCallback>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
/* For internal use only - execute a 'set bits' command that was pended from
|
|
an interrupt. */
|
|
void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet )
|
|
{
|
|
800bba8: b580 push {r7, lr}
|
|
800bbaa: b082 sub sp, #8
|
|
800bbac: af00 add r7, sp, #0
|
|
800bbae: 6078 str r0, [r7, #4]
|
|
800bbb0: 6039 str r1, [r7, #0]
|
|
( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
|
800bbb2: 6839 ldr r1, [r7, #0]
|
|
800bbb4: 6878 ldr r0, [r7, #4]
|
|
800bbb6: f7ff ff35 bl 800ba24 <xEventGroupSetBits>
|
|
}
|
|
800bbba: bf00 nop
|
|
800bbbc: 3708 adds r7, #8
|
|
800bbbe: 46bd mov sp, r7
|
|
800bbc0: bd80 pop {r7, pc}
|
|
|
|
0800bbc2 <vEventGroupClearBitsCallback>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
/* For internal use only - execute a 'clear bits' command that was pended from
|
|
an interrupt. */
|
|
void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear )
|
|
{
|
|
800bbc2: b580 push {r7, lr}
|
|
800bbc4: b082 sub sp, #8
|
|
800bbc6: af00 add r7, sp, #0
|
|
800bbc8: 6078 str r0, [r7, #4]
|
|
800bbca: 6039 str r1, [r7, #0]
|
|
( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear ); /*lint !e9079 Can't avoid cast to void* as a generic timer callback prototype. Callback casts back to original type so safe. */
|
|
800bbcc: 6839 ldr r1, [r7, #0]
|
|
800bbce: 6878 ldr r0, [r7, #4]
|
|
800bbd0: f7ff feb6 bl 800b940 <xEventGroupClearBits>
|
|
}
|
|
800bbd4: bf00 nop
|
|
800bbd6: 3708 adds r7, #8
|
|
800bbd8: 46bd mov sp, r7
|
|
800bbda: bd80 pop {r7, pc}
|
|
|
|
0800bbdc <prvTestWaitCondition>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits )
|
|
{
|
|
800bbdc: b480 push {r7}
|
|
800bbde: b087 sub sp, #28
|
|
800bbe0: af00 add r7, sp, #0
|
|
800bbe2: 60f8 str r0, [r7, #12]
|
|
800bbe4: 60b9 str r1, [r7, #8]
|
|
800bbe6: 607a str r2, [r7, #4]
|
|
BaseType_t xWaitConditionMet = pdFALSE;
|
|
800bbe8: 2300 movs r3, #0
|
|
800bbea: 617b str r3, [r7, #20]
|
|
|
|
if( xWaitForAllBits == pdFALSE )
|
|
800bbec: 687b ldr r3, [r7, #4]
|
|
800bbee: 2b00 cmp r3, #0
|
|
800bbf0: d107 bne.n 800bc02 <prvTestWaitCondition+0x26>
|
|
{
|
|
/* Task only has to wait for one bit within uxBitsToWaitFor to be
|
|
set. Is one already set? */
|
|
if( ( uxCurrentEventBits & uxBitsToWaitFor ) != ( EventBits_t ) 0 )
|
|
800bbf2: 68fa ldr r2, [r7, #12]
|
|
800bbf4: 68bb ldr r3, [r7, #8]
|
|
800bbf6: 4013 ands r3, r2
|
|
800bbf8: 2b00 cmp r3, #0
|
|
800bbfa: d00a beq.n 800bc12 <prvTestWaitCondition+0x36>
|
|
{
|
|
xWaitConditionMet = pdTRUE;
|
|
800bbfc: 2301 movs r3, #1
|
|
800bbfe: 617b str r3, [r7, #20]
|
|
800bc00: e007 b.n 800bc12 <prvTestWaitCondition+0x36>
|
|
}
|
|
else
|
|
{
|
|
/* Task has to wait for all the bits in uxBitsToWaitFor to be set.
|
|
Are they set already? */
|
|
if( ( uxCurrentEventBits & uxBitsToWaitFor ) == uxBitsToWaitFor )
|
|
800bc02: 68fa ldr r2, [r7, #12]
|
|
800bc04: 68bb ldr r3, [r7, #8]
|
|
800bc06: 4013 ands r3, r2
|
|
800bc08: 68ba ldr r2, [r7, #8]
|
|
800bc0a: 429a cmp r2, r3
|
|
800bc0c: d101 bne.n 800bc12 <prvTestWaitCondition+0x36>
|
|
{
|
|
xWaitConditionMet = pdTRUE;
|
|
800bc0e: 2301 movs r3, #1
|
|
800bc10: 617b str r3, [r7, #20]
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
return xWaitConditionMet;
|
|
800bc12: 697b ldr r3, [r7, #20]
|
|
}
|
|
800bc14: 4618 mov r0, r3
|
|
800bc16: 371c adds r7, #28
|
|
800bc18: 46bd mov sp, r7
|
|
800bc1a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bc1e: 4770 bx lr
|
|
|
|
0800bc20 <xEventGroupSetBitsFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) )
|
|
|
|
BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken )
|
|
{
|
|
800bc20: b580 push {r7, lr}
|
|
800bc22: b086 sub sp, #24
|
|
800bc24: af00 add r7, sp, #0
|
|
800bc26: 60f8 str r0, [r7, #12]
|
|
800bc28: 60b9 str r1, [r7, #8]
|
|
800bc2a: 607a str r2, [r7, #4]
|
|
BaseType_t xReturn;
|
|
|
|
traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet );
|
|
xReturn = xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken ); /*lint !e9087 Can't avoid cast to void* as a generic callback function not specific to this use case. Callback casts back to original type so safe. */
|
|
800bc2c: 687b ldr r3, [r7, #4]
|
|
800bc2e: 68ba ldr r2, [r7, #8]
|
|
800bc30: 68f9 ldr r1, [r7, #12]
|
|
800bc32: 4804 ldr r0, [pc, #16] @ (800bc44 <xEventGroupSetBitsFromISR+0x24>)
|
|
800bc34: f003 f8b8 bl 800eda8 <xTimerPendFunctionCallFromISR>
|
|
800bc38: 6178 str r0, [r7, #20]
|
|
|
|
return xReturn;
|
|
800bc3a: 697b ldr r3, [r7, #20]
|
|
}
|
|
800bc3c: 4618 mov r0, r3
|
|
800bc3e: 3718 adds r7, #24
|
|
800bc40: 46bd mov sp, r7
|
|
800bc42: bd80 pop {r7, pc}
|
|
800bc44: 0800bba9 .word 0x0800bba9
|
|
|
|
0800bc48 <vListInitialise>:
|
|
/*-----------------------------------------------------------
|
|
* PUBLIC LIST API documented in list.h
|
|
*----------------------------------------------------------*/
|
|
|
|
void vListInitialise( List_t * const pxList )
|
|
{
|
|
800bc48: b480 push {r7}
|
|
800bc4a: b083 sub sp, #12
|
|
800bc4c: af00 add r7, sp, #0
|
|
800bc4e: 6078 str r0, [r7, #4]
|
|
/* The list structure contains a list item which is used to mark the
|
|
end of the list. To initialise the list the list end is inserted
|
|
as the only list entry. */
|
|
pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
800bc50: 687b ldr r3, [r7, #4]
|
|
800bc52: f103 0208 add.w r2, r3, #8
|
|
800bc56: 687b ldr r3, [r7, #4]
|
|
800bc58: 605a str r2, [r3, #4]
|
|
|
|
/* The list end value is the highest possible value in the list to
|
|
ensure it remains at the end of the list. */
|
|
pxList->xListEnd.xItemValue = portMAX_DELAY;
|
|
800bc5a: 687b ldr r3, [r7, #4]
|
|
800bc5c: f04f 32ff mov.w r2, #4294967295
|
|
800bc60: 609a str r2, [r3, #8]
|
|
|
|
/* The list end next and previous pointers point to itself so we know
|
|
when the list is empty. */
|
|
pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
800bc62: 687b ldr r3, [r7, #4]
|
|
800bc64: f103 0208 add.w r2, r3, #8
|
|
800bc68: 687b ldr r3, [r7, #4]
|
|
800bc6a: 60da str r2, [r3, #12]
|
|
pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
800bc6c: 687b ldr r3, [r7, #4]
|
|
800bc6e: f103 0208 add.w r2, r3, #8
|
|
800bc72: 687b ldr r3, [r7, #4]
|
|
800bc74: 611a str r2, [r3, #16]
|
|
|
|
pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
|
|
800bc76: 687b ldr r3, [r7, #4]
|
|
800bc78: 2200 movs r2, #0
|
|
800bc7a: 601a str r2, [r3, #0]
|
|
|
|
/* Write known values into the list if
|
|
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
|
|
listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
|
|
}
|
|
800bc7c: bf00 nop
|
|
800bc7e: 370c adds r7, #12
|
|
800bc80: 46bd mov sp, r7
|
|
800bc82: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bc86: 4770 bx lr
|
|
|
|
0800bc88 <vListInitialiseItem>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vListInitialiseItem( ListItem_t * const pxItem )
|
|
{
|
|
800bc88: b480 push {r7}
|
|
800bc8a: b083 sub sp, #12
|
|
800bc8c: af00 add r7, sp, #0
|
|
800bc8e: 6078 str r0, [r7, #4]
|
|
/* Make sure the list item is not recorded as being on a list. */
|
|
pxItem->pxContainer = NULL;
|
|
800bc90: 687b ldr r3, [r7, #4]
|
|
800bc92: 2200 movs r2, #0
|
|
800bc94: 611a str r2, [r3, #16]
|
|
|
|
/* Write known values into the list item if
|
|
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
|
|
listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
|
|
}
|
|
800bc96: bf00 nop
|
|
800bc98: 370c adds r7, #12
|
|
800bc9a: 46bd mov sp, r7
|
|
800bc9c: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bca0: 4770 bx lr
|
|
|
|
0800bca2 <vListInsertEnd>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
|
|
{
|
|
800bca2: b480 push {r7}
|
|
800bca4: b085 sub sp, #20
|
|
800bca6: af00 add r7, sp, #0
|
|
800bca8: 6078 str r0, [r7, #4]
|
|
800bcaa: 6039 str r1, [r7, #0]
|
|
ListItem_t * const pxIndex = pxList->pxIndex;
|
|
800bcac: 687b ldr r3, [r7, #4]
|
|
800bcae: 685b ldr r3, [r3, #4]
|
|
800bcb0: 60fb str r3, [r7, #12]
|
|
listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
|
|
|
|
/* Insert a new list item into pxList, but rather than sort the list,
|
|
makes the new list item the last item to be removed by a call to
|
|
listGET_OWNER_OF_NEXT_ENTRY(). */
|
|
pxNewListItem->pxNext = pxIndex;
|
|
800bcb2: 683b ldr r3, [r7, #0]
|
|
800bcb4: 68fa ldr r2, [r7, #12]
|
|
800bcb6: 605a str r2, [r3, #4]
|
|
pxNewListItem->pxPrevious = pxIndex->pxPrevious;
|
|
800bcb8: 68fb ldr r3, [r7, #12]
|
|
800bcba: 689a ldr r2, [r3, #8]
|
|
800bcbc: 683b ldr r3, [r7, #0]
|
|
800bcbe: 609a str r2, [r3, #8]
|
|
|
|
/* Only used during decision coverage testing. */
|
|
mtCOVERAGE_TEST_DELAY();
|
|
|
|
pxIndex->pxPrevious->pxNext = pxNewListItem;
|
|
800bcc0: 68fb ldr r3, [r7, #12]
|
|
800bcc2: 689b ldr r3, [r3, #8]
|
|
800bcc4: 683a ldr r2, [r7, #0]
|
|
800bcc6: 605a str r2, [r3, #4]
|
|
pxIndex->pxPrevious = pxNewListItem;
|
|
800bcc8: 68fb ldr r3, [r7, #12]
|
|
800bcca: 683a ldr r2, [r7, #0]
|
|
800bccc: 609a str r2, [r3, #8]
|
|
|
|
/* Remember which list the item is in. */
|
|
pxNewListItem->pxContainer = pxList;
|
|
800bcce: 683b ldr r3, [r7, #0]
|
|
800bcd0: 687a ldr r2, [r7, #4]
|
|
800bcd2: 611a str r2, [r3, #16]
|
|
|
|
( pxList->uxNumberOfItems )++;
|
|
800bcd4: 687b ldr r3, [r7, #4]
|
|
800bcd6: 681b ldr r3, [r3, #0]
|
|
800bcd8: 1c5a adds r2, r3, #1
|
|
800bcda: 687b ldr r3, [r7, #4]
|
|
800bcdc: 601a str r2, [r3, #0]
|
|
}
|
|
800bcde: bf00 nop
|
|
800bce0: 3714 adds r7, #20
|
|
800bce2: 46bd mov sp, r7
|
|
800bce4: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bce8: 4770 bx lr
|
|
|
|
0800bcea <vListInsert>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
|
|
{
|
|
800bcea: b480 push {r7}
|
|
800bcec: b085 sub sp, #20
|
|
800bcee: af00 add r7, sp, #0
|
|
800bcf0: 6078 str r0, [r7, #4]
|
|
800bcf2: 6039 str r1, [r7, #0]
|
|
ListItem_t *pxIterator;
|
|
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
|
|
800bcf4: 683b ldr r3, [r7, #0]
|
|
800bcf6: 681b ldr r3, [r3, #0]
|
|
800bcf8: 60bb str r3, [r7, #8]
|
|
new list item should be placed after it. This ensures that TCBs which are
|
|
stored in ready lists (all of which have the same xItemValue value) get a
|
|
share of the CPU. However, if the xItemValue is the same as the back marker
|
|
the iteration loop below will not end. Therefore the value is checked
|
|
first, and the algorithm slightly modified if necessary. */
|
|
if( xValueOfInsertion == portMAX_DELAY )
|
|
800bcfa: 68bb ldr r3, [r7, #8]
|
|
800bcfc: f1b3 3fff cmp.w r3, #4294967295
|
|
800bd00: d103 bne.n 800bd0a <vListInsert+0x20>
|
|
{
|
|
pxIterator = pxList->xListEnd.pxPrevious;
|
|
800bd02: 687b ldr r3, [r7, #4]
|
|
800bd04: 691b ldr r3, [r3, #16]
|
|
800bd06: 60fb str r3, [r7, #12]
|
|
800bd08: e00c b.n 800bd24 <vListInsert+0x3a>
|
|
4) Using a queue or semaphore before it has been initialised or
|
|
before the scheduler has been started (are interrupts firing
|
|
before vTaskStartScheduler() has been called?).
|
|
**********************************************************************/
|
|
|
|
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
|
|
800bd0a: 687b ldr r3, [r7, #4]
|
|
800bd0c: 3308 adds r3, #8
|
|
800bd0e: 60fb str r3, [r7, #12]
|
|
800bd10: e002 b.n 800bd18 <vListInsert+0x2e>
|
|
800bd12: 68fb ldr r3, [r7, #12]
|
|
800bd14: 685b ldr r3, [r3, #4]
|
|
800bd16: 60fb str r3, [r7, #12]
|
|
800bd18: 68fb ldr r3, [r7, #12]
|
|
800bd1a: 685b ldr r3, [r3, #4]
|
|
800bd1c: 681b ldr r3, [r3, #0]
|
|
800bd1e: 68ba ldr r2, [r7, #8]
|
|
800bd20: 429a cmp r2, r3
|
|
800bd22: d2f6 bcs.n 800bd12 <vListInsert+0x28>
|
|
/* There is nothing to do here, just iterating to the wanted
|
|
insertion position. */
|
|
}
|
|
}
|
|
|
|
pxNewListItem->pxNext = pxIterator->pxNext;
|
|
800bd24: 68fb ldr r3, [r7, #12]
|
|
800bd26: 685a ldr r2, [r3, #4]
|
|
800bd28: 683b ldr r3, [r7, #0]
|
|
800bd2a: 605a str r2, [r3, #4]
|
|
pxNewListItem->pxNext->pxPrevious = pxNewListItem;
|
|
800bd2c: 683b ldr r3, [r7, #0]
|
|
800bd2e: 685b ldr r3, [r3, #4]
|
|
800bd30: 683a ldr r2, [r7, #0]
|
|
800bd32: 609a str r2, [r3, #8]
|
|
pxNewListItem->pxPrevious = pxIterator;
|
|
800bd34: 683b ldr r3, [r7, #0]
|
|
800bd36: 68fa ldr r2, [r7, #12]
|
|
800bd38: 609a str r2, [r3, #8]
|
|
pxIterator->pxNext = pxNewListItem;
|
|
800bd3a: 68fb ldr r3, [r7, #12]
|
|
800bd3c: 683a ldr r2, [r7, #0]
|
|
800bd3e: 605a str r2, [r3, #4]
|
|
|
|
/* Remember which list the item is in. This allows fast removal of the
|
|
item later. */
|
|
pxNewListItem->pxContainer = pxList;
|
|
800bd40: 683b ldr r3, [r7, #0]
|
|
800bd42: 687a ldr r2, [r7, #4]
|
|
800bd44: 611a str r2, [r3, #16]
|
|
|
|
( pxList->uxNumberOfItems )++;
|
|
800bd46: 687b ldr r3, [r7, #4]
|
|
800bd48: 681b ldr r3, [r3, #0]
|
|
800bd4a: 1c5a adds r2, r3, #1
|
|
800bd4c: 687b ldr r3, [r7, #4]
|
|
800bd4e: 601a str r2, [r3, #0]
|
|
}
|
|
800bd50: bf00 nop
|
|
800bd52: 3714 adds r7, #20
|
|
800bd54: 46bd mov sp, r7
|
|
800bd56: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bd5a: 4770 bx lr
|
|
|
|
0800bd5c <uxListRemove>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
|
|
{
|
|
800bd5c: b480 push {r7}
|
|
800bd5e: b085 sub sp, #20
|
|
800bd60: af00 add r7, sp, #0
|
|
800bd62: 6078 str r0, [r7, #4]
|
|
/* The list item knows which list it is in. Obtain the list from the list
|
|
item. */
|
|
List_t * const pxList = pxItemToRemove->pxContainer;
|
|
800bd64: 687b ldr r3, [r7, #4]
|
|
800bd66: 691b ldr r3, [r3, #16]
|
|
800bd68: 60fb str r3, [r7, #12]
|
|
|
|
pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
|
|
800bd6a: 687b ldr r3, [r7, #4]
|
|
800bd6c: 685b ldr r3, [r3, #4]
|
|
800bd6e: 687a ldr r2, [r7, #4]
|
|
800bd70: 6892 ldr r2, [r2, #8]
|
|
800bd72: 609a str r2, [r3, #8]
|
|
pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
|
|
800bd74: 687b ldr r3, [r7, #4]
|
|
800bd76: 689b ldr r3, [r3, #8]
|
|
800bd78: 687a ldr r2, [r7, #4]
|
|
800bd7a: 6852 ldr r2, [r2, #4]
|
|
800bd7c: 605a str r2, [r3, #4]
|
|
|
|
/* Only used during decision coverage testing. */
|
|
mtCOVERAGE_TEST_DELAY();
|
|
|
|
/* Make sure the index is left pointing to a valid item. */
|
|
if( pxList->pxIndex == pxItemToRemove )
|
|
800bd7e: 68fb ldr r3, [r7, #12]
|
|
800bd80: 685b ldr r3, [r3, #4]
|
|
800bd82: 687a ldr r2, [r7, #4]
|
|
800bd84: 429a cmp r2, r3
|
|
800bd86: d103 bne.n 800bd90 <uxListRemove+0x34>
|
|
{
|
|
pxList->pxIndex = pxItemToRemove->pxPrevious;
|
|
800bd88: 687b ldr r3, [r7, #4]
|
|
800bd8a: 689a ldr r2, [r3, #8]
|
|
800bd8c: 68fb ldr r3, [r7, #12]
|
|
800bd8e: 605a str r2, [r3, #4]
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
pxItemToRemove->pxContainer = NULL;
|
|
800bd90: 687b ldr r3, [r7, #4]
|
|
800bd92: 2200 movs r2, #0
|
|
800bd94: 611a str r2, [r3, #16]
|
|
( pxList->uxNumberOfItems )--;
|
|
800bd96: 68fb ldr r3, [r7, #12]
|
|
800bd98: 681b ldr r3, [r3, #0]
|
|
800bd9a: 1e5a subs r2, r3, #1
|
|
800bd9c: 68fb ldr r3, [r7, #12]
|
|
800bd9e: 601a str r2, [r3, #0]
|
|
|
|
return pxList->uxNumberOfItems;
|
|
800bda0: 68fb ldr r3, [r7, #12]
|
|
800bda2: 681b ldr r3, [r3, #0]
|
|
}
|
|
800bda4: 4618 mov r0, r3
|
|
800bda6: 3714 adds r7, #20
|
|
800bda8: 46bd mov sp, r7
|
|
800bdaa: f85d 7b04 ldr.w r7, [sp], #4
|
|
800bdae: 4770 bx lr
|
|
|
|
0800bdb0 <xQueueGenericReset>:
|
|
} \
|
|
taskEXIT_CRITICAL()
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
|
|
{
|
|
800bdb0: b580 push {r7, lr}
|
|
800bdb2: b084 sub sp, #16
|
|
800bdb4: af00 add r7, sp, #0
|
|
800bdb6: 6078 str r0, [r7, #4]
|
|
800bdb8: 6039 str r1, [r7, #0]
|
|
Queue_t * const pxQueue = xQueue;
|
|
800bdba: 687b ldr r3, [r7, #4]
|
|
800bdbc: 60fb str r3, [r7, #12]
|
|
|
|
configASSERT( pxQueue );
|
|
800bdbe: 68fb ldr r3, [r7, #12]
|
|
800bdc0: 2b00 cmp r3, #0
|
|
800bdc2: d10b bne.n 800bddc <xQueueGenericReset+0x2c>
|
|
__asm volatile
|
|
800bdc4: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bdc8: f383 8811 msr BASEPRI, r3
|
|
800bdcc: f3bf 8f6f isb sy
|
|
800bdd0: f3bf 8f4f dsb sy
|
|
800bdd4: 60bb str r3, [r7, #8]
|
|
}
|
|
800bdd6: bf00 nop
|
|
800bdd8: bf00 nop
|
|
800bdda: e7fd b.n 800bdd8 <xQueueGenericReset+0x28>
|
|
|
|
taskENTER_CRITICAL();
|
|
800bddc: f003 f934 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
|
|
800bde0: 68fb ldr r3, [r7, #12]
|
|
800bde2: 681a ldr r2, [r3, #0]
|
|
800bde4: 68fb ldr r3, [r7, #12]
|
|
800bde6: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800bde8: 68f9 ldr r1, [r7, #12]
|
|
800bdea: 6c09 ldr r1, [r1, #64] @ 0x40
|
|
800bdec: fb01 f303 mul.w r3, r1, r3
|
|
800bdf0: 441a add r2, r3
|
|
800bdf2: 68fb ldr r3, [r7, #12]
|
|
800bdf4: 609a str r2, [r3, #8]
|
|
pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
|
|
800bdf6: 68fb ldr r3, [r7, #12]
|
|
800bdf8: 2200 movs r2, #0
|
|
800bdfa: 639a str r2, [r3, #56] @ 0x38
|
|
pxQueue->pcWriteTo = pxQueue->pcHead;
|
|
800bdfc: 68fb ldr r3, [r7, #12]
|
|
800bdfe: 681a ldr r2, [r3, #0]
|
|
800be00: 68fb ldr r3, [r7, #12]
|
|
800be02: 605a str r2, [r3, #4]
|
|
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
|
|
800be04: 68fb ldr r3, [r7, #12]
|
|
800be06: 681a ldr r2, [r3, #0]
|
|
800be08: 68fb ldr r3, [r7, #12]
|
|
800be0a: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800be0c: 3b01 subs r3, #1
|
|
800be0e: 68f9 ldr r1, [r7, #12]
|
|
800be10: 6c09 ldr r1, [r1, #64] @ 0x40
|
|
800be12: fb01 f303 mul.w r3, r1, r3
|
|
800be16: 441a add r2, r3
|
|
800be18: 68fb ldr r3, [r7, #12]
|
|
800be1a: 60da str r2, [r3, #12]
|
|
pxQueue->cRxLock = queueUNLOCKED;
|
|
800be1c: 68fb ldr r3, [r7, #12]
|
|
800be1e: 22ff movs r2, #255 @ 0xff
|
|
800be20: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
pxQueue->cTxLock = queueUNLOCKED;
|
|
800be24: 68fb ldr r3, [r7, #12]
|
|
800be26: 22ff movs r2, #255 @ 0xff
|
|
800be28: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
|
|
if( xNewQueue == pdFALSE )
|
|
800be2c: 683b ldr r3, [r7, #0]
|
|
800be2e: 2b00 cmp r3, #0
|
|
800be30: d114 bne.n 800be5c <xQueueGenericReset+0xac>
|
|
/* If there are tasks blocked waiting to read from the queue, then
|
|
the tasks will remain blocked as after this function exits the queue
|
|
will still be empty. If there are tasks blocked waiting to write to
|
|
the queue, then one should be unblocked as after this function exits
|
|
it will be possible to write to it. */
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
|
|
800be32: 68fb ldr r3, [r7, #12]
|
|
800be34: 691b ldr r3, [r3, #16]
|
|
800be36: 2b00 cmp r3, #0
|
|
800be38: d01a beq.n 800be70 <xQueueGenericReset+0xc0>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
|
|
800be3a: 68fb ldr r3, [r7, #12]
|
|
800be3c: 3310 adds r3, #16
|
|
800be3e: 4618 mov r0, r3
|
|
800be40: f001 fd32 bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800be44: 4603 mov r3, r0
|
|
800be46: 2b00 cmp r3, #0
|
|
800be48: d012 beq.n 800be70 <xQueueGenericReset+0xc0>
|
|
{
|
|
queueYIELD_IF_USING_PREEMPTION();
|
|
800be4a: 4b0d ldr r3, [pc, #52] @ (800be80 <xQueueGenericReset+0xd0>)
|
|
800be4c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800be50: 601a str r2, [r3, #0]
|
|
800be52: f3bf 8f4f dsb sy
|
|
800be56: f3bf 8f6f isb sy
|
|
800be5a: e009 b.n 800be70 <xQueueGenericReset+0xc0>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Ensure the event queues start in the correct state. */
|
|
vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
|
|
800be5c: 68fb ldr r3, [r7, #12]
|
|
800be5e: 3310 adds r3, #16
|
|
800be60: 4618 mov r0, r3
|
|
800be62: f7ff fef1 bl 800bc48 <vListInitialise>
|
|
vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
|
|
800be66: 68fb ldr r3, [r7, #12]
|
|
800be68: 3324 adds r3, #36 @ 0x24
|
|
800be6a: 4618 mov r0, r3
|
|
800be6c: f7ff feec bl 800bc48 <vListInitialise>
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800be70: f003 f91c bl 800f0ac <vPortExitCritical>
|
|
|
|
/* A value is returned for calling semantic consistency with previous
|
|
versions. */
|
|
return pdPASS;
|
|
800be74: 2301 movs r3, #1
|
|
}
|
|
800be76: 4618 mov r0, r3
|
|
800be78: 3710 adds r7, #16
|
|
800be7a: 46bd mov sp, r7
|
|
800be7c: bd80 pop {r7, pc}
|
|
800be7e: bf00 nop
|
|
800be80: e000ed04 .word 0xe000ed04
|
|
|
|
0800be84 <xQueueGenericCreateStatic>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
|
|
QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
|
|
{
|
|
800be84: b580 push {r7, lr}
|
|
800be86: b08e sub sp, #56 @ 0x38
|
|
800be88: af02 add r7, sp, #8
|
|
800be8a: 60f8 str r0, [r7, #12]
|
|
800be8c: 60b9 str r1, [r7, #8]
|
|
800be8e: 607a str r2, [r7, #4]
|
|
800be90: 603b str r3, [r7, #0]
|
|
Queue_t *pxNewQueue;
|
|
|
|
configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
|
|
800be92: 68fb ldr r3, [r7, #12]
|
|
800be94: 2b00 cmp r3, #0
|
|
800be96: d10b bne.n 800beb0 <xQueueGenericCreateStatic+0x2c>
|
|
__asm volatile
|
|
800be98: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800be9c: f383 8811 msr BASEPRI, r3
|
|
800bea0: f3bf 8f6f isb sy
|
|
800bea4: f3bf 8f4f dsb sy
|
|
800bea8: 62bb str r3, [r7, #40] @ 0x28
|
|
}
|
|
800beaa: bf00 nop
|
|
800beac: bf00 nop
|
|
800beae: e7fd b.n 800beac <xQueueGenericCreateStatic+0x28>
|
|
|
|
/* The StaticQueue_t structure and the queue storage area must be
|
|
supplied. */
|
|
configASSERT( pxStaticQueue != NULL );
|
|
800beb0: 683b ldr r3, [r7, #0]
|
|
800beb2: 2b00 cmp r3, #0
|
|
800beb4: d10b bne.n 800bece <xQueueGenericCreateStatic+0x4a>
|
|
__asm volatile
|
|
800beb6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800beba: f383 8811 msr BASEPRI, r3
|
|
800bebe: f3bf 8f6f isb sy
|
|
800bec2: f3bf 8f4f dsb sy
|
|
800bec6: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
800bec8: bf00 nop
|
|
800beca: bf00 nop
|
|
800becc: e7fd b.n 800beca <xQueueGenericCreateStatic+0x46>
|
|
|
|
/* A queue storage area should be provided if the item size is not 0, and
|
|
should not be provided if the item size is 0. */
|
|
configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
|
|
800bece: 687b ldr r3, [r7, #4]
|
|
800bed0: 2b00 cmp r3, #0
|
|
800bed2: d002 beq.n 800beda <xQueueGenericCreateStatic+0x56>
|
|
800bed4: 68bb ldr r3, [r7, #8]
|
|
800bed6: 2b00 cmp r3, #0
|
|
800bed8: d001 beq.n 800bede <xQueueGenericCreateStatic+0x5a>
|
|
800beda: 2301 movs r3, #1
|
|
800bedc: e000 b.n 800bee0 <xQueueGenericCreateStatic+0x5c>
|
|
800bede: 2300 movs r3, #0
|
|
800bee0: 2b00 cmp r3, #0
|
|
800bee2: d10b bne.n 800befc <xQueueGenericCreateStatic+0x78>
|
|
__asm volatile
|
|
800bee4: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bee8: f383 8811 msr BASEPRI, r3
|
|
800beec: f3bf 8f6f isb sy
|
|
800bef0: f3bf 8f4f dsb sy
|
|
800bef4: 623b str r3, [r7, #32]
|
|
}
|
|
800bef6: bf00 nop
|
|
800bef8: bf00 nop
|
|
800befa: e7fd b.n 800bef8 <xQueueGenericCreateStatic+0x74>
|
|
configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
|
|
800befc: 687b ldr r3, [r7, #4]
|
|
800befe: 2b00 cmp r3, #0
|
|
800bf00: d102 bne.n 800bf08 <xQueueGenericCreateStatic+0x84>
|
|
800bf02: 68bb ldr r3, [r7, #8]
|
|
800bf04: 2b00 cmp r3, #0
|
|
800bf06: d101 bne.n 800bf0c <xQueueGenericCreateStatic+0x88>
|
|
800bf08: 2301 movs r3, #1
|
|
800bf0a: e000 b.n 800bf0e <xQueueGenericCreateStatic+0x8a>
|
|
800bf0c: 2300 movs r3, #0
|
|
800bf0e: 2b00 cmp r3, #0
|
|
800bf10: d10b bne.n 800bf2a <xQueueGenericCreateStatic+0xa6>
|
|
__asm volatile
|
|
800bf12: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bf16: f383 8811 msr BASEPRI, r3
|
|
800bf1a: f3bf 8f6f isb sy
|
|
800bf1e: f3bf 8f4f dsb sy
|
|
800bf22: 61fb str r3, [r7, #28]
|
|
}
|
|
800bf24: bf00 nop
|
|
800bf26: bf00 nop
|
|
800bf28: e7fd b.n 800bf26 <xQueueGenericCreateStatic+0xa2>
|
|
#if( configASSERT_DEFINED == 1 )
|
|
{
|
|
/* Sanity check that the size of the structure used to declare a
|
|
variable of type StaticQueue_t or StaticSemaphore_t equals the size of
|
|
the real queue and semaphore structures. */
|
|
volatile size_t xSize = sizeof( StaticQueue_t );
|
|
800bf2a: 2350 movs r3, #80 @ 0x50
|
|
800bf2c: 617b str r3, [r7, #20]
|
|
configASSERT( xSize == sizeof( Queue_t ) );
|
|
800bf2e: 697b ldr r3, [r7, #20]
|
|
800bf30: 2b50 cmp r3, #80 @ 0x50
|
|
800bf32: d00b beq.n 800bf4c <xQueueGenericCreateStatic+0xc8>
|
|
__asm volatile
|
|
800bf34: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bf38: f383 8811 msr BASEPRI, r3
|
|
800bf3c: f3bf 8f6f isb sy
|
|
800bf40: f3bf 8f4f dsb sy
|
|
800bf44: 61bb str r3, [r7, #24]
|
|
}
|
|
800bf46: bf00 nop
|
|
800bf48: bf00 nop
|
|
800bf4a: e7fd b.n 800bf48 <xQueueGenericCreateStatic+0xc4>
|
|
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
|
|
800bf4c: 697b ldr r3, [r7, #20]
|
|
#endif /* configASSERT_DEFINED */
|
|
|
|
/* The address of a statically allocated queue was passed in, use it.
|
|
The address of a statically allocated storage area was also passed in
|
|
but is already set. */
|
|
pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
|
|
800bf4e: 683b ldr r3, [r7, #0]
|
|
800bf50: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
if( pxNewQueue != NULL )
|
|
800bf52: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800bf54: 2b00 cmp r3, #0
|
|
800bf56: d00d beq.n 800bf74 <xQueueGenericCreateStatic+0xf0>
|
|
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
{
|
|
/* Queues can be allocated wither statically or dynamically, so
|
|
note this queue was allocated statically in case the queue is
|
|
later deleted. */
|
|
pxNewQueue->ucStaticallyAllocated = pdTRUE;
|
|
800bf58: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800bf5a: 2201 movs r2, #1
|
|
800bf5c: f883 2046 strb.w r2, [r3, #70] @ 0x46
|
|
}
|
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
|
|
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
|
800bf60: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
|
|
800bf64: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800bf66: 9300 str r3, [sp, #0]
|
|
800bf68: 4613 mov r3, r2
|
|
800bf6a: 687a ldr r2, [r7, #4]
|
|
800bf6c: 68b9 ldr r1, [r7, #8]
|
|
800bf6e: 68f8 ldr r0, [r7, #12]
|
|
800bf70: f000 f840 bl 800bff4 <prvInitialiseNewQueue>
|
|
{
|
|
traceQUEUE_CREATE_FAILED( ucQueueType );
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
return pxNewQueue;
|
|
800bf74: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
}
|
|
800bf76: 4618 mov r0, r3
|
|
800bf78: 3730 adds r7, #48 @ 0x30
|
|
800bf7a: 46bd mov sp, r7
|
|
800bf7c: bd80 pop {r7, pc}
|
|
|
|
0800bf7e <xQueueGenericCreate>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
|
|
QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType )
|
|
{
|
|
800bf7e: b580 push {r7, lr}
|
|
800bf80: b08a sub sp, #40 @ 0x28
|
|
800bf82: af02 add r7, sp, #8
|
|
800bf84: 60f8 str r0, [r7, #12]
|
|
800bf86: 60b9 str r1, [r7, #8]
|
|
800bf88: 4613 mov r3, r2
|
|
800bf8a: 71fb strb r3, [r7, #7]
|
|
Queue_t *pxNewQueue;
|
|
size_t xQueueSizeInBytes;
|
|
uint8_t *pucQueueStorage;
|
|
|
|
configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
|
|
800bf8c: 68fb ldr r3, [r7, #12]
|
|
800bf8e: 2b00 cmp r3, #0
|
|
800bf90: d10b bne.n 800bfaa <xQueueGenericCreate+0x2c>
|
|
__asm volatile
|
|
800bf92: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800bf96: f383 8811 msr BASEPRI, r3
|
|
800bf9a: f3bf 8f6f isb sy
|
|
800bf9e: f3bf 8f4f dsb sy
|
|
800bfa2: 613b str r3, [r7, #16]
|
|
}
|
|
800bfa4: bf00 nop
|
|
800bfa6: bf00 nop
|
|
800bfa8: e7fd b.n 800bfa6 <xQueueGenericCreate+0x28>
|
|
|
|
/* Allocate enough space to hold the maximum number of items that
|
|
can be in the queue at any time. It is valid for uxItemSize to be
|
|
zero in the case the queue is used as a semaphore. */
|
|
xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800bfaa: 68fb ldr r3, [r7, #12]
|
|
800bfac: 68ba ldr r2, [r7, #8]
|
|
800bfae: fb02 f303 mul.w r3, r2, r3
|
|
800bfb2: 61fb str r3, [r7, #28]
|
|
alignment requirements of the Queue_t structure - which in this case
|
|
is an int8_t *. Therefore, whenever the stack alignment requirements
|
|
are greater than or equal to the pointer to char requirements the cast
|
|
is safe. In other cases alignment requirements are not strict (one or
|
|
two bytes). */
|
|
pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */
|
|
800bfb4: 69fb ldr r3, [r7, #28]
|
|
800bfb6: 3350 adds r3, #80 @ 0x50
|
|
800bfb8: 4618 mov r0, r3
|
|
800bfba: f003 f967 bl 800f28c <pvPortMalloc>
|
|
800bfbe: 61b8 str r0, [r7, #24]
|
|
|
|
if( pxNewQueue != NULL )
|
|
800bfc0: 69bb ldr r3, [r7, #24]
|
|
800bfc2: 2b00 cmp r3, #0
|
|
800bfc4: d011 beq.n 800bfea <xQueueGenericCreate+0x6c>
|
|
{
|
|
/* Jump past the queue structure to find the location of the queue
|
|
storage area. */
|
|
pucQueueStorage = ( uint8_t * ) pxNewQueue;
|
|
800bfc6: 69bb ldr r3, [r7, #24]
|
|
800bfc8: 617b str r3, [r7, #20]
|
|
pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
|
|
800bfca: 697b ldr r3, [r7, #20]
|
|
800bfcc: 3350 adds r3, #80 @ 0x50
|
|
800bfce: 617b str r3, [r7, #20]
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
{
|
|
/* Queues can be created either statically or dynamically, so
|
|
note this task was created dynamically in case it is later
|
|
deleted. */
|
|
pxNewQueue->ucStaticallyAllocated = pdFALSE;
|
|
800bfd0: 69bb ldr r3, [r7, #24]
|
|
800bfd2: 2200 movs r2, #0
|
|
800bfd4: f883 2046 strb.w r2, [r3, #70] @ 0x46
|
|
}
|
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
|
|
|
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
|
|
800bfd8: 79fa ldrb r2, [r7, #7]
|
|
800bfda: 69bb ldr r3, [r7, #24]
|
|
800bfdc: 9300 str r3, [sp, #0]
|
|
800bfde: 4613 mov r3, r2
|
|
800bfe0: 697a ldr r2, [r7, #20]
|
|
800bfe2: 68b9 ldr r1, [r7, #8]
|
|
800bfe4: 68f8 ldr r0, [r7, #12]
|
|
800bfe6: f000 f805 bl 800bff4 <prvInitialiseNewQueue>
|
|
{
|
|
traceQUEUE_CREATE_FAILED( ucQueueType );
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
return pxNewQueue;
|
|
800bfea: 69bb ldr r3, [r7, #24]
|
|
}
|
|
800bfec: 4618 mov r0, r3
|
|
800bfee: 3720 adds r7, #32
|
|
800bff0: 46bd mov sp, r7
|
|
800bff2: bd80 pop {r7, pc}
|
|
|
|
0800bff4 <prvInitialiseNewQueue>:
|
|
|
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
|
|
{
|
|
800bff4: b580 push {r7, lr}
|
|
800bff6: b084 sub sp, #16
|
|
800bff8: af00 add r7, sp, #0
|
|
800bffa: 60f8 str r0, [r7, #12]
|
|
800bffc: 60b9 str r1, [r7, #8]
|
|
800bffe: 607a str r2, [r7, #4]
|
|
800c000: 70fb strb r3, [r7, #3]
|
|
/* Remove compiler warnings about unused parameters should
|
|
configUSE_TRACE_FACILITY not be set to 1. */
|
|
( void ) ucQueueType;
|
|
|
|
if( uxItemSize == ( UBaseType_t ) 0 )
|
|
800c002: 68bb ldr r3, [r7, #8]
|
|
800c004: 2b00 cmp r3, #0
|
|
800c006: d103 bne.n 800c010 <prvInitialiseNewQueue+0x1c>
|
|
{
|
|
/* No RAM was allocated for the queue storage area, but PC head cannot
|
|
be set to NULL because NULL is used as a key to say the queue is used as
|
|
a mutex. Therefore just set pcHead to point to the queue as a benign
|
|
value that is known to be within the memory map. */
|
|
pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
|
|
800c008: 69bb ldr r3, [r7, #24]
|
|
800c00a: 69ba ldr r2, [r7, #24]
|
|
800c00c: 601a str r2, [r3, #0]
|
|
800c00e: e002 b.n 800c016 <prvInitialiseNewQueue+0x22>
|
|
}
|
|
else
|
|
{
|
|
/* Set the head to the start of the queue storage area. */
|
|
pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
|
|
800c010: 69bb ldr r3, [r7, #24]
|
|
800c012: 687a ldr r2, [r7, #4]
|
|
800c014: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Initialise the queue members as described where the queue type is
|
|
defined. */
|
|
pxNewQueue->uxLength = uxQueueLength;
|
|
800c016: 69bb ldr r3, [r7, #24]
|
|
800c018: 68fa ldr r2, [r7, #12]
|
|
800c01a: 63da str r2, [r3, #60] @ 0x3c
|
|
pxNewQueue->uxItemSize = uxItemSize;
|
|
800c01c: 69bb ldr r3, [r7, #24]
|
|
800c01e: 68ba ldr r2, [r7, #8]
|
|
800c020: 641a str r2, [r3, #64] @ 0x40
|
|
( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
|
|
800c022: 2101 movs r1, #1
|
|
800c024: 69b8 ldr r0, [r7, #24]
|
|
800c026: f7ff fec3 bl 800bdb0 <xQueueGenericReset>
|
|
|
|
#if ( configUSE_TRACE_FACILITY == 1 )
|
|
{
|
|
pxNewQueue->ucQueueType = ucQueueType;
|
|
800c02a: 69bb ldr r3, [r7, #24]
|
|
800c02c: 78fa ldrb r2, [r7, #3]
|
|
800c02e: f883 204c strb.w r2, [r3, #76] @ 0x4c
|
|
pxNewQueue->pxQueueSetContainer = NULL;
|
|
}
|
|
#endif /* configUSE_QUEUE_SETS */
|
|
|
|
traceQUEUE_CREATE( pxNewQueue );
|
|
}
|
|
800c032: bf00 nop
|
|
800c034: 3710 adds r7, #16
|
|
800c036: 46bd mov sp, r7
|
|
800c038: bd80 pop {r7, pc}
|
|
|
|
0800c03a <prvInitialiseMutex>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_MUTEXES == 1 )
|
|
|
|
static void prvInitialiseMutex( Queue_t *pxNewQueue )
|
|
{
|
|
800c03a: b580 push {r7, lr}
|
|
800c03c: b082 sub sp, #8
|
|
800c03e: af00 add r7, sp, #0
|
|
800c040: 6078 str r0, [r7, #4]
|
|
if( pxNewQueue != NULL )
|
|
800c042: 687b ldr r3, [r7, #4]
|
|
800c044: 2b00 cmp r3, #0
|
|
800c046: d00e beq.n 800c066 <prvInitialiseMutex+0x2c>
|
|
{
|
|
/* The queue create function will set all the queue structure members
|
|
correctly for a generic queue, but this function is creating a
|
|
mutex. Overwrite those members that need to be set differently -
|
|
in particular the information required for priority inheritance. */
|
|
pxNewQueue->u.xSemaphore.xMutexHolder = NULL;
|
|
800c048: 687b ldr r3, [r7, #4]
|
|
800c04a: 2200 movs r2, #0
|
|
800c04c: 609a str r2, [r3, #8]
|
|
pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX;
|
|
800c04e: 687b ldr r3, [r7, #4]
|
|
800c050: 2200 movs r2, #0
|
|
800c052: 601a str r2, [r3, #0]
|
|
|
|
/* In case this is a recursive mutex. */
|
|
pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0;
|
|
800c054: 687b ldr r3, [r7, #4]
|
|
800c056: 2200 movs r2, #0
|
|
800c058: 60da str r2, [r3, #12]
|
|
|
|
traceCREATE_MUTEX( pxNewQueue );
|
|
|
|
/* Start with the semaphore in the expected state. */
|
|
( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK );
|
|
800c05a: 2300 movs r3, #0
|
|
800c05c: 2200 movs r2, #0
|
|
800c05e: 2100 movs r1, #0
|
|
800c060: 6878 ldr r0, [r7, #4]
|
|
800c062: f000 f8a3 bl 800c1ac <xQueueGenericSend>
|
|
}
|
|
else
|
|
{
|
|
traceCREATE_MUTEX_FAILED();
|
|
}
|
|
}
|
|
800c066: bf00 nop
|
|
800c068: 3708 adds r7, #8
|
|
800c06a: 46bd mov sp, r7
|
|
800c06c: bd80 pop {r7, pc}
|
|
|
|
0800c06e <xQueueCreateMutex>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
|
|
|
|
QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
|
|
{
|
|
800c06e: b580 push {r7, lr}
|
|
800c070: b086 sub sp, #24
|
|
800c072: af00 add r7, sp, #0
|
|
800c074: 4603 mov r3, r0
|
|
800c076: 71fb strb r3, [r7, #7]
|
|
QueueHandle_t xNewQueue;
|
|
const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
|
|
800c078: 2301 movs r3, #1
|
|
800c07a: 617b str r3, [r7, #20]
|
|
800c07c: 2300 movs r3, #0
|
|
800c07e: 613b str r3, [r7, #16]
|
|
|
|
xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
|
|
800c080: 79fb ldrb r3, [r7, #7]
|
|
800c082: 461a mov r2, r3
|
|
800c084: 6939 ldr r1, [r7, #16]
|
|
800c086: 6978 ldr r0, [r7, #20]
|
|
800c088: f7ff ff79 bl 800bf7e <xQueueGenericCreate>
|
|
800c08c: 60f8 str r0, [r7, #12]
|
|
prvInitialiseMutex( ( Queue_t * ) xNewQueue );
|
|
800c08e: 68f8 ldr r0, [r7, #12]
|
|
800c090: f7ff ffd3 bl 800c03a <prvInitialiseMutex>
|
|
|
|
return xNewQueue;
|
|
800c094: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800c096: 4618 mov r0, r3
|
|
800c098: 3718 adds r7, #24
|
|
800c09a: 46bd mov sp, r7
|
|
800c09c: bd80 pop {r7, pc}
|
|
|
|
0800c09e <xQueueCreateMutexStatic>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
|
|
|
|
QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue )
|
|
{
|
|
800c09e: b580 push {r7, lr}
|
|
800c0a0: b088 sub sp, #32
|
|
800c0a2: af02 add r7, sp, #8
|
|
800c0a4: 4603 mov r3, r0
|
|
800c0a6: 6039 str r1, [r7, #0]
|
|
800c0a8: 71fb strb r3, [r7, #7]
|
|
QueueHandle_t xNewQueue;
|
|
const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
|
|
800c0aa: 2301 movs r3, #1
|
|
800c0ac: 617b str r3, [r7, #20]
|
|
800c0ae: 2300 movs r3, #0
|
|
800c0b0: 613b str r3, [r7, #16]
|
|
|
|
/* Prevent compiler warnings about unused parameters if
|
|
configUSE_TRACE_FACILITY does not equal 1. */
|
|
( void ) ucQueueType;
|
|
|
|
xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType );
|
|
800c0b2: 79fb ldrb r3, [r7, #7]
|
|
800c0b4: 9300 str r3, [sp, #0]
|
|
800c0b6: 683b ldr r3, [r7, #0]
|
|
800c0b8: 2200 movs r2, #0
|
|
800c0ba: 6939 ldr r1, [r7, #16]
|
|
800c0bc: 6978 ldr r0, [r7, #20]
|
|
800c0be: f7ff fee1 bl 800be84 <xQueueGenericCreateStatic>
|
|
800c0c2: 60f8 str r0, [r7, #12]
|
|
prvInitialiseMutex( ( Queue_t * ) xNewQueue );
|
|
800c0c4: 68f8 ldr r0, [r7, #12]
|
|
800c0c6: f7ff ffb8 bl 800c03a <prvInitialiseMutex>
|
|
|
|
return xNewQueue;
|
|
800c0ca: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800c0cc: 4618 mov r0, r3
|
|
800c0ce: 3718 adds r7, #24
|
|
800c0d0: 46bd mov sp, r7
|
|
800c0d2: bd80 pop {r7, pc}
|
|
|
|
0800c0d4 <xQueueGiveMutexRecursive>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
|
|
|
BaseType_t xQueueGiveMutexRecursive( QueueHandle_t xMutex )
|
|
{
|
|
800c0d4: b590 push {r4, r7, lr}
|
|
800c0d6: b087 sub sp, #28
|
|
800c0d8: af00 add r7, sp, #0
|
|
800c0da: 6078 str r0, [r7, #4]
|
|
BaseType_t xReturn;
|
|
Queue_t * const pxMutex = ( Queue_t * ) xMutex;
|
|
800c0dc: 687b ldr r3, [r7, #4]
|
|
800c0de: 613b str r3, [r7, #16]
|
|
|
|
configASSERT( pxMutex );
|
|
800c0e0: 693b ldr r3, [r7, #16]
|
|
800c0e2: 2b00 cmp r3, #0
|
|
800c0e4: d10b bne.n 800c0fe <xQueueGiveMutexRecursive+0x2a>
|
|
__asm volatile
|
|
800c0e6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c0ea: f383 8811 msr BASEPRI, r3
|
|
800c0ee: f3bf 8f6f isb sy
|
|
800c0f2: f3bf 8f4f dsb sy
|
|
800c0f6: 60fb str r3, [r7, #12]
|
|
}
|
|
800c0f8: bf00 nop
|
|
800c0fa: bf00 nop
|
|
800c0fc: e7fd b.n 800c0fa <xQueueGiveMutexRecursive+0x26>
|
|
change outside of this task. If this task does not hold the mutex then
|
|
pxMutexHolder can never coincidentally equal the tasks handle, and as
|
|
this is the only condition we are interested in it does not matter if
|
|
pxMutexHolder is accessed simultaneously by another task. Therefore no
|
|
mutual exclusion is required to test the pxMutexHolder variable. */
|
|
if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
|
|
800c0fe: 693b ldr r3, [r7, #16]
|
|
800c100: 689c ldr r4, [r3, #8]
|
|
800c102: f001 fdfb bl 800dcfc <xTaskGetCurrentTaskHandle>
|
|
800c106: 4603 mov r3, r0
|
|
800c108: 429c cmp r4, r3
|
|
800c10a: d111 bne.n 800c130 <xQueueGiveMutexRecursive+0x5c>
|
|
/* uxRecursiveCallCount cannot be zero if xMutexHolder is equal to
|
|
the task handle, therefore no underflow check is required. Also,
|
|
uxRecursiveCallCount is only modified by the mutex holder, and as
|
|
there can only be one, no mutual exclusion is required to modify the
|
|
uxRecursiveCallCount member. */
|
|
( pxMutex->u.xSemaphore.uxRecursiveCallCount )--;
|
|
800c10c: 693b ldr r3, [r7, #16]
|
|
800c10e: 68db ldr r3, [r3, #12]
|
|
800c110: 1e5a subs r2, r3, #1
|
|
800c112: 693b ldr r3, [r7, #16]
|
|
800c114: 60da str r2, [r3, #12]
|
|
|
|
/* Has the recursive call count unwound to 0? */
|
|
if( pxMutex->u.xSemaphore.uxRecursiveCallCount == ( UBaseType_t ) 0 )
|
|
800c116: 693b ldr r3, [r7, #16]
|
|
800c118: 68db ldr r3, [r3, #12]
|
|
800c11a: 2b00 cmp r3, #0
|
|
800c11c: d105 bne.n 800c12a <xQueueGiveMutexRecursive+0x56>
|
|
{
|
|
/* Return the mutex. This will automatically unblock any other
|
|
task that might be waiting to access the mutex. */
|
|
( void ) xQueueGenericSend( pxMutex, NULL, queueMUTEX_GIVE_BLOCK_TIME, queueSEND_TO_BACK );
|
|
800c11e: 2300 movs r3, #0
|
|
800c120: 2200 movs r2, #0
|
|
800c122: 2100 movs r1, #0
|
|
800c124: 6938 ldr r0, [r7, #16]
|
|
800c126: f000 f841 bl 800c1ac <xQueueGenericSend>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
xReturn = pdPASS;
|
|
800c12a: 2301 movs r3, #1
|
|
800c12c: 617b str r3, [r7, #20]
|
|
800c12e: e001 b.n 800c134 <xQueueGiveMutexRecursive+0x60>
|
|
}
|
|
else
|
|
{
|
|
/* The mutex cannot be given because the calling task is not the
|
|
holder. */
|
|
xReturn = pdFAIL;
|
|
800c130: 2300 movs r3, #0
|
|
800c132: 617b str r3, [r7, #20]
|
|
|
|
traceGIVE_MUTEX_RECURSIVE_FAILED( pxMutex );
|
|
}
|
|
|
|
return xReturn;
|
|
800c134: 697b ldr r3, [r7, #20]
|
|
}
|
|
800c136: 4618 mov r0, r3
|
|
800c138: 371c adds r7, #28
|
|
800c13a: 46bd mov sp, r7
|
|
800c13c: bd90 pop {r4, r7, pc}
|
|
|
|
0800c13e <xQueueTakeMutexRecursive>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_RECURSIVE_MUTEXES == 1 )
|
|
|
|
BaseType_t xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait )
|
|
{
|
|
800c13e: b590 push {r4, r7, lr}
|
|
800c140: b087 sub sp, #28
|
|
800c142: af00 add r7, sp, #0
|
|
800c144: 6078 str r0, [r7, #4]
|
|
800c146: 6039 str r1, [r7, #0]
|
|
BaseType_t xReturn;
|
|
Queue_t * const pxMutex = ( Queue_t * ) xMutex;
|
|
800c148: 687b ldr r3, [r7, #4]
|
|
800c14a: 613b str r3, [r7, #16]
|
|
|
|
configASSERT( pxMutex );
|
|
800c14c: 693b ldr r3, [r7, #16]
|
|
800c14e: 2b00 cmp r3, #0
|
|
800c150: d10b bne.n 800c16a <xQueueTakeMutexRecursive+0x2c>
|
|
__asm volatile
|
|
800c152: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c156: f383 8811 msr BASEPRI, r3
|
|
800c15a: f3bf 8f6f isb sy
|
|
800c15e: f3bf 8f4f dsb sy
|
|
800c162: 60fb str r3, [r7, #12]
|
|
}
|
|
800c164: bf00 nop
|
|
800c166: bf00 nop
|
|
800c168: e7fd b.n 800c166 <xQueueTakeMutexRecursive+0x28>
|
|
/* Comments regarding mutual exclusion as per those within
|
|
xQueueGiveMutexRecursive(). */
|
|
|
|
traceTAKE_MUTEX_RECURSIVE( pxMutex );
|
|
|
|
if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
|
|
800c16a: 693b ldr r3, [r7, #16]
|
|
800c16c: 689c ldr r4, [r3, #8]
|
|
800c16e: f001 fdc5 bl 800dcfc <xTaskGetCurrentTaskHandle>
|
|
800c172: 4603 mov r3, r0
|
|
800c174: 429c cmp r4, r3
|
|
800c176: d107 bne.n 800c188 <xQueueTakeMutexRecursive+0x4a>
|
|
{
|
|
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
|
|
800c178: 693b ldr r3, [r7, #16]
|
|
800c17a: 68db ldr r3, [r3, #12]
|
|
800c17c: 1c5a adds r2, r3, #1
|
|
800c17e: 693b ldr r3, [r7, #16]
|
|
800c180: 60da str r2, [r3, #12]
|
|
xReturn = pdPASS;
|
|
800c182: 2301 movs r3, #1
|
|
800c184: 617b str r3, [r7, #20]
|
|
800c186: e00c b.n 800c1a2 <xQueueTakeMutexRecursive+0x64>
|
|
}
|
|
else
|
|
{
|
|
xReturn = xQueueSemaphoreTake( pxMutex, xTicksToWait );
|
|
800c188: 6839 ldr r1, [r7, #0]
|
|
800c18a: 6938 ldr r0, [r7, #16]
|
|
800c18c: f000 fa90 bl 800c6b0 <xQueueSemaphoreTake>
|
|
800c190: 6178 str r0, [r7, #20]
|
|
|
|
/* pdPASS will only be returned if the mutex was successfully
|
|
obtained. The calling task may have entered the Blocked state
|
|
before reaching here. */
|
|
if( xReturn != pdFAIL )
|
|
800c192: 697b ldr r3, [r7, #20]
|
|
800c194: 2b00 cmp r3, #0
|
|
800c196: d004 beq.n 800c1a2 <xQueueTakeMutexRecursive+0x64>
|
|
{
|
|
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
|
|
800c198: 693b ldr r3, [r7, #16]
|
|
800c19a: 68db ldr r3, [r3, #12]
|
|
800c19c: 1c5a adds r2, r3, #1
|
|
800c19e: 693b ldr r3, [r7, #16]
|
|
800c1a0: 60da str r2, [r3, #12]
|
|
{
|
|
traceTAKE_MUTEX_RECURSIVE_FAILED( pxMutex );
|
|
}
|
|
}
|
|
|
|
return xReturn;
|
|
800c1a2: 697b ldr r3, [r7, #20]
|
|
}
|
|
800c1a4: 4618 mov r0, r3
|
|
800c1a6: 371c adds r7, #28
|
|
800c1a8: 46bd mov sp, r7
|
|
800c1aa: bd90 pop {r4, r7, pc}
|
|
|
|
0800c1ac <xQueueGenericSend>:
|
|
|
|
#endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
|
|
{
|
|
800c1ac: b580 push {r7, lr}
|
|
800c1ae: b08e sub sp, #56 @ 0x38
|
|
800c1b0: af00 add r7, sp, #0
|
|
800c1b2: 60f8 str r0, [r7, #12]
|
|
800c1b4: 60b9 str r1, [r7, #8]
|
|
800c1b6: 607a str r2, [r7, #4]
|
|
800c1b8: 603b str r3, [r7, #0]
|
|
BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
|
|
800c1ba: 2300 movs r3, #0
|
|
800c1bc: 637b str r3, [r7, #52] @ 0x34
|
|
TimeOut_t xTimeOut;
|
|
Queue_t * const pxQueue = xQueue;
|
|
800c1be: 68fb ldr r3, [r7, #12]
|
|
800c1c0: 633b str r3, [r7, #48] @ 0x30
|
|
|
|
configASSERT( pxQueue );
|
|
800c1c2: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c1c4: 2b00 cmp r3, #0
|
|
800c1c6: d10b bne.n 800c1e0 <xQueueGenericSend+0x34>
|
|
__asm volatile
|
|
800c1c8: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c1cc: f383 8811 msr BASEPRI, r3
|
|
800c1d0: f3bf 8f6f isb sy
|
|
800c1d4: f3bf 8f4f dsb sy
|
|
800c1d8: 62bb str r3, [r7, #40] @ 0x28
|
|
}
|
|
800c1da: bf00 nop
|
|
800c1dc: bf00 nop
|
|
800c1de: e7fd b.n 800c1dc <xQueueGenericSend+0x30>
|
|
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
|
|
800c1e0: 68bb ldr r3, [r7, #8]
|
|
800c1e2: 2b00 cmp r3, #0
|
|
800c1e4: d103 bne.n 800c1ee <xQueueGenericSend+0x42>
|
|
800c1e6: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c1e8: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800c1ea: 2b00 cmp r3, #0
|
|
800c1ec: d101 bne.n 800c1f2 <xQueueGenericSend+0x46>
|
|
800c1ee: 2301 movs r3, #1
|
|
800c1f0: e000 b.n 800c1f4 <xQueueGenericSend+0x48>
|
|
800c1f2: 2300 movs r3, #0
|
|
800c1f4: 2b00 cmp r3, #0
|
|
800c1f6: d10b bne.n 800c210 <xQueueGenericSend+0x64>
|
|
__asm volatile
|
|
800c1f8: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c1fc: f383 8811 msr BASEPRI, r3
|
|
800c200: f3bf 8f6f isb sy
|
|
800c204: f3bf 8f4f dsb sy
|
|
800c208: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
800c20a: bf00 nop
|
|
800c20c: bf00 nop
|
|
800c20e: e7fd b.n 800c20c <xQueueGenericSend+0x60>
|
|
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
|
|
800c210: 683b ldr r3, [r7, #0]
|
|
800c212: 2b02 cmp r3, #2
|
|
800c214: d103 bne.n 800c21e <xQueueGenericSend+0x72>
|
|
800c216: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c218: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800c21a: 2b01 cmp r3, #1
|
|
800c21c: d101 bne.n 800c222 <xQueueGenericSend+0x76>
|
|
800c21e: 2301 movs r3, #1
|
|
800c220: e000 b.n 800c224 <xQueueGenericSend+0x78>
|
|
800c222: 2300 movs r3, #0
|
|
800c224: 2b00 cmp r3, #0
|
|
800c226: d10b bne.n 800c240 <xQueueGenericSend+0x94>
|
|
__asm volatile
|
|
800c228: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c22c: f383 8811 msr BASEPRI, r3
|
|
800c230: f3bf 8f6f isb sy
|
|
800c234: f3bf 8f4f dsb sy
|
|
800c238: 623b str r3, [r7, #32]
|
|
}
|
|
800c23a: bf00 nop
|
|
800c23c: bf00 nop
|
|
800c23e: e7fd b.n 800c23c <xQueueGenericSend+0x90>
|
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
{
|
|
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
800c240: f001 fd6c bl 800dd1c <xTaskGetSchedulerState>
|
|
800c244: 4603 mov r3, r0
|
|
800c246: 2b00 cmp r3, #0
|
|
800c248: d102 bne.n 800c250 <xQueueGenericSend+0xa4>
|
|
800c24a: 687b ldr r3, [r7, #4]
|
|
800c24c: 2b00 cmp r3, #0
|
|
800c24e: d101 bne.n 800c254 <xQueueGenericSend+0xa8>
|
|
800c250: 2301 movs r3, #1
|
|
800c252: e000 b.n 800c256 <xQueueGenericSend+0xaa>
|
|
800c254: 2300 movs r3, #0
|
|
800c256: 2b00 cmp r3, #0
|
|
800c258: d10b bne.n 800c272 <xQueueGenericSend+0xc6>
|
|
__asm volatile
|
|
800c25a: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c25e: f383 8811 msr BASEPRI, r3
|
|
800c262: f3bf 8f6f isb sy
|
|
800c266: f3bf 8f4f dsb sy
|
|
800c26a: 61fb str r3, [r7, #28]
|
|
}
|
|
800c26c: bf00 nop
|
|
800c26e: bf00 nop
|
|
800c270: e7fd b.n 800c26e <xQueueGenericSend+0xc2>
|
|
/*lint -save -e904 This function relaxes the coding standard somewhat to
|
|
allow return statements within the function itself. This is done in the
|
|
interest of execution time efficiency. */
|
|
for( ;; )
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800c272: f002 fee9 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* Is there room on the queue now? The running task must be the
|
|
highest priority task wanting to access the queue. If the head item
|
|
in the queue is to be overwritten then it does not matter if the
|
|
queue is full. */
|
|
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
|
|
800c276: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c278: 6b9a ldr r2, [r3, #56] @ 0x38
|
|
800c27a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c27c: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800c27e: 429a cmp r2, r3
|
|
800c280: d302 bcc.n 800c288 <xQueueGenericSend+0xdc>
|
|
800c282: 683b ldr r3, [r7, #0]
|
|
800c284: 2b02 cmp r3, #2
|
|
800c286: d129 bne.n 800c2dc <xQueueGenericSend+0x130>
|
|
}
|
|
}
|
|
}
|
|
#else /* configUSE_QUEUE_SETS */
|
|
{
|
|
xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
|
|
800c288: 683a ldr r2, [r7, #0]
|
|
800c28a: 68b9 ldr r1, [r7, #8]
|
|
800c28c: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c28e: f000 fbb9 bl 800ca04 <prvCopyDataToQueue>
|
|
800c292: 62f8 str r0, [r7, #44] @ 0x2c
|
|
|
|
/* If there was a task waiting for data to arrive on the
|
|
queue then unblock it now. */
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
|
|
800c294: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c296: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
800c298: 2b00 cmp r3, #0
|
|
800c29a: d010 beq.n 800c2be <xQueueGenericSend+0x112>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
|
|
800c29c: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c29e: 3324 adds r3, #36 @ 0x24
|
|
800c2a0: 4618 mov r0, r3
|
|
800c2a2: f001 fb01 bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800c2a6: 4603 mov r3, r0
|
|
800c2a8: 2b00 cmp r3, #0
|
|
800c2aa: d013 beq.n 800c2d4 <xQueueGenericSend+0x128>
|
|
{
|
|
/* The unblocked task has a priority higher than
|
|
our own so yield immediately. Yes it is ok to do
|
|
this from within the critical section - the kernel
|
|
takes care of that. */
|
|
queueYIELD_IF_USING_PREEMPTION();
|
|
800c2ac: 4b3f ldr r3, [pc, #252] @ (800c3ac <xQueueGenericSend+0x200>)
|
|
800c2ae: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c2b2: 601a str r2, [r3, #0]
|
|
800c2b4: f3bf 8f4f dsb sy
|
|
800c2b8: f3bf 8f6f isb sy
|
|
800c2bc: e00a b.n 800c2d4 <xQueueGenericSend+0x128>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
else if( xYieldRequired != pdFALSE )
|
|
800c2be: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c2c0: 2b00 cmp r3, #0
|
|
800c2c2: d007 beq.n 800c2d4 <xQueueGenericSend+0x128>
|
|
{
|
|
/* This path is a special case that will only get
|
|
executed if the task was holding multiple mutexes and
|
|
the mutexes were given back in an order that is
|
|
different to that in which they were taken. */
|
|
queueYIELD_IF_USING_PREEMPTION();
|
|
800c2c4: 4b39 ldr r3, [pc, #228] @ (800c3ac <xQueueGenericSend+0x200>)
|
|
800c2c6: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c2ca: 601a str r2, [r3, #0]
|
|
800c2cc: f3bf 8f4f dsb sy
|
|
800c2d0: f3bf 8f6f isb sy
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif /* configUSE_QUEUE_SETS */
|
|
|
|
taskEXIT_CRITICAL();
|
|
800c2d4: f002 feea bl 800f0ac <vPortExitCritical>
|
|
return pdPASS;
|
|
800c2d8: 2301 movs r3, #1
|
|
800c2da: e063 b.n 800c3a4 <xQueueGenericSend+0x1f8>
|
|
}
|
|
else
|
|
{
|
|
if( xTicksToWait == ( TickType_t ) 0 )
|
|
800c2dc: 687b ldr r3, [r7, #4]
|
|
800c2de: 2b00 cmp r3, #0
|
|
800c2e0: d103 bne.n 800c2ea <xQueueGenericSend+0x13e>
|
|
{
|
|
/* The queue was full and no block time is specified (or
|
|
the block time has expired) so leave now. */
|
|
taskEXIT_CRITICAL();
|
|
800c2e2: f002 fee3 bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Return to the original privilege level before exiting
|
|
the function. */
|
|
traceQUEUE_SEND_FAILED( pxQueue );
|
|
return errQUEUE_FULL;
|
|
800c2e6: 2300 movs r3, #0
|
|
800c2e8: e05c b.n 800c3a4 <xQueueGenericSend+0x1f8>
|
|
}
|
|
else if( xEntryTimeSet == pdFALSE )
|
|
800c2ea: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800c2ec: 2b00 cmp r3, #0
|
|
800c2ee: d106 bne.n 800c2fe <xQueueGenericSend+0x152>
|
|
{
|
|
/* The queue was full and a block time was specified so
|
|
configure the timeout structure. */
|
|
vTaskInternalSetTimeOutState( &xTimeOut );
|
|
800c2f0: f107 0314 add.w r3, r7, #20
|
|
800c2f4: 4618 mov r0, r3
|
|
800c2f6: f001 fb9f bl 800da38 <vTaskInternalSetTimeOutState>
|
|
xEntryTimeSet = pdTRUE;
|
|
800c2fa: 2301 movs r3, #1
|
|
800c2fc: 637b str r3, [r7, #52] @ 0x34
|
|
/* Entry time was already set. */
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800c2fe: f002 fed5 bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Interrupts and other tasks can send to and receive from the queue
|
|
now the critical section has been exited. */
|
|
|
|
vTaskSuspendAll();
|
|
800c302: f001 f845 bl 800d390 <vTaskSuspendAll>
|
|
prvLockQueue( pxQueue );
|
|
800c306: f002 fe9f bl 800f048 <vPortEnterCritical>
|
|
800c30a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c30c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800c310: b25b sxtb r3, r3
|
|
800c312: f1b3 3fff cmp.w r3, #4294967295
|
|
800c316: d103 bne.n 800c320 <xQueueGenericSend+0x174>
|
|
800c318: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c31a: 2200 movs r2, #0
|
|
800c31c: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
800c320: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c322: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800c326: b25b sxtb r3, r3
|
|
800c328: f1b3 3fff cmp.w r3, #4294967295
|
|
800c32c: d103 bne.n 800c336 <xQueueGenericSend+0x18a>
|
|
800c32e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c330: 2200 movs r2, #0
|
|
800c332: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
800c336: f002 feb9 bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Update the timeout state to see if it has expired yet. */
|
|
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
|
|
800c33a: 1d3a adds r2, r7, #4
|
|
800c33c: f107 0314 add.w r3, r7, #20
|
|
800c340: 4611 mov r1, r2
|
|
800c342: 4618 mov r0, r3
|
|
800c344: f001 fb8e bl 800da64 <xTaskCheckForTimeOut>
|
|
800c348: 4603 mov r3, r0
|
|
800c34a: 2b00 cmp r3, #0
|
|
800c34c: d124 bne.n 800c398 <xQueueGenericSend+0x1ec>
|
|
{
|
|
if( prvIsQueueFull( pxQueue ) != pdFALSE )
|
|
800c34e: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c350: f000 fc50 bl 800cbf4 <prvIsQueueFull>
|
|
800c354: 4603 mov r3, r0
|
|
800c356: 2b00 cmp r3, #0
|
|
800c358: d018 beq.n 800c38c <xQueueGenericSend+0x1e0>
|
|
{
|
|
traceBLOCKING_ON_QUEUE_SEND( pxQueue );
|
|
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
|
|
800c35a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c35c: 3310 adds r3, #16
|
|
800c35e: 687a ldr r2, [r7, #4]
|
|
800c360: 4611 mov r1, r2
|
|
800c362: 4618 mov r0, r3
|
|
800c364: f001 fa10 bl 800d788 <vTaskPlaceOnEventList>
|
|
/* Unlocking the queue means queue events can effect the
|
|
event list. It is possible that interrupts occurring now
|
|
remove this task from the event list again - but as the
|
|
scheduler is suspended the task will go onto the pending
|
|
ready last instead of the actual ready list. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c368: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c36a: f000 fbdb bl 800cb24 <prvUnlockQueue>
|
|
/* Resuming the scheduler will move tasks from the pending
|
|
ready list into the ready list - so it is feasible that this
|
|
task is already in a ready list before it yields - in which
|
|
case the yield will not cause a context switch unless there
|
|
is also a higher priority task in the pending ready list. */
|
|
if( xTaskResumeAll() == pdFALSE )
|
|
800c36e: f001 f81d bl 800d3ac <xTaskResumeAll>
|
|
800c372: 4603 mov r3, r0
|
|
800c374: 2b00 cmp r3, #0
|
|
800c376: f47f af7c bne.w 800c272 <xQueueGenericSend+0xc6>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800c37a: 4b0c ldr r3, [pc, #48] @ (800c3ac <xQueueGenericSend+0x200>)
|
|
800c37c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c380: 601a str r2, [r3, #0]
|
|
800c382: f3bf 8f4f dsb sy
|
|
800c386: f3bf 8f6f isb sy
|
|
800c38a: e772 b.n 800c272 <xQueueGenericSend+0xc6>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Try again. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c38c: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c38e: f000 fbc9 bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c392: f001 f80b bl 800d3ac <xTaskResumeAll>
|
|
800c396: e76c b.n 800c272 <xQueueGenericSend+0xc6>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* The timeout has expired. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c398: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c39a: f000 fbc3 bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c39e: f001 f805 bl 800d3ac <xTaskResumeAll>
|
|
|
|
traceQUEUE_SEND_FAILED( pxQueue );
|
|
return errQUEUE_FULL;
|
|
800c3a2: 2300 movs r3, #0
|
|
}
|
|
} /*lint -restore */
|
|
}
|
|
800c3a4: 4618 mov r0, r3
|
|
800c3a6: 3738 adds r7, #56 @ 0x38
|
|
800c3a8: 46bd mov sp, r7
|
|
800c3aa: bd80 pop {r7, pc}
|
|
800c3ac: e000ed04 .word 0xe000ed04
|
|
|
|
0800c3b0 <xQueueGenericSendFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
|
|
{
|
|
800c3b0: b580 push {r7, lr}
|
|
800c3b2: b090 sub sp, #64 @ 0x40
|
|
800c3b4: af00 add r7, sp, #0
|
|
800c3b6: 60f8 str r0, [r7, #12]
|
|
800c3b8: 60b9 str r1, [r7, #8]
|
|
800c3ba: 607a str r2, [r7, #4]
|
|
800c3bc: 603b str r3, [r7, #0]
|
|
BaseType_t xReturn;
|
|
UBaseType_t uxSavedInterruptStatus;
|
|
Queue_t * const pxQueue = xQueue;
|
|
800c3be: 68fb ldr r3, [r7, #12]
|
|
800c3c0: 63bb str r3, [r7, #56] @ 0x38
|
|
|
|
configASSERT( pxQueue );
|
|
800c3c2: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c3c4: 2b00 cmp r3, #0
|
|
800c3c6: d10b bne.n 800c3e0 <xQueueGenericSendFromISR+0x30>
|
|
__asm volatile
|
|
800c3c8: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c3cc: f383 8811 msr BASEPRI, r3
|
|
800c3d0: f3bf 8f6f isb sy
|
|
800c3d4: f3bf 8f4f dsb sy
|
|
800c3d8: 62bb str r3, [r7, #40] @ 0x28
|
|
}
|
|
800c3da: bf00 nop
|
|
800c3dc: bf00 nop
|
|
800c3de: e7fd b.n 800c3dc <xQueueGenericSendFromISR+0x2c>
|
|
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
|
|
800c3e0: 68bb ldr r3, [r7, #8]
|
|
800c3e2: 2b00 cmp r3, #0
|
|
800c3e4: d103 bne.n 800c3ee <xQueueGenericSendFromISR+0x3e>
|
|
800c3e6: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c3e8: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800c3ea: 2b00 cmp r3, #0
|
|
800c3ec: d101 bne.n 800c3f2 <xQueueGenericSendFromISR+0x42>
|
|
800c3ee: 2301 movs r3, #1
|
|
800c3f0: e000 b.n 800c3f4 <xQueueGenericSendFromISR+0x44>
|
|
800c3f2: 2300 movs r3, #0
|
|
800c3f4: 2b00 cmp r3, #0
|
|
800c3f6: d10b bne.n 800c410 <xQueueGenericSendFromISR+0x60>
|
|
__asm volatile
|
|
800c3f8: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c3fc: f383 8811 msr BASEPRI, r3
|
|
800c400: f3bf 8f6f isb sy
|
|
800c404: f3bf 8f4f dsb sy
|
|
800c408: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
800c40a: bf00 nop
|
|
800c40c: bf00 nop
|
|
800c40e: e7fd b.n 800c40c <xQueueGenericSendFromISR+0x5c>
|
|
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
|
|
800c410: 683b ldr r3, [r7, #0]
|
|
800c412: 2b02 cmp r3, #2
|
|
800c414: d103 bne.n 800c41e <xQueueGenericSendFromISR+0x6e>
|
|
800c416: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c418: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800c41a: 2b01 cmp r3, #1
|
|
800c41c: d101 bne.n 800c422 <xQueueGenericSendFromISR+0x72>
|
|
800c41e: 2301 movs r3, #1
|
|
800c420: e000 b.n 800c424 <xQueueGenericSendFromISR+0x74>
|
|
800c422: 2300 movs r3, #0
|
|
800c424: 2b00 cmp r3, #0
|
|
800c426: d10b bne.n 800c440 <xQueueGenericSendFromISR+0x90>
|
|
__asm volatile
|
|
800c428: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c42c: f383 8811 msr BASEPRI, r3
|
|
800c430: f3bf 8f6f isb sy
|
|
800c434: f3bf 8f4f dsb sy
|
|
800c438: 623b str r3, [r7, #32]
|
|
}
|
|
800c43a: bf00 nop
|
|
800c43c: bf00 nop
|
|
800c43e: e7fd b.n 800c43c <xQueueGenericSendFromISR+0x8c>
|
|
that have been assigned a priority at or (logically) below the maximum
|
|
system call interrupt priority. FreeRTOS maintains a separate interrupt
|
|
safe API to ensure interrupt entry is as fast and as simple as possible.
|
|
More information (albeit Cortex-M specific) is provided on the following
|
|
link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
800c440: f002 fee2 bl 800f208 <vPortValidateInterruptPriority>
|
|
__asm volatile
|
|
800c444: f3ef 8211 mrs r2, BASEPRI
|
|
800c448: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c44c: f383 8811 msr BASEPRI, r3
|
|
800c450: f3bf 8f6f isb sy
|
|
800c454: f3bf 8f4f dsb sy
|
|
800c458: 61fa str r2, [r7, #28]
|
|
800c45a: 61bb str r3, [r7, #24]
|
|
return ulOriginalBASEPRI;
|
|
800c45c: 69fb ldr r3, [r7, #28]
|
|
/* Similar to xQueueGenericSend, except without blocking if there is no room
|
|
in the queue. Also don't directly wake a task that was blocked on a queue
|
|
read, instead return a flag to say whether a context switch is required or
|
|
not (i.e. has a task with a higher priority than us been woken by this
|
|
post). */
|
|
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
800c45e: 637b str r3, [r7, #52] @ 0x34
|
|
{
|
|
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
|
|
800c460: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c462: 6b9a ldr r2, [r3, #56] @ 0x38
|
|
800c464: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c466: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800c468: 429a cmp r2, r3
|
|
800c46a: d302 bcc.n 800c472 <xQueueGenericSendFromISR+0xc2>
|
|
800c46c: 683b ldr r3, [r7, #0]
|
|
800c46e: 2b02 cmp r3, #2
|
|
800c470: d12f bne.n 800c4d2 <xQueueGenericSendFromISR+0x122>
|
|
{
|
|
const int8_t cTxLock = pxQueue->cTxLock;
|
|
800c472: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c474: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800c478: f887 3033 strb.w r3, [r7, #51] @ 0x33
|
|
const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
|
|
800c47c: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c47e: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800c480: 62fb str r3, [r7, #44] @ 0x2c
|
|
/* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
|
|
semaphore or mutex. That means prvCopyDataToQueue() cannot result
|
|
in a task disinheriting a priority and prvCopyDataToQueue() can be
|
|
called here even though the disinherit function does not check if
|
|
the scheduler is suspended before accessing the ready lists. */
|
|
( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
|
|
800c482: 683a ldr r2, [r7, #0]
|
|
800c484: 68b9 ldr r1, [r7, #8]
|
|
800c486: 6bb8 ldr r0, [r7, #56] @ 0x38
|
|
800c488: f000 fabc bl 800ca04 <prvCopyDataToQueue>
|
|
|
|
/* The event list is not altered if the queue is locked. This will
|
|
be done when the queue is unlocked later. */
|
|
if( cTxLock == queueUNLOCKED )
|
|
800c48c: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
|
|
800c490: f1b3 3fff cmp.w r3, #4294967295
|
|
800c494: d112 bne.n 800c4bc <xQueueGenericSendFromISR+0x10c>
|
|
}
|
|
}
|
|
}
|
|
#else /* configUSE_QUEUE_SETS */
|
|
{
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
|
|
800c496: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c498: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
800c49a: 2b00 cmp r3, #0
|
|
800c49c: d016 beq.n 800c4cc <xQueueGenericSendFromISR+0x11c>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
|
|
800c49e: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c4a0: 3324 adds r3, #36 @ 0x24
|
|
800c4a2: 4618 mov r0, r3
|
|
800c4a4: f001 fa00 bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800c4a8: 4603 mov r3, r0
|
|
800c4aa: 2b00 cmp r3, #0
|
|
800c4ac: d00e beq.n 800c4cc <xQueueGenericSendFromISR+0x11c>
|
|
{
|
|
/* The task waiting has a higher priority so record that a
|
|
context switch is required. */
|
|
if( pxHigherPriorityTaskWoken != NULL )
|
|
800c4ae: 687b ldr r3, [r7, #4]
|
|
800c4b0: 2b00 cmp r3, #0
|
|
800c4b2: d00b beq.n 800c4cc <xQueueGenericSendFromISR+0x11c>
|
|
{
|
|
*pxHigherPriorityTaskWoken = pdTRUE;
|
|
800c4b4: 687b ldr r3, [r7, #4]
|
|
800c4b6: 2201 movs r2, #1
|
|
800c4b8: 601a str r2, [r3, #0]
|
|
800c4ba: e007 b.n 800c4cc <xQueueGenericSendFromISR+0x11c>
|
|
}
|
|
else
|
|
{
|
|
/* Increment the lock count so the task that unlocks the queue
|
|
knows that data was posted while it was locked. */
|
|
pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
|
|
800c4bc: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
|
|
800c4c0: 3301 adds r3, #1
|
|
800c4c2: b2db uxtb r3, r3
|
|
800c4c4: b25a sxtb r2, r3
|
|
800c4c6: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800c4c8: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
}
|
|
|
|
xReturn = pdPASS;
|
|
800c4cc: 2301 movs r3, #1
|
|
800c4ce: 63fb str r3, [r7, #60] @ 0x3c
|
|
{
|
|
800c4d0: e001 b.n 800c4d6 <xQueueGenericSendFromISR+0x126>
|
|
}
|
|
else
|
|
{
|
|
traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
|
|
xReturn = errQUEUE_FULL;
|
|
800c4d2: 2300 movs r3, #0
|
|
800c4d4: 63fb str r3, [r7, #60] @ 0x3c
|
|
800c4d6: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800c4d8: 617b str r3, [r7, #20]
|
|
__asm volatile
|
|
800c4da: 697b ldr r3, [r7, #20]
|
|
800c4dc: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800c4e0: bf00 nop
|
|
}
|
|
}
|
|
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
|
|
return xReturn;
|
|
800c4e2: 6bfb ldr r3, [r7, #60] @ 0x3c
|
|
}
|
|
800c4e4: 4618 mov r0, r3
|
|
800c4e6: 3740 adds r7, #64 @ 0x40
|
|
800c4e8: 46bd mov sp, r7
|
|
800c4ea: bd80 pop {r7, pc}
|
|
|
|
0800c4ec <xQueueReceive>:
|
|
return xReturn;
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
|
|
{
|
|
800c4ec: b580 push {r7, lr}
|
|
800c4ee: b08c sub sp, #48 @ 0x30
|
|
800c4f0: af00 add r7, sp, #0
|
|
800c4f2: 60f8 str r0, [r7, #12]
|
|
800c4f4: 60b9 str r1, [r7, #8]
|
|
800c4f6: 607a str r2, [r7, #4]
|
|
BaseType_t xEntryTimeSet = pdFALSE;
|
|
800c4f8: 2300 movs r3, #0
|
|
800c4fa: 62fb str r3, [r7, #44] @ 0x2c
|
|
TimeOut_t xTimeOut;
|
|
Queue_t * const pxQueue = xQueue;
|
|
800c4fc: 68fb ldr r3, [r7, #12]
|
|
800c4fe: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
/* Check the pointer is not NULL. */
|
|
configASSERT( ( pxQueue ) );
|
|
800c500: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c502: 2b00 cmp r3, #0
|
|
800c504: d10b bne.n 800c51e <xQueueReceive+0x32>
|
|
__asm volatile
|
|
800c506: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c50a: f383 8811 msr BASEPRI, r3
|
|
800c50e: f3bf 8f6f isb sy
|
|
800c512: f3bf 8f4f dsb sy
|
|
800c516: 623b str r3, [r7, #32]
|
|
}
|
|
800c518: bf00 nop
|
|
800c51a: bf00 nop
|
|
800c51c: e7fd b.n 800c51a <xQueueReceive+0x2e>
|
|
|
|
/* The buffer into which data is received can only be NULL if the data size
|
|
is zero (so no data is copied into the buffer. */
|
|
configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
|
|
800c51e: 68bb ldr r3, [r7, #8]
|
|
800c520: 2b00 cmp r3, #0
|
|
800c522: d103 bne.n 800c52c <xQueueReceive+0x40>
|
|
800c524: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c526: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800c528: 2b00 cmp r3, #0
|
|
800c52a: d101 bne.n 800c530 <xQueueReceive+0x44>
|
|
800c52c: 2301 movs r3, #1
|
|
800c52e: e000 b.n 800c532 <xQueueReceive+0x46>
|
|
800c530: 2300 movs r3, #0
|
|
800c532: 2b00 cmp r3, #0
|
|
800c534: d10b bne.n 800c54e <xQueueReceive+0x62>
|
|
__asm volatile
|
|
800c536: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c53a: f383 8811 msr BASEPRI, r3
|
|
800c53e: f3bf 8f6f isb sy
|
|
800c542: f3bf 8f4f dsb sy
|
|
800c546: 61fb str r3, [r7, #28]
|
|
}
|
|
800c548: bf00 nop
|
|
800c54a: bf00 nop
|
|
800c54c: e7fd b.n 800c54a <xQueueReceive+0x5e>
|
|
|
|
/* Cannot block if the scheduler is suspended. */
|
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
{
|
|
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
800c54e: f001 fbe5 bl 800dd1c <xTaskGetSchedulerState>
|
|
800c552: 4603 mov r3, r0
|
|
800c554: 2b00 cmp r3, #0
|
|
800c556: d102 bne.n 800c55e <xQueueReceive+0x72>
|
|
800c558: 687b ldr r3, [r7, #4]
|
|
800c55a: 2b00 cmp r3, #0
|
|
800c55c: d101 bne.n 800c562 <xQueueReceive+0x76>
|
|
800c55e: 2301 movs r3, #1
|
|
800c560: e000 b.n 800c564 <xQueueReceive+0x78>
|
|
800c562: 2300 movs r3, #0
|
|
800c564: 2b00 cmp r3, #0
|
|
800c566: d10b bne.n 800c580 <xQueueReceive+0x94>
|
|
__asm volatile
|
|
800c568: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c56c: f383 8811 msr BASEPRI, r3
|
|
800c570: f3bf 8f6f isb sy
|
|
800c574: f3bf 8f4f dsb sy
|
|
800c578: 61bb str r3, [r7, #24]
|
|
}
|
|
800c57a: bf00 nop
|
|
800c57c: bf00 nop
|
|
800c57e: e7fd b.n 800c57c <xQueueReceive+0x90>
|
|
/*lint -save -e904 This function relaxes the coding standard somewhat to
|
|
allow return statements within the function itself. This is done in the
|
|
interest of execution time efficiency. */
|
|
for( ;; )
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800c580: f002 fd62 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
|
|
800c584: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c586: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800c588: 627b str r3, [r7, #36] @ 0x24
|
|
|
|
/* Is there data in the queue now? To be running the calling task
|
|
must be the highest priority task wanting to access the queue. */
|
|
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
|
|
800c58a: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800c58c: 2b00 cmp r3, #0
|
|
800c58e: d01f beq.n 800c5d0 <xQueueReceive+0xe4>
|
|
{
|
|
/* Data available, remove one item. */
|
|
prvCopyDataFromQueue( pxQueue, pvBuffer );
|
|
800c590: 68b9 ldr r1, [r7, #8]
|
|
800c592: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c594: f000 faa0 bl 800cad8 <prvCopyDataFromQueue>
|
|
traceQUEUE_RECEIVE( pxQueue );
|
|
pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
|
|
800c598: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800c59a: 1e5a subs r2, r3, #1
|
|
800c59c: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c59e: 639a str r2, [r3, #56] @ 0x38
|
|
|
|
/* There is now space in the queue, were any tasks waiting to
|
|
post to the queue? If so, unblock the highest priority waiting
|
|
task. */
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
|
|
800c5a0: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c5a2: 691b ldr r3, [r3, #16]
|
|
800c5a4: 2b00 cmp r3, #0
|
|
800c5a6: d00f beq.n 800c5c8 <xQueueReceive+0xdc>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
|
|
800c5a8: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c5aa: 3310 adds r3, #16
|
|
800c5ac: 4618 mov r0, r3
|
|
800c5ae: f001 f97b bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800c5b2: 4603 mov r3, r0
|
|
800c5b4: 2b00 cmp r3, #0
|
|
800c5b6: d007 beq.n 800c5c8 <xQueueReceive+0xdc>
|
|
{
|
|
queueYIELD_IF_USING_PREEMPTION();
|
|
800c5b8: 4b3c ldr r3, [pc, #240] @ (800c6ac <xQueueReceive+0x1c0>)
|
|
800c5ba: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c5be: 601a str r2, [r3, #0]
|
|
800c5c0: f3bf 8f4f dsb sy
|
|
800c5c4: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
taskEXIT_CRITICAL();
|
|
800c5c8: f002 fd70 bl 800f0ac <vPortExitCritical>
|
|
return pdPASS;
|
|
800c5cc: 2301 movs r3, #1
|
|
800c5ce: e069 b.n 800c6a4 <xQueueReceive+0x1b8>
|
|
}
|
|
else
|
|
{
|
|
if( xTicksToWait == ( TickType_t ) 0 )
|
|
800c5d0: 687b ldr r3, [r7, #4]
|
|
800c5d2: 2b00 cmp r3, #0
|
|
800c5d4: d103 bne.n 800c5de <xQueueReceive+0xf2>
|
|
{
|
|
/* The queue was empty and no block time is specified (or
|
|
the block time has expired) so leave now. */
|
|
taskEXIT_CRITICAL();
|
|
800c5d6: f002 fd69 bl 800f0ac <vPortExitCritical>
|
|
traceQUEUE_RECEIVE_FAILED( pxQueue );
|
|
return errQUEUE_EMPTY;
|
|
800c5da: 2300 movs r3, #0
|
|
800c5dc: e062 b.n 800c6a4 <xQueueReceive+0x1b8>
|
|
}
|
|
else if( xEntryTimeSet == pdFALSE )
|
|
800c5de: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c5e0: 2b00 cmp r3, #0
|
|
800c5e2: d106 bne.n 800c5f2 <xQueueReceive+0x106>
|
|
{
|
|
/* The queue was empty and a block time was specified so
|
|
configure the timeout structure. */
|
|
vTaskInternalSetTimeOutState( &xTimeOut );
|
|
800c5e4: f107 0310 add.w r3, r7, #16
|
|
800c5e8: 4618 mov r0, r3
|
|
800c5ea: f001 fa25 bl 800da38 <vTaskInternalSetTimeOutState>
|
|
xEntryTimeSet = pdTRUE;
|
|
800c5ee: 2301 movs r3, #1
|
|
800c5f0: 62fb str r3, [r7, #44] @ 0x2c
|
|
/* Entry time was already set. */
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800c5f2: f002 fd5b bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Interrupts and other tasks can send to and receive from the queue
|
|
now the critical section has been exited. */
|
|
|
|
vTaskSuspendAll();
|
|
800c5f6: f000 fecb bl 800d390 <vTaskSuspendAll>
|
|
prvLockQueue( pxQueue );
|
|
800c5fa: f002 fd25 bl 800f048 <vPortEnterCritical>
|
|
800c5fe: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c600: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800c604: b25b sxtb r3, r3
|
|
800c606: f1b3 3fff cmp.w r3, #4294967295
|
|
800c60a: d103 bne.n 800c614 <xQueueReceive+0x128>
|
|
800c60c: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c60e: 2200 movs r2, #0
|
|
800c610: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
800c614: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c616: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800c61a: b25b sxtb r3, r3
|
|
800c61c: f1b3 3fff cmp.w r3, #4294967295
|
|
800c620: d103 bne.n 800c62a <xQueueReceive+0x13e>
|
|
800c622: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c624: 2200 movs r2, #0
|
|
800c626: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
800c62a: f002 fd3f bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Update the timeout state to see if it has expired yet. */
|
|
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
|
|
800c62e: 1d3a adds r2, r7, #4
|
|
800c630: f107 0310 add.w r3, r7, #16
|
|
800c634: 4611 mov r1, r2
|
|
800c636: 4618 mov r0, r3
|
|
800c638: f001 fa14 bl 800da64 <xTaskCheckForTimeOut>
|
|
800c63c: 4603 mov r3, r0
|
|
800c63e: 2b00 cmp r3, #0
|
|
800c640: d123 bne.n 800c68a <xQueueReceive+0x19e>
|
|
{
|
|
/* The timeout has not expired. If the queue is still empty place
|
|
the task on the list of tasks waiting to receive from the queue. */
|
|
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
|
|
800c642: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c644: f000 fac0 bl 800cbc8 <prvIsQueueEmpty>
|
|
800c648: 4603 mov r3, r0
|
|
800c64a: 2b00 cmp r3, #0
|
|
800c64c: d017 beq.n 800c67e <xQueueReceive+0x192>
|
|
{
|
|
traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
|
|
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
|
|
800c64e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c650: 3324 adds r3, #36 @ 0x24
|
|
800c652: 687a ldr r2, [r7, #4]
|
|
800c654: 4611 mov r1, r2
|
|
800c656: 4618 mov r0, r3
|
|
800c658: f001 f896 bl 800d788 <vTaskPlaceOnEventList>
|
|
prvUnlockQueue( pxQueue );
|
|
800c65c: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c65e: f000 fa61 bl 800cb24 <prvUnlockQueue>
|
|
if( xTaskResumeAll() == pdFALSE )
|
|
800c662: f000 fea3 bl 800d3ac <xTaskResumeAll>
|
|
800c666: 4603 mov r3, r0
|
|
800c668: 2b00 cmp r3, #0
|
|
800c66a: d189 bne.n 800c580 <xQueueReceive+0x94>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800c66c: 4b0f ldr r3, [pc, #60] @ (800c6ac <xQueueReceive+0x1c0>)
|
|
800c66e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c672: 601a str r2, [r3, #0]
|
|
800c674: f3bf 8f4f dsb sy
|
|
800c678: f3bf 8f6f isb sy
|
|
800c67c: e780 b.n 800c580 <xQueueReceive+0x94>
|
|
}
|
|
else
|
|
{
|
|
/* The queue contains data again. Loop back to try and read the
|
|
data. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c67e: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c680: f000 fa50 bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c684: f000 fe92 bl 800d3ac <xTaskResumeAll>
|
|
800c688: e77a b.n 800c580 <xQueueReceive+0x94>
|
|
}
|
|
else
|
|
{
|
|
/* Timed out. If there is no data in the queue exit, otherwise loop
|
|
back and attempt to read the data. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c68a: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c68c: f000 fa4a bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c690: f000 fe8c bl 800d3ac <xTaskResumeAll>
|
|
|
|
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
|
|
800c694: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800c696: f000 fa97 bl 800cbc8 <prvIsQueueEmpty>
|
|
800c69a: 4603 mov r3, r0
|
|
800c69c: 2b00 cmp r3, #0
|
|
800c69e: f43f af6f beq.w 800c580 <xQueueReceive+0x94>
|
|
{
|
|
traceQUEUE_RECEIVE_FAILED( pxQueue );
|
|
return errQUEUE_EMPTY;
|
|
800c6a2: 2300 movs r3, #0
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
} /*lint -restore */
|
|
}
|
|
800c6a4: 4618 mov r0, r3
|
|
800c6a6: 3730 adds r7, #48 @ 0x30
|
|
800c6a8: 46bd mov sp, r7
|
|
800c6aa: bd80 pop {r7, pc}
|
|
800c6ac: e000ed04 .word 0xe000ed04
|
|
|
|
0800c6b0 <xQueueSemaphoreTake>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait )
|
|
{
|
|
800c6b0: b580 push {r7, lr}
|
|
800c6b2: b08e sub sp, #56 @ 0x38
|
|
800c6b4: af00 add r7, sp, #0
|
|
800c6b6: 6078 str r0, [r7, #4]
|
|
800c6b8: 6039 str r1, [r7, #0]
|
|
BaseType_t xEntryTimeSet = pdFALSE;
|
|
800c6ba: 2300 movs r3, #0
|
|
800c6bc: 637b str r3, [r7, #52] @ 0x34
|
|
TimeOut_t xTimeOut;
|
|
Queue_t * const pxQueue = xQueue;
|
|
800c6be: 687b ldr r3, [r7, #4]
|
|
800c6c0: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
#if( configUSE_MUTEXES == 1 )
|
|
BaseType_t xInheritanceOccurred = pdFALSE;
|
|
800c6c2: 2300 movs r3, #0
|
|
800c6c4: 633b str r3, [r7, #48] @ 0x30
|
|
#endif
|
|
|
|
/* Check the queue pointer is not NULL. */
|
|
configASSERT( ( pxQueue ) );
|
|
800c6c6: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c6c8: 2b00 cmp r3, #0
|
|
800c6ca: d10b bne.n 800c6e4 <xQueueSemaphoreTake+0x34>
|
|
__asm volatile
|
|
800c6cc: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c6d0: f383 8811 msr BASEPRI, r3
|
|
800c6d4: f3bf 8f6f isb sy
|
|
800c6d8: f3bf 8f4f dsb sy
|
|
800c6dc: 623b str r3, [r7, #32]
|
|
}
|
|
800c6de: bf00 nop
|
|
800c6e0: bf00 nop
|
|
800c6e2: e7fd b.n 800c6e0 <xQueueSemaphoreTake+0x30>
|
|
|
|
/* Check this really is a semaphore, in which case the item size will be
|
|
0. */
|
|
configASSERT( pxQueue->uxItemSize == 0 );
|
|
800c6e4: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c6e6: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800c6e8: 2b00 cmp r3, #0
|
|
800c6ea: d00b beq.n 800c704 <xQueueSemaphoreTake+0x54>
|
|
__asm volatile
|
|
800c6ec: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c6f0: f383 8811 msr BASEPRI, r3
|
|
800c6f4: f3bf 8f6f isb sy
|
|
800c6f8: f3bf 8f4f dsb sy
|
|
800c6fc: 61fb str r3, [r7, #28]
|
|
}
|
|
800c6fe: bf00 nop
|
|
800c700: bf00 nop
|
|
800c702: e7fd b.n 800c700 <xQueueSemaphoreTake+0x50>
|
|
|
|
/* Cannot block if the scheduler is suspended. */
|
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
{
|
|
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
800c704: f001 fb0a bl 800dd1c <xTaskGetSchedulerState>
|
|
800c708: 4603 mov r3, r0
|
|
800c70a: 2b00 cmp r3, #0
|
|
800c70c: d102 bne.n 800c714 <xQueueSemaphoreTake+0x64>
|
|
800c70e: 683b ldr r3, [r7, #0]
|
|
800c710: 2b00 cmp r3, #0
|
|
800c712: d101 bne.n 800c718 <xQueueSemaphoreTake+0x68>
|
|
800c714: 2301 movs r3, #1
|
|
800c716: e000 b.n 800c71a <xQueueSemaphoreTake+0x6a>
|
|
800c718: 2300 movs r3, #0
|
|
800c71a: 2b00 cmp r3, #0
|
|
800c71c: d10b bne.n 800c736 <xQueueSemaphoreTake+0x86>
|
|
__asm volatile
|
|
800c71e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c722: f383 8811 msr BASEPRI, r3
|
|
800c726: f3bf 8f6f isb sy
|
|
800c72a: f3bf 8f4f dsb sy
|
|
800c72e: 61bb str r3, [r7, #24]
|
|
}
|
|
800c730: bf00 nop
|
|
800c732: bf00 nop
|
|
800c734: e7fd b.n 800c732 <xQueueSemaphoreTake+0x82>
|
|
/*lint -save -e904 This function relaxes the coding standard somewhat to allow return
|
|
statements within the function itself. This is done in the interest
|
|
of execution time efficiency. */
|
|
for( ;; )
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800c736: f002 fc87 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* Semaphores are queues with an item size of 0, and where the
|
|
number of messages in the queue is the semaphore's count value. */
|
|
const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting;
|
|
800c73a: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c73c: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800c73e: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
/* Is there data in the queue now? To be running the calling task
|
|
must be the highest priority task wanting to access the queue. */
|
|
if( uxSemaphoreCount > ( UBaseType_t ) 0 )
|
|
800c740: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c742: 2b00 cmp r3, #0
|
|
800c744: d024 beq.n 800c790 <xQueueSemaphoreTake+0xe0>
|
|
{
|
|
traceQUEUE_RECEIVE( pxQueue );
|
|
|
|
/* Semaphores are queues with a data size of zero and where the
|
|
messages waiting is the semaphore's count. Reduce the count. */
|
|
pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1;
|
|
800c746: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c748: 1e5a subs r2, r3, #1
|
|
800c74a: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c74c: 639a str r2, [r3, #56] @ 0x38
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
{
|
|
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
|
800c74e: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c750: 681b ldr r3, [r3, #0]
|
|
800c752: 2b00 cmp r3, #0
|
|
800c754: d104 bne.n 800c760 <xQueueSemaphoreTake+0xb0>
|
|
{
|
|
/* Record the information required to implement
|
|
priority inheritance should it become necessary. */
|
|
pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount();
|
|
800c756: f001 fc73 bl 800e040 <pvTaskIncrementMutexHeldCount>
|
|
800c75a: 4602 mov r2, r0
|
|
800c75c: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c75e: 609a str r2, [r3, #8]
|
|
}
|
|
#endif /* configUSE_MUTEXES */
|
|
|
|
/* Check to see if other tasks are blocked waiting to give the
|
|
semaphore, and if so, unblock the highest priority such task. */
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
|
|
800c760: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c762: 691b ldr r3, [r3, #16]
|
|
800c764: 2b00 cmp r3, #0
|
|
800c766: d00f beq.n 800c788 <xQueueSemaphoreTake+0xd8>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
|
|
800c768: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c76a: 3310 adds r3, #16
|
|
800c76c: 4618 mov r0, r3
|
|
800c76e: f001 f89b bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800c772: 4603 mov r3, r0
|
|
800c774: 2b00 cmp r3, #0
|
|
800c776: d007 beq.n 800c788 <xQueueSemaphoreTake+0xd8>
|
|
{
|
|
queueYIELD_IF_USING_PREEMPTION();
|
|
800c778: 4b54 ldr r3, [pc, #336] @ (800c8cc <xQueueSemaphoreTake+0x21c>)
|
|
800c77a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c77e: 601a str r2, [r3, #0]
|
|
800c780: f3bf 8f4f dsb sy
|
|
800c784: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
taskEXIT_CRITICAL();
|
|
800c788: f002 fc90 bl 800f0ac <vPortExitCritical>
|
|
return pdPASS;
|
|
800c78c: 2301 movs r3, #1
|
|
800c78e: e098 b.n 800c8c2 <xQueueSemaphoreTake+0x212>
|
|
}
|
|
else
|
|
{
|
|
if( xTicksToWait == ( TickType_t ) 0 )
|
|
800c790: 683b ldr r3, [r7, #0]
|
|
800c792: 2b00 cmp r3, #0
|
|
800c794: d112 bne.n 800c7bc <xQueueSemaphoreTake+0x10c>
|
|
/* For inheritance to have occurred there must have been an
|
|
initial timeout, and an adjusted timeout cannot become 0, as
|
|
if it were 0 the function would have exited. */
|
|
#if( configUSE_MUTEXES == 1 )
|
|
{
|
|
configASSERT( xInheritanceOccurred == pdFALSE );
|
|
800c796: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c798: 2b00 cmp r3, #0
|
|
800c79a: d00b beq.n 800c7b4 <xQueueSemaphoreTake+0x104>
|
|
__asm volatile
|
|
800c79c: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c7a0: f383 8811 msr BASEPRI, r3
|
|
800c7a4: f3bf 8f6f isb sy
|
|
800c7a8: f3bf 8f4f dsb sy
|
|
800c7ac: 617b str r3, [r7, #20]
|
|
}
|
|
800c7ae: bf00 nop
|
|
800c7b0: bf00 nop
|
|
800c7b2: e7fd b.n 800c7b0 <xQueueSemaphoreTake+0x100>
|
|
}
|
|
#endif /* configUSE_MUTEXES */
|
|
|
|
/* The semaphore count was 0 and no block time is specified
|
|
(or the block time has expired) so exit now. */
|
|
taskEXIT_CRITICAL();
|
|
800c7b4: f002 fc7a bl 800f0ac <vPortExitCritical>
|
|
traceQUEUE_RECEIVE_FAILED( pxQueue );
|
|
return errQUEUE_EMPTY;
|
|
800c7b8: 2300 movs r3, #0
|
|
800c7ba: e082 b.n 800c8c2 <xQueueSemaphoreTake+0x212>
|
|
}
|
|
else if( xEntryTimeSet == pdFALSE )
|
|
800c7bc: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800c7be: 2b00 cmp r3, #0
|
|
800c7c0: d106 bne.n 800c7d0 <xQueueSemaphoreTake+0x120>
|
|
{
|
|
/* The semaphore count was 0 and a block time was specified
|
|
so configure the timeout structure ready to block. */
|
|
vTaskInternalSetTimeOutState( &xTimeOut );
|
|
800c7c2: f107 030c add.w r3, r7, #12
|
|
800c7c6: 4618 mov r0, r3
|
|
800c7c8: f001 f936 bl 800da38 <vTaskInternalSetTimeOutState>
|
|
xEntryTimeSet = pdTRUE;
|
|
800c7cc: 2301 movs r3, #1
|
|
800c7ce: 637b str r3, [r7, #52] @ 0x34
|
|
/* Entry time was already set. */
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800c7d0: f002 fc6c bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Interrupts and other tasks can give to and take from the semaphore
|
|
now the critical section has been exited. */
|
|
|
|
vTaskSuspendAll();
|
|
800c7d4: f000 fddc bl 800d390 <vTaskSuspendAll>
|
|
prvLockQueue( pxQueue );
|
|
800c7d8: f002 fc36 bl 800f048 <vPortEnterCritical>
|
|
800c7dc: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c7de: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800c7e2: b25b sxtb r3, r3
|
|
800c7e4: f1b3 3fff cmp.w r3, #4294967295
|
|
800c7e8: d103 bne.n 800c7f2 <xQueueSemaphoreTake+0x142>
|
|
800c7ea: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c7ec: 2200 movs r2, #0
|
|
800c7ee: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
800c7f2: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c7f4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800c7f8: b25b sxtb r3, r3
|
|
800c7fa: f1b3 3fff cmp.w r3, #4294967295
|
|
800c7fe: d103 bne.n 800c808 <xQueueSemaphoreTake+0x158>
|
|
800c800: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c802: 2200 movs r2, #0
|
|
800c804: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
800c808: f002 fc50 bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Update the timeout state to see if it has expired yet. */
|
|
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
|
|
800c80c: 463a mov r2, r7
|
|
800c80e: f107 030c add.w r3, r7, #12
|
|
800c812: 4611 mov r1, r2
|
|
800c814: 4618 mov r0, r3
|
|
800c816: f001 f925 bl 800da64 <xTaskCheckForTimeOut>
|
|
800c81a: 4603 mov r3, r0
|
|
800c81c: 2b00 cmp r3, #0
|
|
800c81e: d132 bne.n 800c886 <xQueueSemaphoreTake+0x1d6>
|
|
{
|
|
/* A block time is specified and not expired. If the semaphore
|
|
count is 0 then enter the Blocked state to wait for a semaphore to
|
|
become available. As semaphores are implemented with queues the
|
|
queue being empty is equivalent to the semaphore count being 0. */
|
|
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
|
|
800c820: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c822: f000 f9d1 bl 800cbc8 <prvIsQueueEmpty>
|
|
800c826: 4603 mov r3, r0
|
|
800c828: 2b00 cmp r3, #0
|
|
800c82a: d026 beq.n 800c87a <xQueueSemaphoreTake+0x1ca>
|
|
{
|
|
traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
{
|
|
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
|
800c82c: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c82e: 681b ldr r3, [r3, #0]
|
|
800c830: 2b00 cmp r3, #0
|
|
800c832: d109 bne.n 800c848 <xQueueSemaphoreTake+0x198>
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800c834: f002 fc08 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder );
|
|
800c838: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c83a: 689b ldr r3, [r3, #8]
|
|
800c83c: 4618 mov r0, r3
|
|
800c83e: f001 fa8b bl 800dd58 <xTaskPriorityInherit>
|
|
800c842: 6338 str r0, [r7, #48] @ 0x30
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800c844: f002 fc32 bl 800f0ac <vPortExitCritical>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif
|
|
|
|
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
|
|
800c848: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c84a: 3324 adds r3, #36 @ 0x24
|
|
800c84c: 683a ldr r2, [r7, #0]
|
|
800c84e: 4611 mov r1, r2
|
|
800c850: 4618 mov r0, r3
|
|
800c852: f000 ff99 bl 800d788 <vTaskPlaceOnEventList>
|
|
prvUnlockQueue( pxQueue );
|
|
800c856: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c858: f000 f964 bl 800cb24 <prvUnlockQueue>
|
|
if( xTaskResumeAll() == pdFALSE )
|
|
800c85c: f000 fda6 bl 800d3ac <xTaskResumeAll>
|
|
800c860: 4603 mov r3, r0
|
|
800c862: 2b00 cmp r3, #0
|
|
800c864: f47f af67 bne.w 800c736 <xQueueSemaphoreTake+0x86>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800c868: 4b18 ldr r3, [pc, #96] @ (800c8cc <xQueueSemaphoreTake+0x21c>)
|
|
800c86a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800c86e: 601a str r2, [r3, #0]
|
|
800c870: f3bf 8f4f dsb sy
|
|
800c874: f3bf 8f6f isb sy
|
|
800c878: e75d b.n 800c736 <xQueueSemaphoreTake+0x86>
|
|
}
|
|
else
|
|
{
|
|
/* There was no timeout and the semaphore count was not 0, so
|
|
attempt to take the semaphore again. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c87a: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c87c: f000 f952 bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c880: f000 fd94 bl 800d3ac <xTaskResumeAll>
|
|
800c884: e757 b.n 800c736 <xQueueSemaphoreTake+0x86>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
/* Timed out. */
|
|
prvUnlockQueue( pxQueue );
|
|
800c886: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c888: f000 f94c bl 800cb24 <prvUnlockQueue>
|
|
( void ) xTaskResumeAll();
|
|
800c88c: f000 fd8e bl 800d3ac <xTaskResumeAll>
|
|
|
|
/* If the semaphore count is 0 exit now as the timeout has
|
|
expired. Otherwise return to attempt to take the semaphore that is
|
|
known to be available. As semaphores are implemented by queues the
|
|
queue being empty is equivalent to the semaphore count being 0. */
|
|
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
|
|
800c890: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c892: f000 f999 bl 800cbc8 <prvIsQueueEmpty>
|
|
800c896: 4603 mov r3, r0
|
|
800c898: 2b00 cmp r3, #0
|
|
800c89a: f43f af4c beq.w 800c736 <xQueueSemaphoreTake+0x86>
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
{
|
|
/* xInheritanceOccurred could only have be set if
|
|
pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to
|
|
test the mutex type again to check it is actually a mutex. */
|
|
if( xInheritanceOccurred != pdFALSE )
|
|
800c89e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c8a0: 2b00 cmp r3, #0
|
|
800c8a2: d00d beq.n 800c8c0 <xQueueSemaphoreTake+0x210>
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800c8a4: f002 fbd0 bl 800f048 <vPortEnterCritical>
|
|
/* This task blocking on the mutex caused another
|
|
task to inherit this task's priority. Now this task
|
|
has timed out the priority should be disinherited
|
|
again, but only as low as the next highest priority
|
|
task that is waiting for the same mutex. */
|
|
uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue );
|
|
800c8a8: 6af8 ldr r0, [r7, #44] @ 0x2c
|
|
800c8aa: f000 f893 bl 800c9d4 <prvGetDisinheritPriorityAfterTimeout>
|
|
800c8ae: 6278 str r0, [r7, #36] @ 0x24
|
|
vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority );
|
|
800c8b0: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c8b2: 689b ldr r3, [r3, #8]
|
|
800c8b4: 6a79 ldr r1, [r7, #36] @ 0x24
|
|
800c8b6: 4618 mov r0, r3
|
|
800c8b8: f001 fb26 bl 800df08 <vTaskPriorityDisinheritAfterTimeout>
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800c8bc: f002 fbf6 bl 800f0ac <vPortExitCritical>
|
|
}
|
|
}
|
|
#endif /* configUSE_MUTEXES */
|
|
|
|
traceQUEUE_RECEIVE_FAILED( pxQueue );
|
|
return errQUEUE_EMPTY;
|
|
800c8c0: 2300 movs r3, #0
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
} /*lint -restore */
|
|
}
|
|
800c8c2: 4618 mov r0, r3
|
|
800c8c4: 3738 adds r7, #56 @ 0x38
|
|
800c8c6: 46bd mov sp, r7
|
|
800c8c8: bd80 pop {r7, pc}
|
|
800c8ca: bf00 nop
|
|
800c8cc: e000ed04 .word 0xe000ed04
|
|
|
|
0800c8d0 <xQueueReceiveFromISR>:
|
|
} /*lint -restore */
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken )
|
|
{
|
|
800c8d0: b580 push {r7, lr}
|
|
800c8d2: b08e sub sp, #56 @ 0x38
|
|
800c8d4: af00 add r7, sp, #0
|
|
800c8d6: 60f8 str r0, [r7, #12]
|
|
800c8d8: 60b9 str r1, [r7, #8]
|
|
800c8da: 607a str r2, [r7, #4]
|
|
BaseType_t xReturn;
|
|
UBaseType_t uxSavedInterruptStatus;
|
|
Queue_t * const pxQueue = xQueue;
|
|
800c8dc: 68fb ldr r3, [r7, #12]
|
|
800c8de: 633b str r3, [r7, #48] @ 0x30
|
|
|
|
configASSERT( pxQueue );
|
|
800c8e0: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c8e2: 2b00 cmp r3, #0
|
|
800c8e4: d10b bne.n 800c8fe <xQueueReceiveFromISR+0x2e>
|
|
__asm volatile
|
|
800c8e6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c8ea: f383 8811 msr BASEPRI, r3
|
|
800c8ee: f3bf 8f6f isb sy
|
|
800c8f2: f3bf 8f4f dsb sy
|
|
800c8f6: 623b str r3, [r7, #32]
|
|
}
|
|
800c8f8: bf00 nop
|
|
800c8fa: bf00 nop
|
|
800c8fc: e7fd b.n 800c8fa <xQueueReceiveFromISR+0x2a>
|
|
configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
|
|
800c8fe: 68bb ldr r3, [r7, #8]
|
|
800c900: 2b00 cmp r3, #0
|
|
800c902: d103 bne.n 800c90c <xQueueReceiveFromISR+0x3c>
|
|
800c904: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c906: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800c908: 2b00 cmp r3, #0
|
|
800c90a: d101 bne.n 800c910 <xQueueReceiveFromISR+0x40>
|
|
800c90c: 2301 movs r3, #1
|
|
800c90e: e000 b.n 800c912 <xQueueReceiveFromISR+0x42>
|
|
800c910: 2300 movs r3, #0
|
|
800c912: 2b00 cmp r3, #0
|
|
800c914: d10b bne.n 800c92e <xQueueReceiveFromISR+0x5e>
|
|
__asm volatile
|
|
800c916: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c91a: f383 8811 msr BASEPRI, r3
|
|
800c91e: f3bf 8f6f isb sy
|
|
800c922: f3bf 8f4f dsb sy
|
|
800c926: 61fb str r3, [r7, #28]
|
|
}
|
|
800c928: bf00 nop
|
|
800c92a: bf00 nop
|
|
800c92c: e7fd b.n 800c92a <xQueueReceiveFromISR+0x5a>
|
|
that have been assigned a priority at or (logically) below the maximum
|
|
system call interrupt priority. FreeRTOS maintains a separate interrupt
|
|
safe API to ensure interrupt entry is as fast and as simple as possible.
|
|
More information (albeit Cortex-M specific) is provided on the following
|
|
link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
800c92e: f002 fc6b bl 800f208 <vPortValidateInterruptPriority>
|
|
__asm volatile
|
|
800c932: f3ef 8211 mrs r2, BASEPRI
|
|
800c936: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800c93a: f383 8811 msr BASEPRI, r3
|
|
800c93e: f3bf 8f6f isb sy
|
|
800c942: f3bf 8f4f dsb sy
|
|
800c946: 61ba str r2, [r7, #24]
|
|
800c948: 617b str r3, [r7, #20]
|
|
return ulOriginalBASEPRI;
|
|
800c94a: 69bb ldr r3, [r7, #24]
|
|
|
|
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
800c94c: 62fb str r3, [r7, #44] @ 0x2c
|
|
{
|
|
const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
|
|
800c94e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c950: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800c952: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
/* Cannot block in an ISR, so check there is data available. */
|
|
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
|
|
800c954: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c956: 2b00 cmp r3, #0
|
|
800c958: d02f beq.n 800c9ba <xQueueReceiveFromISR+0xea>
|
|
{
|
|
const int8_t cRxLock = pxQueue->cRxLock;
|
|
800c95a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c95c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800c960: f887 3027 strb.w r3, [r7, #39] @ 0x27
|
|
|
|
traceQUEUE_RECEIVE_FROM_ISR( pxQueue );
|
|
|
|
prvCopyDataFromQueue( pxQueue, pvBuffer );
|
|
800c964: 68b9 ldr r1, [r7, #8]
|
|
800c966: 6b38 ldr r0, [r7, #48] @ 0x30
|
|
800c968: f000 f8b6 bl 800cad8 <prvCopyDataFromQueue>
|
|
pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
|
|
800c96c: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800c96e: 1e5a subs r2, r3, #1
|
|
800c970: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c972: 639a str r2, [r3, #56] @ 0x38
|
|
|
|
/* If the queue is locked the event list will not be modified.
|
|
Instead update the lock count so the task that unlocks the queue
|
|
will know that an ISR has removed data while the queue was
|
|
locked. */
|
|
if( cRxLock == queueUNLOCKED )
|
|
800c974: f997 3027 ldrsb.w r3, [r7, #39] @ 0x27
|
|
800c978: f1b3 3fff cmp.w r3, #4294967295
|
|
800c97c: d112 bne.n 800c9a4 <xQueueReceiveFromISR+0xd4>
|
|
{
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
|
|
800c97e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c980: 691b ldr r3, [r3, #16]
|
|
800c982: 2b00 cmp r3, #0
|
|
800c984: d016 beq.n 800c9b4 <xQueueReceiveFromISR+0xe4>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
|
|
800c986: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c988: 3310 adds r3, #16
|
|
800c98a: 4618 mov r0, r3
|
|
800c98c: f000 ff8c bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800c990: 4603 mov r3, r0
|
|
800c992: 2b00 cmp r3, #0
|
|
800c994: d00e beq.n 800c9b4 <xQueueReceiveFromISR+0xe4>
|
|
{
|
|
/* The task waiting has a higher priority than us so
|
|
force a context switch. */
|
|
if( pxHigherPriorityTaskWoken != NULL )
|
|
800c996: 687b ldr r3, [r7, #4]
|
|
800c998: 2b00 cmp r3, #0
|
|
800c99a: d00b beq.n 800c9b4 <xQueueReceiveFromISR+0xe4>
|
|
{
|
|
*pxHigherPriorityTaskWoken = pdTRUE;
|
|
800c99c: 687b ldr r3, [r7, #4]
|
|
800c99e: 2201 movs r2, #1
|
|
800c9a0: 601a str r2, [r3, #0]
|
|
800c9a2: e007 b.n 800c9b4 <xQueueReceiveFromISR+0xe4>
|
|
}
|
|
else
|
|
{
|
|
/* Increment the lock count so the task that unlocks the queue
|
|
knows that data was removed while it was locked. */
|
|
pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 );
|
|
800c9a4: f897 3027 ldrb.w r3, [r7, #39] @ 0x27
|
|
800c9a8: 3301 adds r3, #1
|
|
800c9aa: b2db uxtb r3, r3
|
|
800c9ac: b25a sxtb r2, r3
|
|
800c9ae: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800c9b0: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
}
|
|
|
|
xReturn = pdPASS;
|
|
800c9b4: 2301 movs r3, #1
|
|
800c9b6: 637b str r3, [r7, #52] @ 0x34
|
|
800c9b8: e001 b.n 800c9be <xQueueReceiveFromISR+0xee>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdFAIL;
|
|
800c9ba: 2300 movs r3, #0
|
|
800c9bc: 637b str r3, [r7, #52] @ 0x34
|
|
800c9be: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800c9c0: 613b str r3, [r7, #16]
|
|
__asm volatile
|
|
800c9c2: 693b ldr r3, [r7, #16]
|
|
800c9c4: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800c9c8: bf00 nop
|
|
traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue );
|
|
}
|
|
}
|
|
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
|
|
return xReturn;
|
|
800c9ca: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
}
|
|
800c9cc: 4618 mov r0, r3
|
|
800c9ce: 3738 adds r7, #56 @ 0x38
|
|
800c9d0: 46bd mov sp, r7
|
|
800c9d2: bd80 pop {r7, pc}
|
|
|
|
0800c9d4 <prvGetDisinheritPriorityAfterTimeout>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_MUTEXES == 1 )
|
|
|
|
static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue )
|
|
{
|
|
800c9d4: b480 push {r7}
|
|
800c9d6: b085 sub sp, #20
|
|
800c9d8: af00 add r7, sp, #0
|
|
800c9da: 6078 str r0, [r7, #4]
|
|
priority, but the waiting task times out, then the holder should
|
|
disinherit the priority - but only down to the highest priority of any
|
|
other tasks that are waiting for the same mutex. For this purpose,
|
|
return the priority of the highest priority task that is waiting for the
|
|
mutex. */
|
|
if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U )
|
|
800c9dc: 687b ldr r3, [r7, #4]
|
|
800c9de: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
800c9e0: 2b00 cmp r3, #0
|
|
800c9e2: d006 beq.n 800c9f2 <prvGetDisinheritPriorityAfterTimeout+0x1e>
|
|
{
|
|
uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) );
|
|
800c9e4: 687b ldr r3, [r7, #4]
|
|
800c9e6: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800c9e8: 681b ldr r3, [r3, #0]
|
|
800c9ea: f1c3 0338 rsb r3, r3, #56 @ 0x38
|
|
800c9ee: 60fb str r3, [r7, #12]
|
|
800c9f0: e001 b.n 800c9f6 <prvGetDisinheritPriorityAfterTimeout+0x22>
|
|
}
|
|
else
|
|
{
|
|
uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY;
|
|
800c9f2: 2300 movs r3, #0
|
|
800c9f4: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
return uxHighestPriorityOfWaitingTasks;
|
|
800c9f6: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800c9f8: 4618 mov r0, r3
|
|
800c9fa: 3714 adds r7, #20
|
|
800c9fc: 46bd mov sp, r7
|
|
800c9fe: f85d 7b04 ldr.w r7, [sp], #4
|
|
800ca02: 4770 bx lr
|
|
|
|
0800ca04 <prvCopyDataToQueue>:
|
|
|
|
#endif /* configUSE_MUTEXES */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
|
|
{
|
|
800ca04: b580 push {r7, lr}
|
|
800ca06: b086 sub sp, #24
|
|
800ca08: af00 add r7, sp, #0
|
|
800ca0a: 60f8 str r0, [r7, #12]
|
|
800ca0c: 60b9 str r1, [r7, #8]
|
|
800ca0e: 607a str r2, [r7, #4]
|
|
BaseType_t xReturn = pdFALSE;
|
|
800ca10: 2300 movs r3, #0
|
|
800ca12: 617b str r3, [r7, #20]
|
|
UBaseType_t uxMessagesWaiting;
|
|
|
|
/* This function is called from a critical section. */
|
|
|
|
uxMessagesWaiting = pxQueue->uxMessagesWaiting;
|
|
800ca14: 68fb ldr r3, [r7, #12]
|
|
800ca16: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800ca18: 613b str r3, [r7, #16]
|
|
|
|
if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
|
|
800ca1a: 68fb ldr r3, [r7, #12]
|
|
800ca1c: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800ca1e: 2b00 cmp r3, #0
|
|
800ca20: d10d bne.n 800ca3e <prvCopyDataToQueue+0x3a>
|
|
{
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
{
|
|
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
|
|
800ca22: 68fb ldr r3, [r7, #12]
|
|
800ca24: 681b ldr r3, [r3, #0]
|
|
800ca26: 2b00 cmp r3, #0
|
|
800ca28: d14d bne.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
{
|
|
/* The mutex is no longer being held. */
|
|
xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
|
|
800ca2a: 68fb ldr r3, [r7, #12]
|
|
800ca2c: 689b ldr r3, [r3, #8]
|
|
800ca2e: 4618 mov r0, r3
|
|
800ca30: f001 f9fa bl 800de28 <xTaskPriorityDisinherit>
|
|
800ca34: 6178 str r0, [r7, #20]
|
|
pxQueue->u.xSemaphore.xMutexHolder = NULL;
|
|
800ca36: 68fb ldr r3, [r7, #12]
|
|
800ca38: 2200 movs r2, #0
|
|
800ca3a: 609a str r2, [r3, #8]
|
|
800ca3c: e043 b.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif /* configUSE_MUTEXES */
|
|
}
|
|
else if( xPosition == queueSEND_TO_BACK )
|
|
800ca3e: 687b ldr r3, [r7, #4]
|
|
800ca40: 2b00 cmp r3, #0
|
|
800ca42: d119 bne.n 800ca78 <prvCopyDataToQueue+0x74>
|
|
{
|
|
( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
|
|
800ca44: 68fb ldr r3, [r7, #12]
|
|
800ca46: 6858 ldr r0, [r3, #4]
|
|
800ca48: 68fb ldr r3, [r7, #12]
|
|
800ca4a: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800ca4c: 461a mov r2, r3
|
|
800ca4e: 68b9 ldr r1, [r7, #8]
|
|
800ca50: f004 f824 bl 8010a9c <memcpy>
|
|
pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
|
|
800ca54: 68fb ldr r3, [r7, #12]
|
|
800ca56: 685a ldr r2, [r3, #4]
|
|
800ca58: 68fb ldr r3, [r7, #12]
|
|
800ca5a: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800ca5c: 441a add r2, r3
|
|
800ca5e: 68fb ldr r3, [r7, #12]
|
|
800ca60: 605a str r2, [r3, #4]
|
|
if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
|
|
800ca62: 68fb ldr r3, [r7, #12]
|
|
800ca64: 685a ldr r2, [r3, #4]
|
|
800ca66: 68fb ldr r3, [r7, #12]
|
|
800ca68: 689b ldr r3, [r3, #8]
|
|
800ca6a: 429a cmp r2, r3
|
|
800ca6c: d32b bcc.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
{
|
|
pxQueue->pcWriteTo = pxQueue->pcHead;
|
|
800ca6e: 68fb ldr r3, [r7, #12]
|
|
800ca70: 681a ldr r2, [r3, #0]
|
|
800ca72: 68fb ldr r3, [r7, #12]
|
|
800ca74: 605a str r2, [r3, #4]
|
|
800ca76: e026 b.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
|
|
800ca78: 68fb ldr r3, [r7, #12]
|
|
800ca7a: 68d8 ldr r0, [r3, #12]
|
|
800ca7c: 68fb ldr r3, [r7, #12]
|
|
800ca7e: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800ca80: 461a mov r2, r3
|
|
800ca82: 68b9 ldr r1, [r7, #8]
|
|
800ca84: f004 f80a bl 8010a9c <memcpy>
|
|
pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
|
|
800ca88: 68fb ldr r3, [r7, #12]
|
|
800ca8a: 68da ldr r2, [r3, #12]
|
|
800ca8c: 68fb ldr r3, [r7, #12]
|
|
800ca8e: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800ca90: 425b negs r3, r3
|
|
800ca92: 441a add r2, r3
|
|
800ca94: 68fb ldr r3, [r7, #12]
|
|
800ca96: 60da str r2, [r3, #12]
|
|
if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
|
|
800ca98: 68fb ldr r3, [r7, #12]
|
|
800ca9a: 68da ldr r2, [r3, #12]
|
|
800ca9c: 68fb ldr r3, [r7, #12]
|
|
800ca9e: 681b ldr r3, [r3, #0]
|
|
800caa0: 429a cmp r2, r3
|
|
800caa2: d207 bcs.n 800cab4 <prvCopyDataToQueue+0xb0>
|
|
{
|
|
pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
|
|
800caa4: 68fb ldr r3, [r7, #12]
|
|
800caa6: 689a ldr r2, [r3, #8]
|
|
800caa8: 68fb ldr r3, [r7, #12]
|
|
800caaa: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800caac: 425b negs r3, r3
|
|
800caae: 441a add r2, r3
|
|
800cab0: 68fb ldr r3, [r7, #12]
|
|
800cab2: 60da str r2, [r3, #12]
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
if( xPosition == queueOVERWRITE )
|
|
800cab4: 687b ldr r3, [r7, #4]
|
|
800cab6: 2b02 cmp r3, #2
|
|
800cab8: d105 bne.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
{
|
|
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
|
|
800caba: 693b ldr r3, [r7, #16]
|
|
800cabc: 2b00 cmp r3, #0
|
|
800cabe: d002 beq.n 800cac6 <prvCopyDataToQueue+0xc2>
|
|
{
|
|
/* An item is not being added but overwritten, so subtract
|
|
one from the recorded number of items in the queue so when
|
|
one is added again below the number of recorded items remains
|
|
correct. */
|
|
--uxMessagesWaiting;
|
|
800cac0: 693b ldr r3, [r7, #16]
|
|
800cac2: 3b01 subs r3, #1
|
|
800cac4: 613b str r3, [r7, #16]
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
|
|
800cac6: 693b ldr r3, [r7, #16]
|
|
800cac8: 1c5a adds r2, r3, #1
|
|
800caca: 68fb ldr r3, [r7, #12]
|
|
800cacc: 639a str r2, [r3, #56] @ 0x38
|
|
|
|
return xReturn;
|
|
800cace: 697b ldr r3, [r7, #20]
|
|
}
|
|
800cad0: 4618 mov r0, r3
|
|
800cad2: 3718 adds r7, #24
|
|
800cad4: 46bd mov sp, r7
|
|
800cad6: bd80 pop {r7, pc}
|
|
|
|
0800cad8 <prvCopyDataFromQueue>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
|
|
{
|
|
800cad8: b580 push {r7, lr}
|
|
800cada: b082 sub sp, #8
|
|
800cadc: af00 add r7, sp, #0
|
|
800cade: 6078 str r0, [r7, #4]
|
|
800cae0: 6039 str r1, [r7, #0]
|
|
if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
|
|
800cae2: 687b ldr r3, [r7, #4]
|
|
800cae4: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800cae6: 2b00 cmp r3, #0
|
|
800cae8: d018 beq.n 800cb1c <prvCopyDataFromQueue+0x44>
|
|
{
|
|
pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
|
|
800caea: 687b ldr r3, [r7, #4]
|
|
800caec: 68da ldr r2, [r3, #12]
|
|
800caee: 687b ldr r3, [r7, #4]
|
|
800caf0: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800caf2: 441a add r2, r3
|
|
800caf4: 687b ldr r3, [r7, #4]
|
|
800caf6: 60da str r2, [r3, #12]
|
|
if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
|
|
800caf8: 687b ldr r3, [r7, #4]
|
|
800cafa: 68da ldr r2, [r3, #12]
|
|
800cafc: 687b ldr r3, [r7, #4]
|
|
800cafe: 689b ldr r3, [r3, #8]
|
|
800cb00: 429a cmp r2, r3
|
|
800cb02: d303 bcc.n 800cb0c <prvCopyDataFromQueue+0x34>
|
|
{
|
|
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
|
|
800cb04: 687b ldr r3, [r7, #4]
|
|
800cb06: 681a ldr r2, [r3, #0]
|
|
800cb08: 687b ldr r3, [r7, #4]
|
|
800cb0a: 60da str r2, [r3, #12]
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
|
|
800cb0c: 687b ldr r3, [r7, #4]
|
|
800cb0e: 68d9 ldr r1, [r3, #12]
|
|
800cb10: 687b ldr r3, [r7, #4]
|
|
800cb12: 6c1b ldr r3, [r3, #64] @ 0x40
|
|
800cb14: 461a mov r2, r3
|
|
800cb16: 6838 ldr r0, [r7, #0]
|
|
800cb18: f003 ffc0 bl 8010a9c <memcpy>
|
|
}
|
|
}
|
|
800cb1c: bf00 nop
|
|
800cb1e: 3708 adds r7, #8
|
|
800cb20: 46bd mov sp, r7
|
|
800cb22: bd80 pop {r7, pc}
|
|
|
|
0800cb24 <prvUnlockQueue>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvUnlockQueue( Queue_t * const pxQueue )
|
|
{
|
|
800cb24: b580 push {r7, lr}
|
|
800cb26: b084 sub sp, #16
|
|
800cb28: af00 add r7, sp, #0
|
|
800cb2a: 6078 str r0, [r7, #4]
|
|
|
|
/* The lock counts contains the number of extra data items placed or
|
|
removed from the queue while the queue was locked. When a queue is
|
|
locked items can be added or removed, but the event lists cannot be
|
|
updated. */
|
|
taskENTER_CRITICAL();
|
|
800cb2c: f002 fa8c bl 800f048 <vPortEnterCritical>
|
|
{
|
|
int8_t cTxLock = pxQueue->cTxLock;
|
|
800cb30: 687b ldr r3, [r7, #4]
|
|
800cb32: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800cb36: 73fb strb r3, [r7, #15]
|
|
|
|
/* See if data was added to the queue while it was locked. */
|
|
while( cTxLock > queueLOCKED_UNMODIFIED )
|
|
800cb38: e011 b.n 800cb5e <prvUnlockQueue+0x3a>
|
|
}
|
|
#else /* configUSE_QUEUE_SETS */
|
|
{
|
|
/* Tasks that are removed from the event list will get added to
|
|
the pending ready list as the scheduler is still suspended. */
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
|
|
800cb3a: 687b ldr r3, [r7, #4]
|
|
800cb3c: 6a5b ldr r3, [r3, #36] @ 0x24
|
|
800cb3e: 2b00 cmp r3, #0
|
|
800cb40: d012 beq.n 800cb68 <prvUnlockQueue+0x44>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
|
|
800cb42: 687b ldr r3, [r7, #4]
|
|
800cb44: 3324 adds r3, #36 @ 0x24
|
|
800cb46: 4618 mov r0, r3
|
|
800cb48: f000 feae bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800cb4c: 4603 mov r3, r0
|
|
800cb4e: 2b00 cmp r3, #0
|
|
800cb50: d001 beq.n 800cb56 <prvUnlockQueue+0x32>
|
|
{
|
|
/* The task waiting has a higher priority so record that
|
|
a context switch is required. */
|
|
vTaskMissedYield();
|
|
800cb52: f000 ffeb bl 800db2c <vTaskMissedYield>
|
|
break;
|
|
}
|
|
}
|
|
#endif /* configUSE_QUEUE_SETS */
|
|
|
|
--cTxLock;
|
|
800cb56: 7bfb ldrb r3, [r7, #15]
|
|
800cb58: 3b01 subs r3, #1
|
|
800cb5a: b2db uxtb r3, r3
|
|
800cb5c: 73fb strb r3, [r7, #15]
|
|
while( cTxLock > queueLOCKED_UNMODIFIED )
|
|
800cb5e: f997 300f ldrsb.w r3, [r7, #15]
|
|
800cb62: 2b00 cmp r3, #0
|
|
800cb64: dce9 bgt.n 800cb3a <prvUnlockQueue+0x16>
|
|
800cb66: e000 b.n 800cb6a <prvUnlockQueue+0x46>
|
|
break;
|
|
800cb68: bf00 nop
|
|
}
|
|
|
|
pxQueue->cTxLock = queueUNLOCKED;
|
|
800cb6a: 687b ldr r3, [r7, #4]
|
|
800cb6c: 22ff movs r2, #255 @ 0xff
|
|
800cb6e: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800cb72: f002 fa9b bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Do the same for the Rx lock. */
|
|
taskENTER_CRITICAL();
|
|
800cb76: f002 fa67 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
int8_t cRxLock = pxQueue->cRxLock;
|
|
800cb7a: 687b ldr r3, [r7, #4]
|
|
800cb7c: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800cb80: 73bb strb r3, [r7, #14]
|
|
|
|
while( cRxLock > queueLOCKED_UNMODIFIED )
|
|
800cb82: e011 b.n 800cba8 <prvUnlockQueue+0x84>
|
|
{
|
|
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
|
|
800cb84: 687b ldr r3, [r7, #4]
|
|
800cb86: 691b ldr r3, [r3, #16]
|
|
800cb88: 2b00 cmp r3, #0
|
|
800cb8a: d012 beq.n 800cbb2 <prvUnlockQueue+0x8e>
|
|
{
|
|
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
|
|
800cb8c: 687b ldr r3, [r7, #4]
|
|
800cb8e: 3310 adds r3, #16
|
|
800cb90: 4618 mov r0, r3
|
|
800cb92: f000 fe89 bl 800d8a8 <xTaskRemoveFromEventList>
|
|
800cb96: 4603 mov r3, r0
|
|
800cb98: 2b00 cmp r3, #0
|
|
800cb9a: d001 beq.n 800cba0 <prvUnlockQueue+0x7c>
|
|
{
|
|
vTaskMissedYield();
|
|
800cb9c: f000 ffc6 bl 800db2c <vTaskMissedYield>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
--cRxLock;
|
|
800cba0: 7bbb ldrb r3, [r7, #14]
|
|
800cba2: 3b01 subs r3, #1
|
|
800cba4: b2db uxtb r3, r3
|
|
800cba6: 73bb strb r3, [r7, #14]
|
|
while( cRxLock > queueLOCKED_UNMODIFIED )
|
|
800cba8: f997 300e ldrsb.w r3, [r7, #14]
|
|
800cbac: 2b00 cmp r3, #0
|
|
800cbae: dce9 bgt.n 800cb84 <prvUnlockQueue+0x60>
|
|
800cbb0: e000 b.n 800cbb4 <prvUnlockQueue+0x90>
|
|
}
|
|
else
|
|
{
|
|
break;
|
|
800cbb2: bf00 nop
|
|
}
|
|
}
|
|
|
|
pxQueue->cRxLock = queueUNLOCKED;
|
|
800cbb4: 687b ldr r3, [r7, #4]
|
|
800cbb6: 22ff movs r2, #255 @ 0xff
|
|
800cbb8: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800cbbc: f002 fa76 bl 800f0ac <vPortExitCritical>
|
|
}
|
|
800cbc0: bf00 nop
|
|
800cbc2: 3710 adds r7, #16
|
|
800cbc4: 46bd mov sp, r7
|
|
800cbc6: bd80 pop {r7, pc}
|
|
|
|
0800cbc8 <prvIsQueueEmpty>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
|
|
{
|
|
800cbc8: b580 push {r7, lr}
|
|
800cbca: b084 sub sp, #16
|
|
800cbcc: af00 add r7, sp, #0
|
|
800cbce: 6078 str r0, [r7, #4]
|
|
BaseType_t xReturn;
|
|
|
|
taskENTER_CRITICAL();
|
|
800cbd0: f002 fa3a bl 800f048 <vPortEnterCritical>
|
|
{
|
|
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
|
|
800cbd4: 687b ldr r3, [r7, #4]
|
|
800cbd6: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800cbd8: 2b00 cmp r3, #0
|
|
800cbda: d102 bne.n 800cbe2 <prvIsQueueEmpty+0x1a>
|
|
{
|
|
xReturn = pdTRUE;
|
|
800cbdc: 2301 movs r3, #1
|
|
800cbde: 60fb str r3, [r7, #12]
|
|
800cbe0: e001 b.n 800cbe6 <prvIsQueueEmpty+0x1e>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdFALSE;
|
|
800cbe2: 2300 movs r3, #0
|
|
800cbe4: 60fb str r3, [r7, #12]
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800cbe6: f002 fa61 bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800cbea: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800cbec: 4618 mov r0, r3
|
|
800cbee: 3710 adds r7, #16
|
|
800cbf0: 46bd mov sp, r7
|
|
800cbf2: bd80 pop {r7, pc}
|
|
|
|
0800cbf4 <prvIsQueueFull>:
|
|
return xReturn;
|
|
} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
|
|
{
|
|
800cbf4: b580 push {r7, lr}
|
|
800cbf6: b084 sub sp, #16
|
|
800cbf8: af00 add r7, sp, #0
|
|
800cbfa: 6078 str r0, [r7, #4]
|
|
BaseType_t xReturn;
|
|
|
|
taskENTER_CRITICAL();
|
|
800cbfc: f002 fa24 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
|
|
800cc00: 687b ldr r3, [r7, #4]
|
|
800cc02: 6b9a ldr r2, [r3, #56] @ 0x38
|
|
800cc04: 687b ldr r3, [r7, #4]
|
|
800cc06: 6bdb ldr r3, [r3, #60] @ 0x3c
|
|
800cc08: 429a cmp r2, r3
|
|
800cc0a: d102 bne.n 800cc12 <prvIsQueueFull+0x1e>
|
|
{
|
|
xReturn = pdTRUE;
|
|
800cc0c: 2301 movs r3, #1
|
|
800cc0e: 60fb str r3, [r7, #12]
|
|
800cc10: e001 b.n 800cc16 <prvIsQueueFull+0x22>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdFALSE;
|
|
800cc12: 2300 movs r3, #0
|
|
800cc14: 60fb str r3, [r7, #12]
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800cc16: f002 fa49 bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800cc1a: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800cc1c: 4618 mov r0, r3
|
|
800cc1e: 3710 adds r7, #16
|
|
800cc20: 46bd mov sp, r7
|
|
800cc22: bd80 pop {r7, pc}
|
|
|
|
0800cc24 <vQueueAddToRegistry>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configQUEUE_REGISTRY_SIZE > 0 )
|
|
|
|
void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
|
{
|
|
800cc24: b480 push {r7}
|
|
800cc26: b085 sub sp, #20
|
|
800cc28: af00 add r7, sp, #0
|
|
800cc2a: 6078 str r0, [r7, #4]
|
|
800cc2c: 6039 str r1, [r7, #0]
|
|
UBaseType_t ux;
|
|
|
|
/* See if there is an empty space in the registry. A NULL name denotes
|
|
a free slot. */
|
|
for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
|
|
800cc2e: 2300 movs r3, #0
|
|
800cc30: 60fb str r3, [r7, #12]
|
|
800cc32: e014 b.n 800cc5e <vQueueAddToRegistry+0x3a>
|
|
{
|
|
if( xQueueRegistry[ ux ].pcQueueName == NULL )
|
|
800cc34: 4a0f ldr r2, [pc, #60] @ (800cc74 <vQueueAddToRegistry+0x50>)
|
|
800cc36: 68fb ldr r3, [r7, #12]
|
|
800cc38: f852 3033 ldr.w r3, [r2, r3, lsl #3]
|
|
800cc3c: 2b00 cmp r3, #0
|
|
800cc3e: d10b bne.n 800cc58 <vQueueAddToRegistry+0x34>
|
|
{
|
|
/* Store the information on this queue. */
|
|
xQueueRegistry[ ux ].pcQueueName = pcQueueName;
|
|
800cc40: 490c ldr r1, [pc, #48] @ (800cc74 <vQueueAddToRegistry+0x50>)
|
|
800cc42: 68fb ldr r3, [r7, #12]
|
|
800cc44: 683a ldr r2, [r7, #0]
|
|
800cc46: f841 2033 str.w r2, [r1, r3, lsl #3]
|
|
xQueueRegistry[ ux ].xHandle = xQueue;
|
|
800cc4a: 4a0a ldr r2, [pc, #40] @ (800cc74 <vQueueAddToRegistry+0x50>)
|
|
800cc4c: 68fb ldr r3, [r7, #12]
|
|
800cc4e: 00db lsls r3, r3, #3
|
|
800cc50: 4413 add r3, r2
|
|
800cc52: 687a ldr r2, [r7, #4]
|
|
800cc54: 605a str r2, [r3, #4]
|
|
|
|
traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
|
|
break;
|
|
800cc56: e006 b.n 800cc66 <vQueueAddToRegistry+0x42>
|
|
for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
|
|
800cc58: 68fb ldr r3, [r7, #12]
|
|
800cc5a: 3301 adds r3, #1
|
|
800cc5c: 60fb str r3, [r7, #12]
|
|
800cc5e: 68fb ldr r3, [r7, #12]
|
|
800cc60: 2b07 cmp r3, #7
|
|
800cc62: d9e7 bls.n 800cc34 <vQueueAddToRegistry+0x10>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
800cc64: bf00 nop
|
|
800cc66: bf00 nop
|
|
800cc68: 3714 adds r7, #20
|
|
800cc6a: 46bd mov sp, r7
|
|
800cc6c: f85d 7b04 ldr.w r7, [sp], #4
|
|
800cc70: 4770 bx lr
|
|
800cc72: bf00 nop
|
|
800cc74: 20001e98 .word 0x20001e98
|
|
|
|
0800cc78 <vQueueWaitForMessageRestricted>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_TIMERS == 1 )
|
|
|
|
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
|
|
{
|
|
800cc78: b580 push {r7, lr}
|
|
800cc7a: b086 sub sp, #24
|
|
800cc7c: af00 add r7, sp, #0
|
|
800cc7e: 60f8 str r0, [r7, #12]
|
|
800cc80: 60b9 str r1, [r7, #8]
|
|
800cc82: 607a str r2, [r7, #4]
|
|
Queue_t * const pxQueue = xQueue;
|
|
800cc84: 68fb ldr r3, [r7, #12]
|
|
800cc86: 617b str r3, [r7, #20]
|
|
will not actually cause the task to block, just place it on a blocked
|
|
list. It will not block until the scheduler is unlocked - at which
|
|
time a yield will be performed. If an item is added to the queue while
|
|
the queue is locked, and the calling task blocks on the queue, then the
|
|
calling task will be immediately unblocked when the queue is unlocked. */
|
|
prvLockQueue( pxQueue );
|
|
800cc88: f002 f9de bl 800f048 <vPortEnterCritical>
|
|
800cc8c: 697b ldr r3, [r7, #20]
|
|
800cc8e: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
|
|
800cc92: b25b sxtb r3, r3
|
|
800cc94: f1b3 3fff cmp.w r3, #4294967295
|
|
800cc98: d103 bne.n 800cca2 <vQueueWaitForMessageRestricted+0x2a>
|
|
800cc9a: 697b ldr r3, [r7, #20]
|
|
800cc9c: 2200 movs r2, #0
|
|
800cc9e: f883 2044 strb.w r2, [r3, #68] @ 0x44
|
|
800cca2: 697b ldr r3, [r7, #20]
|
|
800cca4: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
|
|
800cca8: b25b sxtb r3, r3
|
|
800ccaa: f1b3 3fff cmp.w r3, #4294967295
|
|
800ccae: d103 bne.n 800ccb8 <vQueueWaitForMessageRestricted+0x40>
|
|
800ccb0: 697b ldr r3, [r7, #20]
|
|
800ccb2: 2200 movs r2, #0
|
|
800ccb4: f883 2045 strb.w r2, [r3, #69] @ 0x45
|
|
800ccb8: f002 f9f8 bl 800f0ac <vPortExitCritical>
|
|
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
|
|
800ccbc: 697b ldr r3, [r7, #20]
|
|
800ccbe: 6b9b ldr r3, [r3, #56] @ 0x38
|
|
800ccc0: 2b00 cmp r3, #0
|
|
800ccc2: d106 bne.n 800ccd2 <vQueueWaitForMessageRestricted+0x5a>
|
|
{
|
|
/* There is nothing in the queue, block for the specified period. */
|
|
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
|
|
800ccc4: 697b ldr r3, [r7, #20]
|
|
800ccc6: 3324 adds r3, #36 @ 0x24
|
|
800ccc8: 687a ldr r2, [r7, #4]
|
|
800ccca: 68b9 ldr r1, [r7, #8]
|
|
800cccc: 4618 mov r0, r3
|
|
800ccce: f000 fdbf bl 800d850 <vTaskPlaceOnEventListRestricted>
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
prvUnlockQueue( pxQueue );
|
|
800ccd2: 6978 ldr r0, [r7, #20]
|
|
800ccd4: f7ff ff26 bl 800cb24 <prvUnlockQueue>
|
|
}
|
|
800ccd8: bf00 nop
|
|
800ccda: 3718 adds r7, #24
|
|
800ccdc: 46bd mov sp, r7
|
|
800ccde: bd80 pop {r7, pc}
|
|
|
|
0800cce0 <xTaskCreateStatic>:
|
|
const uint32_t ulStackDepth,
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
StackType_t * const puxStackBuffer,
|
|
StaticTask_t * const pxTaskBuffer )
|
|
{
|
|
800cce0: b580 push {r7, lr}
|
|
800cce2: b08e sub sp, #56 @ 0x38
|
|
800cce4: af04 add r7, sp, #16
|
|
800cce6: 60f8 str r0, [r7, #12]
|
|
800cce8: 60b9 str r1, [r7, #8]
|
|
800ccea: 607a str r2, [r7, #4]
|
|
800ccec: 603b str r3, [r7, #0]
|
|
TCB_t *pxNewTCB;
|
|
TaskHandle_t xReturn;
|
|
|
|
configASSERT( puxStackBuffer != NULL );
|
|
800ccee: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800ccf0: 2b00 cmp r3, #0
|
|
800ccf2: d10b bne.n 800cd0c <xTaskCreateStatic+0x2c>
|
|
__asm volatile
|
|
800ccf4: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ccf8: f383 8811 msr BASEPRI, r3
|
|
800ccfc: f3bf 8f6f isb sy
|
|
800cd00: f3bf 8f4f dsb sy
|
|
800cd04: 623b str r3, [r7, #32]
|
|
}
|
|
800cd06: bf00 nop
|
|
800cd08: bf00 nop
|
|
800cd0a: e7fd b.n 800cd08 <xTaskCreateStatic+0x28>
|
|
configASSERT( pxTaskBuffer != NULL );
|
|
800cd0c: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800cd0e: 2b00 cmp r3, #0
|
|
800cd10: d10b bne.n 800cd2a <xTaskCreateStatic+0x4a>
|
|
__asm volatile
|
|
800cd12: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800cd16: f383 8811 msr BASEPRI, r3
|
|
800cd1a: f3bf 8f6f isb sy
|
|
800cd1e: f3bf 8f4f dsb sy
|
|
800cd22: 61fb str r3, [r7, #28]
|
|
}
|
|
800cd24: bf00 nop
|
|
800cd26: bf00 nop
|
|
800cd28: e7fd b.n 800cd26 <xTaskCreateStatic+0x46>
|
|
#if( configASSERT_DEFINED == 1 )
|
|
{
|
|
/* Sanity check that the size of the structure used to declare a
|
|
variable of type StaticTask_t equals the size of the real task
|
|
structure. */
|
|
volatile size_t xSize = sizeof( StaticTask_t );
|
|
800cd2a: 23a8 movs r3, #168 @ 0xa8
|
|
800cd2c: 613b str r3, [r7, #16]
|
|
configASSERT( xSize == sizeof( TCB_t ) );
|
|
800cd2e: 693b ldr r3, [r7, #16]
|
|
800cd30: 2ba8 cmp r3, #168 @ 0xa8
|
|
800cd32: d00b beq.n 800cd4c <xTaskCreateStatic+0x6c>
|
|
__asm volatile
|
|
800cd34: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800cd38: f383 8811 msr BASEPRI, r3
|
|
800cd3c: f3bf 8f6f isb sy
|
|
800cd40: f3bf 8f4f dsb sy
|
|
800cd44: 61bb str r3, [r7, #24]
|
|
}
|
|
800cd46: bf00 nop
|
|
800cd48: bf00 nop
|
|
800cd4a: e7fd b.n 800cd48 <xTaskCreateStatic+0x68>
|
|
( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
|
|
800cd4c: 693b ldr r3, [r7, #16]
|
|
}
|
|
#endif /* configASSERT_DEFINED */
|
|
|
|
|
|
if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
|
|
800cd4e: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800cd50: 2b00 cmp r3, #0
|
|
800cd52: d01e beq.n 800cd92 <xTaskCreateStatic+0xb2>
|
|
800cd54: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
800cd56: 2b00 cmp r3, #0
|
|
800cd58: d01b beq.n 800cd92 <xTaskCreateStatic+0xb2>
|
|
{
|
|
/* The memory used for the task's TCB and stack are passed into this
|
|
function - use them. */
|
|
pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
|
|
800cd5a: 6bbb ldr r3, [r7, #56] @ 0x38
|
|
800cd5c: 627b str r3, [r7, #36] @ 0x24
|
|
pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
|
|
800cd5e: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800cd60: 6b7a ldr r2, [r7, #52] @ 0x34
|
|
800cd62: 631a str r2, [r3, #48] @ 0x30
|
|
|
|
#if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
|
|
{
|
|
/* Tasks can be created statically or dynamically, so note this
|
|
task was created statically in case the task is later deleted. */
|
|
pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
|
|
800cd64: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800cd66: 2202 movs r2, #2
|
|
800cd68: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
|
|
}
|
|
#endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
|
|
|
|
prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
|
|
800cd6c: 2300 movs r3, #0
|
|
800cd6e: 9303 str r3, [sp, #12]
|
|
800cd70: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800cd72: 9302 str r3, [sp, #8]
|
|
800cd74: f107 0314 add.w r3, r7, #20
|
|
800cd78: 9301 str r3, [sp, #4]
|
|
800cd7a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cd7c: 9300 str r3, [sp, #0]
|
|
800cd7e: 683b ldr r3, [r7, #0]
|
|
800cd80: 687a ldr r2, [r7, #4]
|
|
800cd82: 68b9 ldr r1, [r7, #8]
|
|
800cd84: 68f8 ldr r0, [r7, #12]
|
|
800cd86: f000 f851 bl 800ce2c <prvInitialiseNewTask>
|
|
prvAddNewTaskToReadyList( pxNewTCB );
|
|
800cd8a: 6a78 ldr r0, [r7, #36] @ 0x24
|
|
800cd8c: f000 f8f6 bl 800cf7c <prvAddNewTaskToReadyList>
|
|
800cd90: e001 b.n 800cd96 <xTaskCreateStatic+0xb6>
|
|
}
|
|
else
|
|
{
|
|
xReturn = NULL;
|
|
800cd92: 2300 movs r3, #0
|
|
800cd94: 617b str r3, [r7, #20]
|
|
}
|
|
|
|
return xReturn;
|
|
800cd96: 697b ldr r3, [r7, #20]
|
|
}
|
|
800cd98: 4618 mov r0, r3
|
|
800cd9a: 3728 adds r7, #40 @ 0x28
|
|
800cd9c: 46bd mov sp, r7
|
|
800cd9e: bd80 pop {r7, pc}
|
|
|
|
0800cda0 <xTaskCreate>:
|
|
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
|
const configSTACK_DEPTH_TYPE usStackDepth,
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
TaskHandle_t * const pxCreatedTask )
|
|
{
|
|
800cda0: b580 push {r7, lr}
|
|
800cda2: b08c sub sp, #48 @ 0x30
|
|
800cda4: af04 add r7, sp, #16
|
|
800cda6: 60f8 str r0, [r7, #12]
|
|
800cda8: 60b9 str r1, [r7, #8]
|
|
800cdaa: 603b str r3, [r7, #0]
|
|
800cdac: 4613 mov r3, r2
|
|
800cdae: 80fb strh r3, [r7, #6]
|
|
#else /* portSTACK_GROWTH */
|
|
{
|
|
StackType_t *pxStack;
|
|
|
|
/* Allocate space for the stack used by the task being created. */
|
|
pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
|
|
800cdb0: 88fb ldrh r3, [r7, #6]
|
|
800cdb2: 009b lsls r3, r3, #2
|
|
800cdb4: 4618 mov r0, r3
|
|
800cdb6: f002 fa69 bl 800f28c <pvPortMalloc>
|
|
800cdba: 6178 str r0, [r7, #20]
|
|
|
|
if( pxStack != NULL )
|
|
800cdbc: 697b ldr r3, [r7, #20]
|
|
800cdbe: 2b00 cmp r3, #0
|
|
800cdc0: d00e beq.n 800cde0 <xTaskCreate+0x40>
|
|
{
|
|
/* Allocate space for the TCB. */
|
|
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
|
|
800cdc2: 20a8 movs r0, #168 @ 0xa8
|
|
800cdc4: f002 fa62 bl 800f28c <pvPortMalloc>
|
|
800cdc8: 61f8 str r0, [r7, #28]
|
|
|
|
if( pxNewTCB != NULL )
|
|
800cdca: 69fb ldr r3, [r7, #28]
|
|
800cdcc: 2b00 cmp r3, #0
|
|
800cdce: d003 beq.n 800cdd8 <xTaskCreate+0x38>
|
|
{
|
|
/* Store the stack location in the TCB. */
|
|
pxNewTCB->pxStack = pxStack;
|
|
800cdd0: 69fb ldr r3, [r7, #28]
|
|
800cdd2: 697a ldr r2, [r7, #20]
|
|
800cdd4: 631a str r2, [r3, #48] @ 0x30
|
|
800cdd6: e005 b.n 800cde4 <xTaskCreate+0x44>
|
|
}
|
|
else
|
|
{
|
|
/* The stack cannot be used as the TCB was not created. Free
|
|
it again. */
|
|
vPortFree( pxStack );
|
|
800cdd8: 6978 ldr r0, [r7, #20]
|
|
800cdda: f002 fb25 bl 800f428 <vPortFree>
|
|
800cdde: e001 b.n 800cde4 <xTaskCreate+0x44>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
pxNewTCB = NULL;
|
|
800cde0: 2300 movs r3, #0
|
|
800cde2: 61fb str r3, [r7, #28]
|
|
}
|
|
}
|
|
#endif /* portSTACK_GROWTH */
|
|
|
|
if( pxNewTCB != NULL )
|
|
800cde4: 69fb ldr r3, [r7, #28]
|
|
800cde6: 2b00 cmp r3, #0
|
|
800cde8: d017 beq.n 800ce1a <xTaskCreate+0x7a>
|
|
{
|
|
#if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
|
|
{
|
|
/* Tasks can be created statically or dynamically, so note this
|
|
task was created dynamically in case it is later deleted. */
|
|
pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
|
|
800cdea: 69fb ldr r3, [r7, #28]
|
|
800cdec: 2200 movs r2, #0
|
|
800cdee: f883 20a5 strb.w r2, [r3, #165] @ 0xa5
|
|
}
|
|
#endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
|
|
|
|
prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
|
|
800cdf2: 88fa ldrh r2, [r7, #6]
|
|
800cdf4: 2300 movs r3, #0
|
|
800cdf6: 9303 str r3, [sp, #12]
|
|
800cdf8: 69fb ldr r3, [r7, #28]
|
|
800cdfa: 9302 str r3, [sp, #8]
|
|
800cdfc: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800cdfe: 9301 str r3, [sp, #4]
|
|
800ce00: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ce02: 9300 str r3, [sp, #0]
|
|
800ce04: 683b ldr r3, [r7, #0]
|
|
800ce06: 68b9 ldr r1, [r7, #8]
|
|
800ce08: 68f8 ldr r0, [r7, #12]
|
|
800ce0a: f000 f80f bl 800ce2c <prvInitialiseNewTask>
|
|
prvAddNewTaskToReadyList( pxNewTCB );
|
|
800ce0e: 69f8 ldr r0, [r7, #28]
|
|
800ce10: f000 f8b4 bl 800cf7c <prvAddNewTaskToReadyList>
|
|
xReturn = pdPASS;
|
|
800ce14: 2301 movs r3, #1
|
|
800ce16: 61bb str r3, [r7, #24]
|
|
800ce18: e002 b.n 800ce20 <xTaskCreate+0x80>
|
|
}
|
|
else
|
|
{
|
|
xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
|
|
800ce1a: f04f 33ff mov.w r3, #4294967295
|
|
800ce1e: 61bb str r3, [r7, #24]
|
|
}
|
|
|
|
return xReturn;
|
|
800ce20: 69bb ldr r3, [r7, #24]
|
|
}
|
|
800ce22: 4618 mov r0, r3
|
|
800ce24: 3720 adds r7, #32
|
|
800ce26: 46bd mov sp, r7
|
|
800ce28: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800ce2c <prvInitialiseNewTask>:
|
|
void * const pvParameters,
|
|
UBaseType_t uxPriority,
|
|
TaskHandle_t * const pxCreatedTask,
|
|
TCB_t *pxNewTCB,
|
|
const MemoryRegion_t * const xRegions )
|
|
{
|
|
800ce2c: b580 push {r7, lr}
|
|
800ce2e: b088 sub sp, #32
|
|
800ce30: af00 add r7, sp, #0
|
|
800ce32: 60f8 str r0, [r7, #12]
|
|
800ce34: 60b9 str r1, [r7, #8]
|
|
800ce36: 607a str r2, [r7, #4]
|
|
800ce38: 603b str r3, [r7, #0]
|
|
|
|
/* Avoid dependency on memset() if it is not required. */
|
|
#if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
|
|
{
|
|
/* Fill the stack with a known value to assist debugging. */
|
|
( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
|
|
800ce3a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800ce3c: 6b18 ldr r0, [r3, #48] @ 0x30
|
|
800ce3e: 687b ldr r3, [r7, #4]
|
|
800ce40: 009b lsls r3, r3, #2
|
|
800ce42: 461a mov r2, r3
|
|
800ce44: 21a5 movs r1, #165 @ 0xa5
|
|
800ce46: f003 fd03 bl 8010850 <memset>
|
|
grows from high memory to low (as per the 80x86) or vice versa.
|
|
portSTACK_GROWTH is used to make the result positive or negative as required
|
|
by the port. */
|
|
#if( portSTACK_GROWTH < 0 )
|
|
{
|
|
pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
|
|
800ce4a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800ce4c: 6b1a ldr r2, [r3, #48] @ 0x30
|
|
800ce4e: 687b ldr r3, [r7, #4]
|
|
800ce50: f103 4380 add.w r3, r3, #1073741824 @ 0x40000000
|
|
800ce54: 3b01 subs r3, #1
|
|
800ce56: 009b lsls r3, r3, #2
|
|
800ce58: 4413 add r3, r2
|
|
800ce5a: 61bb str r3, [r7, #24]
|
|
pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
|
|
800ce5c: 69bb ldr r3, [r7, #24]
|
|
800ce5e: f023 0307 bic.w r3, r3, #7
|
|
800ce62: 61bb str r3, [r7, #24]
|
|
|
|
/* Check the alignment of the calculated top of stack is correct. */
|
|
configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
|
|
800ce64: 69bb ldr r3, [r7, #24]
|
|
800ce66: f003 0307 and.w r3, r3, #7
|
|
800ce6a: 2b00 cmp r3, #0
|
|
800ce6c: d00b beq.n 800ce86 <prvInitialiseNewTask+0x5a>
|
|
__asm volatile
|
|
800ce6e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ce72: f383 8811 msr BASEPRI, r3
|
|
800ce76: f3bf 8f6f isb sy
|
|
800ce7a: f3bf 8f4f dsb sy
|
|
800ce7e: 617b str r3, [r7, #20]
|
|
}
|
|
800ce80: bf00 nop
|
|
800ce82: bf00 nop
|
|
800ce84: e7fd b.n 800ce82 <prvInitialiseNewTask+0x56>
|
|
pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
|
|
}
|
|
#endif /* portSTACK_GROWTH */
|
|
|
|
/* Store the task name in the TCB. */
|
|
if( pcName != NULL )
|
|
800ce86: 68bb ldr r3, [r7, #8]
|
|
800ce88: 2b00 cmp r3, #0
|
|
800ce8a: d01f beq.n 800cecc <prvInitialiseNewTask+0xa0>
|
|
{
|
|
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
|
|
800ce8c: 2300 movs r3, #0
|
|
800ce8e: 61fb str r3, [r7, #28]
|
|
800ce90: e012 b.n 800ceb8 <prvInitialiseNewTask+0x8c>
|
|
{
|
|
pxNewTCB->pcTaskName[ x ] = pcName[ x ];
|
|
800ce92: 68ba ldr r2, [r7, #8]
|
|
800ce94: 69fb ldr r3, [r7, #28]
|
|
800ce96: 4413 add r3, r2
|
|
800ce98: 7819 ldrb r1, [r3, #0]
|
|
800ce9a: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800ce9c: 69fb ldr r3, [r7, #28]
|
|
800ce9e: 4413 add r3, r2
|
|
800cea0: 3334 adds r3, #52 @ 0x34
|
|
800cea2: 460a mov r2, r1
|
|
800cea4: 701a strb r2, [r3, #0]
|
|
|
|
/* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
|
|
configMAX_TASK_NAME_LEN characters just in case the memory after the
|
|
string is not accessible (extremely unlikely). */
|
|
if( pcName[ x ] == ( char ) 0x00 )
|
|
800cea6: 68ba ldr r2, [r7, #8]
|
|
800cea8: 69fb ldr r3, [r7, #28]
|
|
800ceaa: 4413 add r3, r2
|
|
800ceac: 781b ldrb r3, [r3, #0]
|
|
800ceae: 2b00 cmp r3, #0
|
|
800ceb0: d006 beq.n 800cec0 <prvInitialiseNewTask+0x94>
|
|
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
|
|
800ceb2: 69fb ldr r3, [r7, #28]
|
|
800ceb4: 3301 adds r3, #1
|
|
800ceb6: 61fb str r3, [r7, #28]
|
|
800ceb8: 69fb ldr r3, [r7, #28]
|
|
800ceba: 2b0f cmp r3, #15
|
|
800cebc: d9e9 bls.n 800ce92 <prvInitialiseNewTask+0x66>
|
|
800cebe: e000 b.n 800cec2 <prvInitialiseNewTask+0x96>
|
|
{
|
|
break;
|
|
800cec0: bf00 nop
|
|
}
|
|
}
|
|
|
|
/* Ensure the name string is terminated in the case that the string length
|
|
was greater or equal to configMAX_TASK_NAME_LEN. */
|
|
pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
|
|
800cec2: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cec4: 2200 movs r2, #0
|
|
800cec6: f883 2043 strb.w r2, [r3, #67] @ 0x43
|
|
800ceca: e003 b.n 800ced4 <prvInitialiseNewTask+0xa8>
|
|
}
|
|
else
|
|
{
|
|
/* The task has not been given a name, so just ensure there is a NULL
|
|
terminator when it is read out. */
|
|
pxNewTCB->pcTaskName[ 0 ] = 0x00;
|
|
800cecc: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cece: 2200 movs r2, #0
|
|
800ced0: f883 2034 strb.w r2, [r3, #52] @ 0x34
|
|
}
|
|
|
|
/* This is used as an array index so must ensure it's not too large. First
|
|
remove the privilege bit if one is present. */
|
|
if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
|
|
800ced4: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ced6: 2b37 cmp r3, #55 @ 0x37
|
|
800ced8: d901 bls.n 800cede <prvInitialiseNewTask+0xb2>
|
|
{
|
|
uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
|
|
800ceda: 2337 movs r3, #55 @ 0x37
|
|
800cedc: 62bb str r3, [r7, #40] @ 0x28
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
pxNewTCB->uxPriority = uxPriority;
|
|
800cede: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cee0: 6aba ldr r2, [r7, #40] @ 0x28
|
|
800cee2: 62da str r2, [r3, #44] @ 0x2c
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
{
|
|
pxNewTCB->uxBasePriority = uxPriority;
|
|
800cee4: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cee6: 6aba ldr r2, [r7, #40] @ 0x28
|
|
800cee8: 64da str r2, [r3, #76] @ 0x4c
|
|
pxNewTCB->uxMutexesHeld = 0;
|
|
800ceea: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800ceec: 2200 movs r2, #0
|
|
800ceee: 651a str r2, [r3, #80] @ 0x50
|
|
}
|
|
#endif /* configUSE_MUTEXES */
|
|
|
|
vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
|
|
800cef0: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cef2: 3304 adds r3, #4
|
|
800cef4: 4618 mov r0, r3
|
|
800cef6: f7fe fec7 bl 800bc88 <vListInitialiseItem>
|
|
vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
|
|
800cefa: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cefc: 3318 adds r3, #24
|
|
800cefe: 4618 mov r0, r3
|
|
800cf00: f7fe fec2 bl 800bc88 <vListInitialiseItem>
|
|
|
|
/* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
|
|
back to the containing TCB from a generic item in a list. */
|
|
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
|
|
800cf04: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf06: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800cf08: 611a str r2, [r3, #16]
|
|
|
|
/* Event lists are always in priority order. */
|
|
listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800cf0a: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800cf0c: f1c3 0238 rsb r2, r3, #56 @ 0x38
|
|
800cf10: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf12: 619a str r2, [r3, #24]
|
|
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
|
|
800cf14: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf16: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800cf18: 625a str r2, [r3, #36] @ 0x24
|
|
}
|
|
#endif
|
|
|
|
#if ( configUSE_TASK_NOTIFICATIONS == 1 )
|
|
{
|
|
pxNewTCB->ulNotifiedValue = 0;
|
|
800cf1a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf1c: 2200 movs r2, #0
|
|
800cf1e: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
|
|
800cf22: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf24: 2200 movs r2, #0
|
|
800cf26: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
|
|
#if ( configUSE_NEWLIB_REENTRANT == 1 )
|
|
{
|
|
/* Initialise this task's Newlib reent structure.
|
|
See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
|
|
for additional information. */
|
|
_REENT_INIT_PTR( ( &( pxNewTCB->xNewLib_reent ) ) );
|
|
800cf2a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf2c: 3354 adds r3, #84 @ 0x54
|
|
800cf2e: 224c movs r2, #76 @ 0x4c
|
|
800cf30: 2100 movs r1, #0
|
|
800cf32: 4618 mov r0, r3
|
|
800cf34: f003 fc8c bl 8010850 <memset>
|
|
800cf38: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf3a: 4a0d ldr r2, [pc, #52] @ (800cf70 <prvInitialiseNewTask+0x144>)
|
|
800cf3c: 659a str r2, [r3, #88] @ 0x58
|
|
800cf3e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf40: 4a0c ldr r2, [pc, #48] @ (800cf74 <prvInitialiseNewTask+0x148>)
|
|
800cf42: 65da str r2, [r3, #92] @ 0x5c
|
|
800cf44: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf46: 4a0c ldr r2, [pc, #48] @ (800cf78 <prvInitialiseNewTask+0x14c>)
|
|
800cf48: 661a str r2, [r3, #96] @ 0x60
|
|
}
|
|
#endif /* portSTACK_GROWTH */
|
|
}
|
|
#else /* portHAS_STACK_OVERFLOW_CHECKING */
|
|
{
|
|
pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
|
|
800cf4a: 683a ldr r2, [r7, #0]
|
|
800cf4c: 68f9 ldr r1, [r7, #12]
|
|
800cf4e: 69b8 ldr r0, [r7, #24]
|
|
800cf50: f001 ff4a bl 800ede8 <pxPortInitialiseStack>
|
|
800cf54: 4602 mov r2, r0
|
|
800cf56: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800cf58: 601a str r2, [r3, #0]
|
|
}
|
|
#endif /* portHAS_STACK_OVERFLOW_CHECKING */
|
|
}
|
|
#endif /* portUSING_MPU_WRAPPERS */
|
|
|
|
if( pxCreatedTask != NULL )
|
|
800cf5a: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800cf5c: 2b00 cmp r3, #0
|
|
800cf5e: d002 beq.n 800cf66 <prvInitialiseNewTask+0x13a>
|
|
{
|
|
/* Pass the handle out in an anonymous way. The handle can be used to
|
|
change the created task's priority, delete the created task, etc.*/
|
|
*pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
|
|
800cf60: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800cf62: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800cf64: 601a str r2, [r3, #0]
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800cf66: bf00 nop
|
|
800cf68: 3720 adds r7, #32
|
|
800cf6a: 46bd mov sp, r7
|
|
800cf6c: bd80 pop {r7, pc}
|
|
800cf6e: bf00 nop
|
|
800cf70: 20008848 .word 0x20008848
|
|
800cf74: 200088b0 .word 0x200088b0
|
|
800cf78: 20008918 .word 0x20008918
|
|
|
|
0800cf7c <prvAddNewTaskToReadyList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
|
|
{
|
|
800cf7c: b580 push {r7, lr}
|
|
800cf7e: b082 sub sp, #8
|
|
800cf80: af00 add r7, sp, #0
|
|
800cf82: 6078 str r0, [r7, #4]
|
|
/* Ensure interrupts don't access the task lists while the lists are being
|
|
updated. */
|
|
taskENTER_CRITICAL();
|
|
800cf84: f002 f860 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
uxCurrentNumberOfTasks++;
|
|
800cf88: 4b2d ldr r3, [pc, #180] @ (800d040 <prvAddNewTaskToReadyList+0xc4>)
|
|
800cf8a: 681b ldr r3, [r3, #0]
|
|
800cf8c: 3301 adds r3, #1
|
|
800cf8e: 4a2c ldr r2, [pc, #176] @ (800d040 <prvAddNewTaskToReadyList+0xc4>)
|
|
800cf90: 6013 str r3, [r2, #0]
|
|
if( pxCurrentTCB == NULL )
|
|
800cf92: 4b2c ldr r3, [pc, #176] @ (800d044 <prvAddNewTaskToReadyList+0xc8>)
|
|
800cf94: 681b ldr r3, [r3, #0]
|
|
800cf96: 2b00 cmp r3, #0
|
|
800cf98: d109 bne.n 800cfae <prvAddNewTaskToReadyList+0x32>
|
|
{
|
|
/* There are no other tasks, or all the other tasks are in
|
|
the suspended state - make this the current task. */
|
|
pxCurrentTCB = pxNewTCB;
|
|
800cf9a: 4a2a ldr r2, [pc, #168] @ (800d044 <prvAddNewTaskToReadyList+0xc8>)
|
|
800cf9c: 687b ldr r3, [r7, #4]
|
|
800cf9e: 6013 str r3, [r2, #0]
|
|
|
|
if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
|
|
800cfa0: 4b27 ldr r3, [pc, #156] @ (800d040 <prvAddNewTaskToReadyList+0xc4>)
|
|
800cfa2: 681b ldr r3, [r3, #0]
|
|
800cfa4: 2b01 cmp r3, #1
|
|
800cfa6: d110 bne.n 800cfca <prvAddNewTaskToReadyList+0x4e>
|
|
{
|
|
/* This is the first task to be created so do the preliminary
|
|
initialisation required. We will not recover if this call
|
|
fails, but we will report the failure. */
|
|
prvInitialiseTaskLists();
|
|
800cfa8: f000 fde4 bl 800db74 <prvInitialiseTaskLists>
|
|
800cfac: e00d b.n 800cfca <prvAddNewTaskToReadyList+0x4e>
|
|
else
|
|
{
|
|
/* If the scheduler is not already running, make this task the
|
|
current task if it is the highest priority task to be created
|
|
so far. */
|
|
if( xSchedulerRunning == pdFALSE )
|
|
800cfae: 4b26 ldr r3, [pc, #152] @ (800d048 <prvAddNewTaskToReadyList+0xcc>)
|
|
800cfb0: 681b ldr r3, [r3, #0]
|
|
800cfb2: 2b00 cmp r3, #0
|
|
800cfb4: d109 bne.n 800cfca <prvAddNewTaskToReadyList+0x4e>
|
|
{
|
|
if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
|
|
800cfb6: 4b23 ldr r3, [pc, #140] @ (800d044 <prvAddNewTaskToReadyList+0xc8>)
|
|
800cfb8: 681b ldr r3, [r3, #0]
|
|
800cfba: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800cfbc: 687b ldr r3, [r7, #4]
|
|
800cfbe: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800cfc0: 429a cmp r2, r3
|
|
800cfc2: d802 bhi.n 800cfca <prvAddNewTaskToReadyList+0x4e>
|
|
{
|
|
pxCurrentTCB = pxNewTCB;
|
|
800cfc4: 4a1f ldr r2, [pc, #124] @ (800d044 <prvAddNewTaskToReadyList+0xc8>)
|
|
800cfc6: 687b ldr r3, [r7, #4]
|
|
800cfc8: 6013 str r3, [r2, #0]
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
uxTaskNumber++;
|
|
800cfca: 4b20 ldr r3, [pc, #128] @ (800d04c <prvAddNewTaskToReadyList+0xd0>)
|
|
800cfcc: 681b ldr r3, [r3, #0]
|
|
800cfce: 3301 adds r3, #1
|
|
800cfd0: 4a1e ldr r2, [pc, #120] @ (800d04c <prvAddNewTaskToReadyList+0xd0>)
|
|
800cfd2: 6013 str r3, [r2, #0]
|
|
|
|
#if ( configUSE_TRACE_FACILITY == 1 )
|
|
{
|
|
/* Add a counter into the TCB for tracing only. */
|
|
pxNewTCB->uxTCBNumber = uxTaskNumber;
|
|
800cfd4: 4b1d ldr r3, [pc, #116] @ (800d04c <prvAddNewTaskToReadyList+0xd0>)
|
|
800cfd6: 681a ldr r2, [r3, #0]
|
|
800cfd8: 687b ldr r3, [r7, #4]
|
|
800cfda: 645a str r2, [r3, #68] @ 0x44
|
|
}
|
|
#endif /* configUSE_TRACE_FACILITY */
|
|
traceTASK_CREATE( pxNewTCB );
|
|
|
|
prvAddTaskToReadyList( pxNewTCB );
|
|
800cfdc: 687b ldr r3, [r7, #4]
|
|
800cfde: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800cfe0: 4b1b ldr r3, [pc, #108] @ (800d050 <prvAddNewTaskToReadyList+0xd4>)
|
|
800cfe2: 681b ldr r3, [r3, #0]
|
|
800cfe4: 429a cmp r2, r3
|
|
800cfe6: d903 bls.n 800cff0 <prvAddNewTaskToReadyList+0x74>
|
|
800cfe8: 687b ldr r3, [r7, #4]
|
|
800cfea: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800cfec: 4a18 ldr r2, [pc, #96] @ (800d050 <prvAddNewTaskToReadyList+0xd4>)
|
|
800cfee: 6013 str r3, [r2, #0]
|
|
800cff0: 687b ldr r3, [r7, #4]
|
|
800cff2: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800cff4: 4613 mov r3, r2
|
|
800cff6: 009b lsls r3, r3, #2
|
|
800cff8: 4413 add r3, r2
|
|
800cffa: 009b lsls r3, r3, #2
|
|
800cffc: 4a15 ldr r2, [pc, #84] @ (800d054 <prvAddNewTaskToReadyList+0xd8>)
|
|
800cffe: 441a add r2, r3
|
|
800d000: 687b ldr r3, [r7, #4]
|
|
800d002: 3304 adds r3, #4
|
|
800d004: 4619 mov r1, r3
|
|
800d006: 4610 mov r0, r2
|
|
800d008: f7fe fe4b bl 800bca2 <vListInsertEnd>
|
|
|
|
portSETUP_TCB( pxNewTCB );
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800d00c: f002 f84e bl 800f0ac <vPortExitCritical>
|
|
|
|
if( xSchedulerRunning != pdFALSE )
|
|
800d010: 4b0d ldr r3, [pc, #52] @ (800d048 <prvAddNewTaskToReadyList+0xcc>)
|
|
800d012: 681b ldr r3, [r3, #0]
|
|
800d014: 2b00 cmp r3, #0
|
|
800d016: d00e beq.n 800d036 <prvAddNewTaskToReadyList+0xba>
|
|
{
|
|
/* If the created task is of a higher priority than the current task
|
|
then it should run now. */
|
|
if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
|
|
800d018: 4b0a ldr r3, [pc, #40] @ (800d044 <prvAddNewTaskToReadyList+0xc8>)
|
|
800d01a: 681b ldr r3, [r3, #0]
|
|
800d01c: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d01e: 687b ldr r3, [r7, #4]
|
|
800d020: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d022: 429a cmp r2, r3
|
|
800d024: d207 bcs.n 800d036 <prvAddNewTaskToReadyList+0xba>
|
|
{
|
|
taskYIELD_IF_USING_PREEMPTION();
|
|
800d026: 4b0c ldr r3, [pc, #48] @ (800d058 <prvAddNewTaskToReadyList+0xdc>)
|
|
800d028: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800d02c: 601a str r2, [r3, #0]
|
|
800d02e: f3bf 8f4f dsb sy
|
|
800d032: f3bf 8f6f isb sy
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800d036: bf00 nop
|
|
800d038: 3708 adds r7, #8
|
|
800d03a: 46bd mov sp, r7
|
|
800d03c: bd80 pop {r7, pc}
|
|
800d03e: bf00 nop
|
|
800d040: 200023ac .word 0x200023ac
|
|
800d044: 20001ed8 .word 0x20001ed8
|
|
800d048: 200023b8 .word 0x200023b8
|
|
800d04c: 200023c8 .word 0x200023c8
|
|
800d050: 200023b4 .word 0x200023b4
|
|
800d054: 20001edc .word 0x20001edc
|
|
800d058: e000ed04 .word 0xe000ed04
|
|
|
|
0800d05c <vTaskDelete>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( INCLUDE_vTaskDelete == 1 )
|
|
|
|
void vTaskDelete( TaskHandle_t xTaskToDelete )
|
|
{
|
|
800d05c: b580 push {r7, lr}
|
|
800d05e: b084 sub sp, #16
|
|
800d060: af00 add r7, sp, #0
|
|
800d062: 6078 str r0, [r7, #4]
|
|
TCB_t *pxTCB;
|
|
|
|
taskENTER_CRITICAL();
|
|
800d064: f001 fff0 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* If null is passed in here then it is the calling task that is
|
|
being deleted. */
|
|
pxTCB = prvGetTCBFromHandle( xTaskToDelete );
|
|
800d068: 687b ldr r3, [r7, #4]
|
|
800d06a: 2b00 cmp r3, #0
|
|
800d06c: d102 bne.n 800d074 <vTaskDelete+0x18>
|
|
800d06e: 4b2d ldr r3, [pc, #180] @ (800d124 <vTaskDelete+0xc8>)
|
|
800d070: 681b ldr r3, [r3, #0]
|
|
800d072: e000 b.n 800d076 <vTaskDelete+0x1a>
|
|
800d074: 687b ldr r3, [r7, #4]
|
|
800d076: 60fb str r3, [r7, #12]
|
|
|
|
/* Remove task from the ready/delayed list. */
|
|
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
|
|
800d078: 68fb ldr r3, [r7, #12]
|
|
800d07a: 3304 adds r3, #4
|
|
800d07c: 4618 mov r0, r3
|
|
800d07e: f7fe fe6d bl 800bd5c <uxListRemove>
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Is the task waiting on an event also? */
|
|
if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
|
|
800d082: 68fb ldr r3, [r7, #12]
|
|
800d084: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
800d086: 2b00 cmp r3, #0
|
|
800d088: d004 beq.n 800d094 <vTaskDelete+0x38>
|
|
{
|
|
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
|
|
800d08a: 68fb ldr r3, [r7, #12]
|
|
800d08c: 3318 adds r3, #24
|
|
800d08e: 4618 mov r0, r3
|
|
800d090: f7fe fe64 bl 800bd5c <uxListRemove>
|
|
|
|
/* Increment the uxTaskNumber also so kernel aware debuggers can
|
|
detect that the task lists need re-generating. This is done before
|
|
portPRE_TASK_DELETE_HOOK() as in the Windows port that macro will
|
|
not return. */
|
|
uxTaskNumber++;
|
|
800d094: 4b24 ldr r3, [pc, #144] @ (800d128 <vTaskDelete+0xcc>)
|
|
800d096: 681b ldr r3, [r3, #0]
|
|
800d098: 3301 adds r3, #1
|
|
800d09a: 4a23 ldr r2, [pc, #140] @ (800d128 <vTaskDelete+0xcc>)
|
|
800d09c: 6013 str r3, [r2, #0]
|
|
|
|
if( pxTCB == pxCurrentTCB )
|
|
800d09e: 4b21 ldr r3, [pc, #132] @ (800d124 <vTaskDelete+0xc8>)
|
|
800d0a0: 681b ldr r3, [r3, #0]
|
|
800d0a2: 68fa ldr r2, [r7, #12]
|
|
800d0a4: 429a cmp r2, r3
|
|
800d0a6: d10b bne.n 800d0c0 <vTaskDelete+0x64>
|
|
/* A task is deleting itself. This cannot complete within the
|
|
task itself, as a context switch to another task is required.
|
|
Place the task in the termination list. The idle task will
|
|
check the termination list and free up any memory allocated by
|
|
the scheduler for the TCB and stack of the deleted task. */
|
|
vListInsertEnd( &xTasksWaitingTermination, &( pxTCB->xStateListItem ) );
|
|
800d0a8: 68fb ldr r3, [r7, #12]
|
|
800d0aa: 3304 adds r3, #4
|
|
800d0ac: 4619 mov r1, r3
|
|
800d0ae: 481f ldr r0, [pc, #124] @ (800d12c <vTaskDelete+0xd0>)
|
|
800d0b0: f7fe fdf7 bl 800bca2 <vListInsertEnd>
|
|
|
|
/* Increment the ucTasksDeleted variable so the idle task knows
|
|
there is a task that has been deleted and that it should therefore
|
|
check the xTasksWaitingTermination list. */
|
|
++uxDeletedTasksWaitingCleanUp;
|
|
800d0b4: 4b1e ldr r3, [pc, #120] @ (800d130 <vTaskDelete+0xd4>)
|
|
800d0b6: 681b ldr r3, [r3, #0]
|
|
800d0b8: 3301 adds r3, #1
|
|
800d0ba: 4a1d ldr r2, [pc, #116] @ (800d130 <vTaskDelete+0xd4>)
|
|
800d0bc: 6013 str r3, [r2, #0]
|
|
800d0be: e009 b.n 800d0d4 <vTaskDelete+0x78>
|
|
required. */
|
|
portPRE_TASK_DELETE_HOOK( pxTCB, &xYieldPending );
|
|
}
|
|
else
|
|
{
|
|
--uxCurrentNumberOfTasks;
|
|
800d0c0: 4b1c ldr r3, [pc, #112] @ (800d134 <vTaskDelete+0xd8>)
|
|
800d0c2: 681b ldr r3, [r3, #0]
|
|
800d0c4: 3b01 subs r3, #1
|
|
800d0c6: 4a1b ldr r2, [pc, #108] @ (800d134 <vTaskDelete+0xd8>)
|
|
800d0c8: 6013 str r3, [r2, #0]
|
|
traceTASK_DELETE( pxTCB );
|
|
prvDeleteTCB( pxTCB );
|
|
800d0ca: 68f8 ldr r0, [r7, #12]
|
|
800d0cc: f000 fdc0 bl 800dc50 <prvDeleteTCB>
|
|
|
|
/* Reset the next expected unblock time in case it referred to
|
|
the task that has just been deleted. */
|
|
prvResetNextTaskUnblockTime();
|
|
800d0d0: f000 fdf4 bl 800dcbc <prvResetNextTaskUnblockTime>
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800d0d4: f001 ffea bl 800f0ac <vPortExitCritical>
|
|
|
|
/* Force a reschedule if it is the currently running task that has just
|
|
been deleted. */
|
|
if( xSchedulerRunning != pdFALSE )
|
|
800d0d8: 4b17 ldr r3, [pc, #92] @ (800d138 <vTaskDelete+0xdc>)
|
|
800d0da: 681b ldr r3, [r3, #0]
|
|
800d0dc: 2b00 cmp r3, #0
|
|
800d0de: d01c beq.n 800d11a <vTaskDelete+0xbe>
|
|
{
|
|
if( pxTCB == pxCurrentTCB )
|
|
800d0e0: 4b10 ldr r3, [pc, #64] @ (800d124 <vTaskDelete+0xc8>)
|
|
800d0e2: 681b ldr r3, [r3, #0]
|
|
800d0e4: 68fa ldr r2, [r7, #12]
|
|
800d0e6: 429a cmp r2, r3
|
|
800d0e8: d117 bne.n 800d11a <vTaskDelete+0xbe>
|
|
{
|
|
configASSERT( uxSchedulerSuspended == 0 );
|
|
800d0ea: 4b14 ldr r3, [pc, #80] @ (800d13c <vTaskDelete+0xe0>)
|
|
800d0ec: 681b ldr r3, [r3, #0]
|
|
800d0ee: 2b00 cmp r3, #0
|
|
800d0f0: d00b beq.n 800d10a <vTaskDelete+0xae>
|
|
__asm volatile
|
|
800d0f2: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d0f6: f383 8811 msr BASEPRI, r3
|
|
800d0fa: f3bf 8f6f isb sy
|
|
800d0fe: f3bf 8f4f dsb sy
|
|
800d102: 60bb str r3, [r7, #8]
|
|
}
|
|
800d104: bf00 nop
|
|
800d106: bf00 nop
|
|
800d108: e7fd b.n 800d106 <vTaskDelete+0xaa>
|
|
portYIELD_WITHIN_API();
|
|
800d10a: 4b0d ldr r3, [pc, #52] @ (800d140 <vTaskDelete+0xe4>)
|
|
800d10c: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800d110: 601a str r2, [r3, #0]
|
|
800d112: f3bf 8f4f dsb sy
|
|
800d116: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
800d11a: bf00 nop
|
|
800d11c: 3710 adds r7, #16
|
|
800d11e: 46bd mov sp, r7
|
|
800d120: bd80 pop {r7, pc}
|
|
800d122: bf00 nop
|
|
800d124: 20001ed8 .word 0x20001ed8
|
|
800d128: 200023c8 .word 0x200023c8
|
|
800d12c: 20002380 .word 0x20002380
|
|
800d130: 20002394 .word 0x20002394
|
|
800d134: 200023ac .word 0x200023ac
|
|
800d138: 200023b8 .word 0x200023b8
|
|
800d13c: 200023d4 .word 0x200023d4
|
|
800d140: e000ed04 .word 0xe000ed04
|
|
|
|
0800d144 <vTaskDelayUntil>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( INCLUDE_vTaskDelayUntil == 1 )
|
|
|
|
void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement )
|
|
{
|
|
800d144: b580 push {r7, lr}
|
|
800d146: b08a sub sp, #40 @ 0x28
|
|
800d148: af00 add r7, sp, #0
|
|
800d14a: 6078 str r0, [r7, #4]
|
|
800d14c: 6039 str r1, [r7, #0]
|
|
TickType_t xTimeToWake;
|
|
BaseType_t xAlreadyYielded, xShouldDelay = pdFALSE;
|
|
800d14e: 2300 movs r3, #0
|
|
800d150: 627b str r3, [r7, #36] @ 0x24
|
|
|
|
configASSERT( pxPreviousWakeTime );
|
|
800d152: 687b ldr r3, [r7, #4]
|
|
800d154: 2b00 cmp r3, #0
|
|
800d156: d10b bne.n 800d170 <vTaskDelayUntil+0x2c>
|
|
__asm volatile
|
|
800d158: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d15c: f383 8811 msr BASEPRI, r3
|
|
800d160: f3bf 8f6f isb sy
|
|
800d164: f3bf 8f4f dsb sy
|
|
800d168: 617b str r3, [r7, #20]
|
|
}
|
|
800d16a: bf00 nop
|
|
800d16c: bf00 nop
|
|
800d16e: e7fd b.n 800d16c <vTaskDelayUntil+0x28>
|
|
configASSERT( ( xTimeIncrement > 0U ) );
|
|
800d170: 683b ldr r3, [r7, #0]
|
|
800d172: 2b00 cmp r3, #0
|
|
800d174: d10b bne.n 800d18e <vTaskDelayUntil+0x4a>
|
|
__asm volatile
|
|
800d176: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d17a: f383 8811 msr BASEPRI, r3
|
|
800d17e: f3bf 8f6f isb sy
|
|
800d182: f3bf 8f4f dsb sy
|
|
800d186: 613b str r3, [r7, #16]
|
|
}
|
|
800d188: bf00 nop
|
|
800d18a: bf00 nop
|
|
800d18c: e7fd b.n 800d18a <vTaskDelayUntil+0x46>
|
|
configASSERT( uxSchedulerSuspended == 0 );
|
|
800d18e: 4b2a ldr r3, [pc, #168] @ (800d238 <vTaskDelayUntil+0xf4>)
|
|
800d190: 681b ldr r3, [r3, #0]
|
|
800d192: 2b00 cmp r3, #0
|
|
800d194: d00b beq.n 800d1ae <vTaskDelayUntil+0x6a>
|
|
__asm volatile
|
|
800d196: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d19a: f383 8811 msr BASEPRI, r3
|
|
800d19e: f3bf 8f6f isb sy
|
|
800d1a2: f3bf 8f4f dsb sy
|
|
800d1a6: 60fb str r3, [r7, #12]
|
|
}
|
|
800d1a8: bf00 nop
|
|
800d1aa: bf00 nop
|
|
800d1ac: e7fd b.n 800d1aa <vTaskDelayUntil+0x66>
|
|
|
|
vTaskSuspendAll();
|
|
800d1ae: f000 f8ef bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
/* Minor optimisation. The tick count cannot change in this
|
|
block. */
|
|
const TickType_t xConstTickCount = xTickCount;
|
|
800d1b2: 4b22 ldr r3, [pc, #136] @ (800d23c <vTaskDelayUntil+0xf8>)
|
|
800d1b4: 681b ldr r3, [r3, #0]
|
|
800d1b6: 623b str r3, [r7, #32]
|
|
|
|
/* Generate the tick time at which the task wants to wake. */
|
|
xTimeToWake = *pxPreviousWakeTime + xTimeIncrement;
|
|
800d1b8: 687b ldr r3, [r7, #4]
|
|
800d1ba: 681b ldr r3, [r3, #0]
|
|
800d1bc: 683a ldr r2, [r7, #0]
|
|
800d1be: 4413 add r3, r2
|
|
800d1c0: 61fb str r3, [r7, #28]
|
|
|
|
if( xConstTickCount < *pxPreviousWakeTime )
|
|
800d1c2: 687b ldr r3, [r7, #4]
|
|
800d1c4: 681b ldr r3, [r3, #0]
|
|
800d1c6: 6a3a ldr r2, [r7, #32]
|
|
800d1c8: 429a cmp r2, r3
|
|
800d1ca: d20b bcs.n 800d1e4 <vTaskDelayUntil+0xa0>
|
|
/* The tick count has overflowed since this function was
|
|
lasted called. In this case the only time we should ever
|
|
actually delay is if the wake time has also overflowed,
|
|
and the wake time is greater than the tick time. When this
|
|
is the case it is as if neither time had overflowed. */
|
|
if( ( xTimeToWake < *pxPreviousWakeTime ) && ( xTimeToWake > xConstTickCount ) )
|
|
800d1cc: 687b ldr r3, [r7, #4]
|
|
800d1ce: 681b ldr r3, [r3, #0]
|
|
800d1d0: 69fa ldr r2, [r7, #28]
|
|
800d1d2: 429a cmp r2, r3
|
|
800d1d4: d211 bcs.n 800d1fa <vTaskDelayUntil+0xb6>
|
|
800d1d6: 69fa ldr r2, [r7, #28]
|
|
800d1d8: 6a3b ldr r3, [r7, #32]
|
|
800d1da: 429a cmp r2, r3
|
|
800d1dc: d90d bls.n 800d1fa <vTaskDelayUntil+0xb6>
|
|
{
|
|
xShouldDelay = pdTRUE;
|
|
800d1de: 2301 movs r3, #1
|
|
800d1e0: 627b str r3, [r7, #36] @ 0x24
|
|
800d1e2: e00a b.n 800d1fa <vTaskDelayUntil+0xb6>
|
|
else
|
|
{
|
|
/* The tick time has not overflowed. In this case we will
|
|
delay if either the wake time has overflowed, and/or the
|
|
tick time is less than the wake time. */
|
|
if( ( xTimeToWake < *pxPreviousWakeTime ) || ( xTimeToWake > xConstTickCount ) )
|
|
800d1e4: 687b ldr r3, [r7, #4]
|
|
800d1e6: 681b ldr r3, [r3, #0]
|
|
800d1e8: 69fa ldr r2, [r7, #28]
|
|
800d1ea: 429a cmp r2, r3
|
|
800d1ec: d303 bcc.n 800d1f6 <vTaskDelayUntil+0xb2>
|
|
800d1ee: 69fa ldr r2, [r7, #28]
|
|
800d1f0: 6a3b ldr r3, [r7, #32]
|
|
800d1f2: 429a cmp r2, r3
|
|
800d1f4: d901 bls.n 800d1fa <vTaskDelayUntil+0xb6>
|
|
{
|
|
xShouldDelay = pdTRUE;
|
|
800d1f6: 2301 movs r3, #1
|
|
800d1f8: 627b str r3, [r7, #36] @ 0x24
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
/* Update the wake time ready for the next call. */
|
|
*pxPreviousWakeTime = xTimeToWake;
|
|
800d1fa: 687b ldr r3, [r7, #4]
|
|
800d1fc: 69fa ldr r2, [r7, #28]
|
|
800d1fe: 601a str r2, [r3, #0]
|
|
|
|
if( xShouldDelay != pdFALSE )
|
|
800d200: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800d202: 2b00 cmp r3, #0
|
|
800d204: d006 beq.n 800d214 <vTaskDelayUntil+0xd0>
|
|
{
|
|
traceTASK_DELAY_UNTIL( xTimeToWake );
|
|
|
|
/* prvAddCurrentTaskToDelayedList() needs the block time, not
|
|
the time to wake, so subtract the current tick count. */
|
|
prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE );
|
|
800d206: 69fa ldr r2, [r7, #28]
|
|
800d208: 6a3b ldr r3, [r7, #32]
|
|
800d20a: 1ad3 subs r3, r2, r3
|
|
800d20c: 2100 movs r1, #0
|
|
800d20e: 4618 mov r0, r3
|
|
800d210: f001 f932 bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
xAlreadyYielded = xTaskResumeAll();
|
|
800d214: f000 f8ca bl 800d3ac <xTaskResumeAll>
|
|
800d218: 61b8 str r0, [r7, #24]
|
|
|
|
/* Force a reschedule if xTaskResumeAll has not already done so, we may
|
|
have put ourselves to sleep. */
|
|
if( xAlreadyYielded == pdFALSE )
|
|
800d21a: 69bb ldr r3, [r7, #24]
|
|
800d21c: 2b00 cmp r3, #0
|
|
800d21e: d107 bne.n 800d230 <vTaskDelayUntil+0xec>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800d220: 4b07 ldr r3, [pc, #28] @ (800d240 <vTaskDelayUntil+0xfc>)
|
|
800d222: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800d226: 601a str r2, [r3, #0]
|
|
800d228: f3bf 8f4f dsb sy
|
|
800d22c: f3bf 8f6f isb sy
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800d230: bf00 nop
|
|
800d232: 3728 adds r7, #40 @ 0x28
|
|
800d234: 46bd mov sp, r7
|
|
800d236: bd80 pop {r7, pc}
|
|
800d238: 200023d4 .word 0x200023d4
|
|
800d23c: 200023b0 .word 0x200023b0
|
|
800d240: e000ed04 .word 0xe000ed04
|
|
|
|
0800d244 <vTaskDelay>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( INCLUDE_vTaskDelay == 1 )
|
|
|
|
void vTaskDelay( const TickType_t xTicksToDelay )
|
|
{
|
|
800d244: b580 push {r7, lr}
|
|
800d246: b084 sub sp, #16
|
|
800d248: af00 add r7, sp, #0
|
|
800d24a: 6078 str r0, [r7, #4]
|
|
BaseType_t xAlreadyYielded = pdFALSE;
|
|
800d24c: 2300 movs r3, #0
|
|
800d24e: 60fb str r3, [r7, #12]
|
|
|
|
/* A delay time of zero just forces a reschedule. */
|
|
if( xTicksToDelay > ( TickType_t ) 0U )
|
|
800d250: 687b ldr r3, [r7, #4]
|
|
800d252: 2b00 cmp r3, #0
|
|
800d254: d018 beq.n 800d288 <vTaskDelay+0x44>
|
|
{
|
|
configASSERT( uxSchedulerSuspended == 0 );
|
|
800d256: 4b14 ldr r3, [pc, #80] @ (800d2a8 <vTaskDelay+0x64>)
|
|
800d258: 681b ldr r3, [r3, #0]
|
|
800d25a: 2b00 cmp r3, #0
|
|
800d25c: d00b beq.n 800d276 <vTaskDelay+0x32>
|
|
__asm volatile
|
|
800d25e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d262: f383 8811 msr BASEPRI, r3
|
|
800d266: f3bf 8f6f isb sy
|
|
800d26a: f3bf 8f4f dsb sy
|
|
800d26e: 60bb str r3, [r7, #8]
|
|
}
|
|
800d270: bf00 nop
|
|
800d272: bf00 nop
|
|
800d274: e7fd b.n 800d272 <vTaskDelay+0x2e>
|
|
vTaskSuspendAll();
|
|
800d276: f000 f88b bl 800d390 <vTaskSuspendAll>
|
|
list or removed from the blocked list until the scheduler
|
|
is resumed.
|
|
|
|
This task cannot be in an event list as it is the currently
|
|
executing task. */
|
|
prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
|
|
800d27a: 2100 movs r1, #0
|
|
800d27c: 6878 ldr r0, [r7, #4]
|
|
800d27e: f001 f8fb bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
}
|
|
xAlreadyYielded = xTaskResumeAll();
|
|
800d282: f000 f893 bl 800d3ac <xTaskResumeAll>
|
|
800d286: 60f8 str r0, [r7, #12]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Force a reschedule if xTaskResumeAll has not already done so, we may
|
|
have put ourselves to sleep. */
|
|
if( xAlreadyYielded == pdFALSE )
|
|
800d288: 68fb ldr r3, [r7, #12]
|
|
800d28a: 2b00 cmp r3, #0
|
|
800d28c: d107 bne.n 800d29e <vTaskDelay+0x5a>
|
|
{
|
|
portYIELD_WITHIN_API();
|
|
800d28e: 4b07 ldr r3, [pc, #28] @ (800d2ac <vTaskDelay+0x68>)
|
|
800d290: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800d294: 601a str r2, [r3, #0]
|
|
800d296: f3bf 8f4f dsb sy
|
|
800d29a: f3bf 8f6f isb sy
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800d29e: bf00 nop
|
|
800d2a0: 3710 adds r7, #16
|
|
800d2a2: 46bd mov sp, r7
|
|
800d2a4: bd80 pop {r7, pc}
|
|
800d2a6: bf00 nop
|
|
800d2a8: 200023d4 .word 0x200023d4
|
|
800d2ac: e000ed04 .word 0xe000ed04
|
|
|
|
0800d2b0 <vTaskStartScheduler>:
|
|
|
|
#endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskStartScheduler( void )
|
|
{
|
|
800d2b0: b580 push {r7, lr}
|
|
800d2b2: b08a sub sp, #40 @ 0x28
|
|
800d2b4: af04 add r7, sp, #16
|
|
BaseType_t xReturn;
|
|
|
|
/* Add the idle task at the lowest priority. */
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
{
|
|
StaticTask_t *pxIdleTaskTCBBuffer = NULL;
|
|
800d2b6: 2300 movs r3, #0
|
|
800d2b8: 60bb str r3, [r7, #8]
|
|
StackType_t *pxIdleTaskStackBuffer = NULL;
|
|
800d2ba: 2300 movs r3, #0
|
|
800d2bc: 607b str r3, [r7, #4]
|
|
uint32_t ulIdleTaskStackSize;
|
|
|
|
/* The Idle task is created using user provided RAM - obtain the
|
|
address of the RAM then create the idle task. */
|
|
vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
|
|
800d2be: 463a mov r2, r7
|
|
800d2c0: 1d39 adds r1, r7, #4
|
|
800d2c2: f107 0308 add.w r3, r7, #8
|
|
800d2c6: 4618 mov r0, r3
|
|
800d2c8: f7fe f9e0 bl 800b68c <vApplicationGetIdleTaskMemory>
|
|
xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
|
|
800d2cc: 6839 ldr r1, [r7, #0]
|
|
800d2ce: 687b ldr r3, [r7, #4]
|
|
800d2d0: 68ba ldr r2, [r7, #8]
|
|
800d2d2: 9202 str r2, [sp, #8]
|
|
800d2d4: 9301 str r3, [sp, #4]
|
|
800d2d6: 2300 movs r3, #0
|
|
800d2d8: 9300 str r3, [sp, #0]
|
|
800d2da: 2300 movs r3, #0
|
|
800d2dc: 460a mov r2, r1
|
|
800d2de: 4924 ldr r1, [pc, #144] @ (800d370 <vTaskStartScheduler+0xc0>)
|
|
800d2e0: 4824 ldr r0, [pc, #144] @ (800d374 <vTaskStartScheduler+0xc4>)
|
|
800d2e2: f7ff fcfd bl 800cce0 <xTaskCreateStatic>
|
|
800d2e6: 4603 mov r3, r0
|
|
800d2e8: 4a23 ldr r2, [pc, #140] @ (800d378 <vTaskStartScheduler+0xc8>)
|
|
800d2ea: 6013 str r3, [r2, #0]
|
|
( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
|
|
portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
|
|
pxIdleTaskStackBuffer,
|
|
pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
|
|
|
|
if( xIdleTaskHandle != NULL )
|
|
800d2ec: 4b22 ldr r3, [pc, #136] @ (800d378 <vTaskStartScheduler+0xc8>)
|
|
800d2ee: 681b ldr r3, [r3, #0]
|
|
800d2f0: 2b00 cmp r3, #0
|
|
800d2f2: d002 beq.n 800d2fa <vTaskStartScheduler+0x4a>
|
|
{
|
|
xReturn = pdPASS;
|
|
800d2f4: 2301 movs r3, #1
|
|
800d2f6: 617b str r3, [r7, #20]
|
|
800d2f8: e001 b.n 800d2fe <vTaskStartScheduler+0x4e>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdFAIL;
|
|
800d2fa: 2300 movs r3, #0
|
|
800d2fc: 617b str r3, [r7, #20]
|
|
}
|
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
|
|
|
#if ( configUSE_TIMERS == 1 )
|
|
{
|
|
if( xReturn == pdPASS )
|
|
800d2fe: 697b ldr r3, [r7, #20]
|
|
800d300: 2b01 cmp r3, #1
|
|
800d302: d102 bne.n 800d30a <vTaskStartScheduler+0x5a>
|
|
{
|
|
xReturn = xTimerCreateTimerTask();
|
|
800d304: f001 f90c bl 800e520 <xTimerCreateTimerTask>
|
|
800d308: 6178 str r0, [r7, #20]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif /* configUSE_TIMERS */
|
|
|
|
if( xReturn == pdPASS )
|
|
800d30a: 697b ldr r3, [r7, #20]
|
|
800d30c: 2b01 cmp r3, #1
|
|
800d30e: d11b bne.n 800d348 <vTaskStartScheduler+0x98>
|
|
__asm volatile
|
|
800d310: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d314: f383 8811 msr BASEPRI, r3
|
|
800d318: f3bf 8f6f isb sy
|
|
800d31c: f3bf 8f4f dsb sy
|
|
800d320: 613b str r3, [r7, #16]
|
|
}
|
|
800d322: bf00 nop
|
|
{
|
|
/* Switch Newlib's _impure_ptr variable to point to the _reent
|
|
structure specific to the task that will run first.
|
|
See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
|
|
for additional information. */
|
|
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
|
|
800d324: 4b15 ldr r3, [pc, #84] @ (800d37c <vTaskStartScheduler+0xcc>)
|
|
800d326: 681b ldr r3, [r3, #0]
|
|
800d328: 3354 adds r3, #84 @ 0x54
|
|
800d32a: 4a15 ldr r2, [pc, #84] @ (800d380 <vTaskStartScheduler+0xd0>)
|
|
800d32c: 6013 str r3, [r2, #0]
|
|
}
|
|
#endif /* configUSE_NEWLIB_REENTRANT */
|
|
|
|
xNextTaskUnblockTime = portMAX_DELAY;
|
|
800d32e: 4b15 ldr r3, [pc, #84] @ (800d384 <vTaskStartScheduler+0xd4>)
|
|
800d330: f04f 32ff mov.w r2, #4294967295
|
|
800d334: 601a str r2, [r3, #0]
|
|
xSchedulerRunning = pdTRUE;
|
|
800d336: 4b14 ldr r3, [pc, #80] @ (800d388 <vTaskStartScheduler+0xd8>)
|
|
800d338: 2201 movs r2, #1
|
|
800d33a: 601a str r2, [r3, #0]
|
|
xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
|
|
800d33c: 4b13 ldr r3, [pc, #76] @ (800d38c <vTaskStartScheduler+0xdc>)
|
|
800d33e: 2200 movs r2, #0
|
|
800d340: 601a str r2, [r3, #0]
|
|
|
|
traceTASK_SWITCHED_IN();
|
|
|
|
/* Setting up the timer tick is hardware specific and thus in the
|
|
portable interface. */
|
|
if( xPortStartScheduler() != pdFALSE )
|
|
800d342: f001 fddd bl 800ef00 <xPortStartScheduler>
|
|
}
|
|
|
|
/* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
|
|
meaning xIdleTaskHandle is not used anywhere else. */
|
|
( void ) xIdleTaskHandle;
|
|
}
|
|
800d346: e00f b.n 800d368 <vTaskStartScheduler+0xb8>
|
|
configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
|
|
800d348: 697b ldr r3, [r7, #20]
|
|
800d34a: f1b3 3fff cmp.w r3, #4294967295
|
|
800d34e: d10b bne.n 800d368 <vTaskStartScheduler+0xb8>
|
|
__asm volatile
|
|
800d350: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d354: f383 8811 msr BASEPRI, r3
|
|
800d358: f3bf 8f6f isb sy
|
|
800d35c: f3bf 8f4f dsb sy
|
|
800d360: 60fb str r3, [r7, #12]
|
|
}
|
|
800d362: bf00 nop
|
|
800d364: bf00 nop
|
|
800d366: e7fd b.n 800d364 <vTaskStartScheduler+0xb4>
|
|
}
|
|
800d368: bf00 nop
|
|
800d36a: 3718 adds r7, #24
|
|
800d36c: 46bd mov sp, r7
|
|
800d36e: bd80 pop {r7, pc}
|
|
800d370: 08013038 .word 0x08013038
|
|
800d374: 0800db45 .word 0x0800db45
|
|
800d378: 200023d0 .word 0x200023d0
|
|
800d37c: 20001ed8 .word 0x20001ed8
|
|
800d380: 2000001c .word 0x2000001c
|
|
800d384: 200023cc .word 0x200023cc
|
|
800d388: 200023b8 .word 0x200023b8
|
|
800d38c: 200023b0 .word 0x200023b0
|
|
|
|
0800d390 <vTaskSuspendAll>:
|
|
vPortEndScheduler();
|
|
}
|
|
/*----------------------------------------------------------*/
|
|
|
|
void vTaskSuspendAll( void )
|
|
{
|
|
800d390: b480 push {r7}
|
|
800d392: af00 add r7, sp, #0
|
|
do not otherwise exhibit real time behaviour. */
|
|
portSOFTWARE_BARRIER();
|
|
|
|
/* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
|
|
is used to allow calls to vTaskSuspendAll() to nest. */
|
|
++uxSchedulerSuspended;
|
|
800d394: 4b04 ldr r3, [pc, #16] @ (800d3a8 <vTaskSuspendAll+0x18>)
|
|
800d396: 681b ldr r3, [r3, #0]
|
|
800d398: 3301 adds r3, #1
|
|
800d39a: 4a03 ldr r2, [pc, #12] @ (800d3a8 <vTaskSuspendAll+0x18>)
|
|
800d39c: 6013 str r3, [r2, #0]
|
|
|
|
/* Enforces ordering for ports and optimised compilers that may otherwise place
|
|
the above increment elsewhere. */
|
|
portMEMORY_BARRIER();
|
|
}
|
|
800d39e: bf00 nop
|
|
800d3a0: 46bd mov sp, r7
|
|
800d3a2: f85d 7b04 ldr.w r7, [sp], #4
|
|
800d3a6: 4770 bx lr
|
|
800d3a8: 200023d4 .word 0x200023d4
|
|
|
|
0800d3ac <xTaskResumeAll>:
|
|
|
|
#endif /* configUSE_TICKLESS_IDLE */
|
|
/*----------------------------------------------------------*/
|
|
|
|
BaseType_t xTaskResumeAll( void )
|
|
{
|
|
800d3ac: b580 push {r7, lr}
|
|
800d3ae: b084 sub sp, #16
|
|
800d3b0: af00 add r7, sp, #0
|
|
TCB_t *pxTCB = NULL;
|
|
800d3b2: 2300 movs r3, #0
|
|
800d3b4: 60fb str r3, [r7, #12]
|
|
BaseType_t xAlreadyYielded = pdFALSE;
|
|
800d3b6: 2300 movs r3, #0
|
|
800d3b8: 60bb str r3, [r7, #8]
|
|
|
|
/* If uxSchedulerSuspended is zero then this function does not match a
|
|
previous call to vTaskSuspendAll(). */
|
|
configASSERT( uxSchedulerSuspended );
|
|
800d3ba: 4b42 ldr r3, [pc, #264] @ (800d4c4 <xTaskResumeAll+0x118>)
|
|
800d3bc: 681b ldr r3, [r3, #0]
|
|
800d3be: 2b00 cmp r3, #0
|
|
800d3c0: d10b bne.n 800d3da <xTaskResumeAll+0x2e>
|
|
__asm volatile
|
|
800d3c2: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d3c6: f383 8811 msr BASEPRI, r3
|
|
800d3ca: f3bf 8f6f isb sy
|
|
800d3ce: f3bf 8f4f dsb sy
|
|
800d3d2: 603b str r3, [r7, #0]
|
|
}
|
|
800d3d4: bf00 nop
|
|
800d3d6: bf00 nop
|
|
800d3d8: e7fd b.n 800d3d6 <xTaskResumeAll+0x2a>
|
|
/* It is possible that an ISR caused a task to be removed from an event
|
|
list while the scheduler was suspended. If this was the case then the
|
|
removed task will have been added to the xPendingReadyList. Once the
|
|
scheduler has been resumed it is safe to move all the pending ready
|
|
tasks from this list into their appropriate ready list. */
|
|
taskENTER_CRITICAL();
|
|
800d3da: f001 fe35 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
--uxSchedulerSuspended;
|
|
800d3de: 4b39 ldr r3, [pc, #228] @ (800d4c4 <xTaskResumeAll+0x118>)
|
|
800d3e0: 681b ldr r3, [r3, #0]
|
|
800d3e2: 3b01 subs r3, #1
|
|
800d3e4: 4a37 ldr r2, [pc, #220] @ (800d4c4 <xTaskResumeAll+0x118>)
|
|
800d3e6: 6013 str r3, [r2, #0]
|
|
|
|
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
|
|
800d3e8: 4b36 ldr r3, [pc, #216] @ (800d4c4 <xTaskResumeAll+0x118>)
|
|
800d3ea: 681b ldr r3, [r3, #0]
|
|
800d3ec: 2b00 cmp r3, #0
|
|
800d3ee: d162 bne.n 800d4b6 <xTaskResumeAll+0x10a>
|
|
{
|
|
if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
|
|
800d3f0: 4b35 ldr r3, [pc, #212] @ (800d4c8 <xTaskResumeAll+0x11c>)
|
|
800d3f2: 681b ldr r3, [r3, #0]
|
|
800d3f4: 2b00 cmp r3, #0
|
|
800d3f6: d05e beq.n 800d4b6 <xTaskResumeAll+0x10a>
|
|
{
|
|
/* Move any readied tasks from the pending list into the
|
|
appropriate ready list. */
|
|
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
|
|
800d3f8: e02f b.n 800d45a <xTaskResumeAll+0xae>
|
|
{
|
|
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800d3fa: 4b34 ldr r3, [pc, #208] @ (800d4cc <xTaskResumeAll+0x120>)
|
|
800d3fc: 68db ldr r3, [r3, #12]
|
|
800d3fe: 68db ldr r3, [r3, #12]
|
|
800d400: 60fb str r3, [r7, #12]
|
|
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
|
|
800d402: 68fb ldr r3, [r7, #12]
|
|
800d404: 3318 adds r3, #24
|
|
800d406: 4618 mov r0, r3
|
|
800d408: f7fe fca8 bl 800bd5c <uxListRemove>
|
|
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
|
|
800d40c: 68fb ldr r3, [r7, #12]
|
|
800d40e: 3304 adds r3, #4
|
|
800d410: 4618 mov r0, r3
|
|
800d412: f7fe fca3 bl 800bd5c <uxListRemove>
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800d416: 68fb ldr r3, [r7, #12]
|
|
800d418: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d41a: 4b2d ldr r3, [pc, #180] @ (800d4d0 <xTaskResumeAll+0x124>)
|
|
800d41c: 681b ldr r3, [r3, #0]
|
|
800d41e: 429a cmp r2, r3
|
|
800d420: d903 bls.n 800d42a <xTaskResumeAll+0x7e>
|
|
800d422: 68fb ldr r3, [r7, #12]
|
|
800d424: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d426: 4a2a ldr r2, [pc, #168] @ (800d4d0 <xTaskResumeAll+0x124>)
|
|
800d428: 6013 str r3, [r2, #0]
|
|
800d42a: 68fb ldr r3, [r7, #12]
|
|
800d42c: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d42e: 4613 mov r3, r2
|
|
800d430: 009b lsls r3, r3, #2
|
|
800d432: 4413 add r3, r2
|
|
800d434: 009b lsls r3, r3, #2
|
|
800d436: 4a27 ldr r2, [pc, #156] @ (800d4d4 <xTaskResumeAll+0x128>)
|
|
800d438: 441a add r2, r3
|
|
800d43a: 68fb ldr r3, [r7, #12]
|
|
800d43c: 3304 adds r3, #4
|
|
800d43e: 4619 mov r1, r3
|
|
800d440: 4610 mov r0, r2
|
|
800d442: f7fe fc2e bl 800bca2 <vListInsertEnd>
|
|
|
|
/* If the moved task has a priority higher than the current
|
|
task then a yield must be performed. */
|
|
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
|
|
800d446: 68fb ldr r3, [r7, #12]
|
|
800d448: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d44a: 4b23 ldr r3, [pc, #140] @ (800d4d8 <xTaskResumeAll+0x12c>)
|
|
800d44c: 681b ldr r3, [r3, #0]
|
|
800d44e: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d450: 429a cmp r2, r3
|
|
800d452: d302 bcc.n 800d45a <xTaskResumeAll+0xae>
|
|
{
|
|
xYieldPending = pdTRUE;
|
|
800d454: 4b21 ldr r3, [pc, #132] @ (800d4dc <xTaskResumeAll+0x130>)
|
|
800d456: 2201 movs r2, #1
|
|
800d458: 601a str r2, [r3, #0]
|
|
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
|
|
800d45a: 4b1c ldr r3, [pc, #112] @ (800d4cc <xTaskResumeAll+0x120>)
|
|
800d45c: 681b ldr r3, [r3, #0]
|
|
800d45e: 2b00 cmp r3, #0
|
|
800d460: d1cb bne.n 800d3fa <xTaskResumeAll+0x4e>
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
if( pxTCB != NULL )
|
|
800d462: 68fb ldr r3, [r7, #12]
|
|
800d464: 2b00 cmp r3, #0
|
|
800d466: d001 beq.n 800d46c <xTaskResumeAll+0xc0>
|
|
which may have prevented the next unblock time from being
|
|
re-calculated, in which case re-calculate it now. Mainly
|
|
important for low power tickless implementations, where
|
|
this can prevent an unnecessary exit from low power
|
|
state. */
|
|
prvResetNextTaskUnblockTime();
|
|
800d468: f000 fc28 bl 800dcbc <prvResetNextTaskUnblockTime>
|
|
/* If any ticks occurred while the scheduler was suspended then
|
|
they should be processed now. This ensures the tick count does
|
|
not slip, and that any delayed tasks are resumed at the correct
|
|
time. */
|
|
{
|
|
TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
|
|
800d46c: 4b1c ldr r3, [pc, #112] @ (800d4e0 <xTaskResumeAll+0x134>)
|
|
800d46e: 681b ldr r3, [r3, #0]
|
|
800d470: 607b str r3, [r7, #4]
|
|
|
|
if( xPendedCounts > ( TickType_t ) 0U )
|
|
800d472: 687b ldr r3, [r7, #4]
|
|
800d474: 2b00 cmp r3, #0
|
|
800d476: d010 beq.n 800d49a <xTaskResumeAll+0xee>
|
|
{
|
|
do
|
|
{
|
|
if( xTaskIncrementTick() != pdFALSE )
|
|
800d478: f000 f858 bl 800d52c <xTaskIncrementTick>
|
|
800d47c: 4603 mov r3, r0
|
|
800d47e: 2b00 cmp r3, #0
|
|
800d480: d002 beq.n 800d488 <xTaskResumeAll+0xdc>
|
|
{
|
|
xYieldPending = pdTRUE;
|
|
800d482: 4b16 ldr r3, [pc, #88] @ (800d4dc <xTaskResumeAll+0x130>)
|
|
800d484: 2201 movs r2, #1
|
|
800d486: 601a str r2, [r3, #0]
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
--xPendedCounts;
|
|
800d488: 687b ldr r3, [r7, #4]
|
|
800d48a: 3b01 subs r3, #1
|
|
800d48c: 607b str r3, [r7, #4]
|
|
} while( xPendedCounts > ( TickType_t ) 0U );
|
|
800d48e: 687b ldr r3, [r7, #4]
|
|
800d490: 2b00 cmp r3, #0
|
|
800d492: d1f1 bne.n 800d478 <xTaskResumeAll+0xcc>
|
|
|
|
xPendedTicks = 0;
|
|
800d494: 4b12 ldr r3, [pc, #72] @ (800d4e0 <xTaskResumeAll+0x134>)
|
|
800d496: 2200 movs r2, #0
|
|
800d498: 601a str r2, [r3, #0]
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
if( xYieldPending != pdFALSE )
|
|
800d49a: 4b10 ldr r3, [pc, #64] @ (800d4dc <xTaskResumeAll+0x130>)
|
|
800d49c: 681b ldr r3, [r3, #0]
|
|
800d49e: 2b00 cmp r3, #0
|
|
800d4a0: d009 beq.n 800d4b6 <xTaskResumeAll+0x10a>
|
|
{
|
|
#if( configUSE_PREEMPTION != 0 )
|
|
{
|
|
xAlreadyYielded = pdTRUE;
|
|
800d4a2: 2301 movs r3, #1
|
|
800d4a4: 60bb str r3, [r7, #8]
|
|
}
|
|
#endif
|
|
taskYIELD_IF_USING_PREEMPTION();
|
|
800d4a6: 4b0f ldr r3, [pc, #60] @ (800d4e4 <xTaskResumeAll+0x138>)
|
|
800d4a8: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800d4ac: 601a str r2, [r3, #0]
|
|
800d4ae: f3bf 8f4f dsb sy
|
|
800d4b2: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800d4b6: f001 fdf9 bl 800f0ac <vPortExitCritical>
|
|
|
|
return xAlreadyYielded;
|
|
800d4ba: 68bb ldr r3, [r7, #8]
|
|
}
|
|
800d4bc: 4618 mov r0, r3
|
|
800d4be: 3710 adds r7, #16
|
|
800d4c0: 46bd mov sp, r7
|
|
800d4c2: bd80 pop {r7, pc}
|
|
800d4c4: 200023d4 .word 0x200023d4
|
|
800d4c8: 200023ac .word 0x200023ac
|
|
800d4cc: 2000236c .word 0x2000236c
|
|
800d4d0: 200023b4 .word 0x200023b4
|
|
800d4d4: 20001edc .word 0x20001edc
|
|
800d4d8: 20001ed8 .word 0x20001ed8
|
|
800d4dc: 200023c0 .word 0x200023c0
|
|
800d4e0: 200023bc .word 0x200023bc
|
|
800d4e4: e000ed04 .word 0xe000ed04
|
|
|
|
0800d4e8 <xTaskGetTickCount>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
TickType_t xTaskGetTickCount( void )
|
|
{
|
|
800d4e8: b480 push {r7}
|
|
800d4ea: b083 sub sp, #12
|
|
800d4ec: af00 add r7, sp, #0
|
|
TickType_t xTicks;
|
|
|
|
/* Critical section required if running on a 16 bit processor. */
|
|
portTICK_TYPE_ENTER_CRITICAL();
|
|
{
|
|
xTicks = xTickCount;
|
|
800d4ee: 4b05 ldr r3, [pc, #20] @ (800d504 <xTaskGetTickCount+0x1c>)
|
|
800d4f0: 681b ldr r3, [r3, #0]
|
|
800d4f2: 607b str r3, [r7, #4]
|
|
}
|
|
portTICK_TYPE_EXIT_CRITICAL();
|
|
|
|
return xTicks;
|
|
800d4f4: 687b ldr r3, [r7, #4]
|
|
}
|
|
800d4f6: 4618 mov r0, r3
|
|
800d4f8: 370c adds r7, #12
|
|
800d4fa: 46bd mov sp, r7
|
|
800d4fc: f85d 7b04 ldr.w r7, [sp], #4
|
|
800d500: 4770 bx lr
|
|
800d502: bf00 nop
|
|
800d504: 200023b0 .word 0x200023b0
|
|
|
|
0800d508 <xTaskGetTickCountFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
TickType_t xTaskGetTickCountFromISR( void )
|
|
{
|
|
800d508: b580 push {r7, lr}
|
|
800d50a: b082 sub sp, #8
|
|
800d50c: af00 add r7, sp, #0
|
|
that have been assigned a priority at or (logically) below the maximum
|
|
system call interrupt priority. FreeRTOS maintains a separate interrupt
|
|
safe API to ensure interrupt entry is as fast and as simple as possible.
|
|
More information (albeit Cortex-M specific) is provided on the following
|
|
link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
800d50e: f001 fe7b bl 800f208 <vPortValidateInterruptPriority>
|
|
|
|
uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR();
|
|
800d512: 2300 movs r3, #0
|
|
800d514: 607b str r3, [r7, #4]
|
|
{
|
|
xReturn = xTickCount;
|
|
800d516: 4b04 ldr r3, [pc, #16] @ (800d528 <xTaskGetTickCountFromISR+0x20>)
|
|
800d518: 681b ldr r3, [r3, #0]
|
|
800d51a: 603b str r3, [r7, #0]
|
|
}
|
|
portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
|
|
return xReturn;
|
|
800d51c: 683b ldr r3, [r7, #0]
|
|
}
|
|
800d51e: 4618 mov r0, r3
|
|
800d520: 3708 adds r7, #8
|
|
800d522: 46bd mov sp, r7
|
|
800d524: bd80 pop {r7, pc}
|
|
800d526: bf00 nop
|
|
800d528: 200023b0 .word 0x200023b0
|
|
|
|
0800d52c <xTaskIncrementTick>:
|
|
|
|
#endif /* INCLUDE_xTaskAbortDelay */
|
|
/*----------------------------------------------------------*/
|
|
|
|
BaseType_t xTaskIncrementTick( void )
|
|
{
|
|
800d52c: b580 push {r7, lr}
|
|
800d52e: b086 sub sp, #24
|
|
800d530: af00 add r7, sp, #0
|
|
TCB_t * pxTCB;
|
|
TickType_t xItemValue;
|
|
BaseType_t xSwitchRequired = pdFALSE;
|
|
800d532: 2300 movs r3, #0
|
|
800d534: 617b str r3, [r7, #20]
|
|
|
|
/* Called by the portable layer each time a tick interrupt occurs.
|
|
Increments the tick then checks to see if the new tick value will cause any
|
|
tasks to be unblocked. */
|
|
traceTASK_INCREMENT_TICK( xTickCount );
|
|
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
|
|
800d536: 4b4f ldr r3, [pc, #316] @ (800d674 <xTaskIncrementTick+0x148>)
|
|
800d538: 681b ldr r3, [r3, #0]
|
|
800d53a: 2b00 cmp r3, #0
|
|
800d53c: f040 8090 bne.w 800d660 <xTaskIncrementTick+0x134>
|
|
{
|
|
/* Minor optimisation. The tick count cannot change in this
|
|
block. */
|
|
const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
|
|
800d540: 4b4d ldr r3, [pc, #308] @ (800d678 <xTaskIncrementTick+0x14c>)
|
|
800d542: 681b ldr r3, [r3, #0]
|
|
800d544: 3301 adds r3, #1
|
|
800d546: 613b str r3, [r7, #16]
|
|
|
|
/* Increment the RTOS tick, switching the delayed and overflowed
|
|
delayed lists if it wraps to 0. */
|
|
xTickCount = xConstTickCount;
|
|
800d548: 4a4b ldr r2, [pc, #300] @ (800d678 <xTaskIncrementTick+0x14c>)
|
|
800d54a: 693b ldr r3, [r7, #16]
|
|
800d54c: 6013 str r3, [r2, #0]
|
|
|
|
if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
|
|
800d54e: 693b ldr r3, [r7, #16]
|
|
800d550: 2b00 cmp r3, #0
|
|
800d552: d121 bne.n 800d598 <xTaskIncrementTick+0x6c>
|
|
{
|
|
taskSWITCH_DELAYED_LISTS();
|
|
800d554: 4b49 ldr r3, [pc, #292] @ (800d67c <xTaskIncrementTick+0x150>)
|
|
800d556: 681b ldr r3, [r3, #0]
|
|
800d558: 681b ldr r3, [r3, #0]
|
|
800d55a: 2b00 cmp r3, #0
|
|
800d55c: d00b beq.n 800d576 <xTaskIncrementTick+0x4a>
|
|
__asm volatile
|
|
800d55e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d562: f383 8811 msr BASEPRI, r3
|
|
800d566: f3bf 8f6f isb sy
|
|
800d56a: f3bf 8f4f dsb sy
|
|
800d56e: 603b str r3, [r7, #0]
|
|
}
|
|
800d570: bf00 nop
|
|
800d572: bf00 nop
|
|
800d574: e7fd b.n 800d572 <xTaskIncrementTick+0x46>
|
|
800d576: 4b41 ldr r3, [pc, #260] @ (800d67c <xTaskIncrementTick+0x150>)
|
|
800d578: 681b ldr r3, [r3, #0]
|
|
800d57a: 60fb str r3, [r7, #12]
|
|
800d57c: 4b40 ldr r3, [pc, #256] @ (800d680 <xTaskIncrementTick+0x154>)
|
|
800d57e: 681b ldr r3, [r3, #0]
|
|
800d580: 4a3e ldr r2, [pc, #248] @ (800d67c <xTaskIncrementTick+0x150>)
|
|
800d582: 6013 str r3, [r2, #0]
|
|
800d584: 4a3e ldr r2, [pc, #248] @ (800d680 <xTaskIncrementTick+0x154>)
|
|
800d586: 68fb ldr r3, [r7, #12]
|
|
800d588: 6013 str r3, [r2, #0]
|
|
800d58a: 4b3e ldr r3, [pc, #248] @ (800d684 <xTaskIncrementTick+0x158>)
|
|
800d58c: 681b ldr r3, [r3, #0]
|
|
800d58e: 3301 adds r3, #1
|
|
800d590: 4a3c ldr r2, [pc, #240] @ (800d684 <xTaskIncrementTick+0x158>)
|
|
800d592: 6013 str r3, [r2, #0]
|
|
800d594: f000 fb92 bl 800dcbc <prvResetNextTaskUnblockTime>
|
|
|
|
/* See if this tick has made a timeout expire. Tasks are stored in
|
|
the queue in the order of their wake time - meaning once one task
|
|
has been found whose block time has not expired there is no need to
|
|
look any further down the list. */
|
|
if( xConstTickCount >= xNextTaskUnblockTime )
|
|
800d598: 4b3b ldr r3, [pc, #236] @ (800d688 <xTaskIncrementTick+0x15c>)
|
|
800d59a: 681b ldr r3, [r3, #0]
|
|
800d59c: 693a ldr r2, [r7, #16]
|
|
800d59e: 429a cmp r2, r3
|
|
800d5a0: d349 bcc.n 800d636 <xTaskIncrementTick+0x10a>
|
|
{
|
|
for( ;; )
|
|
{
|
|
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
|
|
800d5a2: 4b36 ldr r3, [pc, #216] @ (800d67c <xTaskIncrementTick+0x150>)
|
|
800d5a4: 681b ldr r3, [r3, #0]
|
|
800d5a6: 681b ldr r3, [r3, #0]
|
|
800d5a8: 2b00 cmp r3, #0
|
|
800d5aa: d104 bne.n 800d5b6 <xTaskIncrementTick+0x8a>
|
|
/* The delayed list is empty. Set xNextTaskUnblockTime
|
|
to the maximum possible value so it is extremely
|
|
unlikely that the
|
|
if( xTickCount >= xNextTaskUnblockTime ) test will pass
|
|
next time through. */
|
|
xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800d5ac: 4b36 ldr r3, [pc, #216] @ (800d688 <xTaskIncrementTick+0x15c>)
|
|
800d5ae: f04f 32ff mov.w r2, #4294967295
|
|
800d5b2: 601a str r2, [r3, #0]
|
|
break;
|
|
800d5b4: e03f b.n 800d636 <xTaskIncrementTick+0x10a>
|
|
{
|
|
/* The delayed list is not empty, get the value of the
|
|
item at the head of the delayed list. This is the time
|
|
at which the task at the head of the delayed list must
|
|
be removed from the Blocked state. */
|
|
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800d5b6: 4b31 ldr r3, [pc, #196] @ (800d67c <xTaskIncrementTick+0x150>)
|
|
800d5b8: 681b ldr r3, [r3, #0]
|
|
800d5ba: 68db ldr r3, [r3, #12]
|
|
800d5bc: 68db ldr r3, [r3, #12]
|
|
800d5be: 60bb str r3, [r7, #8]
|
|
xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
|
|
800d5c0: 68bb ldr r3, [r7, #8]
|
|
800d5c2: 685b ldr r3, [r3, #4]
|
|
800d5c4: 607b str r3, [r7, #4]
|
|
|
|
if( xConstTickCount < xItemValue )
|
|
800d5c6: 693a ldr r2, [r7, #16]
|
|
800d5c8: 687b ldr r3, [r7, #4]
|
|
800d5ca: 429a cmp r2, r3
|
|
800d5cc: d203 bcs.n 800d5d6 <xTaskIncrementTick+0xaa>
|
|
/* It is not time to unblock this item yet, but the
|
|
item value is the time at which the task at the head
|
|
of the blocked list must be removed from the Blocked
|
|
state - so record the item value in
|
|
xNextTaskUnblockTime. */
|
|
xNextTaskUnblockTime = xItemValue;
|
|
800d5ce: 4a2e ldr r2, [pc, #184] @ (800d688 <xTaskIncrementTick+0x15c>)
|
|
800d5d0: 687b ldr r3, [r7, #4]
|
|
800d5d2: 6013 str r3, [r2, #0]
|
|
break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
|
|
800d5d4: e02f b.n 800d636 <xTaskIncrementTick+0x10a>
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* It is time to remove the item from the Blocked state. */
|
|
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
|
|
800d5d6: 68bb ldr r3, [r7, #8]
|
|
800d5d8: 3304 adds r3, #4
|
|
800d5da: 4618 mov r0, r3
|
|
800d5dc: f7fe fbbe bl 800bd5c <uxListRemove>
|
|
|
|
/* Is the task waiting on an event also? If so remove
|
|
it from the event list. */
|
|
if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
|
|
800d5e0: 68bb ldr r3, [r7, #8]
|
|
800d5e2: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
800d5e4: 2b00 cmp r3, #0
|
|
800d5e6: d004 beq.n 800d5f2 <xTaskIncrementTick+0xc6>
|
|
{
|
|
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
|
|
800d5e8: 68bb ldr r3, [r7, #8]
|
|
800d5ea: 3318 adds r3, #24
|
|
800d5ec: 4618 mov r0, r3
|
|
800d5ee: f7fe fbb5 bl 800bd5c <uxListRemove>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Place the unblocked task into the appropriate ready
|
|
list. */
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800d5f2: 68bb ldr r3, [r7, #8]
|
|
800d5f4: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d5f6: 4b25 ldr r3, [pc, #148] @ (800d68c <xTaskIncrementTick+0x160>)
|
|
800d5f8: 681b ldr r3, [r3, #0]
|
|
800d5fa: 429a cmp r2, r3
|
|
800d5fc: d903 bls.n 800d606 <xTaskIncrementTick+0xda>
|
|
800d5fe: 68bb ldr r3, [r7, #8]
|
|
800d600: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d602: 4a22 ldr r2, [pc, #136] @ (800d68c <xTaskIncrementTick+0x160>)
|
|
800d604: 6013 str r3, [r2, #0]
|
|
800d606: 68bb ldr r3, [r7, #8]
|
|
800d608: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d60a: 4613 mov r3, r2
|
|
800d60c: 009b lsls r3, r3, #2
|
|
800d60e: 4413 add r3, r2
|
|
800d610: 009b lsls r3, r3, #2
|
|
800d612: 4a1f ldr r2, [pc, #124] @ (800d690 <xTaskIncrementTick+0x164>)
|
|
800d614: 441a add r2, r3
|
|
800d616: 68bb ldr r3, [r7, #8]
|
|
800d618: 3304 adds r3, #4
|
|
800d61a: 4619 mov r1, r3
|
|
800d61c: 4610 mov r0, r2
|
|
800d61e: f7fe fb40 bl 800bca2 <vListInsertEnd>
|
|
{
|
|
/* Preemption is on, but a context switch should
|
|
only be performed if the unblocked task has a
|
|
priority that is equal to or higher than the
|
|
currently executing task. */
|
|
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
|
|
800d622: 68bb ldr r3, [r7, #8]
|
|
800d624: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d626: 4b1b ldr r3, [pc, #108] @ (800d694 <xTaskIncrementTick+0x168>)
|
|
800d628: 681b ldr r3, [r3, #0]
|
|
800d62a: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d62c: 429a cmp r2, r3
|
|
800d62e: d3b8 bcc.n 800d5a2 <xTaskIncrementTick+0x76>
|
|
{
|
|
xSwitchRequired = pdTRUE;
|
|
800d630: 2301 movs r3, #1
|
|
800d632: 617b str r3, [r7, #20]
|
|
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
|
|
800d634: e7b5 b.n 800d5a2 <xTaskIncrementTick+0x76>
|
|
/* Tasks of equal priority to the currently running task will share
|
|
processing time (time slice) if preemption is on, and the application
|
|
writer has not explicitly turned time slicing off. */
|
|
#if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
|
|
{
|
|
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
|
|
800d636: 4b17 ldr r3, [pc, #92] @ (800d694 <xTaskIncrementTick+0x168>)
|
|
800d638: 681b ldr r3, [r3, #0]
|
|
800d63a: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d63c: 4914 ldr r1, [pc, #80] @ (800d690 <xTaskIncrementTick+0x164>)
|
|
800d63e: 4613 mov r3, r2
|
|
800d640: 009b lsls r3, r3, #2
|
|
800d642: 4413 add r3, r2
|
|
800d644: 009b lsls r3, r3, #2
|
|
800d646: 440b add r3, r1
|
|
800d648: 681b ldr r3, [r3, #0]
|
|
800d64a: 2b01 cmp r3, #1
|
|
800d64c: d901 bls.n 800d652 <xTaskIncrementTick+0x126>
|
|
{
|
|
xSwitchRequired = pdTRUE;
|
|
800d64e: 2301 movs r3, #1
|
|
800d650: 617b str r3, [r7, #20]
|
|
}
|
|
#endif /* configUSE_TICK_HOOK */
|
|
|
|
#if ( configUSE_PREEMPTION == 1 )
|
|
{
|
|
if( xYieldPending != pdFALSE )
|
|
800d652: 4b11 ldr r3, [pc, #68] @ (800d698 <xTaskIncrementTick+0x16c>)
|
|
800d654: 681b ldr r3, [r3, #0]
|
|
800d656: 2b00 cmp r3, #0
|
|
800d658: d007 beq.n 800d66a <xTaskIncrementTick+0x13e>
|
|
{
|
|
xSwitchRequired = pdTRUE;
|
|
800d65a: 2301 movs r3, #1
|
|
800d65c: 617b str r3, [r7, #20]
|
|
800d65e: e004 b.n 800d66a <xTaskIncrementTick+0x13e>
|
|
}
|
|
#endif /* configUSE_PREEMPTION */
|
|
}
|
|
else
|
|
{
|
|
++xPendedTicks;
|
|
800d660: 4b0e ldr r3, [pc, #56] @ (800d69c <xTaskIncrementTick+0x170>)
|
|
800d662: 681b ldr r3, [r3, #0]
|
|
800d664: 3301 adds r3, #1
|
|
800d666: 4a0d ldr r2, [pc, #52] @ (800d69c <xTaskIncrementTick+0x170>)
|
|
800d668: 6013 str r3, [r2, #0]
|
|
vApplicationTickHook();
|
|
}
|
|
#endif
|
|
}
|
|
|
|
return xSwitchRequired;
|
|
800d66a: 697b ldr r3, [r7, #20]
|
|
}
|
|
800d66c: 4618 mov r0, r3
|
|
800d66e: 3718 adds r7, #24
|
|
800d670: 46bd mov sp, r7
|
|
800d672: bd80 pop {r7, pc}
|
|
800d674: 200023d4 .word 0x200023d4
|
|
800d678: 200023b0 .word 0x200023b0
|
|
800d67c: 20002364 .word 0x20002364
|
|
800d680: 20002368 .word 0x20002368
|
|
800d684: 200023c4 .word 0x200023c4
|
|
800d688: 200023cc .word 0x200023cc
|
|
800d68c: 200023b4 .word 0x200023b4
|
|
800d690: 20001edc .word 0x20001edc
|
|
800d694: 20001ed8 .word 0x20001ed8
|
|
800d698: 200023c0 .word 0x200023c0
|
|
800d69c: 200023bc .word 0x200023bc
|
|
|
|
0800d6a0 <vTaskSwitchContext>:
|
|
|
|
#endif /* configUSE_APPLICATION_TASK_TAG */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskSwitchContext( void )
|
|
{
|
|
800d6a0: b580 push {r7, lr}
|
|
800d6a2: b084 sub sp, #16
|
|
800d6a4: af00 add r7, sp, #0
|
|
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
|
|
800d6a6: 4b32 ldr r3, [pc, #200] @ (800d770 <vTaskSwitchContext+0xd0>)
|
|
800d6a8: 681b ldr r3, [r3, #0]
|
|
800d6aa: 2b00 cmp r3, #0
|
|
800d6ac: d003 beq.n 800d6b6 <vTaskSwitchContext+0x16>
|
|
{
|
|
/* The scheduler is currently suspended - do not allow a context
|
|
switch. */
|
|
xYieldPending = pdTRUE;
|
|
800d6ae: 4b31 ldr r3, [pc, #196] @ (800d774 <vTaskSwitchContext+0xd4>)
|
|
800d6b0: 2201 movs r2, #1
|
|
800d6b2: 601a str r2, [r3, #0]
|
|
for additional information. */
|
|
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
|
|
}
|
|
#endif /* configUSE_NEWLIB_REENTRANT */
|
|
}
|
|
}
|
|
800d6b4: e058 b.n 800d768 <vTaskSwitchContext+0xc8>
|
|
xYieldPending = pdFALSE;
|
|
800d6b6: 4b2f ldr r3, [pc, #188] @ (800d774 <vTaskSwitchContext+0xd4>)
|
|
800d6b8: 2200 movs r2, #0
|
|
800d6ba: 601a str r2, [r3, #0]
|
|
taskCHECK_FOR_STACK_OVERFLOW();
|
|
800d6bc: 4b2e ldr r3, [pc, #184] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d6be: 681b ldr r3, [r3, #0]
|
|
800d6c0: 681a ldr r2, [r3, #0]
|
|
800d6c2: 4b2d ldr r3, [pc, #180] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d6c4: 681b ldr r3, [r3, #0]
|
|
800d6c6: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800d6c8: 429a cmp r2, r3
|
|
800d6ca: d808 bhi.n 800d6de <vTaskSwitchContext+0x3e>
|
|
800d6cc: 4b2a ldr r3, [pc, #168] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d6ce: 681a ldr r2, [r3, #0]
|
|
800d6d0: 4b29 ldr r3, [pc, #164] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d6d2: 681b ldr r3, [r3, #0]
|
|
800d6d4: 3334 adds r3, #52 @ 0x34
|
|
800d6d6: 4619 mov r1, r3
|
|
800d6d8: 4610 mov r0, r2
|
|
800d6da: f7f5 fe81 bl 80033e0 <vApplicationStackOverflowHook>
|
|
taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800d6de: 4b27 ldr r3, [pc, #156] @ (800d77c <vTaskSwitchContext+0xdc>)
|
|
800d6e0: 681b ldr r3, [r3, #0]
|
|
800d6e2: 60fb str r3, [r7, #12]
|
|
800d6e4: e011 b.n 800d70a <vTaskSwitchContext+0x6a>
|
|
800d6e6: 68fb ldr r3, [r7, #12]
|
|
800d6e8: 2b00 cmp r3, #0
|
|
800d6ea: d10b bne.n 800d704 <vTaskSwitchContext+0x64>
|
|
__asm volatile
|
|
800d6ec: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d6f0: f383 8811 msr BASEPRI, r3
|
|
800d6f4: f3bf 8f6f isb sy
|
|
800d6f8: f3bf 8f4f dsb sy
|
|
800d6fc: 607b str r3, [r7, #4]
|
|
}
|
|
800d6fe: bf00 nop
|
|
800d700: bf00 nop
|
|
800d702: e7fd b.n 800d700 <vTaskSwitchContext+0x60>
|
|
800d704: 68fb ldr r3, [r7, #12]
|
|
800d706: 3b01 subs r3, #1
|
|
800d708: 60fb str r3, [r7, #12]
|
|
800d70a: 491d ldr r1, [pc, #116] @ (800d780 <vTaskSwitchContext+0xe0>)
|
|
800d70c: 68fa ldr r2, [r7, #12]
|
|
800d70e: 4613 mov r3, r2
|
|
800d710: 009b lsls r3, r3, #2
|
|
800d712: 4413 add r3, r2
|
|
800d714: 009b lsls r3, r3, #2
|
|
800d716: 440b add r3, r1
|
|
800d718: 681b ldr r3, [r3, #0]
|
|
800d71a: 2b00 cmp r3, #0
|
|
800d71c: d0e3 beq.n 800d6e6 <vTaskSwitchContext+0x46>
|
|
800d71e: 68fa ldr r2, [r7, #12]
|
|
800d720: 4613 mov r3, r2
|
|
800d722: 009b lsls r3, r3, #2
|
|
800d724: 4413 add r3, r2
|
|
800d726: 009b lsls r3, r3, #2
|
|
800d728: 4a15 ldr r2, [pc, #84] @ (800d780 <vTaskSwitchContext+0xe0>)
|
|
800d72a: 4413 add r3, r2
|
|
800d72c: 60bb str r3, [r7, #8]
|
|
800d72e: 68bb ldr r3, [r7, #8]
|
|
800d730: 685b ldr r3, [r3, #4]
|
|
800d732: 685a ldr r2, [r3, #4]
|
|
800d734: 68bb ldr r3, [r7, #8]
|
|
800d736: 605a str r2, [r3, #4]
|
|
800d738: 68bb ldr r3, [r7, #8]
|
|
800d73a: 685a ldr r2, [r3, #4]
|
|
800d73c: 68bb ldr r3, [r7, #8]
|
|
800d73e: 3308 adds r3, #8
|
|
800d740: 429a cmp r2, r3
|
|
800d742: d104 bne.n 800d74e <vTaskSwitchContext+0xae>
|
|
800d744: 68bb ldr r3, [r7, #8]
|
|
800d746: 685b ldr r3, [r3, #4]
|
|
800d748: 685a ldr r2, [r3, #4]
|
|
800d74a: 68bb ldr r3, [r7, #8]
|
|
800d74c: 605a str r2, [r3, #4]
|
|
800d74e: 68bb ldr r3, [r7, #8]
|
|
800d750: 685b ldr r3, [r3, #4]
|
|
800d752: 68db ldr r3, [r3, #12]
|
|
800d754: 4a08 ldr r2, [pc, #32] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d756: 6013 str r3, [r2, #0]
|
|
800d758: 4a08 ldr r2, [pc, #32] @ (800d77c <vTaskSwitchContext+0xdc>)
|
|
800d75a: 68fb ldr r3, [r7, #12]
|
|
800d75c: 6013 str r3, [r2, #0]
|
|
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
|
|
800d75e: 4b06 ldr r3, [pc, #24] @ (800d778 <vTaskSwitchContext+0xd8>)
|
|
800d760: 681b ldr r3, [r3, #0]
|
|
800d762: 3354 adds r3, #84 @ 0x54
|
|
800d764: 4a07 ldr r2, [pc, #28] @ (800d784 <vTaskSwitchContext+0xe4>)
|
|
800d766: 6013 str r3, [r2, #0]
|
|
}
|
|
800d768: bf00 nop
|
|
800d76a: 3710 adds r7, #16
|
|
800d76c: 46bd mov sp, r7
|
|
800d76e: bd80 pop {r7, pc}
|
|
800d770: 200023d4 .word 0x200023d4
|
|
800d774: 200023c0 .word 0x200023c0
|
|
800d778: 20001ed8 .word 0x20001ed8
|
|
800d77c: 200023b4 .word 0x200023b4
|
|
800d780: 20001edc .word 0x20001edc
|
|
800d784: 2000001c .word 0x2000001c
|
|
|
|
0800d788 <vTaskPlaceOnEventList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
|
|
{
|
|
800d788: b580 push {r7, lr}
|
|
800d78a: b084 sub sp, #16
|
|
800d78c: af00 add r7, sp, #0
|
|
800d78e: 6078 str r0, [r7, #4]
|
|
800d790: 6039 str r1, [r7, #0]
|
|
configASSERT( pxEventList );
|
|
800d792: 687b ldr r3, [r7, #4]
|
|
800d794: 2b00 cmp r3, #0
|
|
800d796: d10b bne.n 800d7b0 <vTaskPlaceOnEventList+0x28>
|
|
__asm volatile
|
|
800d798: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d79c: f383 8811 msr BASEPRI, r3
|
|
800d7a0: f3bf 8f6f isb sy
|
|
800d7a4: f3bf 8f4f dsb sy
|
|
800d7a8: 60fb str r3, [r7, #12]
|
|
}
|
|
800d7aa: bf00 nop
|
|
800d7ac: bf00 nop
|
|
800d7ae: e7fd b.n 800d7ac <vTaskPlaceOnEventList+0x24>
|
|
|
|
/* Place the event list item of the TCB in the appropriate event list.
|
|
This is placed in the list in priority order so the highest priority task
|
|
is the first to be woken by the event. The queue that contains the event
|
|
list is locked, preventing simultaneous access from interrupts. */
|
|
vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
|
|
800d7b0: 4b07 ldr r3, [pc, #28] @ (800d7d0 <vTaskPlaceOnEventList+0x48>)
|
|
800d7b2: 681b ldr r3, [r3, #0]
|
|
800d7b4: 3318 adds r3, #24
|
|
800d7b6: 4619 mov r1, r3
|
|
800d7b8: 6878 ldr r0, [r7, #4]
|
|
800d7ba: f7fe fa96 bl 800bcea <vListInsert>
|
|
|
|
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
|
|
800d7be: 2101 movs r1, #1
|
|
800d7c0: 6838 ldr r0, [r7, #0]
|
|
800d7c2: f000 fe59 bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
}
|
|
800d7c6: bf00 nop
|
|
800d7c8: 3710 adds r7, #16
|
|
800d7ca: 46bd mov sp, r7
|
|
800d7cc: bd80 pop {r7, pc}
|
|
800d7ce: bf00 nop
|
|
800d7d0: 20001ed8 .word 0x20001ed8
|
|
|
|
0800d7d4 <vTaskPlaceOnUnorderedEventList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskPlaceOnUnorderedEventList( List_t * pxEventList, const TickType_t xItemValue, const TickType_t xTicksToWait )
|
|
{
|
|
800d7d4: b580 push {r7, lr}
|
|
800d7d6: b086 sub sp, #24
|
|
800d7d8: af00 add r7, sp, #0
|
|
800d7da: 60f8 str r0, [r7, #12]
|
|
800d7dc: 60b9 str r1, [r7, #8]
|
|
800d7de: 607a str r2, [r7, #4]
|
|
configASSERT( pxEventList );
|
|
800d7e0: 68fb ldr r3, [r7, #12]
|
|
800d7e2: 2b00 cmp r3, #0
|
|
800d7e4: d10b bne.n 800d7fe <vTaskPlaceOnUnorderedEventList+0x2a>
|
|
__asm volatile
|
|
800d7e6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d7ea: f383 8811 msr BASEPRI, r3
|
|
800d7ee: f3bf 8f6f isb sy
|
|
800d7f2: f3bf 8f4f dsb sy
|
|
800d7f6: 617b str r3, [r7, #20]
|
|
}
|
|
800d7f8: bf00 nop
|
|
800d7fa: bf00 nop
|
|
800d7fc: e7fd b.n 800d7fa <vTaskPlaceOnUnorderedEventList+0x26>
|
|
|
|
/* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by
|
|
the event groups implementation. */
|
|
configASSERT( uxSchedulerSuspended != 0 );
|
|
800d7fe: 4b12 ldr r3, [pc, #72] @ (800d848 <vTaskPlaceOnUnorderedEventList+0x74>)
|
|
800d800: 681b ldr r3, [r3, #0]
|
|
800d802: 2b00 cmp r3, #0
|
|
800d804: d10b bne.n 800d81e <vTaskPlaceOnUnorderedEventList+0x4a>
|
|
__asm volatile
|
|
800d806: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d80a: f383 8811 msr BASEPRI, r3
|
|
800d80e: f3bf 8f6f isb sy
|
|
800d812: f3bf 8f4f dsb sy
|
|
800d816: 613b str r3, [r7, #16]
|
|
}
|
|
800d818: bf00 nop
|
|
800d81a: bf00 nop
|
|
800d81c: e7fd b.n 800d81a <vTaskPlaceOnUnorderedEventList+0x46>
|
|
|
|
/* Store the item value in the event list item. It is safe to access the
|
|
event list item here as interrupts won't access the event list item of a
|
|
task that is not in the Blocked state. */
|
|
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE );
|
|
800d81e: 4b0b ldr r3, [pc, #44] @ (800d84c <vTaskPlaceOnUnorderedEventList+0x78>)
|
|
800d820: 681b ldr r3, [r3, #0]
|
|
800d822: 68ba ldr r2, [r7, #8]
|
|
800d824: f042 4200 orr.w r2, r2, #2147483648 @ 0x80000000
|
|
800d828: 619a str r2, [r3, #24]
|
|
/* Place the event list item of the TCB at the end of the appropriate event
|
|
list. It is safe to access the event list here because it is part of an
|
|
event group implementation - and interrupts don't access event groups
|
|
directly (instead they access them indirectly by pending function calls to
|
|
the task level). */
|
|
vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
|
|
800d82a: 4b08 ldr r3, [pc, #32] @ (800d84c <vTaskPlaceOnUnorderedEventList+0x78>)
|
|
800d82c: 681b ldr r3, [r3, #0]
|
|
800d82e: 3318 adds r3, #24
|
|
800d830: 4619 mov r1, r3
|
|
800d832: 68f8 ldr r0, [r7, #12]
|
|
800d834: f7fe fa35 bl 800bca2 <vListInsertEnd>
|
|
|
|
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
|
|
800d838: 2101 movs r1, #1
|
|
800d83a: 6878 ldr r0, [r7, #4]
|
|
800d83c: f000 fe1c bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
}
|
|
800d840: bf00 nop
|
|
800d842: 3718 adds r7, #24
|
|
800d844: 46bd mov sp, r7
|
|
800d846: bd80 pop {r7, pc}
|
|
800d848: 200023d4 .word 0x200023d4
|
|
800d84c: 20001ed8 .word 0x20001ed8
|
|
|
|
0800d850 <vTaskPlaceOnEventListRestricted>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_TIMERS == 1 )
|
|
|
|
void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
|
|
{
|
|
800d850: b580 push {r7, lr}
|
|
800d852: b086 sub sp, #24
|
|
800d854: af00 add r7, sp, #0
|
|
800d856: 60f8 str r0, [r7, #12]
|
|
800d858: 60b9 str r1, [r7, #8]
|
|
800d85a: 607a str r2, [r7, #4]
|
|
configASSERT( pxEventList );
|
|
800d85c: 68fb ldr r3, [r7, #12]
|
|
800d85e: 2b00 cmp r3, #0
|
|
800d860: d10b bne.n 800d87a <vTaskPlaceOnEventListRestricted+0x2a>
|
|
__asm volatile
|
|
800d862: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d866: f383 8811 msr BASEPRI, r3
|
|
800d86a: f3bf 8f6f isb sy
|
|
800d86e: f3bf 8f4f dsb sy
|
|
800d872: 617b str r3, [r7, #20]
|
|
}
|
|
800d874: bf00 nop
|
|
800d876: bf00 nop
|
|
800d878: e7fd b.n 800d876 <vTaskPlaceOnEventListRestricted+0x26>
|
|
|
|
/* Place the event list item of the TCB in the appropriate event list.
|
|
In this case it is assume that this is the only task that is going to
|
|
be waiting on this event list, so the faster vListInsertEnd() function
|
|
can be used in place of vListInsert. */
|
|
vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
|
|
800d87a: 4b0a ldr r3, [pc, #40] @ (800d8a4 <vTaskPlaceOnEventListRestricted+0x54>)
|
|
800d87c: 681b ldr r3, [r3, #0]
|
|
800d87e: 3318 adds r3, #24
|
|
800d880: 4619 mov r1, r3
|
|
800d882: 68f8 ldr r0, [r7, #12]
|
|
800d884: f7fe fa0d bl 800bca2 <vListInsertEnd>
|
|
|
|
/* If the task should block indefinitely then set the block time to a
|
|
value that will be recognised as an indefinite delay inside the
|
|
prvAddCurrentTaskToDelayedList() function. */
|
|
if( xWaitIndefinitely != pdFALSE )
|
|
800d888: 687b ldr r3, [r7, #4]
|
|
800d88a: 2b00 cmp r3, #0
|
|
800d88c: d002 beq.n 800d894 <vTaskPlaceOnEventListRestricted+0x44>
|
|
{
|
|
xTicksToWait = portMAX_DELAY;
|
|
800d88e: f04f 33ff mov.w r3, #4294967295
|
|
800d892: 60bb str r3, [r7, #8]
|
|
}
|
|
|
|
traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
|
|
prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
|
|
800d894: 6879 ldr r1, [r7, #4]
|
|
800d896: 68b8 ldr r0, [r7, #8]
|
|
800d898: f000 fdee bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
}
|
|
800d89c: bf00 nop
|
|
800d89e: 3718 adds r7, #24
|
|
800d8a0: 46bd mov sp, r7
|
|
800d8a2: bd80 pop {r7, pc}
|
|
800d8a4: 20001ed8 .word 0x20001ed8
|
|
|
|
0800d8a8 <xTaskRemoveFromEventList>:
|
|
|
|
#endif /* configUSE_TIMERS */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
|
|
{
|
|
800d8a8: b580 push {r7, lr}
|
|
800d8aa: b086 sub sp, #24
|
|
800d8ac: af00 add r7, sp, #0
|
|
800d8ae: 6078 str r0, [r7, #4]
|
|
get called - the lock count on the queue will get modified instead. This
|
|
means exclusive access to the event list is guaranteed here.
|
|
|
|
This function assumes that a check has already been made to ensure that
|
|
pxEventList is not empty. */
|
|
pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800d8b0: 687b ldr r3, [r7, #4]
|
|
800d8b2: 68db ldr r3, [r3, #12]
|
|
800d8b4: 68db ldr r3, [r3, #12]
|
|
800d8b6: 613b str r3, [r7, #16]
|
|
configASSERT( pxUnblockedTCB );
|
|
800d8b8: 693b ldr r3, [r7, #16]
|
|
800d8ba: 2b00 cmp r3, #0
|
|
800d8bc: d10b bne.n 800d8d6 <xTaskRemoveFromEventList+0x2e>
|
|
__asm volatile
|
|
800d8be: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d8c2: f383 8811 msr BASEPRI, r3
|
|
800d8c6: f3bf 8f6f isb sy
|
|
800d8ca: f3bf 8f4f dsb sy
|
|
800d8ce: 60fb str r3, [r7, #12]
|
|
}
|
|
800d8d0: bf00 nop
|
|
800d8d2: bf00 nop
|
|
800d8d4: e7fd b.n 800d8d2 <xTaskRemoveFromEventList+0x2a>
|
|
( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
|
|
800d8d6: 693b ldr r3, [r7, #16]
|
|
800d8d8: 3318 adds r3, #24
|
|
800d8da: 4618 mov r0, r3
|
|
800d8dc: f7fe fa3e bl 800bd5c <uxListRemove>
|
|
|
|
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
|
|
800d8e0: 4b1d ldr r3, [pc, #116] @ (800d958 <xTaskRemoveFromEventList+0xb0>)
|
|
800d8e2: 681b ldr r3, [r3, #0]
|
|
800d8e4: 2b00 cmp r3, #0
|
|
800d8e6: d11d bne.n 800d924 <xTaskRemoveFromEventList+0x7c>
|
|
{
|
|
( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
|
|
800d8e8: 693b ldr r3, [r7, #16]
|
|
800d8ea: 3304 adds r3, #4
|
|
800d8ec: 4618 mov r0, r3
|
|
800d8ee: f7fe fa35 bl 800bd5c <uxListRemove>
|
|
prvAddTaskToReadyList( pxUnblockedTCB );
|
|
800d8f2: 693b ldr r3, [r7, #16]
|
|
800d8f4: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d8f6: 4b19 ldr r3, [pc, #100] @ (800d95c <xTaskRemoveFromEventList+0xb4>)
|
|
800d8f8: 681b ldr r3, [r3, #0]
|
|
800d8fa: 429a cmp r2, r3
|
|
800d8fc: d903 bls.n 800d906 <xTaskRemoveFromEventList+0x5e>
|
|
800d8fe: 693b ldr r3, [r7, #16]
|
|
800d900: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d902: 4a16 ldr r2, [pc, #88] @ (800d95c <xTaskRemoveFromEventList+0xb4>)
|
|
800d904: 6013 str r3, [r2, #0]
|
|
800d906: 693b ldr r3, [r7, #16]
|
|
800d908: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d90a: 4613 mov r3, r2
|
|
800d90c: 009b lsls r3, r3, #2
|
|
800d90e: 4413 add r3, r2
|
|
800d910: 009b lsls r3, r3, #2
|
|
800d912: 4a13 ldr r2, [pc, #76] @ (800d960 <xTaskRemoveFromEventList+0xb8>)
|
|
800d914: 441a add r2, r3
|
|
800d916: 693b ldr r3, [r7, #16]
|
|
800d918: 3304 adds r3, #4
|
|
800d91a: 4619 mov r1, r3
|
|
800d91c: 4610 mov r0, r2
|
|
800d91e: f7fe f9c0 bl 800bca2 <vListInsertEnd>
|
|
800d922: e005 b.n 800d930 <xTaskRemoveFromEventList+0x88>
|
|
}
|
|
else
|
|
{
|
|
/* The delayed and ready lists cannot be accessed, so hold this task
|
|
pending until the scheduler is resumed. */
|
|
vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
|
|
800d924: 693b ldr r3, [r7, #16]
|
|
800d926: 3318 adds r3, #24
|
|
800d928: 4619 mov r1, r3
|
|
800d92a: 480e ldr r0, [pc, #56] @ (800d964 <xTaskRemoveFromEventList+0xbc>)
|
|
800d92c: f7fe f9b9 bl 800bca2 <vListInsertEnd>
|
|
}
|
|
|
|
if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
|
|
800d930: 693b ldr r3, [r7, #16]
|
|
800d932: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d934: 4b0c ldr r3, [pc, #48] @ (800d968 <xTaskRemoveFromEventList+0xc0>)
|
|
800d936: 681b ldr r3, [r3, #0]
|
|
800d938: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d93a: 429a cmp r2, r3
|
|
800d93c: d905 bls.n 800d94a <xTaskRemoveFromEventList+0xa2>
|
|
{
|
|
/* Return true if the task removed from the event list has a higher
|
|
priority than the calling task. This allows the calling task to know if
|
|
it should force a context switch now. */
|
|
xReturn = pdTRUE;
|
|
800d93e: 2301 movs r3, #1
|
|
800d940: 617b str r3, [r7, #20]
|
|
|
|
/* Mark that a yield is pending in case the user is not using the
|
|
"xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
|
|
xYieldPending = pdTRUE;
|
|
800d942: 4b0a ldr r3, [pc, #40] @ (800d96c <xTaskRemoveFromEventList+0xc4>)
|
|
800d944: 2201 movs r2, #1
|
|
800d946: 601a str r2, [r3, #0]
|
|
800d948: e001 b.n 800d94e <xTaskRemoveFromEventList+0xa6>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdFALSE;
|
|
800d94a: 2300 movs r3, #0
|
|
800d94c: 617b str r3, [r7, #20]
|
|
}
|
|
|
|
return xReturn;
|
|
800d94e: 697b ldr r3, [r7, #20]
|
|
}
|
|
800d950: 4618 mov r0, r3
|
|
800d952: 3718 adds r7, #24
|
|
800d954: 46bd mov sp, r7
|
|
800d956: bd80 pop {r7, pc}
|
|
800d958: 200023d4 .word 0x200023d4
|
|
800d95c: 200023b4 .word 0x200023b4
|
|
800d960: 20001edc .word 0x20001edc
|
|
800d964: 2000236c .word 0x2000236c
|
|
800d968: 20001ed8 .word 0x20001ed8
|
|
800d96c: 200023c0 .word 0x200023c0
|
|
|
|
0800d970 <vTaskRemoveFromUnorderedEventList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskRemoveFromUnorderedEventList( ListItem_t * pxEventListItem, const TickType_t xItemValue )
|
|
{
|
|
800d970: b580 push {r7, lr}
|
|
800d972: b086 sub sp, #24
|
|
800d974: af00 add r7, sp, #0
|
|
800d976: 6078 str r0, [r7, #4]
|
|
800d978: 6039 str r1, [r7, #0]
|
|
TCB_t *pxUnblockedTCB;
|
|
|
|
/* THIS FUNCTION MUST BE CALLED WITH THE SCHEDULER SUSPENDED. It is used by
|
|
the event flags implementation. */
|
|
configASSERT( uxSchedulerSuspended != pdFALSE );
|
|
800d97a: 4b2a ldr r3, [pc, #168] @ (800da24 <vTaskRemoveFromUnorderedEventList+0xb4>)
|
|
800d97c: 681b ldr r3, [r3, #0]
|
|
800d97e: 2b00 cmp r3, #0
|
|
800d980: d10b bne.n 800d99a <vTaskRemoveFromUnorderedEventList+0x2a>
|
|
__asm volatile
|
|
800d982: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d986: f383 8811 msr BASEPRI, r3
|
|
800d98a: f3bf 8f6f isb sy
|
|
800d98e: f3bf 8f4f dsb sy
|
|
800d992: 613b str r3, [r7, #16]
|
|
}
|
|
800d994: bf00 nop
|
|
800d996: bf00 nop
|
|
800d998: e7fd b.n 800d996 <vTaskRemoveFromUnorderedEventList+0x26>
|
|
|
|
/* Store the new item value in the event list. */
|
|
listSET_LIST_ITEM_VALUE( pxEventListItem, xItemValue | taskEVENT_LIST_ITEM_VALUE_IN_USE );
|
|
800d99a: 683b ldr r3, [r7, #0]
|
|
800d99c: f043 4200 orr.w r2, r3, #2147483648 @ 0x80000000
|
|
800d9a0: 687b ldr r3, [r7, #4]
|
|
800d9a2: 601a str r2, [r3, #0]
|
|
|
|
/* Remove the event list form the event flag. Interrupts do not access
|
|
event flags. */
|
|
pxUnblockedTCB = listGET_LIST_ITEM_OWNER( pxEventListItem ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800d9a4: 687b ldr r3, [r7, #4]
|
|
800d9a6: 68db ldr r3, [r3, #12]
|
|
800d9a8: 617b str r3, [r7, #20]
|
|
configASSERT( pxUnblockedTCB );
|
|
800d9aa: 697b ldr r3, [r7, #20]
|
|
800d9ac: 2b00 cmp r3, #0
|
|
800d9ae: d10b bne.n 800d9c8 <vTaskRemoveFromUnorderedEventList+0x58>
|
|
__asm volatile
|
|
800d9b0: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800d9b4: f383 8811 msr BASEPRI, r3
|
|
800d9b8: f3bf 8f6f isb sy
|
|
800d9bc: f3bf 8f4f dsb sy
|
|
800d9c0: 60fb str r3, [r7, #12]
|
|
}
|
|
800d9c2: bf00 nop
|
|
800d9c4: bf00 nop
|
|
800d9c6: e7fd b.n 800d9c4 <vTaskRemoveFromUnorderedEventList+0x54>
|
|
( void ) uxListRemove( pxEventListItem );
|
|
800d9c8: 6878 ldr r0, [r7, #4]
|
|
800d9ca: f7fe f9c7 bl 800bd5c <uxListRemove>
|
|
#endif
|
|
|
|
/* Remove the task from the delayed list and add it to the ready list. The
|
|
scheduler is suspended so interrupts will not be accessing the ready
|
|
lists. */
|
|
( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
|
|
800d9ce: 697b ldr r3, [r7, #20]
|
|
800d9d0: 3304 adds r3, #4
|
|
800d9d2: 4618 mov r0, r3
|
|
800d9d4: f7fe f9c2 bl 800bd5c <uxListRemove>
|
|
prvAddTaskToReadyList( pxUnblockedTCB );
|
|
800d9d8: 697b ldr r3, [r7, #20]
|
|
800d9da: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d9dc: 4b12 ldr r3, [pc, #72] @ (800da28 <vTaskRemoveFromUnorderedEventList+0xb8>)
|
|
800d9de: 681b ldr r3, [r3, #0]
|
|
800d9e0: 429a cmp r2, r3
|
|
800d9e2: d903 bls.n 800d9ec <vTaskRemoveFromUnorderedEventList+0x7c>
|
|
800d9e4: 697b ldr r3, [r7, #20]
|
|
800d9e6: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800d9e8: 4a0f ldr r2, [pc, #60] @ (800da28 <vTaskRemoveFromUnorderedEventList+0xb8>)
|
|
800d9ea: 6013 str r3, [r2, #0]
|
|
800d9ec: 697b ldr r3, [r7, #20]
|
|
800d9ee: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800d9f0: 4613 mov r3, r2
|
|
800d9f2: 009b lsls r3, r3, #2
|
|
800d9f4: 4413 add r3, r2
|
|
800d9f6: 009b lsls r3, r3, #2
|
|
800d9f8: 4a0c ldr r2, [pc, #48] @ (800da2c <vTaskRemoveFromUnorderedEventList+0xbc>)
|
|
800d9fa: 441a add r2, r3
|
|
800d9fc: 697b ldr r3, [r7, #20]
|
|
800d9fe: 3304 adds r3, #4
|
|
800da00: 4619 mov r1, r3
|
|
800da02: 4610 mov r0, r2
|
|
800da04: f7fe f94d bl 800bca2 <vListInsertEnd>
|
|
|
|
if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
|
|
800da08: 697b ldr r3, [r7, #20]
|
|
800da0a: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800da0c: 4b08 ldr r3, [pc, #32] @ (800da30 <vTaskRemoveFromUnorderedEventList+0xc0>)
|
|
800da0e: 681b ldr r3, [r3, #0]
|
|
800da10: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800da12: 429a cmp r2, r3
|
|
800da14: d902 bls.n 800da1c <vTaskRemoveFromUnorderedEventList+0xac>
|
|
{
|
|
/* The unblocked task has a priority above that of the calling task, so
|
|
a context switch is required. This function is called with the
|
|
scheduler suspended so xYieldPending is set so the context switch
|
|
occurs immediately that the scheduler is resumed (unsuspended). */
|
|
xYieldPending = pdTRUE;
|
|
800da16: 4b07 ldr r3, [pc, #28] @ (800da34 <vTaskRemoveFromUnorderedEventList+0xc4>)
|
|
800da18: 2201 movs r2, #1
|
|
800da1a: 601a str r2, [r3, #0]
|
|
}
|
|
}
|
|
800da1c: bf00 nop
|
|
800da1e: 3718 adds r7, #24
|
|
800da20: 46bd mov sp, r7
|
|
800da22: bd80 pop {r7, pc}
|
|
800da24: 200023d4 .word 0x200023d4
|
|
800da28: 200023b4 .word 0x200023b4
|
|
800da2c: 20001edc .word 0x20001edc
|
|
800da30: 20001ed8 .word 0x20001ed8
|
|
800da34: 200023c0 .word 0x200023c0
|
|
|
|
0800da38 <vTaskInternalSetTimeOutState>:
|
|
taskEXIT_CRITICAL();
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
|
|
{
|
|
800da38: b480 push {r7}
|
|
800da3a: b083 sub sp, #12
|
|
800da3c: af00 add r7, sp, #0
|
|
800da3e: 6078 str r0, [r7, #4]
|
|
/* For internal use only as it does not use a critical section. */
|
|
pxTimeOut->xOverflowCount = xNumOfOverflows;
|
|
800da40: 4b06 ldr r3, [pc, #24] @ (800da5c <vTaskInternalSetTimeOutState+0x24>)
|
|
800da42: 681a ldr r2, [r3, #0]
|
|
800da44: 687b ldr r3, [r7, #4]
|
|
800da46: 601a str r2, [r3, #0]
|
|
pxTimeOut->xTimeOnEntering = xTickCount;
|
|
800da48: 4b05 ldr r3, [pc, #20] @ (800da60 <vTaskInternalSetTimeOutState+0x28>)
|
|
800da4a: 681a ldr r2, [r3, #0]
|
|
800da4c: 687b ldr r3, [r7, #4]
|
|
800da4e: 605a str r2, [r3, #4]
|
|
}
|
|
800da50: bf00 nop
|
|
800da52: 370c adds r7, #12
|
|
800da54: 46bd mov sp, r7
|
|
800da56: f85d 7b04 ldr.w r7, [sp], #4
|
|
800da5a: 4770 bx lr
|
|
800da5c: 200023c4 .word 0x200023c4
|
|
800da60: 200023b0 .word 0x200023b0
|
|
|
|
0800da64 <xTaskCheckForTimeOut>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
|
|
{
|
|
800da64: b580 push {r7, lr}
|
|
800da66: b088 sub sp, #32
|
|
800da68: af00 add r7, sp, #0
|
|
800da6a: 6078 str r0, [r7, #4]
|
|
800da6c: 6039 str r1, [r7, #0]
|
|
BaseType_t xReturn;
|
|
|
|
configASSERT( pxTimeOut );
|
|
800da6e: 687b ldr r3, [r7, #4]
|
|
800da70: 2b00 cmp r3, #0
|
|
800da72: d10b bne.n 800da8c <xTaskCheckForTimeOut+0x28>
|
|
__asm volatile
|
|
800da74: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800da78: f383 8811 msr BASEPRI, r3
|
|
800da7c: f3bf 8f6f isb sy
|
|
800da80: f3bf 8f4f dsb sy
|
|
800da84: 613b str r3, [r7, #16]
|
|
}
|
|
800da86: bf00 nop
|
|
800da88: bf00 nop
|
|
800da8a: e7fd b.n 800da88 <xTaskCheckForTimeOut+0x24>
|
|
configASSERT( pxTicksToWait );
|
|
800da8c: 683b ldr r3, [r7, #0]
|
|
800da8e: 2b00 cmp r3, #0
|
|
800da90: d10b bne.n 800daaa <xTaskCheckForTimeOut+0x46>
|
|
__asm volatile
|
|
800da92: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800da96: f383 8811 msr BASEPRI, r3
|
|
800da9a: f3bf 8f6f isb sy
|
|
800da9e: f3bf 8f4f dsb sy
|
|
800daa2: 60fb str r3, [r7, #12]
|
|
}
|
|
800daa4: bf00 nop
|
|
800daa6: bf00 nop
|
|
800daa8: e7fd b.n 800daa6 <xTaskCheckForTimeOut+0x42>
|
|
|
|
taskENTER_CRITICAL();
|
|
800daaa: f001 facd bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* Minor optimisation. The tick count cannot change in this block. */
|
|
const TickType_t xConstTickCount = xTickCount;
|
|
800daae: 4b1d ldr r3, [pc, #116] @ (800db24 <xTaskCheckForTimeOut+0xc0>)
|
|
800dab0: 681b ldr r3, [r3, #0]
|
|
800dab2: 61bb str r3, [r7, #24]
|
|
const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
|
|
800dab4: 687b ldr r3, [r7, #4]
|
|
800dab6: 685b ldr r3, [r3, #4]
|
|
800dab8: 69ba ldr r2, [r7, #24]
|
|
800daba: 1ad3 subs r3, r2, r3
|
|
800dabc: 617b str r3, [r7, #20]
|
|
}
|
|
else
|
|
#endif
|
|
|
|
#if ( INCLUDE_vTaskSuspend == 1 )
|
|
if( *pxTicksToWait == portMAX_DELAY )
|
|
800dabe: 683b ldr r3, [r7, #0]
|
|
800dac0: 681b ldr r3, [r3, #0]
|
|
800dac2: f1b3 3fff cmp.w r3, #4294967295
|
|
800dac6: d102 bne.n 800dace <xTaskCheckForTimeOut+0x6a>
|
|
{
|
|
/* If INCLUDE_vTaskSuspend is set to 1 and the block time
|
|
specified is the maximum block time then the task should block
|
|
indefinitely, and therefore never time out. */
|
|
xReturn = pdFALSE;
|
|
800dac8: 2300 movs r3, #0
|
|
800daca: 61fb str r3, [r7, #28]
|
|
800dacc: e023 b.n 800db16 <xTaskCheckForTimeOut+0xb2>
|
|
}
|
|
else
|
|
#endif
|
|
|
|
if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
|
|
800dace: 687b ldr r3, [r7, #4]
|
|
800dad0: 681a ldr r2, [r3, #0]
|
|
800dad2: 4b15 ldr r3, [pc, #84] @ (800db28 <xTaskCheckForTimeOut+0xc4>)
|
|
800dad4: 681b ldr r3, [r3, #0]
|
|
800dad6: 429a cmp r2, r3
|
|
800dad8: d007 beq.n 800daea <xTaskCheckForTimeOut+0x86>
|
|
800dada: 687b ldr r3, [r7, #4]
|
|
800dadc: 685b ldr r3, [r3, #4]
|
|
800dade: 69ba ldr r2, [r7, #24]
|
|
800dae0: 429a cmp r2, r3
|
|
800dae2: d302 bcc.n 800daea <xTaskCheckForTimeOut+0x86>
|
|
/* The tick count is greater than the time at which
|
|
vTaskSetTimeout() was called, but has also overflowed since
|
|
vTaskSetTimeOut() was called. It must have wrapped all the way
|
|
around and gone past again. This passed since vTaskSetTimeout()
|
|
was called. */
|
|
xReturn = pdTRUE;
|
|
800dae4: 2301 movs r3, #1
|
|
800dae6: 61fb str r3, [r7, #28]
|
|
800dae8: e015 b.n 800db16 <xTaskCheckForTimeOut+0xb2>
|
|
}
|
|
else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
|
|
800daea: 683b ldr r3, [r7, #0]
|
|
800daec: 681b ldr r3, [r3, #0]
|
|
800daee: 697a ldr r2, [r7, #20]
|
|
800daf0: 429a cmp r2, r3
|
|
800daf2: d20b bcs.n 800db0c <xTaskCheckForTimeOut+0xa8>
|
|
{
|
|
/* Not a genuine timeout. Adjust parameters for time remaining. */
|
|
*pxTicksToWait -= xElapsedTime;
|
|
800daf4: 683b ldr r3, [r7, #0]
|
|
800daf6: 681a ldr r2, [r3, #0]
|
|
800daf8: 697b ldr r3, [r7, #20]
|
|
800dafa: 1ad2 subs r2, r2, r3
|
|
800dafc: 683b ldr r3, [r7, #0]
|
|
800dafe: 601a str r2, [r3, #0]
|
|
vTaskInternalSetTimeOutState( pxTimeOut );
|
|
800db00: 6878 ldr r0, [r7, #4]
|
|
800db02: f7ff ff99 bl 800da38 <vTaskInternalSetTimeOutState>
|
|
xReturn = pdFALSE;
|
|
800db06: 2300 movs r3, #0
|
|
800db08: 61fb str r3, [r7, #28]
|
|
800db0a: e004 b.n 800db16 <xTaskCheckForTimeOut+0xb2>
|
|
}
|
|
else
|
|
{
|
|
*pxTicksToWait = 0;
|
|
800db0c: 683b ldr r3, [r7, #0]
|
|
800db0e: 2200 movs r2, #0
|
|
800db10: 601a str r2, [r3, #0]
|
|
xReturn = pdTRUE;
|
|
800db12: 2301 movs r3, #1
|
|
800db14: 61fb str r3, [r7, #28]
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800db16: f001 fac9 bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800db1a: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800db1c: 4618 mov r0, r3
|
|
800db1e: 3720 adds r7, #32
|
|
800db20: 46bd mov sp, r7
|
|
800db22: bd80 pop {r7, pc}
|
|
800db24: 200023b0 .word 0x200023b0
|
|
800db28: 200023c4 .word 0x200023c4
|
|
|
|
0800db2c <vTaskMissedYield>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vTaskMissedYield( void )
|
|
{
|
|
800db2c: b480 push {r7}
|
|
800db2e: af00 add r7, sp, #0
|
|
xYieldPending = pdTRUE;
|
|
800db30: 4b03 ldr r3, [pc, #12] @ (800db40 <vTaskMissedYield+0x14>)
|
|
800db32: 2201 movs r2, #1
|
|
800db34: 601a str r2, [r3, #0]
|
|
}
|
|
800db36: bf00 nop
|
|
800db38: 46bd mov sp, r7
|
|
800db3a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800db3e: 4770 bx lr
|
|
800db40: 200023c0 .word 0x200023c0
|
|
|
|
0800db44 <prvIdleTask>:
|
|
*
|
|
* void prvIdleTask( void *pvParameters );
|
|
*
|
|
*/
|
|
static portTASK_FUNCTION( prvIdleTask, pvParameters )
|
|
{
|
|
800db44: b580 push {r7, lr}
|
|
800db46: b082 sub sp, #8
|
|
800db48: af00 add r7, sp, #0
|
|
800db4a: 6078 str r0, [r7, #4]
|
|
|
|
for( ;; )
|
|
{
|
|
/* See if any tasks have deleted themselves - if so then the idle task
|
|
is responsible for freeing the deleted task's TCB and stack. */
|
|
prvCheckTasksWaitingTermination();
|
|
800db4c: f000 f852 bl 800dbf4 <prvCheckTasksWaitingTermination>
|
|
|
|
A critical region is not required here as we are just reading from
|
|
the list, and an occasional incorrect value will not matter. If
|
|
the ready list at the idle priority contains more than one task
|
|
then a task other than the idle task is ready to execute. */
|
|
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
|
|
800db50: 4b06 ldr r3, [pc, #24] @ (800db6c <prvIdleTask+0x28>)
|
|
800db52: 681b ldr r3, [r3, #0]
|
|
800db54: 2b01 cmp r3, #1
|
|
800db56: d9f9 bls.n 800db4c <prvIdleTask+0x8>
|
|
{
|
|
taskYIELD();
|
|
800db58: 4b05 ldr r3, [pc, #20] @ (800db70 <prvIdleTask+0x2c>)
|
|
800db5a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800db5e: 601a str r2, [r3, #0]
|
|
800db60: f3bf 8f4f dsb sy
|
|
800db64: f3bf 8f6f isb sy
|
|
prvCheckTasksWaitingTermination();
|
|
800db68: e7f0 b.n 800db4c <prvIdleTask+0x8>
|
|
800db6a: bf00 nop
|
|
800db6c: 20001edc .word 0x20001edc
|
|
800db70: e000ed04 .word 0xe000ed04
|
|
|
|
0800db74 <prvInitialiseTaskLists>:
|
|
|
|
#endif /* portUSING_MPU_WRAPPERS */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvInitialiseTaskLists( void )
|
|
{
|
|
800db74: b580 push {r7, lr}
|
|
800db76: b082 sub sp, #8
|
|
800db78: af00 add r7, sp, #0
|
|
UBaseType_t uxPriority;
|
|
|
|
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
|
|
800db7a: 2300 movs r3, #0
|
|
800db7c: 607b str r3, [r7, #4]
|
|
800db7e: e00c b.n 800db9a <prvInitialiseTaskLists+0x26>
|
|
{
|
|
vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
|
|
800db80: 687a ldr r2, [r7, #4]
|
|
800db82: 4613 mov r3, r2
|
|
800db84: 009b lsls r3, r3, #2
|
|
800db86: 4413 add r3, r2
|
|
800db88: 009b lsls r3, r3, #2
|
|
800db8a: 4a12 ldr r2, [pc, #72] @ (800dbd4 <prvInitialiseTaskLists+0x60>)
|
|
800db8c: 4413 add r3, r2
|
|
800db8e: 4618 mov r0, r3
|
|
800db90: f7fe f85a bl 800bc48 <vListInitialise>
|
|
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
|
|
800db94: 687b ldr r3, [r7, #4]
|
|
800db96: 3301 adds r3, #1
|
|
800db98: 607b str r3, [r7, #4]
|
|
800db9a: 687b ldr r3, [r7, #4]
|
|
800db9c: 2b37 cmp r3, #55 @ 0x37
|
|
800db9e: d9ef bls.n 800db80 <prvInitialiseTaskLists+0xc>
|
|
}
|
|
|
|
vListInitialise( &xDelayedTaskList1 );
|
|
800dba0: 480d ldr r0, [pc, #52] @ (800dbd8 <prvInitialiseTaskLists+0x64>)
|
|
800dba2: f7fe f851 bl 800bc48 <vListInitialise>
|
|
vListInitialise( &xDelayedTaskList2 );
|
|
800dba6: 480d ldr r0, [pc, #52] @ (800dbdc <prvInitialiseTaskLists+0x68>)
|
|
800dba8: f7fe f84e bl 800bc48 <vListInitialise>
|
|
vListInitialise( &xPendingReadyList );
|
|
800dbac: 480c ldr r0, [pc, #48] @ (800dbe0 <prvInitialiseTaskLists+0x6c>)
|
|
800dbae: f7fe f84b bl 800bc48 <vListInitialise>
|
|
|
|
#if ( INCLUDE_vTaskDelete == 1 )
|
|
{
|
|
vListInitialise( &xTasksWaitingTermination );
|
|
800dbb2: 480c ldr r0, [pc, #48] @ (800dbe4 <prvInitialiseTaskLists+0x70>)
|
|
800dbb4: f7fe f848 bl 800bc48 <vListInitialise>
|
|
}
|
|
#endif /* INCLUDE_vTaskDelete */
|
|
|
|
#if ( INCLUDE_vTaskSuspend == 1 )
|
|
{
|
|
vListInitialise( &xSuspendedTaskList );
|
|
800dbb8: 480b ldr r0, [pc, #44] @ (800dbe8 <prvInitialiseTaskLists+0x74>)
|
|
800dbba: f7fe f845 bl 800bc48 <vListInitialise>
|
|
}
|
|
#endif /* INCLUDE_vTaskSuspend */
|
|
|
|
/* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
|
|
using list2. */
|
|
pxDelayedTaskList = &xDelayedTaskList1;
|
|
800dbbe: 4b0b ldr r3, [pc, #44] @ (800dbec <prvInitialiseTaskLists+0x78>)
|
|
800dbc0: 4a05 ldr r2, [pc, #20] @ (800dbd8 <prvInitialiseTaskLists+0x64>)
|
|
800dbc2: 601a str r2, [r3, #0]
|
|
pxOverflowDelayedTaskList = &xDelayedTaskList2;
|
|
800dbc4: 4b0a ldr r3, [pc, #40] @ (800dbf0 <prvInitialiseTaskLists+0x7c>)
|
|
800dbc6: 4a05 ldr r2, [pc, #20] @ (800dbdc <prvInitialiseTaskLists+0x68>)
|
|
800dbc8: 601a str r2, [r3, #0]
|
|
}
|
|
800dbca: bf00 nop
|
|
800dbcc: 3708 adds r7, #8
|
|
800dbce: 46bd mov sp, r7
|
|
800dbd0: bd80 pop {r7, pc}
|
|
800dbd2: bf00 nop
|
|
800dbd4: 20001edc .word 0x20001edc
|
|
800dbd8: 2000233c .word 0x2000233c
|
|
800dbdc: 20002350 .word 0x20002350
|
|
800dbe0: 2000236c .word 0x2000236c
|
|
800dbe4: 20002380 .word 0x20002380
|
|
800dbe8: 20002398 .word 0x20002398
|
|
800dbec: 20002364 .word 0x20002364
|
|
800dbf0: 20002368 .word 0x20002368
|
|
|
|
0800dbf4 <prvCheckTasksWaitingTermination>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvCheckTasksWaitingTermination( void )
|
|
{
|
|
800dbf4: b580 push {r7, lr}
|
|
800dbf6: b082 sub sp, #8
|
|
800dbf8: af00 add r7, sp, #0
|
|
{
|
|
TCB_t *pxTCB;
|
|
|
|
/* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
|
|
being called too often in the idle task. */
|
|
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
|
|
800dbfa: e019 b.n 800dc30 <prvCheckTasksWaitingTermination+0x3c>
|
|
{
|
|
taskENTER_CRITICAL();
|
|
800dbfc: f001 fa24 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800dc00: 4b10 ldr r3, [pc, #64] @ (800dc44 <prvCheckTasksWaitingTermination+0x50>)
|
|
800dc02: 68db ldr r3, [r3, #12]
|
|
800dc04: 68db ldr r3, [r3, #12]
|
|
800dc06: 607b str r3, [r7, #4]
|
|
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
|
|
800dc08: 687b ldr r3, [r7, #4]
|
|
800dc0a: 3304 adds r3, #4
|
|
800dc0c: 4618 mov r0, r3
|
|
800dc0e: f7fe f8a5 bl 800bd5c <uxListRemove>
|
|
--uxCurrentNumberOfTasks;
|
|
800dc12: 4b0d ldr r3, [pc, #52] @ (800dc48 <prvCheckTasksWaitingTermination+0x54>)
|
|
800dc14: 681b ldr r3, [r3, #0]
|
|
800dc16: 3b01 subs r3, #1
|
|
800dc18: 4a0b ldr r2, [pc, #44] @ (800dc48 <prvCheckTasksWaitingTermination+0x54>)
|
|
800dc1a: 6013 str r3, [r2, #0]
|
|
--uxDeletedTasksWaitingCleanUp;
|
|
800dc1c: 4b0b ldr r3, [pc, #44] @ (800dc4c <prvCheckTasksWaitingTermination+0x58>)
|
|
800dc1e: 681b ldr r3, [r3, #0]
|
|
800dc20: 3b01 subs r3, #1
|
|
800dc22: 4a0a ldr r2, [pc, #40] @ (800dc4c <prvCheckTasksWaitingTermination+0x58>)
|
|
800dc24: 6013 str r3, [r2, #0]
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800dc26: f001 fa41 bl 800f0ac <vPortExitCritical>
|
|
|
|
prvDeleteTCB( pxTCB );
|
|
800dc2a: 6878 ldr r0, [r7, #4]
|
|
800dc2c: f000 f810 bl 800dc50 <prvDeleteTCB>
|
|
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
|
|
800dc30: 4b06 ldr r3, [pc, #24] @ (800dc4c <prvCheckTasksWaitingTermination+0x58>)
|
|
800dc32: 681b ldr r3, [r3, #0]
|
|
800dc34: 2b00 cmp r3, #0
|
|
800dc36: d1e1 bne.n 800dbfc <prvCheckTasksWaitingTermination+0x8>
|
|
}
|
|
}
|
|
#endif /* INCLUDE_vTaskDelete */
|
|
}
|
|
800dc38: bf00 nop
|
|
800dc3a: bf00 nop
|
|
800dc3c: 3708 adds r7, #8
|
|
800dc3e: 46bd mov sp, r7
|
|
800dc40: bd80 pop {r7, pc}
|
|
800dc42: bf00 nop
|
|
800dc44: 20002380 .word 0x20002380
|
|
800dc48: 200023ac .word 0x200023ac
|
|
800dc4c: 20002394 .word 0x20002394
|
|
|
|
0800dc50 <prvDeleteTCB>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( INCLUDE_vTaskDelete == 1 )
|
|
|
|
static void prvDeleteTCB( TCB_t *pxTCB )
|
|
{
|
|
800dc50: b580 push {r7, lr}
|
|
800dc52: b084 sub sp, #16
|
|
800dc54: af00 add r7, sp, #0
|
|
800dc56: 6078 str r0, [r7, #4]
|
|
to the task to free any memory allocated at the application level.
|
|
See the third party link http://www.nadler.com/embedded/newlibAndFreeRTOS.html
|
|
for additional information. */
|
|
#if ( configUSE_NEWLIB_REENTRANT == 1 )
|
|
{
|
|
_reclaim_reent( &( pxTCB->xNewLib_reent ) );
|
|
800dc58: 687b ldr r3, [r7, #4]
|
|
800dc5a: 3354 adds r3, #84 @ 0x54
|
|
800dc5c: 4618 mov r0, r3
|
|
800dc5e: f002 fe43 bl 80108e8 <_reclaim_reent>
|
|
#elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
|
|
{
|
|
/* The task could have been allocated statically or dynamically, so
|
|
check what was statically allocated before trying to free the
|
|
memory. */
|
|
if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
|
|
800dc62: 687b ldr r3, [r7, #4]
|
|
800dc64: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
|
|
800dc68: 2b00 cmp r3, #0
|
|
800dc6a: d108 bne.n 800dc7e <prvDeleteTCB+0x2e>
|
|
{
|
|
/* Both the stack and TCB were allocated dynamically, so both
|
|
must be freed. */
|
|
vPortFree( pxTCB->pxStack );
|
|
800dc6c: 687b ldr r3, [r7, #4]
|
|
800dc6e: 6b1b ldr r3, [r3, #48] @ 0x30
|
|
800dc70: 4618 mov r0, r3
|
|
800dc72: f001 fbd9 bl 800f428 <vPortFree>
|
|
vPortFree( pxTCB );
|
|
800dc76: 6878 ldr r0, [r7, #4]
|
|
800dc78: f001 fbd6 bl 800f428 <vPortFree>
|
|
configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
}
|
|
800dc7c: e019 b.n 800dcb2 <prvDeleteTCB+0x62>
|
|
else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
|
|
800dc7e: 687b ldr r3, [r7, #4]
|
|
800dc80: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
|
|
800dc84: 2b01 cmp r3, #1
|
|
800dc86: d103 bne.n 800dc90 <prvDeleteTCB+0x40>
|
|
vPortFree( pxTCB );
|
|
800dc88: 6878 ldr r0, [r7, #4]
|
|
800dc8a: f001 fbcd bl 800f428 <vPortFree>
|
|
}
|
|
800dc8e: e010 b.n 800dcb2 <prvDeleteTCB+0x62>
|
|
configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
|
|
800dc90: 687b ldr r3, [r7, #4]
|
|
800dc92: f893 30a5 ldrb.w r3, [r3, #165] @ 0xa5
|
|
800dc96: 2b02 cmp r3, #2
|
|
800dc98: d00b beq.n 800dcb2 <prvDeleteTCB+0x62>
|
|
__asm volatile
|
|
800dc9a: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800dc9e: f383 8811 msr BASEPRI, r3
|
|
800dca2: f3bf 8f6f isb sy
|
|
800dca6: f3bf 8f4f dsb sy
|
|
800dcaa: 60fb str r3, [r7, #12]
|
|
}
|
|
800dcac: bf00 nop
|
|
800dcae: bf00 nop
|
|
800dcb0: e7fd b.n 800dcae <prvDeleteTCB+0x5e>
|
|
}
|
|
800dcb2: bf00 nop
|
|
800dcb4: 3710 adds r7, #16
|
|
800dcb6: 46bd mov sp, r7
|
|
800dcb8: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800dcbc <prvResetNextTaskUnblockTime>:
|
|
|
|
#endif /* INCLUDE_vTaskDelete */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvResetNextTaskUnblockTime( void )
|
|
{
|
|
800dcbc: b480 push {r7}
|
|
800dcbe: b083 sub sp, #12
|
|
800dcc0: af00 add r7, sp, #0
|
|
TCB_t *pxTCB;
|
|
|
|
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
|
|
800dcc2: 4b0c ldr r3, [pc, #48] @ (800dcf4 <prvResetNextTaskUnblockTime+0x38>)
|
|
800dcc4: 681b ldr r3, [r3, #0]
|
|
800dcc6: 681b ldr r3, [r3, #0]
|
|
800dcc8: 2b00 cmp r3, #0
|
|
800dcca: d104 bne.n 800dcd6 <prvResetNextTaskUnblockTime+0x1a>
|
|
{
|
|
/* The new current delayed list is empty. Set xNextTaskUnblockTime to
|
|
the maximum possible value so it is extremely unlikely that the
|
|
if( xTickCount >= xNextTaskUnblockTime ) test will pass until
|
|
there is an item in the delayed list. */
|
|
xNextTaskUnblockTime = portMAX_DELAY;
|
|
800dccc: 4b0a ldr r3, [pc, #40] @ (800dcf8 <prvResetNextTaskUnblockTime+0x3c>)
|
|
800dcce: f04f 32ff mov.w r2, #4294967295
|
|
800dcd2: 601a str r2, [r3, #0]
|
|
which the task at the head of the delayed list should be removed
|
|
from the Blocked state. */
|
|
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
|
|
}
|
|
}
|
|
800dcd4: e008 b.n 800dce8 <prvResetNextTaskUnblockTime+0x2c>
|
|
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800dcd6: 4b07 ldr r3, [pc, #28] @ (800dcf4 <prvResetNextTaskUnblockTime+0x38>)
|
|
800dcd8: 681b ldr r3, [r3, #0]
|
|
800dcda: 68db ldr r3, [r3, #12]
|
|
800dcdc: 68db ldr r3, [r3, #12]
|
|
800dcde: 607b str r3, [r7, #4]
|
|
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
|
|
800dce0: 687b ldr r3, [r7, #4]
|
|
800dce2: 685b ldr r3, [r3, #4]
|
|
800dce4: 4a04 ldr r2, [pc, #16] @ (800dcf8 <prvResetNextTaskUnblockTime+0x3c>)
|
|
800dce6: 6013 str r3, [r2, #0]
|
|
}
|
|
800dce8: bf00 nop
|
|
800dcea: 370c adds r7, #12
|
|
800dcec: 46bd mov sp, r7
|
|
800dcee: f85d 7b04 ldr.w r7, [sp], #4
|
|
800dcf2: 4770 bx lr
|
|
800dcf4: 20002364 .word 0x20002364
|
|
800dcf8: 200023cc .word 0x200023cc
|
|
|
|
0800dcfc <xTaskGetCurrentTaskHandle>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
|
|
|
|
TaskHandle_t xTaskGetCurrentTaskHandle( void )
|
|
{
|
|
800dcfc: b480 push {r7}
|
|
800dcfe: b083 sub sp, #12
|
|
800dd00: af00 add r7, sp, #0
|
|
TaskHandle_t xReturn;
|
|
|
|
/* A critical section is not required as this is not called from
|
|
an interrupt and the current TCB will always be the same for any
|
|
individual execution thread. */
|
|
xReturn = pxCurrentTCB;
|
|
800dd02: 4b05 ldr r3, [pc, #20] @ (800dd18 <xTaskGetCurrentTaskHandle+0x1c>)
|
|
800dd04: 681b ldr r3, [r3, #0]
|
|
800dd06: 607b str r3, [r7, #4]
|
|
|
|
return xReturn;
|
|
800dd08: 687b ldr r3, [r7, #4]
|
|
}
|
|
800dd0a: 4618 mov r0, r3
|
|
800dd0c: 370c adds r7, #12
|
|
800dd0e: 46bd mov sp, r7
|
|
800dd10: f85d 7b04 ldr.w r7, [sp], #4
|
|
800dd14: 4770 bx lr
|
|
800dd16: bf00 nop
|
|
800dd18: 20001ed8 .word 0x20001ed8
|
|
|
|
0800dd1c <xTaskGetSchedulerState>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
|
|
BaseType_t xTaskGetSchedulerState( void )
|
|
{
|
|
800dd1c: b480 push {r7}
|
|
800dd1e: b083 sub sp, #12
|
|
800dd20: af00 add r7, sp, #0
|
|
BaseType_t xReturn;
|
|
|
|
if( xSchedulerRunning == pdFALSE )
|
|
800dd22: 4b0b ldr r3, [pc, #44] @ (800dd50 <xTaskGetSchedulerState+0x34>)
|
|
800dd24: 681b ldr r3, [r3, #0]
|
|
800dd26: 2b00 cmp r3, #0
|
|
800dd28: d102 bne.n 800dd30 <xTaskGetSchedulerState+0x14>
|
|
{
|
|
xReturn = taskSCHEDULER_NOT_STARTED;
|
|
800dd2a: 2301 movs r3, #1
|
|
800dd2c: 607b str r3, [r7, #4]
|
|
800dd2e: e008 b.n 800dd42 <xTaskGetSchedulerState+0x26>
|
|
}
|
|
else
|
|
{
|
|
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
|
|
800dd30: 4b08 ldr r3, [pc, #32] @ (800dd54 <xTaskGetSchedulerState+0x38>)
|
|
800dd32: 681b ldr r3, [r3, #0]
|
|
800dd34: 2b00 cmp r3, #0
|
|
800dd36: d102 bne.n 800dd3e <xTaskGetSchedulerState+0x22>
|
|
{
|
|
xReturn = taskSCHEDULER_RUNNING;
|
|
800dd38: 2302 movs r3, #2
|
|
800dd3a: 607b str r3, [r7, #4]
|
|
800dd3c: e001 b.n 800dd42 <xTaskGetSchedulerState+0x26>
|
|
}
|
|
else
|
|
{
|
|
xReturn = taskSCHEDULER_SUSPENDED;
|
|
800dd3e: 2300 movs r3, #0
|
|
800dd40: 607b str r3, [r7, #4]
|
|
}
|
|
}
|
|
|
|
return xReturn;
|
|
800dd42: 687b ldr r3, [r7, #4]
|
|
}
|
|
800dd44: 4618 mov r0, r3
|
|
800dd46: 370c adds r7, #12
|
|
800dd48: 46bd mov sp, r7
|
|
800dd4a: f85d 7b04 ldr.w r7, [sp], #4
|
|
800dd4e: 4770 bx lr
|
|
800dd50: 200023b8 .word 0x200023b8
|
|
800dd54: 200023d4 .word 0x200023d4
|
|
|
|
0800dd58 <xTaskPriorityInherit>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
|
|
BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder )
|
|
{
|
|
800dd58: b580 push {r7, lr}
|
|
800dd5a: b084 sub sp, #16
|
|
800dd5c: af00 add r7, sp, #0
|
|
800dd5e: 6078 str r0, [r7, #4]
|
|
TCB_t * const pxMutexHolderTCB = pxMutexHolder;
|
|
800dd60: 687b ldr r3, [r7, #4]
|
|
800dd62: 60bb str r3, [r7, #8]
|
|
BaseType_t xReturn = pdFALSE;
|
|
800dd64: 2300 movs r3, #0
|
|
800dd66: 60fb str r3, [r7, #12]
|
|
|
|
/* If the mutex was given back by an interrupt while the queue was
|
|
locked then the mutex holder might now be NULL. _RB_ Is this still
|
|
needed as interrupts can no longer use mutexes? */
|
|
if( pxMutexHolder != NULL )
|
|
800dd68: 687b ldr r3, [r7, #4]
|
|
800dd6a: 2b00 cmp r3, #0
|
|
800dd6c: d051 beq.n 800de12 <xTaskPriorityInherit+0xba>
|
|
{
|
|
/* If the holder of the mutex has a priority below the priority of
|
|
the task attempting to obtain the mutex then it will temporarily
|
|
inherit the priority of the task attempting to obtain the mutex. */
|
|
if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority )
|
|
800dd6e: 68bb ldr r3, [r7, #8]
|
|
800dd70: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800dd72: 4b2a ldr r3, [pc, #168] @ (800de1c <xTaskPriorityInherit+0xc4>)
|
|
800dd74: 681b ldr r3, [r3, #0]
|
|
800dd76: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800dd78: 429a cmp r2, r3
|
|
800dd7a: d241 bcs.n 800de00 <xTaskPriorityInherit+0xa8>
|
|
{
|
|
/* Adjust the mutex holder state to account for its new
|
|
priority. Only reset the event list item value if the value is
|
|
not being used for anything else. */
|
|
if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
|
|
800dd7c: 68bb ldr r3, [r7, #8]
|
|
800dd7e: 699b ldr r3, [r3, #24]
|
|
800dd80: 2b00 cmp r3, #0
|
|
800dd82: db06 blt.n 800dd92 <xTaskPriorityInherit+0x3a>
|
|
{
|
|
listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800dd84: 4b25 ldr r3, [pc, #148] @ (800de1c <xTaskPriorityInherit+0xc4>)
|
|
800dd86: 681b ldr r3, [r3, #0]
|
|
800dd88: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800dd8a: f1c3 0238 rsb r2, r3, #56 @ 0x38
|
|
800dd8e: 68bb ldr r3, [r7, #8]
|
|
800dd90: 619a str r2, [r3, #24]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* If the task being modified is in the ready state it will need
|
|
to be moved into a new list. */
|
|
if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE )
|
|
800dd92: 68bb ldr r3, [r7, #8]
|
|
800dd94: 6959 ldr r1, [r3, #20]
|
|
800dd96: 68bb ldr r3, [r7, #8]
|
|
800dd98: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800dd9a: 4613 mov r3, r2
|
|
800dd9c: 009b lsls r3, r3, #2
|
|
800dd9e: 4413 add r3, r2
|
|
800dda0: 009b lsls r3, r3, #2
|
|
800dda2: 4a1f ldr r2, [pc, #124] @ (800de20 <xTaskPriorityInherit+0xc8>)
|
|
800dda4: 4413 add r3, r2
|
|
800dda6: 4299 cmp r1, r3
|
|
800dda8: d122 bne.n 800ddf0 <xTaskPriorityInherit+0x98>
|
|
{
|
|
if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
|
|
800ddaa: 68bb ldr r3, [r7, #8]
|
|
800ddac: 3304 adds r3, #4
|
|
800ddae: 4618 mov r0, r3
|
|
800ddb0: f7fd ffd4 bl 800bd5c <uxListRemove>
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Inherit the priority before being moved into the new list. */
|
|
pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
|
|
800ddb4: 4b19 ldr r3, [pc, #100] @ (800de1c <xTaskPriorityInherit+0xc4>)
|
|
800ddb6: 681b ldr r3, [r3, #0]
|
|
800ddb8: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800ddba: 68bb ldr r3, [r7, #8]
|
|
800ddbc: 62da str r2, [r3, #44] @ 0x2c
|
|
prvAddTaskToReadyList( pxMutexHolderTCB );
|
|
800ddbe: 68bb ldr r3, [r7, #8]
|
|
800ddc0: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800ddc2: 4b18 ldr r3, [pc, #96] @ (800de24 <xTaskPriorityInherit+0xcc>)
|
|
800ddc4: 681b ldr r3, [r3, #0]
|
|
800ddc6: 429a cmp r2, r3
|
|
800ddc8: d903 bls.n 800ddd2 <xTaskPriorityInherit+0x7a>
|
|
800ddca: 68bb ldr r3, [r7, #8]
|
|
800ddcc: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800ddce: 4a15 ldr r2, [pc, #84] @ (800de24 <xTaskPriorityInherit+0xcc>)
|
|
800ddd0: 6013 str r3, [r2, #0]
|
|
800ddd2: 68bb ldr r3, [r7, #8]
|
|
800ddd4: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800ddd6: 4613 mov r3, r2
|
|
800ddd8: 009b lsls r3, r3, #2
|
|
800ddda: 4413 add r3, r2
|
|
800dddc: 009b lsls r3, r3, #2
|
|
800ddde: 4a10 ldr r2, [pc, #64] @ (800de20 <xTaskPriorityInherit+0xc8>)
|
|
800dde0: 441a add r2, r3
|
|
800dde2: 68bb ldr r3, [r7, #8]
|
|
800dde4: 3304 adds r3, #4
|
|
800dde6: 4619 mov r1, r3
|
|
800dde8: 4610 mov r0, r2
|
|
800ddea: f7fd ff5a bl 800bca2 <vListInsertEnd>
|
|
800ddee: e004 b.n 800ddfa <xTaskPriorityInherit+0xa2>
|
|
}
|
|
else
|
|
{
|
|
/* Just inherit the priority. */
|
|
pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority;
|
|
800ddf0: 4b0a ldr r3, [pc, #40] @ (800de1c <xTaskPriorityInherit+0xc4>)
|
|
800ddf2: 681b ldr r3, [r3, #0]
|
|
800ddf4: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800ddf6: 68bb ldr r3, [r7, #8]
|
|
800ddf8: 62da str r2, [r3, #44] @ 0x2c
|
|
}
|
|
|
|
traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority );
|
|
|
|
/* Inheritance occurred. */
|
|
xReturn = pdTRUE;
|
|
800ddfa: 2301 movs r3, #1
|
|
800ddfc: 60fb str r3, [r7, #12]
|
|
800ddfe: e008 b.n 800de12 <xTaskPriorityInherit+0xba>
|
|
}
|
|
else
|
|
{
|
|
if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority )
|
|
800de00: 68bb ldr r3, [r7, #8]
|
|
800de02: 6cda ldr r2, [r3, #76] @ 0x4c
|
|
800de04: 4b05 ldr r3, [pc, #20] @ (800de1c <xTaskPriorityInherit+0xc4>)
|
|
800de06: 681b ldr r3, [r3, #0]
|
|
800de08: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800de0a: 429a cmp r2, r3
|
|
800de0c: d201 bcs.n 800de12 <xTaskPriorityInherit+0xba>
|
|
current priority of the mutex holder is not lower than the
|
|
priority of the task attempting to take the mutex.
|
|
Therefore the mutex holder must have already inherited a
|
|
priority, but inheritance would have occurred if that had
|
|
not been the case. */
|
|
xReturn = pdTRUE;
|
|
800de0e: 2301 movs r3, #1
|
|
800de10: 60fb str r3, [r7, #12]
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
return xReturn;
|
|
800de12: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800de14: 4618 mov r0, r3
|
|
800de16: 3710 adds r7, #16
|
|
800de18: 46bd mov sp, r7
|
|
800de1a: bd80 pop {r7, pc}
|
|
800de1c: 20001ed8 .word 0x20001ed8
|
|
800de20: 20001edc .word 0x20001edc
|
|
800de24: 200023b4 .word 0x200023b4
|
|
|
|
0800de28 <xTaskPriorityDisinherit>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
|
|
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
|
|
{
|
|
800de28: b580 push {r7, lr}
|
|
800de2a: b086 sub sp, #24
|
|
800de2c: af00 add r7, sp, #0
|
|
800de2e: 6078 str r0, [r7, #4]
|
|
TCB_t * const pxTCB = pxMutexHolder;
|
|
800de30: 687b ldr r3, [r7, #4]
|
|
800de32: 613b str r3, [r7, #16]
|
|
BaseType_t xReturn = pdFALSE;
|
|
800de34: 2300 movs r3, #0
|
|
800de36: 617b str r3, [r7, #20]
|
|
|
|
if( pxMutexHolder != NULL )
|
|
800de38: 687b ldr r3, [r7, #4]
|
|
800de3a: 2b00 cmp r3, #0
|
|
800de3c: d058 beq.n 800def0 <xTaskPriorityDisinherit+0xc8>
|
|
{
|
|
/* A task can only have an inherited priority if it holds the mutex.
|
|
If the mutex is held by a task then it cannot be given from an
|
|
interrupt, and if a mutex is given by the holding task then it must
|
|
be the running state task. */
|
|
configASSERT( pxTCB == pxCurrentTCB );
|
|
800de3e: 4b2f ldr r3, [pc, #188] @ (800defc <xTaskPriorityDisinherit+0xd4>)
|
|
800de40: 681b ldr r3, [r3, #0]
|
|
800de42: 693a ldr r2, [r7, #16]
|
|
800de44: 429a cmp r2, r3
|
|
800de46: d00b beq.n 800de60 <xTaskPriorityDisinherit+0x38>
|
|
__asm volatile
|
|
800de48: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800de4c: f383 8811 msr BASEPRI, r3
|
|
800de50: f3bf 8f6f isb sy
|
|
800de54: f3bf 8f4f dsb sy
|
|
800de58: 60fb str r3, [r7, #12]
|
|
}
|
|
800de5a: bf00 nop
|
|
800de5c: bf00 nop
|
|
800de5e: e7fd b.n 800de5c <xTaskPriorityDisinherit+0x34>
|
|
configASSERT( pxTCB->uxMutexesHeld );
|
|
800de60: 693b ldr r3, [r7, #16]
|
|
800de62: 6d1b ldr r3, [r3, #80] @ 0x50
|
|
800de64: 2b00 cmp r3, #0
|
|
800de66: d10b bne.n 800de80 <xTaskPriorityDisinherit+0x58>
|
|
__asm volatile
|
|
800de68: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800de6c: f383 8811 msr BASEPRI, r3
|
|
800de70: f3bf 8f6f isb sy
|
|
800de74: f3bf 8f4f dsb sy
|
|
800de78: 60bb str r3, [r7, #8]
|
|
}
|
|
800de7a: bf00 nop
|
|
800de7c: bf00 nop
|
|
800de7e: e7fd b.n 800de7c <xTaskPriorityDisinherit+0x54>
|
|
( pxTCB->uxMutexesHeld )--;
|
|
800de80: 693b ldr r3, [r7, #16]
|
|
800de82: 6d1b ldr r3, [r3, #80] @ 0x50
|
|
800de84: 1e5a subs r2, r3, #1
|
|
800de86: 693b ldr r3, [r7, #16]
|
|
800de88: 651a str r2, [r3, #80] @ 0x50
|
|
|
|
/* Has the holder of the mutex inherited the priority of another
|
|
task? */
|
|
if( pxTCB->uxPriority != pxTCB->uxBasePriority )
|
|
800de8a: 693b ldr r3, [r7, #16]
|
|
800de8c: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800de8e: 693b ldr r3, [r7, #16]
|
|
800de90: 6cdb ldr r3, [r3, #76] @ 0x4c
|
|
800de92: 429a cmp r2, r3
|
|
800de94: d02c beq.n 800def0 <xTaskPriorityDisinherit+0xc8>
|
|
{
|
|
/* Only disinherit if no other mutexes are held. */
|
|
if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
|
|
800de96: 693b ldr r3, [r7, #16]
|
|
800de98: 6d1b ldr r3, [r3, #80] @ 0x50
|
|
800de9a: 2b00 cmp r3, #0
|
|
800de9c: d128 bne.n 800def0 <xTaskPriorityDisinherit+0xc8>
|
|
/* A task can only have an inherited priority if it holds
|
|
the mutex. If the mutex is held by a task then it cannot be
|
|
given from an interrupt, and if a mutex is given by the
|
|
holding task then it must be the running state task. Remove
|
|
the holding task from the ready/delayed list. */
|
|
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
|
|
800de9e: 693b ldr r3, [r7, #16]
|
|
800dea0: 3304 adds r3, #4
|
|
800dea2: 4618 mov r0, r3
|
|
800dea4: f7fd ff5a bl 800bd5c <uxListRemove>
|
|
}
|
|
|
|
/* Disinherit the priority before adding the task into the
|
|
new ready list. */
|
|
traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
|
|
pxTCB->uxPriority = pxTCB->uxBasePriority;
|
|
800dea8: 693b ldr r3, [r7, #16]
|
|
800deaa: 6cda ldr r2, [r3, #76] @ 0x4c
|
|
800deac: 693b ldr r3, [r7, #16]
|
|
800deae: 62da str r2, [r3, #44] @ 0x2c
|
|
|
|
/* Reset the event list item value. It cannot be in use for
|
|
any other purpose if this task is running, and it must be
|
|
running to give back the mutex. */
|
|
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800deb0: 693b ldr r3, [r7, #16]
|
|
800deb2: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800deb4: f1c3 0238 rsb r2, r3, #56 @ 0x38
|
|
800deb8: 693b ldr r3, [r7, #16]
|
|
800deba: 619a str r2, [r3, #24]
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800debc: 693b ldr r3, [r7, #16]
|
|
800debe: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800dec0: 4b0f ldr r3, [pc, #60] @ (800df00 <xTaskPriorityDisinherit+0xd8>)
|
|
800dec2: 681b ldr r3, [r3, #0]
|
|
800dec4: 429a cmp r2, r3
|
|
800dec6: d903 bls.n 800ded0 <xTaskPriorityDisinherit+0xa8>
|
|
800dec8: 693b ldr r3, [r7, #16]
|
|
800deca: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800decc: 4a0c ldr r2, [pc, #48] @ (800df00 <xTaskPriorityDisinherit+0xd8>)
|
|
800dece: 6013 str r3, [r2, #0]
|
|
800ded0: 693b ldr r3, [r7, #16]
|
|
800ded2: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800ded4: 4613 mov r3, r2
|
|
800ded6: 009b lsls r3, r3, #2
|
|
800ded8: 4413 add r3, r2
|
|
800deda: 009b lsls r3, r3, #2
|
|
800dedc: 4a09 ldr r2, [pc, #36] @ (800df04 <xTaskPriorityDisinherit+0xdc>)
|
|
800dede: 441a add r2, r3
|
|
800dee0: 693b ldr r3, [r7, #16]
|
|
800dee2: 3304 adds r3, #4
|
|
800dee4: 4619 mov r1, r3
|
|
800dee6: 4610 mov r0, r2
|
|
800dee8: f7fd fedb bl 800bca2 <vListInsertEnd>
|
|
in an order different to that in which they were taken.
|
|
If a context switch did not occur when the first mutex was
|
|
returned, even if a task was waiting on it, then a context
|
|
switch should occur when the last mutex is returned whether
|
|
a task is waiting on it or not. */
|
|
xReturn = pdTRUE;
|
|
800deec: 2301 movs r3, #1
|
|
800deee: 617b str r3, [r7, #20]
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
return xReturn;
|
|
800def0: 697b ldr r3, [r7, #20]
|
|
}
|
|
800def2: 4618 mov r0, r3
|
|
800def4: 3718 adds r7, #24
|
|
800def6: 46bd mov sp, r7
|
|
800def8: bd80 pop {r7, pc}
|
|
800defa: bf00 nop
|
|
800defc: 20001ed8 .word 0x20001ed8
|
|
800df00: 200023b4 .word 0x200023b4
|
|
800df04: 20001edc .word 0x20001edc
|
|
|
|
0800df08 <vTaskPriorityDisinheritAfterTimeout>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
|
|
void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask )
|
|
{
|
|
800df08: b580 push {r7, lr}
|
|
800df0a: b088 sub sp, #32
|
|
800df0c: af00 add r7, sp, #0
|
|
800df0e: 6078 str r0, [r7, #4]
|
|
800df10: 6039 str r1, [r7, #0]
|
|
TCB_t * const pxTCB = pxMutexHolder;
|
|
800df12: 687b ldr r3, [r7, #4]
|
|
800df14: 61bb str r3, [r7, #24]
|
|
UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse;
|
|
const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1;
|
|
800df16: 2301 movs r3, #1
|
|
800df18: 617b str r3, [r7, #20]
|
|
|
|
if( pxMutexHolder != NULL )
|
|
800df1a: 687b ldr r3, [r7, #4]
|
|
800df1c: 2b00 cmp r3, #0
|
|
800df1e: d06c beq.n 800dffa <vTaskPriorityDisinheritAfterTimeout+0xf2>
|
|
{
|
|
/* If pxMutexHolder is not NULL then the holder must hold at least
|
|
one mutex. */
|
|
configASSERT( pxTCB->uxMutexesHeld );
|
|
800df20: 69bb ldr r3, [r7, #24]
|
|
800df22: 6d1b ldr r3, [r3, #80] @ 0x50
|
|
800df24: 2b00 cmp r3, #0
|
|
800df26: d10b bne.n 800df40 <vTaskPriorityDisinheritAfterTimeout+0x38>
|
|
__asm volatile
|
|
800df28: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800df2c: f383 8811 msr BASEPRI, r3
|
|
800df30: f3bf 8f6f isb sy
|
|
800df34: f3bf 8f4f dsb sy
|
|
800df38: 60fb str r3, [r7, #12]
|
|
}
|
|
800df3a: bf00 nop
|
|
800df3c: bf00 nop
|
|
800df3e: e7fd b.n 800df3c <vTaskPriorityDisinheritAfterTimeout+0x34>
|
|
|
|
/* Determine the priority to which the priority of the task that
|
|
holds the mutex should be set. This will be the greater of the
|
|
holding task's base priority and the priority of the highest
|
|
priority task that is waiting to obtain the mutex. */
|
|
if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask )
|
|
800df40: 69bb ldr r3, [r7, #24]
|
|
800df42: 6cdb ldr r3, [r3, #76] @ 0x4c
|
|
800df44: 683a ldr r2, [r7, #0]
|
|
800df46: 429a cmp r2, r3
|
|
800df48: d902 bls.n 800df50 <vTaskPriorityDisinheritAfterTimeout+0x48>
|
|
{
|
|
uxPriorityToUse = uxHighestPriorityWaitingTask;
|
|
800df4a: 683b ldr r3, [r7, #0]
|
|
800df4c: 61fb str r3, [r7, #28]
|
|
800df4e: e002 b.n 800df56 <vTaskPriorityDisinheritAfterTimeout+0x4e>
|
|
}
|
|
else
|
|
{
|
|
uxPriorityToUse = pxTCB->uxBasePriority;
|
|
800df50: 69bb ldr r3, [r7, #24]
|
|
800df52: 6cdb ldr r3, [r3, #76] @ 0x4c
|
|
800df54: 61fb str r3, [r7, #28]
|
|
}
|
|
|
|
/* Does the priority need to change? */
|
|
if( pxTCB->uxPriority != uxPriorityToUse )
|
|
800df56: 69bb ldr r3, [r7, #24]
|
|
800df58: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800df5a: 69fa ldr r2, [r7, #28]
|
|
800df5c: 429a cmp r2, r3
|
|
800df5e: d04c beq.n 800dffa <vTaskPriorityDisinheritAfterTimeout+0xf2>
|
|
{
|
|
/* Only disinherit if no other mutexes are held. This is a
|
|
simplification in the priority inheritance implementation. If
|
|
the task that holds the mutex is also holding other mutexes then
|
|
the other mutexes may have caused the priority inheritance. */
|
|
if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld )
|
|
800df60: 69bb ldr r3, [r7, #24]
|
|
800df62: 6d1b ldr r3, [r3, #80] @ 0x50
|
|
800df64: 697a ldr r2, [r7, #20]
|
|
800df66: 429a cmp r2, r3
|
|
800df68: d147 bne.n 800dffa <vTaskPriorityDisinheritAfterTimeout+0xf2>
|
|
{
|
|
/* If a task has timed out because it already holds the
|
|
mutex it was trying to obtain then it cannot of inherited
|
|
its own priority. */
|
|
configASSERT( pxTCB != pxCurrentTCB );
|
|
800df6a: 4b26 ldr r3, [pc, #152] @ (800e004 <vTaskPriorityDisinheritAfterTimeout+0xfc>)
|
|
800df6c: 681b ldr r3, [r3, #0]
|
|
800df6e: 69ba ldr r2, [r7, #24]
|
|
800df70: 429a cmp r2, r3
|
|
800df72: d10b bne.n 800df8c <vTaskPriorityDisinheritAfterTimeout+0x84>
|
|
__asm volatile
|
|
800df74: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800df78: f383 8811 msr BASEPRI, r3
|
|
800df7c: f3bf 8f6f isb sy
|
|
800df80: f3bf 8f4f dsb sy
|
|
800df84: 60bb str r3, [r7, #8]
|
|
}
|
|
800df86: bf00 nop
|
|
800df88: bf00 nop
|
|
800df8a: e7fd b.n 800df88 <vTaskPriorityDisinheritAfterTimeout+0x80>
|
|
|
|
/* Disinherit the priority, remembering the previous
|
|
priority to facilitate determining the subject task's
|
|
state. */
|
|
traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
|
|
uxPriorityUsedOnEntry = pxTCB->uxPriority;
|
|
800df8c: 69bb ldr r3, [r7, #24]
|
|
800df8e: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800df90: 613b str r3, [r7, #16]
|
|
pxTCB->uxPriority = uxPriorityToUse;
|
|
800df92: 69bb ldr r3, [r7, #24]
|
|
800df94: 69fa ldr r2, [r7, #28]
|
|
800df96: 62da str r2, [r3, #44] @ 0x2c
|
|
|
|
/* Only reset the event list item value if the value is not
|
|
being used for anything else. */
|
|
if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL )
|
|
800df98: 69bb ldr r3, [r7, #24]
|
|
800df9a: 699b ldr r3, [r3, #24]
|
|
800df9c: 2b00 cmp r3, #0
|
|
800df9e: db04 blt.n 800dfaa <vTaskPriorityDisinheritAfterTimeout+0xa2>
|
|
{
|
|
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800dfa0: 69fb ldr r3, [r7, #28]
|
|
800dfa2: f1c3 0238 rsb r2, r3, #56 @ 0x38
|
|
800dfa6: 69bb ldr r3, [r7, #24]
|
|
800dfa8: 619a str r2, [r3, #24]
|
|
then the task that holds the mutex could be in either the
|
|
Ready, Blocked or Suspended states. Only remove the task
|
|
from its current state list if it is in the Ready state as
|
|
the task's priority is going to change and there is one
|
|
Ready list per priority. */
|
|
if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE )
|
|
800dfaa: 69bb ldr r3, [r7, #24]
|
|
800dfac: 6959 ldr r1, [r3, #20]
|
|
800dfae: 693a ldr r2, [r7, #16]
|
|
800dfb0: 4613 mov r3, r2
|
|
800dfb2: 009b lsls r3, r3, #2
|
|
800dfb4: 4413 add r3, r2
|
|
800dfb6: 009b lsls r3, r3, #2
|
|
800dfb8: 4a13 ldr r2, [pc, #76] @ (800e008 <vTaskPriorityDisinheritAfterTimeout+0x100>)
|
|
800dfba: 4413 add r3, r2
|
|
800dfbc: 4299 cmp r1, r3
|
|
800dfbe: d11c bne.n 800dffa <vTaskPriorityDisinheritAfterTimeout+0xf2>
|
|
{
|
|
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
|
|
800dfc0: 69bb ldr r3, [r7, #24]
|
|
800dfc2: 3304 adds r3, #4
|
|
800dfc4: 4618 mov r0, r3
|
|
800dfc6: f7fd fec9 bl 800bd5c <uxListRemove>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800dfca: 69bb ldr r3, [r7, #24]
|
|
800dfcc: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800dfce: 4b0f ldr r3, [pc, #60] @ (800e00c <vTaskPriorityDisinheritAfterTimeout+0x104>)
|
|
800dfd0: 681b ldr r3, [r3, #0]
|
|
800dfd2: 429a cmp r2, r3
|
|
800dfd4: d903 bls.n 800dfde <vTaskPriorityDisinheritAfterTimeout+0xd6>
|
|
800dfd6: 69bb ldr r3, [r7, #24]
|
|
800dfd8: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800dfda: 4a0c ldr r2, [pc, #48] @ (800e00c <vTaskPriorityDisinheritAfterTimeout+0x104>)
|
|
800dfdc: 6013 str r3, [r2, #0]
|
|
800dfde: 69bb ldr r3, [r7, #24]
|
|
800dfe0: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800dfe2: 4613 mov r3, r2
|
|
800dfe4: 009b lsls r3, r3, #2
|
|
800dfe6: 4413 add r3, r2
|
|
800dfe8: 009b lsls r3, r3, #2
|
|
800dfea: 4a07 ldr r2, [pc, #28] @ (800e008 <vTaskPriorityDisinheritAfterTimeout+0x100>)
|
|
800dfec: 441a add r2, r3
|
|
800dfee: 69bb ldr r3, [r7, #24]
|
|
800dff0: 3304 adds r3, #4
|
|
800dff2: 4619 mov r1, r3
|
|
800dff4: 4610 mov r0, r2
|
|
800dff6: f7fd fe54 bl 800bca2 <vListInsertEnd>
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800dffa: bf00 nop
|
|
800dffc: 3720 adds r7, #32
|
|
800dffe: 46bd mov sp, r7
|
|
800e000: bd80 pop {r7, pc}
|
|
800e002: bf00 nop
|
|
800e004: 20001ed8 .word 0x20001ed8
|
|
800e008: 20001edc .word 0x20001edc
|
|
800e00c: 200023b4 .word 0x200023b4
|
|
|
|
0800e010 <uxTaskResetEventItemValue>:
|
|
|
|
#endif /* ( ( configGENERATE_RUN_TIME_STATS == 1 ) && ( configUSE_STATS_FORMATTING_FUNCTIONS > 0 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) */
|
|
/*-----------------------------------------------------------*/
|
|
|
|
TickType_t uxTaskResetEventItemValue( void )
|
|
{
|
|
800e010: b480 push {r7}
|
|
800e012: b083 sub sp, #12
|
|
800e014: af00 add r7, sp, #0
|
|
TickType_t uxReturn;
|
|
|
|
uxReturn = listGET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ) );
|
|
800e016: 4b09 ldr r3, [pc, #36] @ (800e03c <uxTaskResetEventItemValue+0x2c>)
|
|
800e018: 681b ldr r3, [r3, #0]
|
|
800e01a: 699b ldr r3, [r3, #24]
|
|
800e01c: 607b str r3, [r7, #4]
|
|
|
|
/* Reset the event list item to its normal value - so it can be used with
|
|
queues and semaphores. */
|
|
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xEventListItem ), ( ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ) ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800e01e: 4b07 ldr r3, [pc, #28] @ (800e03c <uxTaskResetEventItemValue+0x2c>)
|
|
800e020: 681b ldr r3, [r3, #0]
|
|
800e022: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e024: 4b05 ldr r3, [pc, #20] @ (800e03c <uxTaskResetEventItemValue+0x2c>)
|
|
800e026: 681b ldr r3, [r3, #0]
|
|
800e028: f1c2 0238 rsb r2, r2, #56 @ 0x38
|
|
800e02c: 619a str r2, [r3, #24]
|
|
|
|
return uxReturn;
|
|
800e02e: 687b ldr r3, [r7, #4]
|
|
}
|
|
800e030: 4618 mov r0, r3
|
|
800e032: 370c adds r7, #12
|
|
800e034: 46bd mov sp, r7
|
|
800e036: f85d 7b04 ldr.w r7, [sp], #4
|
|
800e03a: 4770 bx lr
|
|
800e03c: 20001ed8 .word 0x20001ed8
|
|
|
|
0800e040 <pvTaskIncrementMutexHeldCount>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if ( configUSE_MUTEXES == 1 )
|
|
|
|
TaskHandle_t pvTaskIncrementMutexHeldCount( void )
|
|
{
|
|
800e040: b480 push {r7}
|
|
800e042: af00 add r7, sp, #0
|
|
/* If xSemaphoreCreateMutex() is called before any tasks have been created
|
|
then pxCurrentTCB will be NULL. */
|
|
if( pxCurrentTCB != NULL )
|
|
800e044: 4b07 ldr r3, [pc, #28] @ (800e064 <pvTaskIncrementMutexHeldCount+0x24>)
|
|
800e046: 681b ldr r3, [r3, #0]
|
|
800e048: 2b00 cmp r3, #0
|
|
800e04a: d004 beq.n 800e056 <pvTaskIncrementMutexHeldCount+0x16>
|
|
{
|
|
( pxCurrentTCB->uxMutexesHeld )++;
|
|
800e04c: 4b05 ldr r3, [pc, #20] @ (800e064 <pvTaskIncrementMutexHeldCount+0x24>)
|
|
800e04e: 681b ldr r3, [r3, #0]
|
|
800e050: 6d1a ldr r2, [r3, #80] @ 0x50
|
|
800e052: 3201 adds r2, #1
|
|
800e054: 651a str r2, [r3, #80] @ 0x50
|
|
}
|
|
|
|
return pxCurrentTCB;
|
|
800e056: 4b03 ldr r3, [pc, #12] @ (800e064 <pvTaskIncrementMutexHeldCount+0x24>)
|
|
800e058: 681b ldr r3, [r3, #0]
|
|
}
|
|
800e05a: 4618 mov r0, r3
|
|
800e05c: 46bd mov sp, r7
|
|
800e05e: f85d 7b04 ldr.w r7, [sp], #4
|
|
800e062: 4770 bx lr
|
|
800e064: 20001ed8 .word 0x20001ed8
|
|
|
|
0800e068 <xTaskNotifyWait>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_TASK_NOTIFICATIONS == 1 )
|
|
|
|
BaseType_t xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait )
|
|
{
|
|
800e068: b580 push {r7, lr}
|
|
800e06a: b086 sub sp, #24
|
|
800e06c: af00 add r7, sp, #0
|
|
800e06e: 60f8 str r0, [r7, #12]
|
|
800e070: 60b9 str r1, [r7, #8]
|
|
800e072: 607a str r2, [r7, #4]
|
|
800e074: 603b str r3, [r7, #0]
|
|
BaseType_t xReturn;
|
|
|
|
taskENTER_CRITICAL();
|
|
800e076: f000 ffe7 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
/* Only block if a notification is not already pending. */
|
|
if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
|
|
800e07a: 4b29 ldr r3, [pc, #164] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e07c: 681b ldr r3, [r3, #0]
|
|
800e07e: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
|
|
800e082: b2db uxtb r3, r3
|
|
800e084: 2b02 cmp r3, #2
|
|
800e086: d01c beq.n 800e0c2 <xTaskNotifyWait+0x5a>
|
|
{
|
|
/* Clear bits in the task's notification value as bits may get
|
|
set by the notifying task or interrupt. This can be used to
|
|
clear the value to zero. */
|
|
pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnEntry;
|
|
800e088: 4b25 ldr r3, [pc, #148] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e08a: 681b ldr r3, [r3, #0]
|
|
800e08c: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
|
|
800e090: 68fa ldr r2, [r7, #12]
|
|
800e092: 43d2 mvns r2, r2
|
|
800e094: 400a ands r2, r1
|
|
800e096: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
|
|
/* Mark this task as waiting for a notification. */
|
|
pxCurrentTCB->ucNotifyState = taskWAITING_NOTIFICATION;
|
|
800e09a: 4b21 ldr r3, [pc, #132] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e09c: 681b ldr r3, [r3, #0]
|
|
800e09e: 2201 movs r2, #1
|
|
800e0a0: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
|
|
|
|
if( xTicksToWait > ( TickType_t ) 0 )
|
|
800e0a4: 683b ldr r3, [r7, #0]
|
|
800e0a6: 2b00 cmp r3, #0
|
|
800e0a8: d00b beq.n 800e0c2 <xTaskNotifyWait+0x5a>
|
|
{
|
|
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
|
|
800e0aa: 2101 movs r1, #1
|
|
800e0ac: 6838 ldr r0, [r7, #0]
|
|
800e0ae: f000 f9e3 bl 800e478 <prvAddCurrentTaskToDelayedList>
|
|
|
|
/* All ports are written to allow a yield in a critical
|
|
section (some will yield immediately, others wait until the
|
|
critical section exits) - but it is not something that
|
|
application code should ever do. */
|
|
portYIELD_WITHIN_API();
|
|
800e0b2: 4b1c ldr r3, [pc, #112] @ (800e124 <xTaskNotifyWait+0xbc>)
|
|
800e0b4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800e0b8: 601a str r2, [r3, #0]
|
|
800e0ba: f3bf 8f4f dsb sy
|
|
800e0be: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800e0c2: f000 fff3 bl 800f0ac <vPortExitCritical>
|
|
|
|
taskENTER_CRITICAL();
|
|
800e0c6: f000 ffbf bl 800f048 <vPortEnterCritical>
|
|
{
|
|
traceTASK_NOTIFY_WAIT();
|
|
|
|
if( pulNotificationValue != NULL )
|
|
800e0ca: 687b ldr r3, [r7, #4]
|
|
800e0cc: 2b00 cmp r3, #0
|
|
800e0ce: d005 beq.n 800e0dc <xTaskNotifyWait+0x74>
|
|
{
|
|
/* Output the current notification value, which may or may not
|
|
have changed. */
|
|
*pulNotificationValue = pxCurrentTCB->ulNotifiedValue;
|
|
800e0d0: 4b13 ldr r3, [pc, #76] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e0d2: 681b ldr r3, [r3, #0]
|
|
800e0d4: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
|
|
800e0d8: 687b ldr r3, [r7, #4]
|
|
800e0da: 601a str r2, [r3, #0]
|
|
|
|
/* If ucNotifyValue is set then either the task never entered the
|
|
blocked state (because a notification was already pending) or the
|
|
task unblocked because of a notification. Otherwise the task
|
|
unblocked because of a timeout. */
|
|
if( pxCurrentTCB->ucNotifyState != taskNOTIFICATION_RECEIVED )
|
|
800e0dc: 4b10 ldr r3, [pc, #64] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e0de: 681b ldr r3, [r3, #0]
|
|
800e0e0: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
|
|
800e0e4: b2db uxtb r3, r3
|
|
800e0e6: 2b02 cmp r3, #2
|
|
800e0e8: d002 beq.n 800e0f0 <xTaskNotifyWait+0x88>
|
|
{
|
|
/* A notification was not received. */
|
|
xReturn = pdFALSE;
|
|
800e0ea: 2300 movs r3, #0
|
|
800e0ec: 617b str r3, [r7, #20]
|
|
800e0ee: e00a b.n 800e106 <xTaskNotifyWait+0x9e>
|
|
}
|
|
else
|
|
{
|
|
/* A notification was already pending or a notification was
|
|
received while the task was waiting. */
|
|
pxCurrentTCB->ulNotifiedValue &= ~ulBitsToClearOnExit;
|
|
800e0f0: 4b0b ldr r3, [pc, #44] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e0f2: 681b ldr r3, [r3, #0]
|
|
800e0f4: f8d3 10a0 ldr.w r1, [r3, #160] @ 0xa0
|
|
800e0f8: 68ba ldr r2, [r7, #8]
|
|
800e0fa: 43d2 mvns r2, r2
|
|
800e0fc: 400a ands r2, r1
|
|
800e0fe: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
xReturn = pdTRUE;
|
|
800e102: 2301 movs r3, #1
|
|
800e104: 617b str r3, [r7, #20]
|
|
}
|
|
|
|
pxCurrentTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
|
|
800e106: 4b06 ldr r3, [pc, #24] @ (800e120 <xTaskNotifyWait+0xb8>)
|
|
800e108: 681b ldr r3, [r3, #0]
|
|
800e10a: 2200 movs r2, #0
|
|
800e10c: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800e110: f000 ffcc bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800e114: 697b ldr r3, [r7, #20]
|
|
}
|
|
800e116: 4618 mov r0, r3
|
|
800e118: 3718 adds r7, #24
|
|
800e11a: 46bd mov sp, r7
|
|
800e11c: bd80 pop {r7, pc}
|
|
800e11e: bf00 nop
|
|
800e120: 20001ed8 .word 0x20001ed8
|
|
800e124: e000ed04 .word 0xe000ed04
|
|
|
|
0800e128 <xTaskGenericNotify>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_TASK_NOTIFICATIONS == 1 )
|
|
|
|
BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue )
|
|
{
|
|
800e128: b580 push {r7, lr}
|
|
800e12a: b08a sub sp, #40 @ 0x28
|
|
800e12c: af00 add r7, sp, #0
|
|
800e12e: 60f8 str r0, [r7, #12]
|
|
800e130: 60b9 str r1, [r7, #8]
|
|
800e132: 603b str r3, [r7, #0]
|
|
800e134: 4613 mov r3, r2
|
|
800e136: 71fb strb r3, [r7, #7]
|
|
TCB_t * pxTCB;
|
|
BaseType_t xReturn = pdPASS;
|
|
800e138: 2301 movs r3, #1
|
|
800e13a: 627b str r3, [r7, #36] @ 0x24
|
|
uint8_t ucOriginalNotifyState;
|
|
|
|
configASSERT( xTaskToNotify );
|
|
800e13c: 68fb ldr r3, [r7, #12]
|
|
800e13e: 2b00 cmp r3, #0
|
|
800e140: d10b bne.n 800e15a <xTaskGenericNotify+0x32>
|
|
__asm volatile
|
|
800e142: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e146: f383 8811 msr BASEPRI, r3
|
|
800e14a: f3bf 8f6f isb sy
|
|
800e14e: f3bf 8f4f dsb sy
|
|
800e152: 61bb str r3, [r7, #24]
|
|
}
|
|
800e154: bf00 nop
|
|
800e156: bf00 nop
|
|
800e158: e7fd b.n 800e156 <xTaskGenericNotify+0x2e>
|
|
pxTCB = xTaskToNotify;
|
|
800e15a: 68fb ldr r3, [r7, #12]
|
|
800e15c: 623b str r3, [r7, #32]
|
|
|
|
taskENTER_CRITICAL();
|
|
800e15e: f000 ff73 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
if( pulPreviousNotificationValue != NULL )
|
|
800e162: 683b ldr r3, [r7, #0]
|
|
800e164: 2b00 cmp r3, #0
|
|
800e166: d004 beq.n 800e172 <xTaskGenericNotify+0x4a>
|
|
{
|
|
*pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
|
|
800e168: 6a3b ldr r3, [r7, #32]
|
|
800e16a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
|
|
800e16e: 683b ldr r3, [r7, #0]
|
|
800e170: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
ucOriginalNotifyState = pxTCB->ucNotifyState;
|
|
800e172: 6a3b ldr r3, [r7, #32]
|
|
800e174: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
|
|
800e178: 77fb strb r3, [r7, #31]
|
|
|
|
pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
|
|
800e17a: 6a3b ldr r3, [r7, #32]
|
|
800e17c: 2202 movs r2, #2
|
|
800e17e: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
|
|
|
|
switch( eAction )
|
|
800e182: 79fb ldrb r3, [r7, #7]
|
|
800e184: 2b04 cmp r3, #4
|
|
800e186: d82e bhi.n 800e1e6 <xTaskGenericNotify+0xbe>
|
|
800e188: a201 add r2, pc, #4 @ (adr r2, 800e190 <xTaskGenericNotify+0x68>)
|
|
800e18a: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
800e18e: bf00 nop
|
|
800e190: 0800e20b .word 0x0800e20b
|
|
800e194: 0800e1a5 .word 0x0800e1a5
|
|
800e198: 0800e1b7 .word 0x0800e1b7
|
|
800e19c: 0800e1c7 .word 0x0800e1c7
|
|
800e1a0: 0800e1d1 .word 0x0800e1d1
|
|
{
|
|
case eSetBits :
|
|
pxTCB->ulNotifiedValue |= ulValue;
|
|
800e1a4: 6a3b ldr r3, [r7, #32]
|
|
800e1a6: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
|
|
800e1aa: 68bb ldr r3, [r7, #8]
|
|
800e1ac: 431a orrs r2, r3
|
|
800e1ae: 6a3b ldr r3, [r7, #32]
|
|
800e1b0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e1b4: e02c b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
|
|
case eIncrement :
|
|
( pxTCB->ulNotifiedValue )++;
|
|
800e1b6: 6a3b ldr r3, [r7, #32]
|
|
800e1b8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
|
|
800e1bc: 1c5a adds r2, r3, #1
|
|
800e1be: 6a3b ldr r3, [r7, #32]
|
|
800e1c0: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e1c4: e024 b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
|
|
case eSetValueWithOverwrite :
|
|
pxTCB->ulNotifiedValue = ulValue;
|
|
800e1c6: 6a3b ldr r3, [r7, #32]
|
|
800e1c8: 68ba ldr r2, [r7, #8]
|
|
800e1ca: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e1ce: e01f b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
|
|
case eSetValueWithoutOverwrite :
|
|
if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
|
|
800e1d0: 7ffb ldrb r3, [r7, #31]
|
|
800e1d2: 2b02 cmp r3, #2
|
|
800e1d4: d004 beq.n 800e1e0 <xTaskGenericNotify+0xb8>
|
|
{
|
|
pxTCB->ulNotifiedValue = ulValue;
|
|
800e1d6: 6a3b ldr r3, [r7, #32]
|
|
800e1d8: 68ba ldr r2, [r7, #8]
|
|
800e1da: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
else
|
|
{
|
|
/* The value could not be written to the task. */
|
|
xReturn = pdFAIL;
|
|
}
|
|
break;
|
|
800e1de: e017 b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
xReturn = pdFAIL;
|
|
800e1e0: 2300 movs r3, #0
|
|
800e1e2: 627b str r3, [r7, #36] @ 0x24
|
|
break;
|
|
800e1e4: e014 b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
|
|
default:
|
|
/* Should not get here if all enums are handled.
|
|
Artificially force an assert by testing a value the
|
|
compiler can't assume is const. */
|
|
configASSERT( pxTCB->ulNotifiedValue == ~0UL );
|
|
800e1e6: 6a3b ldr r3, [r7, #32]
|
|
800e1e8: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
|
|
800e1ec: f1b3 3fff cmp.w r3, #4294967295
|
|
800e1f0: d00d beq.n 800e20e <xTaskGenericNotify+0xe6>
|
|
__asm volatile
|
|
800e1f2: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e1f6: f383 8811 msr BASEPRI, r3
|
|
800e1fa: f3bf 8f6f isb sy
|
|
800e1fe: f3bf 8f4f dsb sy
|
|
800e202: 617b str r3, [r7, #20]
|
|
}
|
|
800e204: bf00 nop
|
|
800e206: bf00 nop
|
|
800e208: e7fd b.n 800e206 <xTaskGenericNotify+0xde>
|
|
break;
|
|
800e20a: bf00 nop
|
|
800e20c: e000 b.n 800e210 <xTaskGenericNotify+0xe8>
|
|
|
|
break;
|
|
800e20e: bf00 nop
|
|
|
|
traceTASK_NOTIFY();
|
|
|
|
/* If the task is in the blocked state specifically to wait for a
|
|
notification then unblock it now. */
|
|
if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
|
|
800e210: 7ffb ldrb r3, [r7, #31]
|
|
800e212: 2b01 cmp r3, #1
|
|
800e214: d13b bne.n 800e28e <xTaskGenericNotify+0x166>
|
|
{
|
|
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
|
|
800e216: 6a3b ldr r3, [r7, #32]
|
|
800e218: 3304 adds r3, #4
|
|
800e21a: 4618 mov r0, r3
|
|
800e21c: f7fd fd9e bl 800bd5c <uxListRemove>
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800e220: 6a3b ldr r3, [r7, #32]
|
|
800e222: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e224: 4b1d ldr r3, [pc, #116] @ (800e29c <xTaskGenericNotify+0x174>)
|
|
800e226: 681b ldr r3, [r3, #0]
|
|
800e228: 429a cmp r2, r3
|
|
800e22a: d903 bls.n 800e234 <xTaskGenericNotify+0x10c>
|
|
800e22c: 6a3b ldr r3, [r7, #32]
|
|
800e22e: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800e230: 4a1a ldr r2, [pc, #104] @ (800e29c <xTaskGenericNotify+0x174>)
|
|
800e232: 6013 str r3, [r2, #0]
|
|
800e234: 6a3b ldr r3, [r7, #32]
|
|
800e236: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e238: 4613 mov r3, r2
|
|
800e23a: 009b lsls r3, r3, #2
|
|
800e23c: 4413 add r3, r2
|
|
800e23e: 009b lsls r3, r3, #2
|
|
800e240: 4a17 ldr r2, [pc, #92] @ (800e2a0 <xTaskGenericNotify+0x178>)
|
|
800e242: 441a add r2, r3
|
|
800e244: 6a3b ldr r3, [r7, #32]
|
|
800e246: 3304 adds r3, #4
|
|
800e248: 4619 mov r1, r3
|
|
800e24a: 4610 mov r0, r2
|
|
800e24c: f7fd fd29 bl 800bca2 <vListInsertEnd>
|
|
|
|
/* The task should not have been on an event list. */
|
|
configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
|
|
800e250: 6a3b ldr r3, [r7, #32]
|
|
800e252: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
800e254: 2b00 cmp r3, #0
|
|
800e256: d00b beq.n 800e270 <xTaskGenericNotify+0x148>
|
|
__asm volatile
|
|
800e258: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e25c: f383 8811 msr BASEPRI, r3
|
|
800e260: f3bf 8f6f isb sy
|
|
800e264: f3bf 8f4f dsb sy
|
|
800e268: 613b str r3, [r7, #16]
|
|
}
|
|
800e26a: bf00 nop
|
|
800e26c: bf00 nop
|
|
800e26e: e7fd b.n 800e26c <xTaskGenericNotify+0x144>
|
|
earliest possible time. */
|
|
prvResetNextTaskUnblockTime();
|
|
}
|
|
#endif
|
|
|
|
if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
|
|
800e270: 6a3b ldr r3, [r7, #32]
|
|
800e272: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e274: 4b0b ldr r3, [pc, #44] @ (800e2a4 <xTaskGenericNotify+0x17c>)
|
|
800e276: 681b ldr r3, [r3, #0]
|
|
800e278: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800e27a: 429a cmp r2, r3
|
|
800e27c: d907 bls.n 800e28e <xTaskGenericNotify+0x166>
|
|
{
|
|
/* The notified task has a priority above the currently
|
|
executing task so a yield is required. */
|
|
taskYIELD_IF_USING_PREEMPTION();
|
|
800e27e: 4b0a ldr r3, [pc, #40] @ (800e2a8 <xTaskGenericNotify+0x180>)
|
|
800e280: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800e284: 601a str r2, [r3, #0]
|
|
800e286: f3bf 8f4f dsb sy
|
|
800e28a: f3bf 8f6f isb sy
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800e28e: f000 ff0d bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800e292: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
}
|
|
800e294: 4618 mov r0, r3
|
|
800e296: 3728 adds r7, #40 @ 0x28
|
|
800e298: 46bd mov sp, r7
|
|
800e29a: bd80 pop {r7, pc}
|
|
800e29c: 200023b4 .word 0x200023b4
|
|
800e2a0: 20001edc .word 0x20001edc
|
|
800e2a4: 20001ed8 .word 0x20001ed8
|
|
800e2a8: e000ed04 .word 0xe000ed04
|
|
|
|
0800e2ac <xTaskGenericNotifyFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configUSE_TASK_NOTIFICATIONS == 1 )
|
|
|
|
BaseType_t xTaskGenericNotifyFromISR( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue, BaseType_t *pxHigherPriorityTaskWoken )
|
|
{
|
|
800e2ac: b580 push {r7, lr}
|
|
800e2ae: b08e sub sp, #56 @ 0x38
|
|
800e2b0: af00 add r7, sp, #0
|
|
800e2b2: 60f8 str r0, [r7, #12]
|
|
800e2b4: 60b9 str r1, [r7, #8]
|
|
800e2b6: 603b str r3, [r7, #0]
|
|
800e2b8: 4613 mov r3, r2
|
|
800e2ba: 71fb strb r3, [r7, #7]
|
|
TCB_t * pxTCB;
|
|
uint8_t ucOriginalNotifyState;
|
|
BaseType_t xReturn = pdPASS;
|
|
800e2bc: 2301 movs r3, #1
|
|
800e2be: 637b str r3, [r7, #52] @ 0x34
|
|
UBaseType_t uxSavedInterruptStatus;
|
|
|
|
configASSERT( xTaskToNotify );
|
|
800e2c0: 68fb ldr r3, [r7, #12]
|
|
800e2c2: 2b00 cmp r3, #0
|
|
800e2c4: d10b bne.n 800e2de <xTaskGenericNotifyFromISR+0x32>
|
|
__asm volatile
|
|
800e2c6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e2ca: f383 8811 msr BASEPRI, r3
|
|
800e2ce: f3bf 8f6f isb sy
|
|
800e2d2: f3bf 8f4f dsb sy
|
|
800e2d6: 627b str r3, [r7, #36] @ 0x24
|
|
}
|
|
800e2d8: bf00 nop
|
|
800e2da: bf00 nop
|
|
800e2dc: e7fd b.n 800e2da <xTaskGenericNotifyFromISR+0x2e>
|
|
below the maximum system call interrupt priority. FreeRTOS maintains a
|
|
separate interrupt safe API to ensure interrupt entry is as fast and as
|
|
simple as possible. More information (albeit Cortex-M specific) is
|
|
provided on the following link:
|
|
http://www.freertos.org/RTOS-Cortex-M3-M4.html */
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
800e2de: f000 ff93 bl 800f208 <vPortValidateInterruptPriority>
|
|
|
|
pxTCB = xTaskToNotify;
|
|
800e2e2: 68fb ldr r3, [r7, #12]
|
|
800e2e4: 633b str r3, [r7, #48] @ 0x30
|
|
__asm volatile
|
|
800e2e6: f3ef 8211 mrs r2, BASEPRI
|
|
800e2ea: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e2ee: f383 8811 msr BASEPRI, r3
|
|
800e2f2: f3bf 8f6f isb sy
|
|
800e2f6: f3bf 8f4f dsb sy
|
|
800e2fa: 623a str r2, [r7, #32]
|
|
800e2fc: 61fb str r3, [r7, #28]
|
|
return ulOriginalBASEPRI;
|
|
800e2fe: 6a3b ldr r3, [r7, #32]
|
|
|
|
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
800e300: 62fb str r3, [r7, #44] @ 0x2c
|
|
{
|
|
if( pulPreviousNotificationValue != NULL )
|
|
800e302: 683b ldr r3, [r7, #0]
|
|
800e304: 2b00 cmp r3, #0
|
|
800e306: d004 beq.n 800e312 <xTaskGenericNotifyFromISR+0x66>
|
|
{
|
|
*pulPreviousNotificationValue = pxTCB->ulNotifiedValue;
|
|
800e308: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e30a: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
|
|
800e30e: 683b ldr r3, [r7, #0]
|
|
800e310: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
ucOriginalNotifyState = pxTCB->ucNotifyState;
|
|
800e312: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e314: f893 30a4 ldrb.w r3, [r3, #164] @ 0xa4
|
|
800e318: f887 302b strb.w r3, [r7, #43] @ 0x2b
|
|
pxTCB->ucNotifyState = taskNOTIFICATION_RECEIVED;
|
|
800e31c: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e31e: 2202 movs r2, #2
|
|
800e320: f883 20a4 strb.w r2, [r3, #164] @ 0xa4
|
|
|
|
switch( eAction )
|
|
800e324: 79fb ldrb r3, [r7, #7]
|
|
800e326: 2b04 cmp r3, #4
|
|
800e328: d82e bhi.n 800e388 <xTaskGenericNotifyFromISR+0xdc>
|
|
800e32a: a201 add r2, pc, #4 @ (adr r2, 800e330 <xTaskGenericNotifyFromISR+0x84>)
|
|
800e32c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
800e330: 0800e3ad .word 0x0800e3ad
|
|
800e334: 0800e345 .word 0x0800e345
|
|
800e338: 0800e357 .word 0x0800e357
|
|
800e33c: 0800e367 .word 0x0800e367
|
|
800e340: 0800e371 .word 0x0800e371
|
|
{
|
|
case eSetBits :
|
|
pxTCB->ulNotifiedValue |= ulValue;
|
|
800e344: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e346: f8d3 20a0 ldr.w r2, [r3, #160] @ 0xa0
|
|
800e34a: 68bb ldr r3, [r7, #8]
|
|
800e34c: 431a orrs r2, r3
|
|
800e34e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e350: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e354: e02d b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
|
|
case eIncrement :
|
|
( pxTCB->ulNotifiedValue )++;
|
|
800e356: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e358: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
|
|
800e35c: 1c5a adds r2, r3, #1
|
|
800e35e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e360: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e364: e025 b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
|
|
case eSetValueWithOverwrite :
|
|
pxTCB->ulNotifiedValue = ulValue;
|
|
800e366: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e368: 68ba ldr r2, [r7, #8]
|
|
800e36a: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
break;
|
|
800e36e: e020 b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
|
|
case eSetValueWithoutOverwrite :
|
|
if( ucOriginalNotifyState != taskNOTIFICATION_RECEIVED )
|
|
800e370: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
|
|
800e374: 2b02 cmp r3, #2
|
|
800e376: d004 beq.n 800e382 <xTaskGenericNotifyFromISR+0xd6>
|
|
{
|
|
pxTCB->ulNotifiedValue = ulValue;
|
|
800e378: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e37a: 68ba ldr r2, [r7, #8]
|
|
800e37c: f8c3 20a0 str.w r2, [r3, #160] @ 0xa0
|
|
else
|
|
{
|
|
/* The value could not be written to the task. */
|
|
xReturn = pdFAIL;
|
|
}
|
|
break;
|
|
800e380: e017 b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
xReturn = pdFAIL;
|
|
800e382: 2300 movs r3, #0
|
|
800e384: 637b str r3, [r7, #52] @ 0x34
|
|
break;
|
|
800e386: e014 b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
|
|
default:
|
|
/* Should not get here if all enums are handled.
|
|
Artificially force an assert by testing a value the
|
|
compiler can't assume is const. */
|
|
configASSERT( pxTCB->ulNotifiedValue == ~0UL );
|
|
800e388: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e38a: f8d3 30a0 ldr.w r3, [r3, #160] @ 0xa0
|
|
800e38e: f1b3 3fff cmp.w r3, #4294967295
|
|
800e392: d00d beq.n 800e3b0 <xTaskGenericNotifyFromISR+0x104>
|
|
__asm volatile
|
|
800e394: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e398: f383 8811 msr BASEPRI, r3
|
|
800e39c: f3bf 8f6f isb sy
|
|
800e3a0: f3bf 8f4f dsb sy
|
|
800e3a4: 61bb str r3, [r7, #24]
|
|
}
|
|
800e3a6: bf00 nop
|
|
800e3a8: bf00 nop
|
|
800e3aa: e7fd b.n 800e3a8 <xTaskGenericNotifyFromISR+0xfc>
|
|
break;
|
|
800e3ac: bf00 nop
|
|
800e3ae: e000 b.n 800e3b2 <xTaskGenericNotifyFromISR+0x106>
|
|
break;
|
|
800e3b0: bf00 nop
|
|
|
|
traceTASK_NOTIFY_FROM_ISR();
|
|
|
|
/* If the task is in the blocked state specifically to wait for a
|
|
notification then unblock it now. */
|
|
if( ucOriginalNotifyState == taskWAITING_NOTIFICATION )
|
|
800e3b2: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
|
|
800e3b6: 2b01 cmp r3, #1
|
|
800e3b8: d147 bne.n 800e44a <xTaskGenericNotifyFromISR+0x19e>
|
|
{
|
|
/* The task should not have been on an event list. */
|
|
configASSERT( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) == NULL );
|
|
800e3ba: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e3bc: 6a9b ldr r3, [r3, #40] @ 0x28
|
|
800e3be: 2b00 cmp r3, #0
|
|
800e3c0: d00b beq.n 800e3da <xTaskGenericNotifyFromISR+0x12e>
|
|
__asm volatile
|
|
800e3c2: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e3c6: f383 8811 msr BASEPRI, r3
|
|
800e3ca: f3bf 8f6f isb sy
|
|
800e3ce: f3bf 8f4f dsb sy
|
|
800e3d2: 617b str r3, [r7, #20]
|
|
}
|
|
800e3d4: bf00 nop
|
|
800e3d6: bf00 nop
|
|
800e3d8: e7fd b.n 800e3d6 <xTaskGenericNotifyFromISR+0x12a>
|
|
|
|
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
|
|
800e3da: 4b21 ldr r3, [pc, #132] @ (800e460 <xTaskGenericNotifyFromISR+0x1b4>)
|
|
800e3dc: 681b ldr r3, [r3, #0]
|
|
800e3de: 2b00 cmp r3, #0
|
|
800e3e0: d11d bne.n 800e41e <xTaskGenericNotifyFromISR+0x172>
|
|
{
|
|
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
|
|
800e3e2: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e3e4: 3304 adds r3, #4
|
|
800e3e6: 4618 mov r0, r3
|
|
800e3e8: f7fd fcb8 bl 800bd5c <uxListRemove>
|
|
prvAddTaskToReadyList( pxTCB );
|
|
800e3ec: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e3ee: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e3f0: 4b1c ldr r3, [pc, #112] @ (800e464 <xTaskGenericNotifyFromISR+0x1b8>)
|
|
800e3f2: 681b ldr r3, [r3, #0]
|
|
800e3f4: 429a cmp r2, r3
|
|
800e3f6: d903 bls.n 800e400 <xTaskGenericNotifyFromISR+0x154>
|
|
800e3f8: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e3fa: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800e3fc: 4a19 ldr r2, [pc, #100] @ (800e464 <xTaskGenericNotifyFromISR+0x1b8>)
|
|
800e3fe: 6013 str r3, [r2, #0]
|
|
800e400: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e402: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e404: 4613 mov r3, r2
|
|
800e406: 009b lsls r3, r3, #2
|
|
800e408: 4413 add r3, r2
|
|
800e40a: 009b lsls r3, r3, #2
|
|
800e40c: 4a16 ldr r2, [pc, #88] @ (800e468 <xTaskGenericNotifyFromISR+0x1bc>)
|
|
800e40e: 441a add r2, r3
|
|
800e410: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e412: 3304 adds r3, #4
|
|
800e414: 4619 mov r1, r3
|
|
800e416: 4610 mov r0, r2
|
|
800e418: f7fd fc43 bl 800bca2 <vListInsertEnd>
|
|
800e41c: e005 b.n 800e42a <xTaskGenericNotifyFromISR+0x17e>
|
|
}
|
|
else
|
|
{
|
|
/* The delayed and ready lists cannot be accessed, so hold
|
|
this task pending until the scheduler is resumed. */
|
|
vListInsertEnd( &( xPendingReadyList ), &( pxTCB->xEventListItem ) );
|
|
800e41e: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e420: 3318 adds r3, #24
|
|
800e422: 4619 mov r1, r3
|
|
800e424: 4811 ldr r0, [pc, #68] @ (800e46c <xTaskGenericNotifyFromISR+0x1c0>)
|
|
800e426: f7fd fc3c bl 800bca2 <vListInsertEnd>
|
|
}
|
|
|
|
if( pxTCB->uxPriority > pxCurrentTCB->uxPriority )
|
|
800e42a: 6b3b ldr r3, [r7, #48] @ 0x30
|
|
800e42c: 6ada ldr r2, [r3, #44] @ 0x2c
|
|
800e42e: 4b10 ldr r3, [pc, #64] @ (800e470 <xTaskGenericNotifyFromISR+0x1c4>)
|
|
800e430: 681b ldr r3, [r3, #0]
|
|
800e432: 6adb ldr r3, [r3, #44] @ 0x2c
|
|
800e434: 429a cmp r2, r3
|
|
800e436: d908 bls.n 800e44a <xTaskGenericNotifyFromISR+0x19e>
|
|
{
|
|
/* The notified task has a priority above the currently
|
|
executing task so a yield is required. */
|
|
if( pxHigherPriorityTaskWoken != NULL )
|
|
800e438: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
800e43a: 2b00 cmp r3, #0
|
|
800e43c: d002 beq.n 800e444 <xTaskGenericNotifyFromISR+0x198>
|
|
{
|
|
*pxHigherPriorityTaskWoken = pdTRUE;
|
|
800e43e: 6c3b ldr r3, [r7, #64] @ 0x40
|
|
800e440: 2201 movs r2, #1
|
|
800e442: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
/* Mark that a yield is pending in case the user is not
|
|
using the "xHigherPriorityTaskWoken" parameter to an ISR
|
|
safe FreeRTOS function. */
|
|
xYieldPending = pdTRUE;
|
|
800e444: 4b0b ldr r3, [pc, #44] @ (800e474 <xTaskGenericNotifyFromISR+0x1c8>)
|
|
800e446: 2201 movs r2, #1
|
|
800e448: 601a str r2, [r3, #0]
|
|
800e44a: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800e44c: 613b str r3, [r7, #16]
|
|
__asm volatile
|
|
800e44e: 693b ldr r3, [r7, #16]
|
|
800e450: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800e454: bf00 nop
|
|
}
|
|
}
|
|
}
|
|
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
|
|
return xReturn;
|
|
800e456: 6b7b ldr r3, [r7, #52] @ 0x34
|
|
}
|
|
800e458: 4618 mov r0, r3
|
|
800e45a: 3738 adds r7, #56 @ 0x38
|
|
800e45c: 46bd mov sp, r7
|
|
800e45e: bd80 pop {r7, pc}
|
|
800e460: 200023d4 .word 0x200023d4
|
|
800e464: 200023b4 .word 0x200023b4
|
|
800e468: 20001edc .word 0x20001edc
|
|
800e46c: 2000236c .word 0x2000236c
|
|
800e470: 20001ed8 .word 0x20001ed8
|
|
800e474: 200023c0 .word 0x200023c0
|
|
|
|
0800e478 <prvAddCurrentTaskToDelayedList>:
|
|
|
|
#endif
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
|
|
{
|
|
800e478: b580 push {r7, lr}
|
|
800e47a: b084 sub sp, #16
|
|
800e47c: af00 add r7, sp, #0
|
|
800e47e: 6078 str r0, [r7, #4]
|
|
800e480: 6039 str r1, [r7, #0]
|
|
TickType_t xTimeToWake;
|
|
const TickType_t xConstTickCount = xTickCount;
|
|
800e482: 4b21 ldr r3, [pc, #132] @ (800e508 <prvAddCurrentTaskToDelayedList+0x90>)
|
|
800e484: 681b ldr r3, [r3, #0]
|
|
800e486: 60fb str r3, [r7, #12]
|
|
}
|
|
#endif
|
|
|
|
/* Remove the task from the ready list before adding it to the blocked list
|
|
as the same list item is used for both lists. */
|
|
if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
|
|
800e488: 4b20 ldr r3, [pc, #128] @ (800e50c <prvAddCurrentTaskToDelayedList+0x94>)
|
|
800e48a: 681b ldr r3, [r3, #0]
|
|
800e48c: 3304 adds r3, #4
|
|
800e48e: 4618 mov r0, r3
|
|
800e490: f7fd fc64 bl 800bd5c <uxListRemove>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
#if ( INCLUDE_vTaskSuspend == 1 )
|
|
{
|
|
if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
|
|
800e494: 687b ldr r3, [r7, #4]
|
|
800e496: f1b3 3fff cmp.w r3, #4294967295
|
|
800e49a: d10a bne.n 800e4b2 <prvAddCurrentTaskToDelayedList+0x3a>
|
|
800e49c: 683b ldr r3, [r7, #0]
|
|
800e49e: 2b00 cmp r3, #0
|
|
800e4a0: d007 beq.n 800e4b2 <prvAddCurrentTaskToDelayedList+0x3a>
|
|
{
|
|
/* Add the task to the suspended task list instead of a delayed task
|
|
list to ensure it is not woken by a timing event. It will block
|
|
indefinitely. */
|
|
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
|
|
800e4a2: 4b1a ldr r3, [pc, #104] @ (800e50c <prvAddCurrentTaskToDelayedList+0x94>)
|
|
800e4a4: 681b ldr r3, [r3, #0]
|
|
800e4a6: 3304 adds r3, #4
|
|
800e4a8: 4619 mov r1, r3
|
|
800e4aa: 4819 ldr r0, [pc, #100] @ (800e510 <prvAddCurrentTaskToDelayedList+0x98>)
|
|
800e4ac: f7fd fbf9 bl 800bca2 <vListInsertEnd>
|
|
|
|
/* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
|
|
( void ) xCanBlockIndefinitely;
|
|
}
|
|
#endif /* INCLUDE_vTaskSuspend */
|
|
}
|
|
800e4b0: e026 b.n 800e500 <prvAddCurrentTaskToDelayedList+0x88>
|
|
xTimeToWake = xConstTickCount + xTicksToWait;
|
|
800e4b2: 68fa ldr r2, [r7, #12]
|
|
800e4b4: 687b ldr r3, [r7, #4]
|
|
800e4b6: 4413 add r3, r2
|
|
800e4b8: 60bb str r3, [r7, #8]
|
|
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
|
|
800e4ba: 4b14 ldr r3, [pc, #80] @ (800e50c <prvAddCurrentTaskToDelayedList+0x94>)
|
|
800e4bc: 681b ldr r3, [r3, #0]
|
|
800e4be: 68ba ldr r2, [r7, #8]
|
|
800e4c0: 605a str r2, [r3, #4]
|
|
if( xTimeToWake < xConstTickCount )
|
|
800e4c2: 68ba ldr r2, [r7, #8]
|
|
800e4c4: 68fb ldr r3, [r7, #12]
|
|
800e4c6: 429a cmp r2, r3
|
|
800e4c8: d209 bcs.n 800e4de <prvAddCurrentTaskToDelayedList+0x66>
|
|
vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
|
|
800e4ca: 4b12 ldr r3, [pc, #72] @ (800e514 <prvAddCurrentTaskToDelayedList+0x9c>)
|
|
800e4cc: 681a ldr r2, [r3, #0]
|
|
800e4ce: 4b0f ldr r3, [pc, #60] @ (800e50c <prvAddCurrentTaskToDelayedList+0x94>)
|
|
800e4d0: 681b ldr r3, [r3, #0]
|
|
800e4d2: 3304 adds r3, #4
|
|
800e4d4: 4619 mov r1, r3
|
|
800e4d6: 4610 mov r0, r2
|
|
800e4d8: f7fd fc07 bl 800bcea <vListInsert>
|
|
}
|
|
800e4dc: e010 b.n 800e500 <prvAddCurrentTaskToDelayedList+0x88>
|
|
vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
|
|
800e4de: 4b0e ldr r3, [pc, #56] @ (800e518 <prvAddCurrentTaskToDelayedList+0xa0>)
|
|
800e4e0: 681a ldr r2, [r3, #0]
|
|
800e4e2: 4b0a ldr r3, [pc, #40] @ (800e50c <prvAddCurrentTaskToDelayedList+0x94>)
|
|
800e4e4: 681b ldr r3, [r3, #0]
|
|
800e4e6: 3304 adds r3, #4
|
|
800e4e8: 4619 mov r1, r3
|
|
800e4ea: 4610 mov r0, r2
|
|
800e4ec: f7fd fbfd bl 800bcea <vListInsert>
|
|
if( xTimeToWake < xNextTaskUnblockTime )
|
|
800e4f0: 4b0a ldr r3, [pc, #40] @ (800e51c <prvAddCurrentTaskToDelayedList+0xa4>)
|
|
800e4f2: 681b ldr r3, [r3, #0]
|
|
800e4f4: 68ba ldr r2, [r7, #8]
|
|
800e4f6: 429a cmp r2, r3
|
|
800e4f8: d202 bcs.n 800e500 <prvAddCurrentTaskToDelayedList+0x88>
|
|
xNextTaskUnblockTime = xTimeToWake;
|
|
800e4fa: 4a08 ldr r2, [pc, #32] @ (800e51c <prvAddCurrentTaskToDelayedList+0xa4>)
|
|
800e4fc: 68bb ldr r3, [r7, #8]
|
|
800e4fe: 6013 str r3, [r2, #0]
|
|
}
|
|
800e500: bf00 nop
|
|
800e502: 3710 adds r7, #16
|
|
800e504: 46bd mov sp, r7
|
|
800e506: bd80 pop {r7, pc}
|
|
800e508: 200023b0 .word 0x200023b0
|
|
800e50c: 20001ed8 .word 0x20001ed8
|
|
800e510: 20002398 .word 0x20002398
|
|
800e514: 20002368 .word 0x20002368
|
|
800e518: 20002364 .word 0x20002364
|
|
800e51c: 200023cc .word 0x200023cc
|
|
|
|
0800e520 <xTimerCreateTimerTask>:
|
|
TimerCallbackFunction_t pxCallbackFunction,
|
|
Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xTimerCreateTimerTask( void )
|
|
{
|
|
800e520: b580 push {r7, lr}
|
|
800e522: b08a sub sp, #40 @ 0x28
|
|
800e524: af04 add r7, sp, #16
|
|
BaseType_t xReturn = pdFAIL;
|
|
800e526: 2300 movs r3, #0
|
|
800e528: 617b str r3, [r7, #20]
|
|
|
|
/* This function is called when the scheduler is started if
|
|
configUSE_TIMERS is set to 1. Check that the infrastructure used by the
|
|
timer service task has been created/initialised. If timers have already
|
|
been created then the initialisation will already have been performed. */
|
|
prvCheckForValidListAndQueue();
|
|
800e52a: f000 fbb1 bl 800ec90 <prvCheckForValidListAndQueue>
|
|
|
|
if( xTimerQueue != NULL )
|
|
800e52e: 4b1d ldr r3, [pc, #116] @ (800e5a4 <xTimerCreateTimerTask+0x84>)
|
|
800e530: 681b ldr r3, [r3, #0]
|
|
800e532: 2b00 cmp r3, #0
|
|
800e534: d021 beq.n 800e57a <xTimerCreateTimerTask+0x5a>
|
|
{
|
|
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
{
|
|
StaticTask_t *pxTimerTaskTCBBuffer = NULL;
|
|
800e536: 2300 movs r3, #0
|
|
800e538: 60fb str r3, [r7, #12]
|
|
StackType_t *pxTimerTaskStackBuffer = NULL;
|
|
800e53a: 2300 movs r3, #0
|
|
800e53c: 60bb str r3, [r7, #8]
|
|
uint32_t ulTimerTaskStackSize;
|
|
|
|
vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
|
|
800e53e: 1d3a adds r2, r7, #4
|
|
800e540: f107 0108 add.w r1, r7, #8
|
|
800e544: f107 030c add.w r3, r7, #12
|
|
800e548: 4618 mov r0, r3
|
|
800e54a: f7fd f8b9 bl 800b6c0 <vApplicationGetTimerTaskMemory>
|
|
xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
|
|
800e54e: 6879 ldr r1, [r7, #4]
|
|
800e550: 68bb ldr r3, [r7, #8]
|
|
800e552: 68fa ldr r2, [r7, #12]
|
|
800e554: 9202 str r2, [sp, #8]
|
|
800e556: 9301 str r3, [sp, #4]
|
|
800e558: 2302 movs r3, #2
|
|
800e55a: 9300 str r3, [sp, #0]
|
|
800e55c: 2300 movs r3, #0
|
|
800e55e: 460a mov r2, r1
|
|
800e560: 4911 ldr r1, [pc, #68] @ (800e5a8 <xTimerCreateTimerTask+0x88>)
|
|
800e562: 4812 ldr r0, [pc, #72] @ (800e5ac <xTimerCreateTimerTask+0x8c>)
|
|
800e564: f7fe fbbc bl 800cce0 <xTaskCreateStatic>
|
|
800e568: 4603 mov r3, r0
|
|
800e56a: 4a11 ldr r2, [pc, #68] @ (800e5b0 <xTimerCreateTimerTask+0x90>)
|
|
800e56c: 6013 str r3, [r2, #0]
|
|
NULL,
|
|
( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
|
|
pxTimerTaskStackBuffer,
|
|
pxTimerTaskTCBBuffer );
|
|
|
|
if( xTimerTaskHandle != NULL )
|
|
800e56e: 4b10 ldr r3, [pc, #64] @ (800e5b0 <xTimerCreateTimerTask+0x90>)
|
|
800e570: 681b ldr r3, [r3, #0]
|
|
800e572: 2b00 cmp r3, #0
|
|
800e574: d001 beq.n 800e57a <xTimerCreateTimerTask+0x5a>
|
|
{
|
|
xReturn = pdPASS;
|
|
800e576: 2301 movs r3, #1
|
|
800e578: 617b str r3, [r7, #20]
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
configASSERT( xReturn );
|
|
800e57a: 697b ldr r3, [r7, #20]
|
|
800e57c: 2b00 cmp r3, #0
|
|
800e57e: d10b bne.n 800e598 <xTimerCreateTimerTask+0x78>
|
|
__asm volatile
|
|
800e580: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e584: f383 8811 msr BASEPRI, r3
|
|
800e588: f3bf 8f6f isb sy
|
|
800e58c: f3bf 8f4f dsb sy
|
|
800e590: 613b str r3, [r7, #16]
|
|
}
|
|
800e592: bf00 nop
|
|
800e594: bf00 nop
|
|
800e596: e7fd b.n 800e594 <xTimerCreateTimerTask+0x74>
|
|
return xReturn;
|
|
800e598: 697b ldr r3, [r7, #20]
|
|
}
|
|
800e59a: 4618 mov r0, r3
|
|
800e59c: 3718 adds r7, #24
|
|
800e59e: 46bd mov sp, r7
|
|
800e5a0: bd80 pop {r7, pc}
|
|
800e5a2: bf00 nop
|
|
800e5a4: 20002408 .word 0x20002408
|
|
800e5a8: 08013040 .word 0x08013040
|
|
800e5ac: 0800e829 .word 0x0800e829
|
|
800e5b0: 2000240c .word 0x2000240c
|
|
|
|
0800e5b4 <xTimerCreate>:
|
|
TimerHandle_t xTimerCreate( const char * const pcTimerName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
|
|
const TickType_t xTimerPeriodInTicks,
|
|
const UBaseType_t uxAutoReload,
|
|
void * const pvTimerID,
|
|
TimerCallbackFunction_t pxCallbackFunction )
|
|
{
|
|
800e5b4: b580 push {r7, lr}
|
|
800e5b6: b088 sub sp, #32
|
|
800e5b8: af02 add r7, sp, #8
|
|
800e5ba: 60f8 str r0, [r7, #12]
|
|
800e5bc: 60b9 str r1, [r7, #8]
|
|
800e5be: 607a str r2, [r7, #4]
|
|
800e5c0: 603b str r3, [r7, #0]
|
|
Timer_t *pxNewTimer;
|
|
|
|
pxNewTimer = ( Timer_t * ) pvPortMalloc( sizeof( Timer_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of Timer_t is always a pointer to the timer's mame. */
|
|
800e5c2: 202c movs r0, #44 @ 0x2c
|
|
800e5c4: f000 fe62 bl 800f28c <pvPortMalloc>
|
|
800e5c8: 6178 str r0, [r7, #20]
|
|
|
|
if( pxNewTimer != NULL )
|
|
800e5ca: 697b ldr r3, [r7, #20]
|
|
800e5cc: 2b00 cmp r3, #0
|
|
800e5ce: d00d beq.n 800e5ec <xTimerCreate+0x38>
|
|
{
|
|
/* Status is thus far zero as the timer is not created statically
|
|
and has not been started. The auto-reload bit may get set in
|
|
prvInitialiseNewTimer. */
|
|
pxNewTimer->ucStatus = 0x00;
|
|
800e5d0: 697b ldr r3, [r7, #20]
|
|
800e5d2: 2200 movs r2, #0
|
|
800e5d4: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
|
|
800e5d8: 697b ldr r3, [r7, #20]
|
|
800e5da: 9301 str r3, [sp, #4]
|
|
800e5dc: 6a3b ldr r3, [r7, #32]
|
|
800e5de: 9300 str r3, [sp, #0]
|
|
800e5e0: 683b ldr r3, [r7, #0]
|
|
800e5e2: 687a ldr r2, [r7, #4]
|
|
800e5e4: 68b9 ldr r1, [r7, #8]
|
|
800e5e6: 68f8 ldr r0, [r7, #12]
|
|
800e5e8: f000 f845 bl 800e676 <prvInitialiseNewTimer>
|
|
}
|
|
|
|
return pxNewTimer;
|
|
800e5ec: 697b ldr r3, [r7, #20]
|
|
}
|
|
800e5ee: 4618 mov r0, r3
|
|
800e5f0: 3718 adds r7, #24
|
|
800e5f2: 46bd mov sp, r7
|
|
800e5f4: bd80 pop {r7, pc}
|
|
|
|
0800e5f6 <xTimerCreateStatic>:
|
|
const TickType_t xTimerPeriodInTicks,
|
|
const UBaseType_t uxAutoReload,
|
|
void * const pvTimerID,
|
|
TimerCallbackFunction_t pxCallbackFunction,
|
|
StaticTimer_t *pxTimerBuffer )
|
|
{
|
|
800e5f6: b580 push {r7, lr}
|
|
800e5f8: b08a sub sp, #40 @ 0x28
|
|
800e5fa: af02 add r7, sp, #8
|
|
800e5fc: 60f8 str r0, [r7, #12]
|
|
800e5fe: 60b9 str r1, [r7, #8]
|
|
800e600: 607a str r2, [r7, #4]
|
|
800e602: 603b str r3, [r7, #0]
|
|
#if( configASSERT_DEFINED == 1 )
|
|
{
|
|
/* Sanity check that the size of the structure used to declare a
|
|
variable of type StaticTimer_t equals the size of the real timer
|
|
structure. */
|
|
volatile size_t xSize = sizeof( StaticTimer_t );
|
|
800e604: 232c movs r3, #44 @ 0x2c
|
|
800e606: 613b str r3, [r7, #16]
|
|
configASSERT( xSize == sizeof( Timer_t ) );
|
|
800e608: 693b ldr r3, [r7, #16]
|
|
800e60a: 2b2c cmp r3, #44 @ 0x2c
|
|
800e60c: d00b beq.n 800e626 <xTimerCreateStatic+0x30>
|
|
__asm volatile
|
|
800e60e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e612: f383 8811 msr BASEPRI, r3
|
|
800e616: f3bf 8f6f isb sy
|
|
800e61a: f3bf 8f4f dsb sy
|
|
800e61e: 61bb str r3, [r7, #24]
|
|
}
|
|
800e620: bf00 nop
|
|
800e622: bf00 nop
|
|
800e624: e7fd b.n 800e622 <xTimerCreateStatic+0x2c>
|
|
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
|
|
800e626: 693b ldr r3, [r7, #16]
|
|
}
|
|
#endif /* configASSERT_DEFINED */
|
|
|
|
/* A pointer to a StaticTimer_t structure MUST be provided, use it. */
|
|
configASSERT( pxTimerBuffer );
|
|
800e628: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800e62a: 2b00 cmp r3, #0
|
|
800e62c: d10b bne.n 800e646 <xTimerCreateStatic+0x50>
|
|
__asm volatile
|
|
800e62e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e632: f383 8811 msr BASEPRI, r3
|
|
800e636: f3bf 8f6f isb sy
|
|
800e63a: f3bf 8f4f dsb sy
|
|
800e63e: 617b str r3, [r7, #20]
|
|
}
|
|
800e640: bf00 nop
|
|
800e642: bf00 nop
|
|
800e644: e7fd b.n 800e642 <xTimerCreateStatic+0x4c>
|
|
pxNewTimer = ( Timer_t * ) pxTimerBuffer; /*lint !e740 !e9087 StaticTimer_t is a pointer to a Timer_t, so guaranteed to be aligned and sized correctly (checked by an assert()), so this is safe. */
|
|
800e646: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800e648: 61fb str r3, [r7, #28]
|
|
|
|
if( pxNewTimer != NULL )
|
|
800e64a: 69fb ldr r3, [r7, #28]
|
|
800e64c: 2b00 cmp r3, #0
|
|
800e64e: d00d beq.n 800e66c <xTimerCreateStatic+0x76>
|
|
{
|
|
/* Timers can be created statically or dynamically so note this
|
|
timer was created statically in case it is later deleted. The
|
|
auto-reload bit may get set in prvInitialiseNewTimer(). */
|
|
pxNewTimer->ucStatus = tmrSTATUS_IS_STATICALLY_ALLOCATED;
|
|
800e650: 69fb ldr r3, [r7, #28]
|
|
800e652: 2202 movs r2, #2
|
|
800e654: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
|
|
prvInitialiseNewTimer( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, pxCallbackFunction, pxNewTimer );
|
|
800e658: 69fb ldr r3, [r7, #28]
|
|
800e65a: 9301 str r3, [sp, #4]
|
|
800e65c: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800e65e: 9300 str r3, [sp, #0]
|
|
800e660: 683b ldr r3, [r7, #0]
|
|
800e662: 687a ldr r2, [r7, #4]
|
|
800e664: 68b9 ldr r1, [r7, #8]
|
|
800e666: 68f8 ldr r0, [r7, #12]
|
|
800e668: f000 f805 bl 800e676 <prvInitialiseNewTimer>
|
|
}
|
|
|
|
return pxNewTimer;
|
|
800e66c: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800e66e: 4618 mov r0, r3
|
|
800e670: 3720 adds r7, #32
|
|
800e672: 46bd mov sp, r7
|
|
800e674: bd80 pop {r7, pc}
|
|
|
|
0800e676 <prvInitialiseNewTimer>:
|
|
const TickType_t xTimerPeriodInTicks,
|
|
const UBaseType_t uxAutoReload,
|
|
void * const pvTimerID,
|
|
TimerCallbackFunction_t pxCallbackFunction,
|
|
Timer_t *pxNewTimer )
|
|
{
|
|
800e676: b580 push {r7, lr}
|
|
800e678: b086 sub sp, #24
|
|
800e67a: af00 add r7, sp, #0
|
|
800e67c: 60f8 str r0, [r7, #12]
|
|
800e67e: 60b9 str r1, [r7, #8]
|
|
800e680: 607a str r2, [r7, #4]
|
|
800e682: 603b str r3, [r7, #0]
|
|
/* 0 is not a valid value for xTimerPeriodInTicks. */
|
|
configASSERT( ( xTimerPeriodInTicks > 0 ) );
|
|
800e684: 68bb ldr r3, [r7, #8]
|
|
800e686: 2b00 cmp r3, #0
|
|
800e688: d10b bne.n 800e6a2 <prvInitialiseNewTimer+0x2c>
|
|
__asm volatile
|
|
800e68a: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e68e: f383 8811 msr BASEPRI, r3
|
|
800e692: f3bf 8f6f isb sy
|
|
800e696: f3bf 8f4f dsb sy
|
|
800e69a: 617b str r3, [r7, #20]
|
|
}
|
|
800e69c: bf00 nop
|
|
800e69e: bf00 nop
|
|
800e6a0: e7fd b.n 800e69e <prvInitialiseNewTimer+0x28>
|
|
|
|
if( pxNewTimer != NULL )
|
|
800e6a2: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6a4: 2b00 cmp r3, #0
|
|
800e6a6: d01e beq.n 800e6e6 <prvInitialiseNewTimer+0x70>
|
|
{
|
|
/* Ensure the infrastructure used by the timer service task has been
|
|
created/initialised. */
|
|
prvCheckForValidListAndQueue();
|
|
800e6a8: f000 faf2 bl 800ec90 <prvCheckForValidListAndQueue>
|
|
|
|
/* Initialise the timer structure members using the function
|
|
parameters. */
|
|
pxNewTimer->pcTimerName = pcTimerName;
|
|
800e6ac: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6ae: 68fa ldr r2, [r7, #12]
|
|
800e6b0: 601a str r2, [r3, #0]
|
|
pxNewTimer->xTimerPeriodInTicks = xTimerPeriodInTicks;
|
|
800e6b2: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6b4: 68ba ldr r2, [r7, #8]
|
|
800e6b6: 619a str r2, [r3, #24]
|
|
pxNewTimer->pvTimerID = pvTimerID;
|
|
800e6b8: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6ba: 683a ldr r2, [r7, #0]
|
|
800e6bc: 61da str r2, [r3, #28]
|
|
pxNewTimer->pxCallbackFunction = pxCallbackFunction;
|
|
800e6be: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6c0: 6a3a ldr r2, [r7, #32]
|
|
800e6c2: 621a str r2, [r3, #32]
|
|
vListInitialiseItem( &( pxNewTimer->xTimerListItem ) );
|
|
800e6c4: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6c6: 3304 adds r3, #4
|
|
800e6c8: 4618 mov r0, r3
|
|
800e6ca: f7fd fadd bl 800bc88 <vListInitialiseItem>
|
|
if( uxAutoReload != pdFALSE )
|
|
800e6ce: 687b ldr r3, [r7, #4]
|
|
800e6d0: 2b00 cmp r3, #0
|
|
800e6d2: d008 beq.n 800e6e6 <prvInitialiseNewTimer+0x70>
|
|
{
|
|
pxNewTimer->ucStatus |= tmrSTATUS_IS_AUTORELOAD;
|
|
800e6d4: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6d6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800e6da: f043 0304 orr.w r3, r3, #4
|
|
800e6de: b2da uxtb r2, r3
|
|
800e6e0: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800e6e2: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
}
|
|
traceTIMER_CREATE( pxNewTimer );
|
|
}
|
|
}
|
|
800e6e6: bf00 nop
|
|
800e6e8: 3718 adds r7, #24
|
|
800e6ea: 46bd mov sp, r7
|
|
800e6ec: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800e6f0 <xTimerGenericCommand>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
|
|
{
|
|
800e6f0: b580 push {r7, lr}
|
|
800e6f2: b08a sub sp, #40 @ 0x28
|
|
800e6f4: af00 add r7, sp, #0
|
|
800e6f6: 60f8 str r0, [r7, #12]
|
|
800e6f8: 60b9 str r1, [r7, #8]
|
|
800e6fa: 607a str r2, [r7, #4]
|
|
800e6fc: 603b str r3, [r7, #0]
|
|
BaseType_t xReturn = pdFAIL;
|
|
800e6fe: 2300 movs r3, #0
|
|
800e700: 627b str r3, [r7, #36] @ 0x24
|
|
DaemonTaskMessage_t xMessage;
|
|
|
|
configASSERT( xTimer );
|
|
800e702: 68fb ldr r3, [r7, #12]
|
|
800e704: 2b00 cmp r3, #0
|
|
800e706: d10b bne.n 800e720 <xTimerGenericCommand+0x30>
|
|
__asm volatile
|
|
800e708: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e70c: f383 8811 msr BASEPRI, r3
|
|
800e710: f3bf 8f6f isb sy
|
|
800e714: f3bf 8f4f dsb sy
|
|
800e718: 623b str r3, [r7, #32]
|
|
}
|
|
800e71a: bf00 nop
|
|
800e71c: bf00 nop
|
|
800e71e: e7fd b.n 800e71c <xTimerGenericCommand+0x2c>
|
|
|
|
/* Send a message to the timer service task to perform a particular action
|
|
on a particular timer definition. */
|
|
if( xTimerQueue != NULL )
|
|
800e720: 4b19 ldr r3, [pc, #100] @ (800e788 <xTimerGenericCommand+0x98>)
|
|
800e722: 681b ldr r3, [r3, #0]
|
|
800e724: 2b00 cmp r3, #0
|
|
800e726: d02a beq.n 800e77e <xTimerGenericCommand+0x8e>
|
|
{
|
|
/* Send a command to the timer service task to start the xTimer timer. */
|
|
xMessage.xMessageID = xCommandID;
|
|
800e728: 68bb ldr r3, [r7, #8]
|
|
800e72a: 613b str r3, [r7, #16]
|
|
xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
|
|
800e72c: 687b ldr r3, [r7, #4]
|
|
800e72e: 617b str r3, [r7, #20]
|
|
xMessage.u.xTimerParameters.pxTimer = xTimer;
|
|
800e730: 68fb ldr r3, [r7, #12]
|
|
800e732: 61bb str r3, [r7, #24]
|
|
|
|
if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
|
|
800e734: 68bb ldr r3, [r7, #8]
|
|
800e736: 2b05 cmp r3, #5
|
|
800e738: dc18 bgt.n 800e76c <xTimerGenericCommand+0x7c>
|
|
{
|
|
if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
|
|
800e73a: f7ff faef bl 800dd1c <xTaskGetSchedulerState>
|
|
800e73e: 4603 mov r3, r0
|
|
800e740: 2b02 cmp r3, #2
|
|
800e742: d109 bne.n 800e758 <xTimerGenericCommand+0x68>
|
|
{
|
|
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
|
|
800e744: 4b10 ldr r3, [pc, #64] @ (800e788 <xTimerGenericCommand+0x98>)
|
|
800e746: 6818 ldr r0, [r3, #0]
|
|
800e748: f107 0110 add.w r1, r7, #16
|
|
800e74c: 2300 movs r3, #0
|
|
800e74e: 6b3a ldr r2, [r7, #48] @ 0x30
|
|
800e750: f7fd fd2c bl 800c1ac <xQueueGenericSend>
|
|
800e754: 6278 str r0, [r7, #36] @ 0x24
|
|
800e756: e012 b.n 800e77e <xTimerGenericCommand+0x8e>
|
|
}
|
|
else
|
|
{
|
|
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
|
|
800e758: 4b0b ldr r3, [pc, #44] @ (800e788 <xTimerGenericCommand+0x98>)
|
|
800e75a: 6818 ldr r0, [r3, #0]
|
|
800e75c: f107 0110 add.w r1, r7, #16
|
|
800e760: 2300 movs r3, #0
|
|
800e762: 2200 movs r2, #0
|
|
800e764: f7fd fd22 bl 800c1ac <xQueueGenericSend>
|
|
800e768: 6278 str r0, [r7, #36] @ 0x24
|
|
800e76a: e008 b.n 800e77e <xTimerGenericCommand+0x8e>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
|
|
800e76c: 4b06 ldr r3, [pc, #24] @ (800e788 <xTimerGenericCommand+0x98>)
|
|
800e76e: 6818 ldr r0, [r3, #0]
|
|
800e770: f107 0110 add.w r1, r7, #16
|
|
800e774: 2300 movs r3, #0
|
|
800e776: 683a ldr r2, [r7, #0]
|
|
800e778: f7fd fe1a bl 800c3b0 <xQueueGenericSendFromISR>
|
|
800e77c: 6278 str r0, [r7, #36] @ 0x24
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
return xReturn;
|
|
800e77e: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
}
|
|
800e780: 4618 mov r0, r3
|
|
800e782: 3728 adds r7, #40 @ 0x28
|
|
800e784: 46bd mov sp, r7
|
|
800e786: bd80 pop {r7, pc}
|
|
800e788: 20002408 .word 0x20002408
|
|
|
|
0800e78c <prvProcessExpiredTimer>:
|
|
return pxTimer->pcTimerName;
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
|
|
{
|
|
800e78c: b580 push {r7, lr}
|
|
800e78e: b088 sub sp, #32
|
|
800e790: af02 add r7, sp, #8
|
|
800e792: 6078 str r0, [r7, #4]
|
|
800e794: 6039 str r1, [r7, #0]
|
|
BaseType_t xResult;
|
|
Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800e796: 4b23 ldr r3, [pc, #140] @ (800e824 <prvProcessExpiredTimer+0x98>)
|
|
800e798: 681b ldr r3, [r3, #0]
|
|
800e79a: 68db ldr r3, [r3, #12]
|
|
800e79c: 68db ldr r3, [r3, #12]
|
|
800e79e: 617b str r3, [r7, #20]
|
|
|
|
/* Remove the timer from the list of active timers. A check has already
|
|
been performed to ensure the list is not empty. */
|
|
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
|
|
800e7a0: 697b ldr r3, [r7, #20]
|
|
800e7a2: 3304 adds r3, #4
|
|
800e7a4: 4618 mov r0, r3
|
|
800e7a6: f7fd fad9 bl 800bd5c <uxListRemove>
|
|
traceTIMER_EXPIRED( pxTimer );
|
|
|
|
/* If the timer is an auto-reload timer then calculate the next
|
|
expiry time and re-insert the timer in the list of active timers. */
|
|
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
|
|
800e7aa: 697b ldr r3, [r7, #20]
|
|
800e7ac: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800e7b0: f003 0304 and.w r3, r3, #4
|
|
800e7b4: 2b00 cmp r3, #0
|
|
800e7b6: d023 beq.n 800e800 <prvProcessExpiredTimer+0x74>
|
|
{
|
|
/* The timer is inserted into a list using a time relative to anything
|
|
other than the current time. It will therefore be inserted into the
|
|
correct list relative to the time this task thinks it is now. */
|
|
if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
|
|
800e7b8: 697b ldr r3, [r7, #20]
|
|
800e7ba: 699a ldr r2, [r3, #24]
|
|
800e7bc: 687b ldr r3, [r7, #4]
|
|
800e7be: 18d1 adds r1, r2, r3
|
|
800e7c0: 687b ldr r3, [r7, #4]
|
|
800e7c2: 683a ldr r2, [r7, #0]
|
|
800e7c4: 6978 ldr r0, [r7, #20]
|
|
800e7c6: f000 f8d5 bl 800e974 <prvInsertTimerInActiveList>
|
|
800e7ca: 4603 mov r3, r0
|
|
800e7cc: 2b00 cmp r3, #0
|
|
800e7ce: d020 beq.n 800e812 <prvProcessExpiredTimer+0x86>
|
|
{
|
|
/* The timer expired before it was added to the active timer
|
|
list. Reload it now. */
|
|
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
|
|
800e7d0: 2300 movs r3, #0
|
|
800e7d2: 9300 str r3, [sp, #0]
|
|
800e7d4: 2300 movs r3, #0
|
|
800e7d6: 687a ldr r2, [r7, #4]
|
|
800e7d8: 2100 movs r1, #0
|
|
800e7da: 6978 ldr r0, [r7, #20]
|
|
800e7dc: f7ff ff88 bl 800e6f0 <xTimerGenericCommand>
|
|
800e7e0: 6138 str r0, [r7, #16]
|
|
configASSERT( xResult );
|
|
800e7e2: 693b ldr r3, [r7, #16]
|
|
800e7e4: 2b00 cmp r3, #0
|
|
800e7e6: d114 bne.n 800e812 <prvProcessExpiredTimer+0x86>
|
|
__asm volatile
|
|
800e7e8: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800e7ec: f383 8811 msr BASEPRI, r3
|
|
800e7f0: f3bf 8f6f isb sy
|
|
800e7f4: f3bf 8f4f dsb sy
|
|
800e7f8: 60fb str r3, [r7, #12]
|
|
}
|
|
800e7fa: bf00 nop
|
|
800e7fc: bf00 nop
|
|
800e7fe: e7fd b.n 800e7fc <prvProcessExpiredTimer+0x70>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
|
800e800: 697b ldr r3, [r7, #20]
|
|
800e802: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800e806: f023 0301 bic.w r3, r3, #1
|
|
800e80a: b2da uxtb r2, r3
|
|
800e80c: 697b ldr r3, [r7, #20]
|
|
800e80e: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Call the timer callback. */
|
|
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
|
|
800e812: 697b ldr r3, [r7, #20]
|
|
800e814: 6a1b ldr r3, [r3, #32]
|
|
800e816: 6978 ldr r0, [r7, #20]
|
|
800e818: 4798 blx r3
|
|
}
|
|
800e81a: bf00 nop
|
|
800e81c: 3718 adds r7, #24
|
|
800e81e: 46bd mov sp, r7
|
|
800e820: bd80 pop {r7, pc}
|
|
800e822: bf00 nop
|
|
800e824: 20002400 .word 0x20002400
|
|
|
|
0800e828 <prvTimerTask>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static portTASK_FUNCTION( prvTimerTask, pvParameters )
|
|
{
|
|
800e828: b580 push {r7, lr}
|
|
800e82a: b084 sub sp, #16
|
|
800e82c: af00 add r7, sp, #0
|
|
800e82e: 6078 str r0, [r7, #4]
|
|
|
|
for( ;; )
|
|
{
|
|
/* Query the timers list to see if it contains any timers, and if so,
|
|
obtain the time at which the next timer will expire. */
|
|
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
|
|
800e830: f107 0308 add.w r3, r7, #8
|
|
800e834: 4618 mov r0, r3
|
|
800e836: f000 f859 bl 800e8ec <prvGetNextExpireTime>
|
|
800e83a: 60f8 str r0, [r7, #12]
|
|
|
|
/* If a timer has expired, process it. Otherwise, block this task
|
|
until either a timer does expire, or a command is received. */
|
|
prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
|
|
800e83c: 68bb ldr r3, [r7, #8]
|
|
800e83e: 4619 mov r1, r3
|
|
800e840: 68f8 ldr r0, [r7, #12]
|
|
800e842: f000 f805 bl 800e850 <prvProcessTimerOrBlockTask>
|
|
|
|
/* Empty the command queue. */
|
|
prvProcessReceivedCommands();
|
|
800e846: f000 f8d7 bl 800e9f8 <prvProcessReceivedCommands>
|
|
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
|
|
800e84a: bf00 nop
|
|
800e84c: e7f0 b.n 800e830 <prvTimerTask+0x8>
|
|
...
|
|
|
|
0800e850 <prvProcessTimerOrBlockTask>:
|
|
}
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
|
|
{
|
|
800e850: b580 push {r7, lr}
|
|
800e852: b084 sub sp, #16
|
|
800e854: af00 add r7, sp, #0
|
|
800e856: 6078 str r0, [r7, #4]
|
|
800e858: 6039 str r1, [r7, #0]
|
|
TickType_t xTimeNow;
|
|
BaseType_t xTimerListsWereSwitched;
|
|
|
|
vTaskSuspendAll();
|
|
800e85a: f7fe fd99 bl 800d390 <vTaskSuspendAll>
|
|
/* Obtain the time now to make an assessment as to whether the timer
|
|
has expired or not. If obtaining the time causes the lists to switch
|
|
then don't process this timer as any timers that remained in the list
|
|
when the lists were switched will have been processed within the
|
|
prvSampleTimeNow() function. */
|
|
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
|
|
800e85e: f107 0308 add.w r3, r7, #8
|
|
800e862: 4618 mov r0, r3
|
|
800e864: f000 f866 bl 800e934 <prvSampleTimeNow>
|
|
800e868: 60f8 str r0, [r7, #12]
|
|
if( xTimerListsWereSwitched == pdFALSE )
|
|
800e86a: 68bb ldr r3, [r7, #8]
|
|
800e86c: 2b00 cmp r3, #0
|
|
800e86e: d130 bne.n 800e8d2 <prvProcessTimerOrBlockTask+0x82>
|
|
{
|
|
/* The tick count has not overflowed, has the timer expired? */
|
|
if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
|
|
800e870: 683b ldr r3, [r7, #0]
|
|
800e872: 2b00 cmp r3, #0
|
|
800e874: d10a bne.n 800e88c <prvProcessTimerOrBlockTask+0x3c>
|
|
800e876: 687a ldr r2, [r7, #4]
|
|
800e878: 68fb ldr r3, [r7, #12]
|
|
800e87a: 429a cmp r2, r3
|
|
800e87c: d806 bhi.n 800e88c <prvProcessTimerOrBlockTask+0x3c>
|
|
{
|
|
( void ) xTaskResumeAll();
|
|
800e87e: f7fe fd95 bl 800d3ac <xTaskResumeAll>
|
|
prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
|
|
800e882: 68f9 ldr r1, [r7, #12]
|
|
800e884: 6878 ldr r0, [r7, #4]
|
|
800e886: f7ff ff81 bl 800e78c <prvProcessExpiredTimer>
|
|
else
|
|
{
|
|
( void ) xTaskResumeAll();
|
|
}
|
|
}
|
|
}
|
|
800e88a: e024 b.n 800e8d6 <prvProcessTimerOrBlockTask+0x86>
|
|
if( xListWasEmpty != pdFALSE )
|
|
800e88c: 683b ldr r3, [r7, #0]
|
|
800e88e: 2b00 cmp r3, #0
|
|
800e890: d008 beq.n 800e8a4 <prvProcessTimerOrBlockTask+0x54>
|
|
xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
|
|
800e892: 4b13 ldr r3, [pc, #76] @ (800e8e0 <prvProcessTimerOrBlockTask+0x90>)
|
|
800e894: 681b ldr r3, [r3, #0]
|
|
800e896: 681b ldr r3, [r3, #0]
|
|
800e898: 2b00 cmp r3, #0
|
|
800e89a: d101 bne.n 800e8a0 <prvProcessTimerOrBlockTask+0x50>
|
|
800e89c: 2301 movs r3, #1
|
|
800e89e: e000 b.n 800e8a2 <prvProcessTimerOrBlockTask+0x52>
|
|
800e8a0: 2300 movs r3, #0
|
|
800e8a2: 603b str r3, [r7, #0]
|
|
vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
|
|
800e8a4: 4b0f ldr r3, [pc, #60] @ (800e8e4 <prvProcessTimerOrBlockTask+0x94>)
|
|
800e8a6: 6818 ldr r0, [r3, #0]
|
|
800e8a8: 687a ldr r2, [r7, #4]
|
|
800e8aa: 68fb ldr r3, [r7, #12]
|
|
800e8ac: 1ad3 subs r3, r2, r3
|
|
800e8ae: 683a ldr r2, [r7, #0]
|
|
800e8b0: 4619 mov r1, r3
|
|
800e8b2: f7fe f9e1 bl 800cc78 <vQueueWaitForMessageRestricted>
|
|
if( xTaskResumeAll() == pdFALSE )
|
|
800e8b6: f7fe fd79 bl 800d3ac <xTaskResumeAll>
|
|
800e8ba: 4603 mov r3, r0
|
|
800e8bc: 2b00 cmp r3, #0
|
|
800e8be: d10a bne.n 800e8d6 <prvProcessTimerOrBlockTask+0x86>
|
|
portYIELD_WITHIN_API();
|
|
800e8c0: 4b09 ldr r3, [pc, #36] @ (800e8e8 <prvProcessTimerOrBlockTask+0x98>)
|
|
800e8c2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800e8c6: 601a str r2, [r3, #0]
|
|
800e8c8: f3bf 8f4f dsb sy
|
|
800e8cc: f3bf 8f6f isb sy
|
|
}
|
|
800e8d0: e001 b.n 800e8d6 <prvProcessTimerOrBlockTask+0x86>
|
|
( void ) xTaskResumeAll();
|
|
800e8d2: f7fe fd6b bl 800d3ac <xTaskResumeAll>
|
|
}
|
|
800e8d6: bf00 nop
|
|
800e8d8: 3710 adds r7, #16
|
|
800e8da: 46bd mov sp, r7
|
|
800e8dc: bd80 pop {r7, pc}
|
|
800e8de: bf00 nop
|
|
800e8e0: 20002404 .word 0x20002404
|
|
800e8e4: 20002408 .word 0x20002408
|
|
800e8e8: e000ed04 .word 0xe000ed04
|
|
|
|
0800e8ec <prvGetNextExpireTime>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
|
|
{
|
|
800e8ec: b480 push {r7}
|
|
800e8ee: b085 sub sp, #20
|
|
800e8f0: af00 add r7, sp, #0
|
|
800e8f2: 6078 str r0, [r7, #4]
|
|
the timer with the nearest expiry time will expire. If there are no
|
|
active timers then just set the next expire time to 0. That will cause
|
|
this task to unblock when the tick count overflows, at which point the
|
|
timer lists will be switched and the next expiry time can be
|
|
re-assessed. */
|
|
*pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
|
|
800e8f4: 4b0e ldr r3, [pc, #56] @ (800e930 <prvGetNextExpireTime+0x44>)
|
|
800e8f6: 681b ldr r3, [r3, #0]
|
|
800e8f8: 681b ldr r3, [r3, #0]
|
|
800e8fa: 2b00 cmp r3, #0
|
|
800e8fc: d101 bne.n 800e902 <prvGetNextExpireTime+0x16>
|
|
800e8fe: 2201 movs r2, #1
|
|
800e900: e000 b.n 800e904 <prvGetNextExpireTime+0x18>
|
|
800e902: 2200 movs r2, #0
|
|
800e904: 687b ldr r3, [r7, #4]
|
|
800e906: 601a str r2, [r3, #0]
|
|
if( *pxListWasEmpty == pdFALSE )
|
|
800e908: 687b ldr r3, [r7, #4]
|
|
800e90a: 681b ldr r3, [r3, #0]
|
|
800e90c: 2b00 cmp r3, #0
|
|
800e90e: d105 bne.n 800e91c <prvGetNextExpireTime+0x30>
|
|
{
|
|
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
|
|
800e910: 4b07 ldr r3, [pc, #28] @ (800e930 <prvGetNextExpireTime+0x44>)
|
|
800e912: 681b ldr r3, [r3, #0]
|
|
800e914: 68db ldr r3, [r3, #12]
|
|
800e916: 681b ldr r3, [r3, #0]
|
|
800e918: 60fb str r3, [r7, #12]
|
|
800e91a: e001 b.n 800e920 <prvGetNextExpireTime+0x34>
|
|
}
|
|
else
|
|
{
|
|
/* Ensure the task unblocks when the tick count rolls over. */
|
|
xNextExpireTime = ( TickType_t ) 0U;
|
|
800e91c: 2300 movs r3, #0
|
|
800e91e: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
return xNextExpireTime;
|
|
800e920: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800e922: 4618 mov r0, r3
|
|
800e924: 3714 adds r7, #20
|
|
800e926: 46bd mov sp, r7
|
|
800e928: f85d 7b04 ldr.w r7, [sp], #4
|
|
800e92c: 4770 bx lr
|
|
800e92e: bf00 nop
|
|
800e930: 20002400 .word 0x20002400
|
|
|
|
0800e934 <prvSampleTimeNow>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
|
|
{
|
|
800e934: b580 push {r7, lr}
|
|
800e936: b084 sub sp, #16
|
|
800e938: af00 add r7, sp, #0
|
|
800e93a: 6078 str r0, [r7, #4]
|
|
TickType_t xTimeNow;
|
|
PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
|
|
|
|
xTimeNow = xTaskGetTickCount();
|
|
800e93c: f7fe fdd4 bl 800d4e8 <xTaskGetTickCount>
|
|
800e940: 60f8 str r0, [r7, #12]
|
|
|
|
if( xTimeNow < xLastTime )
|
|
800e942: 4b0b ldr r3, [pc, #44] @ (800e970 <prvSampleTimeNow+0x3c>)
|
|
800e944: 681b ldr r3, [r3, #0]
|
|
800e946: 68fa ldr r2, [r7, #12]
|
|
800e948: 429a cmp r2, r3
|
|
800e94a: d205 bcs.n 800e958 <prvSampleTimeNow+0x24>
|
|
{
|
|
prvSwitchTimerLists();
|
|
800e94c: f000 f93a bl 800ebc4 <prvSwitchTimerLists>
|
|
*pxTimerListsWereSwitched = pdTRUE;
|
|
800e950: 687b ldr r3, [r7, #4]
|
|
800e952: 2201 movs r2, #1
|
|
800e954: 601a str r2, [r3, #0]
|
|
800e956: e002 b.n 800e95e <prvSampleTimeNow+0x2a>
|
|
}
|
|
else
|
|
{
|
|
*pxTimerListsWereSwitched = pdFALSE;
|
|
800e958: 687b ldr r3, [r7, #4]
|
|
800e95a: 2200 movs r2, #0
|
|
800e95c: 601a str r2, [r3, #0]
|
|
}
|
|
|
|
xLastTime = xTimeNow;
|
|
800e95e: 4a04 ldr r2, [pc, #16] @ (800e970 <prvSampleTimeNow+0x3c>)
|
|
800e960: 68fb ldr r3, [r7, #12]
|
|
800e962: 6013 str r3, [r2, #0]
|
|
|
|
return xTimeNow;
|
|
800e964: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800e966: 4618 mov r0, r3
|
|
800e968: 3710 adds r7, #16
|
|
800e96a: 46bd mov sp, r7
|
|
800e96c: bd80 pop {r7, pc}
|
|
800e96e: bf00 nop
|
|
800e970: 20002410 .word 0x20002410
|
|
|
|
0800e974 <prvInsertTimerInActiveList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
|
|
{
|
|
800e974: b580 push {r7, lr}
|
|
800e976: b086 sub sp, #24
|
|
800e978: af00 add r7, sp, #0
|
|
800e97a: 60f8 str r0, [r7, #12]
|
|
800e97c: 60b9 str r1, [r7, #8]
|
|
800e97e: 607a str r2, [r7, #4]
|
|
800e980: 603b str r3, [r7, #0]
|
|
BaseType_t xProcessTimerNow = pdFALSE;
|
|
800e982: 2300 movs r3, #0
|
|
800e984: 617b str r3, [r7, #20]
|
|
|
|
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
|
|
800e986: 68fb ldr r3, [r7, #12]
|
|
800e988: 68ba ldr r2, [r7, #8]
|
|
800e98a: 605a str r2, [r3, #4]
|
|
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
|
|
800e98c: 68fb ldr r3, [r7, #12]
|
|
800e98e: 68fa ldr r2, [r7, #12]
|
|
800e990: 611a str r2, [r3, #16]
|
|
|
|
if( xNextExpiryTime <= xTimeNow )
|
|
800e992: 68ba ldr r2, [r7, #8]
|
|
800e994: 687b ldr r3, [r7, #4]
|
|
800e996: 429a cmp r2, r3
|
|
800e998: d812 bhi.n 800e9c0 <prvInsertTimerInActiveList+0x4c>
|
|
{
|
|
/* Has the expiry time elapsed between the command to start/reset a
|
|
timer was issued, and the time the command was processed? */
|
|
if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
|
|
800e99a: 687a ldr r2, [r7, #4]
|
|
800e99c: 683b ldr r3, [r7, #0]
|
|
800e99e: 1ad2 subs r2, r2, r3
|
|
800e9a0: 68fb ldr r3, [r7, #12]
|
|
800e9a2: 699b ldr r3, [r3, #24]
|
|
800e9a4: 429a cmp r2, r3
|
|
800e9a6: d302 bcc.n 800e9ae <prvInsertTimerInActiveList+0x3a>
|
|
{
|
|
/* The time between a command being issued and the command being
|
|
processed actually exceeds the timers period. */
|
|
xProcessTimerNow = pdTRUE;
|
|
800e9a8: 2301 movs r3, #1
|
|
800e9aa: 617b str r3, [r7, #20]
|
|
800e9ac: e01b b.n 800e9e6 <prvInsertTimerInActiveList+0x72>
|
|
}
|
|
else
|
|
{
|
|
vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
|
|
800e9ae: 4b10 ldr r3, [pc, #64] @ (800e9f0 <prvInsertTimerInActiveList+0x7c>)
|
|
800e9b0: 681a ldr r2, [r3, #0]
|
|
800e9b2: 68fb ldr r3, [r7, #12]
|
|
800e9b4: 3304 adds r3, #4
|
|
800e9b6: 4619 mov r1, r3
|
|
800e9b8: 4610 mov r0, r2
|
|
800e9ba: f7fd f996 bl 800bcea <vListInsert>
|
|
800e9be: e012 b.n 800e9e6 <prvInsertTimerInActiveList+0x72>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
|
|
800e9c0: 687a ldr r2, [r7, #4]
|
|
800e9c2: 683b ldr r3, [r7, #0]
|
|
800e9c4: 429a cmp r2, r3
|
|
800e9c6: d206 bcs.n 800e9d6 <prvInsertTimerInActiveList+0x62>
|
|
800e9c8: 68ba ldr r2, [r7, #8]
|
|
800e9ca: 683b ldr r3, [r7, #0]
|
|
800e9cc: 429a cmp r2, r3
|
|
800e9ce: d302 bcc.n 800e9d6 <prvInsertTimerInActiveList+0x62>
|
|
{
|
|
/* If, since the command was issued, the tick count has overflowed
|
|
but the expiry time has not, then the timer must have already passed
|
|
its expiry time and should be processed immediately. */
|
|
xProcessTimerNow = pdTRUE;
|
|
800e9d0: 2301 movs r3, #1
|
|
800e9d2: 617b str r3, [r7, #20]
|
|
800e9d4: e007 b.n 800e9e6 <prvInsertTimerInActiveList+0x72>
|
|
}
|
|
else
|
|
{
|
|
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
|
|
800e9d6: 4b07 ldr r3, [pc, #28] @ (800e9f4 <prvInsertTimerInActiveList+0x80>)
|
|
800e9d8: 681a ldr r2, [r3, #0]
|
|
800e9da: 68fb ldr r3, [r7, #12]
|
|
800e9dc: 3304 adds r3, #4
|
|
800e9de: 4619 mov r1, r3
|
|
800e9e0: 4610 mov r0, r2
|
|
800e9e2: f7fd f982 bl 800bcea <vListInsert>
|
|
}
|
|
}
|
|
|
|
return xProcessTimerNow;
|
|
800e9e6: 697b ldr r3, [r7, #20]
|
|
}
|
|
800e9e8: 4618 mov r0, r3
|
|
800e9ea: 3718 adds r7, #24
|
|
800e9ec: 46bd mov sp, r7
|
|
800e9ee: bd80 pop {r7, pc}
|
|
800e9f0: 20002404 .word 0x20002404
|
|
800e9f4: 20002400 .word 0x20002400
|
|
|
|
0800e9f8 <prvProcessReceivedCommands>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvProcessReceivedCommands( void )
|
|
{
|
|
800e9f8: b580 push {r7, lr}
|
|
800e9fa: b08e sub sp, #56 @ 0x38
|
|
800e9fc: af02 add r7, sp, #8
|
|
DaemonTaskMessage_t xMessage;
|
|
Timer_t *pxTimer;
|
|
BaseType_t xTimerListsWereSwitched, xResult;
|
|
TickType_t xTimeNow;
|
|
|
|
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
|
|
800e9fe: e0ce b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
{
|
|
#if ( INCLUDE_xTimerPendFunctionCall == 1 )
|
|
{
|
|
/* Negative commands are pended function calls rather than timer
|
|
commands. */
|
|
if( xMessage.xMessageID < ( BaseType_t ) 0 )
|
|
800ea00: 687b ldr r3, [r7, #4]
|
|
800ea02: 2b00 cmp r3, #0
|
|
800ea04: da19 bge.n 800ea3a <prvProcessReceivedCommands+0x42>
|
|
{
|
|
const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
|
|
800ea06: 1d3b adds r3, r7, #4
|
|
800ea08: 3304 adds r3, #4
|
|
800ea0a: 62fb str r3, [r7, #44] @ 0x2c
|
|
|
|
/* The timer uses the xCallbackParameters member to request a
|
|
callback be executed. Check the callback is not NULL. */
|
|
configASSERT( pxCallback );
|
|
800ea0c: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800ea0e: 2b00 cmp r3, #0
|
|
800ea10: d10b bne.n 800ea2a <prvProcessReceivedCommands+0x32>
|
|
__asm volatile
|
|
800ea12: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ea16: f383 8811 msr BASEPRI, r3
|
|
800ea1a: f3bf 8f6f isb sy
|
|
800ea1e: f3bf 8f4f dsb sy
|
|
800ea22: 61fb str r3, [r7, #28]
|
|
}
|
|
800ea24: bf00 nop
|
|
800ea26: bf00 nop
|
|
800ea28: e7fd b.n 800ea26 <prvProcessReceivedCommands+0x2e>
|
|
|
|
/* Call the function. */
|
|
pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
|
|
800ea2a: 6afb ldr r3, [r7, #44] @ 0x2c
|
|
800ea2c: 681b ldr r3, [r3, #0]
|
|
800ea2e: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
800ea30: 6850 ldr r0, [r2, #4]
|
|
800ea32: 6afa ldr r2, [r7, #44] @ 0x2c
|
|
800ea34: 6892 ldr r2, [r2, #8]
|
|
800ea36: 4611 mov r1, r2
|
|
800ea38: 4798 blx r3
|
|
}
|
|
#endif /* INCLUDE_xTimerPendFunctionCall */
|
|
|
|
/* Commands that are positive are timer commands rather than pended
|
|
function calls. */
|
|
if( xMessage.xMessageID >= ( BaseType_t ) 0 )
|
|
800ea3a: 687b ldr r3, [r7, #4]
|
|
800ea3c: 2b00 cmp r3, #0
|
|
800ea3e: f2c0 80ae blt.w 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
{
|
|
/* The messages uses the xTimerParameters member to work on a
|
|
software timer. */
|
|
pxTimer = xMessage.u.xTimerParameters.pxTimer;
|
|
800ea42: 68fb ldr r3, [r7, #12]
|
|
800ea44: 62bb str r3, [r7, #40] @ 0x28
|
|
|
|
if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
|
|
800ea46: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ea48: 695b ldr r3, [r3, #20]
|
|
800ea4a: 2b00 cmp r3, #0
|
|
800ea4c: d004 beq.n 800ea58 <prvProcessReceivedCommands+0x60>
|
|
{
|
|
/* The timer is in a list, remove it. */
|
|
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
|
|
800ea4e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ea50: 3304 adds r3, #4
|
|
800ea52: 4618 mov r0, r3
|
|
800ea54: f7fd f982 bl 800bd5c <uxListRemove>
|
|
it must be present in the function call. prvSampleTimeNow() must be
|
|
called after the message is received from xTimerQueue so there is no
|
|
possibility of a higher priority task adding a message to the message
|
|
queue with a time that is ahead of the timer daemon task (because it
|
|
pre-empted the timer daemon task after the xTimeNow value was set). */
|
|
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
|
|
800ea58: 463b mov r3, r7
|
|
800ea5a: 4618 mov r0, r3
|
|
800ea5c: f7ff ff6a bl 800e934 <prvSampleTimeNow>
|
|
800ea60: 6278 str r0, [r7, #36] @ 0x24
|
|
|
|
switch( xMessage.xMessageID )
|
|
800ea62: 687b ldr r3, [r7, #4]
|
|
800ea64: 2b09 cmp r3, #9
|
|
800ea66: f200 8097 bhi.w 800eb98 <prvProcessReceivedCommands+0x1a0>
|
|
800ea6a: a201 add r2, pc, #4 @ (adr r2, 800ea70 <prvProcessReceivedCommands+0x78>)
|
|
800ea6c: f852 f023 ldr.w pc, [r2, r3, lsl #2]
|
|
800ea70: 0800ea99 .word 0x0800ea99
|
|
800ea74: 0800ea99 .word 0x0800ea99
|
|
800ea78: 0800ea99 .word 0x0800ea99
|
|
800ea7c: 0800eb0f .word 0x0800eb0f
|
|
800ea80: 0800eb23 .word 0x0800eb23
|
|
800ea84: 0800eb6f .word 0x0800eb6f
|
|
800ea88: 0800ea99 .word 0x0800ea99
|
|
800ea8c: 0800ea99 .word 0x0800ea99
|
|
800ea90: 0800eb0f .word 0x0800eb0f
|
|
800ea94: 0800eb23 .word 0x0800eb23
|
|
case tmrCOMMAND_START_FROM_ISR :
|
|
case tmrCOMMAND_RESET :
|
|
case tmrCOMMAND_RESET_FROM_ISR :
|
|
case tmrCOMMAND_START_DONT_TRACE :
|
|
/* Start or restart a timer. */
|
|
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
|
|
800ea98: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800ea9a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800ea9e: f043 0301 orr.w r3, r3, #1
|
|
800eaa2: b2da uxtb r2, r3
|
|
800eaa4: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eaa6: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
|
|
800eaaa: 68ba ldr r2, [r7, #8]
|
|
800eaac: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eaae: 699b ldr r3, [r3, #24]
|
|
800eab0: 18d1 adds r1, r2, r3
|
|
800eab2: 68bb ldr r3, [r7, #8]
|
|
800eab4: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800eab6: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800eab8: f7ff ff5c bl 800e974 <prvInsertTimerInActiveList>
|
|
800eabc: 4603 mov r3, r0
|
|
800eabe: 2b00 cmp r3, #0
|
|
800eac0: d06c beq.n 800eb9c <prvProcessReceivedCommands+0x1a4>
|
|
{
|
|
/* The timer expired before it was added to the active
|
|
timer list. Process it now. */
|
|
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
|
|
800eac2: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eac4: 6a1b ldr r3, [r3, #32]
|
|
800eac6: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800eac8: 4798 blx r3
|
|
traceTIMER_EXPIRED( pxTimer );
|
|
|
|
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
|
|
800eaca: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eacc: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800ead0: f003 0304 and.w r3, r3, #4
|
|
800ead4: 2b00 cmp r3, #0
|
|
800ead6: d061 beq.n 800eb9c <prvProcessReceivedCommands+0x1a4>
|
|
{
|
|
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
|
|
800ead8: 68ba ldr r2, [r7, #8]
|
|
800eada: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eadc: 699b ldr r3, [r3, #24]
|
|
800eade: 441a add r2, r3
|
|
800eae0: 2300 movs r3, #0
|
|
800eae2: 9300 str r3, [sp, #0]
|
|
800eae4: 2300 movs r3, #0
|
|
800eae6: 2100 movs r1, #0
|
|
800eae8: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800eaea: f7ff fe01 bl 800e6f0 <xTimerGenericCommand>
|
|
800eaee: 6238 str r0, [r7, #32]
|
|
configASSERT( xResult );
|
|
800eaf0: 6a3b ldr r3, [r7, #32]
|
|
800eaf2: 2b00 cmp r3, #0
|
|
800eaf4: d152 bne.n 800eb9c <prvProcessReceivedCommands+0x1a4>
|
|
__asm volatile
|
|
800eaf6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800eafa: f383 8811 msr BASEPRI, r3
|
|
800eafe: f3bf 8f6f isb sy
|
|
800eb02: f3bf 8f4f dsb sy
|
|
800eb06: 61bb str r3, [r7, #24]
|
|
}
|
|
800eb08: bf00 nop
|
|
800eb0a: bf00 nop
|
|
800eb0c: e7fd b.n 800eb0a <prvProcessReceivedCommands+0x112>
|
|
break;
|
|
|
|
case tmrCOMMAND_STOP :
|
|
case tmrCOMMAND_STOP_FROM_ISR :
|
|
/* The timer has already been removed from the active list. */
|
|
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
|
800eb0e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb10: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800eb14: f023 0301 bic.w r3, r3, #1
|
|
800eb18: b2da uxtb r2, r3
|
|
800eb1a: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb1c: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
break;
|
|
800eb20: e03d b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
|
|
case tmrCOMMAND_CHANGE_PERIOD :
|
|
case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
|
|
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
|
|
800eb22: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb24: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800eb28: f043 0301 orr.w r3, r3, #1
|
|
800eb2c: b2da uxtb r2, r3
|
|
800eb2e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb30: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
|
|
800eb34: 68ba ldr r2, [r7, #8]
|
|
800eb36: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb38: 619a str r2, [r3, #24]
|
|
configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
|
|
800eb3a: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb3c: 699b ldr r3, [r3, #24]
|
|
800eb3e: 2b00 cmp r3, #0
|
|
800eb40: d10b bne.n 800eb5a <prvProcessReceivedCommands+0x162>
|
|
__asm volatile
|
|
800eb42: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800eb46: f383 8811 msr BASEPRI, r3
|
|
800eb4a: f3bf 8f6f isb sy
|
|
800eb4e: f3bf 8f4f dsb sy
|
|
800eb52: 617b str r3, [r7, #20]
|
|
}
|
|
800eb54: bf00 nop
|
|
800eb56: bf00 nop
|
|
800eb58: e7fd b.n 800eb56 <prvProcessReceivedCommands+0x15e>
|
|
be longer or shorter than the old one. The command time is
|
|
therefore set to the current time, and as the period cannot
|
|
be zero the next expiry time can only be in the future,
|
|
meaning (unlike for the xTimerStart() case above) there is
|
|
no fail case that needs to be handled here. */
|
|
( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
|
|
800eb5a: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb5c: 699a ldr r2, [r3, #24]
|
|
800eb5e: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800eb60: 18d1 adds r1, r2, r3
|
|
800eb62: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800eb64: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800eb66: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800eb68: f7ff ff04 bl 800e974 <prvInsertTimerInActiveList>
|
|
break;
|
|
800eb6c: e017 b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
{
|
|
/* The timer has already been removed from the active list,
|
|
just free up the memory if the memory was dynamically
|
|
allocated. */
|
|
if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
|
|
800eb6e: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb70: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800eb74: f003 0302 and.w r3, r3, #2
|
|
800eb78: 2b00 cmp r3, #0
|
|
800eb7a: d103 bne.n 800eb84 <prvProcessReceivedCommands+0x18c>
|
|
{
|
|
vPortFree( pxTimer );
|
|
800eb7c: 6ab8 ldr r0, [r7, #40] @ 0x28
|
|
800eb7e: f000 fc53 bl 800f428 <vPortFree>
|
|
no need to free the memory - just mark the timer as
|
|
"not active". */
|
|
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
|
}
|
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
break;
|
|
800eb82: e00c b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
|
|
800eb84: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb86: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800eb8a: f023 0301 bic.w r3, r3, #1
|
|
800eb8e: b2da uxtb r2, r3
|
|
800eb90: 6abb ldr r3, [r7, #40] @ 0x28
|
|
800eb92: f883 2028 strb.w r2, [r3, #40] @ 0x28
|
|
break;
|
|
800eb96: e002 b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
|
|
default :
|
|
/* Don't expect to get here. */
|
|
break;
|
|
800eb98: bf00 nop
|
|
800eb9a: e000 b.n 800eb9e <prvProcessReceivedCommands+0x1a6>
|
|
break;
|
|
800eb9c: bf00 nop
|
|
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
|
|
800eb9e: 4b08 ldr r3, [pc, #32] @ (800ebc0 <prvProcessReceivedCommands+0x1c8>)
|
|
800eba0: 681b ldr r3, [r3, #0]
|
|
800eba2: 1d39 adds r1, r7, #4
|
|
800eba4: 2200 movs r2, #0
|
|
800eba6: 4618 mov r0, r3
|
|
800eba8: f7fd fca0 bl 800c4ec <xQueueReceive>
|
|
800ebac: 4603 mov r3, r0
|
|
800ebae: 2b00 cmp r3, #0
|
|
800ebb0: f47f af26 bne.w 800ea00 <prvProcessReceivedCommands+0x8>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
800ebb4: bf00 nop
|
|
800ebb6: bf00 nop
|
|
800ebb8: 3730 adds r7, #48 @ 0x30
|
|
800ebba: 46bd mov sp, r7
|
|
800ebbc: bd80 pop {r7, pc}
|
|
800ebbe: bf00 nop
|
|
800ebc0: 20002408 .word 0x20002408
|
|
|
|
0800ebc4 <prvSwitchTimerLists>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvSwitchTimerLists( void )
|
|
{
|
|
800ebc4: b580 push {r7, lr}
|
|
800ebc6: b088 sub sp, #32
|
|
800ebc8: af02 add r7, sp, #8
|
|
|
|
/* The tick count has overflowed. The timer lists must be switched.
|
|
If there are any timers still referenced from the current timer list
|
|
then they must have expired and should be processed before the lists
|
|
are switched. */
|
|
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
|
|
800ebca: e049 b.n 800ec60 <prvSwitchTimerLists+0x9c>
|
|
{
|
|
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
|
|
800ebcc: 4b2e ldr r3, [pc, #184] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ebce: 681b ldr r3, [r3, #0]
|
|
800ebd0: 68db ldr r3, [r3, #12]
|
|
800ebd2: 681b ldr r3, [r3, #0]
|
|
800ebd4: 613b str r3, [r7, #16]
|
|
|
|
/* Remove the timer from the list. */
|
|
pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
|
|
800ebd6: 4b2c ldr r3, [pc, #176] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ebd8: 681b ldr r3, [r3, #0]
|
|
800ebda: 68db ldr r3, [r3, #12]
|
|
800ebdc: 68db ldr r3, [r3, #12]
|
|
800ebde: 60fb str r3, [r7, #12]
|
|
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
|
|
800ebe0: 68fb ldr r3, [r7, #12]
|
|
800ebe2: 3304 adds r3, #4
|
|
800ebe4: 4618 mov r0, r3
|
|
800ebe6: f7fd f8b9 bl 800bd5c <uxListRemove>
|
|
traceTIMER_EXPIRED( pxTimer );
|
|
|
|
/* Execute its callback, then send a command to restart the timer if
|
|
it is an auto-reload timer. It cannot be restarted here as the lists
|
|
have not yet been switched. */
|
|
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
|
|
800ebea: 68fb ldr r3, [r7, #12]
|
|
800ebec: 6a1b ldr r3, [r3, #32]
|
|
800ebee: 68f8 ldr r0, [r7, #12]
|
|
800ebf0: 4798 blx r3
|
|
|
|
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
|
|
800ebf2: 68fb ldr r3, [r7, #12]
|
|
800ebf4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800ebf8: f003 0304 and.w r3, r3, #4
|
|
800ebfc: 2b00 cmp r3, #0
|
|
800ebfe: d02f beq.n 800ec60 <prvSwitchTimerLists+0x9c>
|
|
the timer going into the same timer list then it has already expired
|
|
and the timer should be re-inserted into the current list so it is
|
|
processed again within this loop. Otherwise a command should be sent
|
|
to restart the timer to ensure it is only inserted into a list after
|
|
the lists have been swapped. */
|
|
xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
|
|
800ec00: 68fb ldr r3, [r7, #12]
|
|
800ec02: 699b ldr r3, [r3, #24]
|
|
800ec04: 693a ldr r2, [r7, #16]
|
|
800ec06: 4413 add r3, r2
|
|
800ec08: 60bb str r3, [r7, #8]
|
|
if( xReloadTime > xNextExpireTime )
|
|
800ec0a: 68ba ldr r2, [r7, #8]
|
|
800ec0c: 693b ldr r3, [r7, #16]
|
|
800ec0e: 429a cmp r2, r3
|
|
800ec10: d90e bls.n 800ec30 <prvSwitchTimerLists+0x6c>
|
|
{
|
|
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
|
|
800ec12: 68fb ldr r3, [r7, #12]
|
|
800ec14: 68ba ldr r2, [r7, #8]
|
|
800ec16: 605a str r2, [r3, #4]
|
|
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
|
|
800ec18: 68fb ldr r3, [r7, #12]
|
|
800ec1a: 68fa ldr r2, [r7, #12]
|
|
800ec1c: 611a str r2, [r3, #16]
|
|
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
|
|
800ec1e: 4b1a ldr r3, [pc, #104] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ec20: 681a ldr r2, [r3, #0]
|
|
800ec22: 68fb ldr r3, [r7, #12]
|
|
800ec24: 3304 adds r3, #4
|
|
800ec26: 4619 mov r1, r3
|
|
800ec28: 4610 mov r0, r2
|
|
800ec2a: f7fd f85e bl 800bcea <vListInsert>
|
|
800ec2e: e017 b.n 800ec60 <prvSwitchTimerLists+0x9c>
|
|
}
|
|
else
|
|
{
|
|
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
|
|
800ec30: 2300 movs r3, #0
|
|
800ec32: 9300 str r3, [sp, #0]
|
|
800ec34: 2300 movs r3, #0
|
|
800ec36: 693a ldr r2, [r7, #16]
|
|
800ec38: 2100 movs r1, #0
|
|
800ec3a: 68f8 ldr r0, [r7, #12]
|
|
800ec3c: f7ff fd58 bl 800e6f0 <xTimerGenericCommand>
|
|
800ec40: 6078 str r0, [r7, #4]
|
|
configASSERT( xResult );
|
|
800ec42: 687b ldr r3, [r7, #4]
|
|
800ec44: 2b00 cmp r3, #0
|
|
800ec46: d10b bne.n 800ec60 <prvSwitchTimerLists+0x9c>
|
|
__asm volatile
|
|
800ec48: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ec4c: f383 8811 msr BASEPRI, r3
|
|
800ec50: f3bf 8f6f isb sy
|
|
800ec54: f3bf 8f4f dsb sy
|
|
800ec58: 603b str r3, [r7, #0]
|
|
}
|
|
800ec5a: bf00 nop
|
|
800ec5c: bf00 nop
|
|
800ec5e: e7fd b.n 800ec5c <prvSwitchTimerLists+0x98>
|
|
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
|
|
800ec60: 4b09 ldr r3, [pc, #36] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ec62: 681b ldr r3, [r3, #0]
|
|
800ec64: 681b ldr r3, [r3, #0]
|
|
800ec66: 2b00 cmp r3, #0
|
|
800ec68: d1b0 bne.n 800ebcc <prvSwitchTimerLists+0x8>
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
|
|
pxTemp = pxCurrentTimerList;
|
|
800ec6a: 4b07 ldr r3, [pc, #28] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ec6c: 681b ldr r3, [r3, #0]
|
|
800ec6e: 617b str r3, [r7, #20]
|
|
pxCurrentTimerList = pxOverflowTimerList;
|
|
800ec70: 4b06 ldr r3, [pc, #24] @ (800ec8c <prvSwitchTimerLists+0xc8>)
|
|
800ec72: 681b ldr r3, [r3, #0]
|
|
800ec74: 4a04 ldr r2, [pc, #16] @ (800ec88 <prvSwitchTimerLists+0xc4>)
|
|
800ec76: 6013 str r3, [r2, #0]
|
|
pxOverflowTimerList = pxTemp;
|
|
800ec78: 4a04 ldr r2, [pc, #16] @ (800ec8c <prvSwitchTimerLists+0xc8>)
|
|
800ec7a: 697b ldr r3, [r7, #20]
|
|
800ec7c: 6013 str r3, [r2, #0]
|
|
}
|
|
800ec7e: bf00 nop
|
|
800ec80: 3718 adds r7, #24
|
|
800ec82: 46bd mov sp, r7
|
|
800ec84: bd80 pop {r7, pc}
|
|
800ec86: bf00 nop
|
|
800ec88: 20002400 .word 0x20002400
|
|
800ec8c: 20002404 .word 0x20002404
|
|
|
|
0800ec90 <prvCheckForValidListAndQueue>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvCheckForValidListAndQueue( void )
|
|
{
|
|
800ec90: b580 push {r7, lr}
|
|
800ec92: b082 sub sp, #8
|
|
800ec94: af02 add r7, sp, #8
|
|
/* Check that the list from which active timers are referenced, and the
|
|
queue used to communicate with the timer service, have been
|
|
initialised. */
|
|
taskENTER_CRITICAL();
|
|
800ec96: f000 f9d7 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
if( xTimerQueue == NULL )
|
|
800ec9a: 4b15 ldr r3, [pc, #84] @ (800ecf0 <prvCheckForValidListAndQueue+0x60>)
|
|
800ec9c: 681b ldr r3, [r3, #0]
|
|
800ec9e: 2b00 cmp r3, #0
|
|
800eca0: d120 bne.n 800ece4 <prvCheckForValidListAndQueue+0x54>
|
|
{
|
|
vListInitialise( &xActiveTimerList1 );
|
|
800eca2: 4814 ldr r0, [pc, #80] @ (800ecf4 <prvCheckForValidListAndQueue+0x64>)
|
|
800eca4: f7fc ffd0 bl 800bc48 <vListInitialise>
|
|
vListInitialise( &xActiveTimerList2 );
|
|
800eca8: 4813 ldr r0, [pc, #76] @ (800ecf8 <prvCheckForValidListAndQueue+0x68>)
|
|
800ecaa: f7fc ffcd bl 800bc48 <vListInitialise>
|
|
pxCurrentTimerList = &xActiveTimerList1;
|
|
800ecae: 4b13 ldr r3, [pc, #76] @ (800ecfc <prvCheckForValidListAndQueue+0x6c>)
|
|
800ecb0: 4a10 ldr r2, [pc, #64] @ (800ecf4 <prvCheckForValidListAndQueue+0x64>)
|
|
800ecb2: 601a str r2, [r3, #0]
|
|
pxOverflowTimerList = &xActiveTimerList2;
|
|
800ecb4: 4b12 ldr r3, [pc, #72] @ (800ed00 <prvCheckForValidListAndQueue+0x70>)
|
|
800ecb6: 4a10 ldr r2, [pc, #64] @ (800ecf8 <prvCheckForValidListAndQueue+0x68>)
|
|
800ecb8: 601a str r2, [r3, #0]
|
|
/* The timer queue is allocated statically in case
|
|
configSUPPORT_DYNAMIC_ALLOCATION is 0. */
|
|
static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
|
|
static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
|
|
|
|
xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
|
|
800ecba: 2300 movs r3, #0
|
|
800ecbc: 9300 str r3, [sp, #0]
|
|
800ecbe: 4b11 ldr r3, [pc, #68] @ (800ed04 <prvCheckForValidListAndQueue+0x74>)
|
|
800ecc0: 4a11 ldr r2, [pc, #68] @ (800ed08 <prvCheckForValidListAndQueue+0x78>)
|
|
800ecc2: 2110 movs r1, #16
|
|
800ecc4: 200a movs r0, #10
|
|
800ecc6: f7fd f8dd bl 800be84 <xQueueGenericCreateStatic>
|
|
800ecca: 4603 mov r3, r0
|
|
800eccc: 4a08 ldr r2, [pc, #32] @ (800ecf0 <prvCheckForValidListAndQueue+0x60>)
|
|
800ecce: 6013 str r3, [r2, #0]
|
|
}
|
|
#endif
|
|
|
|
#if ( configQUEUE_REGISTRY_SIZE > 0 )
|
|
{
|
|
if( xTimerQueue != NULL )
|
|
800ecd0: 4b07 ldr r3, [pc, #28] @ (800ecf0 <prvCheckForValidListAndQueue+0x60>)
|
|
800ecd2: 681b ldr r3, [r3, #0]
|
|
800ecd4: 2b00 cmp r3, #0
|
|
800ecd6: d005 beq.n 800ece4 <prvCheckForValidListAndQueue+0x54>
|
|
{
|
|
vQueueAddToRegistry( xTimerQueue, "TmrQ" );
|
|
800ecd8: 4b05 ldr r3, [pc, #20] @ (800ecf0 <prvCheckForValidListAndQueue+0x60>)
|
|
800ecda: 681b ldr r3, [r3, #0]
|
|
800ecdc: 490b ldr r1, [pc, #44] @ (800ed0c <prvCheckForValidListAndQueue+0x7c>)
|
|
800ecde: 4618 mov r0, r3
|
|
800ece0: f7fd ffa0 bl 800cc24 <vQueueAddToRegistry>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800ece4: f000 f9e2 bl 800f0ac <vPortExitCritical>
|
|
}
|
|
800ece8: bf00 nop
|
|
800ecea: 46bd mov sp, r7
|
|
800ecec: bd80 pop {r7, pc}
|
|
800ecee: bf00 nop
|
|
800ecf0: 20002408 .word 0x20002408
|
|
800ecf4: 200023d8 .word 0x200023d8
|
|
800ecf8: 200023ec .word 0x200023ec
|
|
800ecfc: 20002400 .word 0x20002400
|
|
800ed00: 20002404 .word 0x20002404
|
|
800ed04: 200024b4 .word 0x200024b4
|
|
800ed08: 20002414 .word 0x20002414
|
|
800ed0c: 08013048 .word 0x08013048
|
|
|
|
0800ed10 <xTimerIsTimerActive>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
BaseType_t xTimerIsTimerActive( TimerHandle_t xTimer )
|
|
{
|
|
800ed10: b580 push {r7, lr}
|
|
800ed12: b086 sub sp, #24
|
|
800ed14: af00 add r7, sp, #0
|
|
800ed16: 6078 str r0, [r7, #4]
|
|
BaseType_t xReturn;
|
|
Timer_t *pxTimer = xTimer;
|
|
800ed18: 687b ldr r3, [r7, #4]
|
|
800ed1a: 613b str r3, [r7, #16]
|
|
|
|
configASSERT( xTimer );
|
|
800ed1c: 687b ldr r3, [r7, #4]
|
|
800ed1e: 2b00 cmp r3, #0
|
|
800ed20: d10b bne.n 800ed3a <xTimerIsTimerActive+0x2a>
|
|
__asm volatile
|
|
800ed22: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ed26: f383 8811 msr BASEPRI, r3
|
|
800ed2a: f3bf 8f6f isb sy
|
|
800ed2e: f3bf 8f4f dsb sy
|
|
800ed32: 60fb str r3, [r7, #12]
|
|
}
|
|
800ed34: bf00 nop
|
|
800ed36: bf00 nop
|
|
800ed38: e7fd b.n 800ed36 <xTimerIsTimerActive+0x26>
|
|
|
|
/* Is the timer in the list of active timers? */
|
|
taskENTER_CRITICAL();
|
|
800ed3a: f000 f985 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
if( ( pxTimer->ucStatus & tmrSTATUS_IS_ACTIVE ) == 0 )
|
|
800ed3e: 693b ldr r3, [r7, #16]
|
|
800ed40: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
|
|
800ed44: f003 0301 and.w r3, r3, #1
|
|
800ed48: 2b00 cmp r3, #0
|
|
800ed4a: d102 bne.n 800ed52 <xTimerIsTimerActive+0x42>
|
|
{
|
|
xReturn = pdFALSE;
|
|
800ed4c: 2300 movs r3, #0
|
|
800ed4e: 617b str r3, [r7, #20]
|
|
800ed50: e001 b.n 800ed56 <xTimerIsTimerActive+0x46>
|
|
}
|
|
else
|
|
{
|
|
xReturn = pdTRUE;
|
|
800ed52: 2301 movs r3, #1
|
|
800ed54: 617b str r3, [r7, #20]
|
|
}
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800ed56: f000 f9a9 bl 800f0ac <vPortExitCritical>
|
|
|
|
return xReturn;
|
|
800ed5a: 697b ldr r3, [r7, #20]
|
|
} /*lint !e818 Can't be pointer to const due to the typedef. */
|
|
800ed5c: 4618 mov r0, r3
|
|
800ed5e: 3718 adds r7, #24
|
|
800ed60: 46bd mov sp, r7
|
|
800ed62: bd80 pop {r7, pc}
|
|
|
|
0800ed64 <pvTimerGetTimerID>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void *pvTimerGetTimerID( const TimerHandle_t xTimer )
|
|
{
|
|
800ed64: b580 push {r7, lr}
|
|
800ed66: b086 sub sp, #24
|
|
800ed68: af00 add r7, sp, #0
|
|
800ed6a: 6078 str r0, [r7, #4]
|
|
Timer_t * const pxTimer = xTimer;
|
|
800ed6c: 687b ldr r3, [r7, #4]
|
|
800ed6e: 617b str r3, [r7, #20]
|
|
void *pvReturn;
|
|
|
|
configASSERT( xTimer );
|
|
800ed70: 687b ldr r3, [r7, #4]
|
|
800ed72: 2b00 cmp r3, #0
|
|
800ed74: d10b bne.n 800ed8e <pvTimerGetTimerID+0x2a>
|
|
__asm volatile
|
|
800ed76: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ed7a: f383 8811 msr BASEPRI, r3
|
|
800ed7e: f3bf 8f6f isb sy
|
|
800ed82: f3bf 8f4f dsb sy
|
|
800ed86: 60fb str r3, [r7, #12]
|
|
}
|
|
800ed88: bf00 nop
|
|
800ed8a: bf00 nop
|
|
800ed8c: e7fd b.n 800ed8a <pvTimerGetTimerID+0x26>
|
|
|
|
taskENTER_CRITICAL();
|
|
800ed8e: f000 f95b bl 800f048 <vPortEnterCritical>
|
|
{
|
|
pvReturn = pxTimer->pvTimerID;
|
|
800ed92: 697b ldr r3, [r7, #20]
|
|
800ed94: 69db ldr r3, [r3, #28]
|
|
800ed96: 613b str r3, [r7, #16]
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800ed98: f000 f988 bl 800f0ac <vPortExitCritical>
|
|
|
|
return pvReturn;
|
|
800ed9c: 693b ldr r3, [r7, #16]
|
|
}
|
|
800ed9e: 4618 mov r0, r3
|
|
800eda0: 3718 adds r7, #24
|
|
800eda2: 46bd mov sp, r7
|
|
800eda4: bd80 pop {r7, pc}
|
|
...
|
|
|
|
0800eda8 <xTimerPendFunctionCallFromISR>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( INCLUDE_xTimerPendFunctionCall == 1 )
|
|
|
|
BaseType_t xTimerPendFunctionCallFromISR( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, BaseType_t *pxHigherPriorityTaskWoken )
|
|
{
|
|
800eda8: b580 push {r7, lr}
|
|
800edaa: b08a sub sp, #40 @ 0x28
|
|
800edac: af00 add r7, sp, #0
|
|
800edae: 60f8 str r0, [r7, #12]
|
|
800edb0: 60b9 str r1, [r7, #8]
|
|
800edb2: 607a str r2, [r7, #4]
|
|
800edb4: 603b str r3, [r7, #0]
|
|
DaemonTaskMessage_t xMessage;
|
|
BaseType_t xReturn;
|
|
|
|
/* Complete the message with the function parameters and post it to the
|
|
daemon task. */
|
|
xMessage.xMessageID = tmrCOMMAND_EXECUTE_CALLBACK_FROM_ISR;
|
|
800edb6: f06f 0301 mvn.w r3, #1
|
|
800edba: 617b str r3, [r7, #20]
|
|
xMessage.u.xCallbackParameters.pxCallbackFunction = xFunctionToPend;
|
|
800edbc: 68fb ldr r3, [r7, #12]
|
|
800edbe: 61bb str r3, [r7, #24]
|
|
xMessage.u.xCallbackParameters.pvParameter1 = pvParameter1;
|
|
800edc0: 68bb ldr r3, [r7, #8]
|
|
800edc2: 61fb str r3, [r7, #28]
|
|
xMessage.u.xCallbackParameters.ulParameter2 = ulParameter2;
|
|
800edc4: 687b ldr r3, [r7, #4]
|
|
800edc6: 623b str r3, [r7, #32]
|
|
|
|
xReturn = xQueueSendFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
|
|
800edc8: 4b06 ldr r3, [pc, #24] @ (800ede4 <xTimerPendFunctionCallFromISR+0x3c>)
|
|
800edca: 6818 ldr r0, [r3, #0]
|
|
800edcc: f107 0114 add.w r1, r7, #20
|
|
800edd0: 2300 movs r3, #0
|
|
800edd2: 683a ldr r2, [r7, #0]
|
|
800edd4: f7fd faec bl 800c3b0 <xQueueGenericSendFromISR>
|
|
800edd8: 6278 str r0, [r7, #36] @ 0x24
|
|
|
|
tracePEND_FUNC_CALL_FROM_ISR( xFunctionToPend, pvParameter1, ulParameter2, xReturn );
|
|
|
|
return xReturn;
|
|
800edda: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
}
|
|
800eddc: 4618 mov r0, r3
|
|
800edde: 3728 adds r7, #40 @ 0x28
|
|
800ede0: 46bd mov sp, r7
|
|
800ede2: bd80 pop {r7, pc}
|
|
800ede4: 20002408 .word 0x20002408
|
|
|
|
0800ede8 <pxPortInitialiseStack>:
|
|
|
|
/*
|
|
* See header file for description.
|
|
*/
|
|
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
|
|
{
|
|
800ede8: b480 push {r7}
|
|
800edea: b085 sub sp, #20
|
|
800edec: af00 add r7, sp, #0
|
|
800edee: 60f8 str r0, [r7, #12]
|
|
800edf0: 60b9 str r1, [r7, #8]
|
|
800edf2: 607a str r2, [r7, #4]
|
|
/* Simulate the stack frame as it would be created by a context switch
|
|
interrupt. */
|
|
|
|
/* Offset added to account for the way the MCU uses the stack on entry/exit
|
|
of interrupts, and to ensure alignment. */
|
|
pxTopOfStack--;
|
|
800edf4: 68fb ldr r3, [r7, #12]
|
|
800edf6: 3b04 subs r3, #4
|
|
800edf8: 60fb str r3, [r7, #12]
|
|
|
|
*pxTopOfStack = portINITIAL_XPSR; /* xPSR */
|
|
800edfa: 68fb ldr r3, [r7, #12]
|
|
800edfc: f04f 7280 mov.w r2, #16777216 @ 0x1000000
|
|
800ee00: 601a str r2, [r3, #0]
|
|
pxTopOfStack--;
|
|
800ee02: 68fb ldr r3, [r7, #12]
|
|
800ee04: 3b04 subs r3, #4
|
|
800ee06: 60fb str r3, [r7, #12]
|
|
*pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
|
|
800ee08: 68bb ldr r3, [r7, #8]
|
|
800ee0a: f023 0201 bic.w r2, r3, #1
|
|
800ee0e: 68fb ldr r3, [r7, #12]
|
|
800ee10: 601a str r2, [r3, #0]
|
|
pxTopOfStack--;
|
|
800ee12: 68fb ldr r3, [r7, #12]
|
|
800ee14: 3b04 subs r3, #4
|
|
800ee16: 60fb str r3, [r7, #12]
|
|
*pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
|
|
800ee18: 4a0c ldr r2, [pc, #48] @ (800ee4c <pxPortInitialiseStack+0x64>)
|
|
800ee1a: 68fb ldr r3, [r7, #12]
|
|
800ee1c: 601a str r2, [r3, #0]
|
|
|
|
/* Save code space by skipping register initialisation. */
|
|
pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
|
|
800ee1e: 68fb ldr r3, [r7, #12]
|
|
800ee20: 3b14 subs r3, #20
|
|
800ee22: 60fb str r3, [r7, #12]
|
|
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
|
|
800ee24: 687a ldr r2, [r7, #4]
|
|
800ee26: 68fb ldr r3, [r7, #12]
|
|
800ee28: 601a str r2, [r3, #0]
|
|
|
|
/* A save method is being used that requires each task to maintain its
|
|
own exec return value. */
|
|
pxTopOfStack--;
|
|
800ee2a: 68fb ldr r3, [r7, #12]
|
|
800ee2c: 3b04 subs r3, #4
|
|
800ee2e: 60fb str r3, [r7, #12]
|
|
*pxTopOfStack = portINITIAL_EXC_RETURN;
|
|
800ee30: 68fb ldr r3, [r7, #12]
|
|
800ee32: f06f 0202 mvn.w r2, #2
|
|
800ee36: 601a str r2, [r3, #0]
|
|
|
|
pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
|
|
800ee38: 68fb ldr r3, [r7, #12]
|
|
800ee3a: 3b20 subs r3, #32
|
|
800ee3c: 60fb str r3, [r7, #12]
|
|
|
|
return pxTopOfStack;
|
|
800ee3e: 68fb ldr r3, [r7, #12]
|
|
}
|
|
800ee40: 4618 mov r0, r3
|
|
800ee42: 3714 adds r7, #20
|
|
800ee44: 46bd mov sp, r7
|
|
800ee46: f85d 7b04 ldr.w r7, [sp], #4
|
|
800ee4a: 4770 bx lr
|
|
800ee4c: 0800ee51 .word 0x0800ee51
|
|
|
|
0800ee50 <prvTaskExitError>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvTaskExitError( void )
|
|
{
|
|
800ee50: b480 push {r7}
|
|
800ee52: b085 sub sp, #20
|
|
800ee54: af00 add r7, sp, #0
|
|
volatile uint32_t ulDummy = 0;
|
|
800ee56: 2300 movs r3, #0
|
|
800ee58: 607b str r3, [r7, #4]
|
|
its caller as there is nothing to return to. If a task wants to exit it
|
|
should instead call vTaskDelete( NULL ).
|
|
|
|
Artificially force an assert() to be triggered if configASSERT() is
|
|
defined, then stop here so application writers can catch the error. */
|
|
configASSERT( uxCriticalNesting == ~0UL );
|
|
800ee5a: 4b13 ldr r3, [pc, #76] @ (800eea8 <prvTaskExitError+0x58>)
|
|
800ee5c: 681b ldr r3, [r3, #0]
|
|
800ee5e: f1b3 3fff cmp.w r3, #4294967295
|
|
800ee62: d00b beq.n 800ee7c <prvTaskExitError+0x2c>
|
|
__asm volatile
|
|
800ee64: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ee68: f383 8811 msr BASEPRI, r3
|
|
800ee6c: f3bf 8f6f isb sy
|
|
800ee70: f3bf 8f4f dsb sy
|
|
800ee74: 60fb str r3, [r7, #12]
|
|
}
|
|
800ee76: bf00 nop
|
|
800ee78: bf00 nop
|
|
800ee7a: e7fd b.n 800ee78 <prvTaskExitError+0x28>
|
|
__asm volatile
|
|
800ee7c: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ee80: f383 8811 msr BASEPRI, r3
|
|
800ee84: f3bf 8f6f isb sy
|
|
800ee88: f3bf 8f4f dsb sy
|
|
800ee8c: 60bb str r3, [r7, #8]
|
|
}
|
|
800ee8e: bf00 nop
|
|
portDISABLE_INTERRUPTS();
|
|
while( ulDummy == 0 )
|
|
800ee90: bf00 nop
|
|
800ee92: 687b ldr r3, [r7, #4]
|
|
800ee94: 2b00 cmp r3, #0
|
|
800ee96: d0fc beq.n 800ee92 <prvTaskExitError+0x42>
|
|
about code appearing after this function is called - making ulDummy
|
|
volatile makes the compiler think the function could return and
|
|
therefore not output an 'unreachable code' warning for code that appears
|
|
after it. */
|
|
}
|
|
}
|
|
800ee98: bf00 nop
|
|
800ee9a: bf00 nop
|
|
800ee9c: 3714 adds r7, #20
|
|
800ee9e: 46bd mov sp, r7
|
|
800eea0: f85d 7b04 ldr.w r7, [sp], #4
|
|
800eea4: 4770 bx lr
|
|
800eea6: bf00 nop
|
|
800eea8: 2000000c .word 0x2000000c
|
|
800eeac: 00000000 .word 0x00000000
|
|
|
|
0800eeb0 <SVC_Handler>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vPortSVCHandler( void )
|
|
{
|
|
__asm volatile (
|
|
800eeb0: 4b07 ldr r3, [pc, #28] @ (800eed0 <pxCurrentTCBConst2>)
|
|
800eeb2: 6819 ldr r1, [r3, #0]
|
|
800eeb4: 6808 ldr r0, [r1, #0]
|
|
800eeb6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800eeba: f380 8809 msr PSP, r0
|
|
800eebe: f3bf 8f6f isb sy
|
|
800eec2: f04f 0000 mov.w r0, #0
|
|
800eec6: f380 8811 msr BASEPRI, r0
|
|
800eeca: 4770 bx lr
|
|
800eecc: f3af 8000 nop.w
|
|
|
|
0800eed0 <pxCurrentTCBConst2>:
|
|
800eed0: 20001ed8 .word 0x20001ed8
|
|
" bx r14 \n"
|
|
" \n"
|
|
" .align 4 \n"
|
|
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
|
);
|
|
}
|
|
800eed4: bf00 nop
|
|
800eed6: bf00 nop
|
|
|
|
0800eed8 <prvPortStartFirstTask>:
|
|
{
|
|
/* Start the first task. This also clears the bit that indicates the FPU is
|
|
in use in case the FPU was used before the scheduler was started - which
|
|
would otherwise result in the unnecessary leaving of space in the SVC stack
|
|
for lazy saving of FPU registers. */
|
|
__asm volatile(
|
|
800eed8: 4808 ldr r0, [pc, #32] @ (800eefc <prvPortStartFirstTask+0x24>)
|
|
800eeda: 6800 ldr r0, [r0, #0]
|
|
800eedc: 6800 ldr r0, [r0, #0]
|
|
800eede: f380 8808 msr MSP, r0
|
|
800eee2: f04f 0000 mov.w r0, #0
|
|
800eee6: f380 8814 msr CONTROL, r0
|
|
800eeea: b662 cpsie i
|
|
800eeec: b661 cpsie f
|
|
800eeee: f3bf 8f4f dsb sy
|
|
800eef2: f3bf 8f6f isb sy
|
|
800eef6: df00 svc 0
|
|
800eef8: bf00 nop
|
|
" dsb \n"
|
|
" isb \n"
|
|
" svc 0 \n" /* System call to start first task. */
|
|
" nop \n"
|
|
);
|
|
}
|
|
800eefa: bf00 nop
|
|
800eefc: e000ed08 .word 0xe000ed08
|
|
|
|
0800ef00 <xPortStartScheduler>:
|
|
|
|
/*
|
|
* See header file for description.
|
|
*/
|
|
BaseType_t xPortStartScheduler( void )
|
|
{
|
|
800ef00: b580 push {r7, lr}
|
|
800ef02: b086 sub sp, #24
|
|
800ef04: af00 add r7, sp, #0
|
|
configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
|
|
|
/* This port can be used on all revisions of the Cortex-M7 core other than
|
|
the r0p1 parts. r0p1 parts should use the port from the
|
|
/source/portable/GCC/ARM_CM7/r0p1 directory. */
|
|
configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );
|
|
800ef06: 4b47 ldr r3, [pc, #284] @ (800f024 <xPortStartScheduler+0x124>)
|
|
800ef08: 681b ldr r3, [r3, #0]
|
|
800ef0a: 4a47 ldr r2, [pc, #284] @ (800f028 <xPortStartScheduler+0x128>)
|
|
800ef0c: 4293 cmp r3, r2
|
|
800ef0e: d10b bne.n 800ef28 <xPortStartScheduler+0x28>
|
|
__asm volatile
|
|
800ef10: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ef14: f383 8811 msr BASEPRI, r3
|
|
800ef18: f3bf 8f6f isb sy
|
|
800ef1c: f3bf 8f4f dsb sy
|
|
800ef20: 613b str r3, [r7, #16]
|
|
}
|
|
800ef22: bf00 nop
|
|
800ef24: bf00 nop
|
|
800ef26: e7fd b.n 800ef24 <xPortStartScheduler+0x24>
|
|
configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );
|
|
800ef28: 4b3e ldr r3, [pc, #248] @ (800f024 <xPortStartScheduler+0x124>)
|
|
800ef2a: 681b ldr r3, [r3, #0]
|
|
800ef2c: 4a3f ldr r2, [pc, #252] @ (800f02c <xPortStartScheduler+0x12c>)
|
|
800ef2e: 4293 cmp r3, r2
|
|
800ef30: d10b bne.n 800ef4a <xPortStartScheduler+0x4a>
|
|
__asm volatile
|
|
800ef32: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800ef36: f383 8811 msr BASEPRI, r3
|
|
800ef3a: f3bf 8f6f isb sy
|
|
800ef3e: f3bf 8f4f dsb sy
|
|
800ef42: 60fb str r3, [r7, #12]
|
|
}
|
|
800ef44: bf00 nop
|
|
800ef46: bf00 nop
|
|
800ef48: e7fd b.n 800ef46 <xPortStartScheduler+0x46>
|
|
|
|
#if( configASSERT_DEFINED == 1 )
|
|
{
|
|
volatile uint32_t ulOriginalPriority;
|
|
volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
|
|
800ef4a: 4b39 ldr r3, [pc, #228] @ (800f030 <xPortStartScheduler+0x130>)
|
|
800ef4c: 617b str r3, [r7, #20]
|
|
functions can be called. ISR safe functions are those that end in
|
|
"FromISR". FreeRTOS maintains separate thread and ISR API functions to
|
|
ensure interrupt entry is as fast and simple as possible.
|
|
|
|
Save the interrupt priority value that is about to be clobbered. */
|
|
ulOriginalPriority = *pucFirstUserPriorityRegister;
|
|
800ef4e: 697b ldr r3, [r7, #20]
|
|
800ef50: 781b ldrb r3, [r3, #0]
|
|
800ef52: b2db uxtb r3, r3
|
|
800ef54: 607b str r3, [r7, #4]
|
|
|
|
/* Determine the number of priority bits available. First write to all
|
|
possible bits. */
|
|
*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
|
|
800ef56: 697b ldr r3, [r7, #20]
|
|
800ef58: 22ff movs r2, #255 @ 0xff
|
|
800ef5a: 701a strb r2, [r3, #0]
|
|
|
|
/* Read the value back to see how many bits stuck. */
|
|
ucMaxPriorityValue = *pucFirstUserPriorityRegister;
|
|
800ef5c: 697b ldr r3, [r7, #20]
|
|
800ef5e: 781b ldrb r3, [r3, #0]
|
|
800ef60: b2db uxtb r3, r3
|
|
800ef62: 70fb strb r3, [r7, #3]
|
|
|
|
/* Use the same mask on the maximum system call priority. */
|
|
ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
|
|
800ef64: 78fb ldrb r3, [r7, #3]
|
|
800ef66: b2db uxtb r3, r3
|
|
800ef68: f003 0350 and.w r3, r3, #80 @ 0x50
|
|
800ef6c: b2da uxtb r2, r3
|
|
800ef6e: 4b31 ldr r3, [pc, #196] @ (800f034 <xPortStartScheduler+0x134>)
|
|
800ef70: 701a strb r2, [r3, #0]
|
|
|
|
/* Calculate the maximum acceptable priority group value for the number
|
|
of bits read back. */
|
|
ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
|
|
800ef72: 4b31 ldr r3, [pc, #196] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800ef74: 2207 movs r2, #7
|
|
800ef76: 601a str r2, [r3, #0]
|
|
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
|
|
800ef78: e009 b.n 800ef8e <xPortStartScheduler+0x8e>
|
|
{
|
|
ulMaxPRIGROUPValue--;
|
|
800ef7a: 4b2f ldr r3, [pc, #188] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800ef7c: 681b ldr r3, [r3, #0]
|
|
800ef7e: 3b01 subs r3, #1
|
|
800ef80: 4a2d ldr r2, [pc, #180] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800ef82: 6013 str r3, [r2, #0]
|
|
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
|
|
800ef84: 78fb ldrb r3, [r7, #3]
|
|
800ef86: b2db uxtb r3, r3
|
|
800ef88: 005b lsls r3, r3, #1
|
|
800ef8a: b2db uxtb r3, r3
|
|
800ef8c: 70fb strb r3, [r7, #3]
|
|
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
|
|
800ef8e: 78fb ldrb r3, [r7, #3]
|
|
800ef90: b2db uxtb r3, r3
|
|
800ef92: f003 0380 and.w r3, r3, #128 @ 0x80
|
|
800ef96: 2b80 cmp r3, #128 @ 0x80
|
|
800ef98: d0ef beq.n 800ef7a <xPortStartScheduler+0x7a>
|
|
#ifdef configPRIO_BITS
|
|
{
|
|
/* Check the FreeRTOS configuration that defines the number of
|
|
priority bits matches the number of priority bits actually queried
|
|
from the hardware. */
|
|
configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
|
|
800ef9a: 4b27 ldr r3, [pc, #156] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800ef9c: 681b ldr r3, [r3, #0]
|
|
800ef9e: f1c3 0307 rsb r3, r3, #7
|
|
800efa2: 2b04 cmp r3, #4
|
|
800efa4: d00b beq.n 800efbe <xPortStartScheduler+0xbe>
|
|
__asm volatile
|
|
800efa6: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800efaa: f383 8811 msr BASEPRI, r3
|
|
800efae: f3bf 8f6f isb sy
|
|
800efb2: f3bf 8f4f dsb sy
|
|
800efb6: 60bb str r3, [r7, #8]
|
|
}
|
|
800efb8: bf00 nop
|
|
800efba: bf00 nop
|
|
800efbc: e7fd b.n 800efba <xPortStartScheduler+0xba>
|
|
}
|
|
#endif
|
|
|
|
/* Shift the priority group value back to its position within the AIRCR
|
|
register. */
|
|
ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
|
|
800efbe: 4b1e ldr r3, [pc, #120] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800efc0: 681b ldr r3, [r3, #0]
|
|
800efc2: 021b lsls r3, r3, #8
|
|
800efc4: 4a1c ldr r2, [pc, #112] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800efc6: 6013 str r3, [r2, #0]
|
|
ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
|
|
800efc8: 4b1b ldr r3, [pc, #108] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800efca: 681b ldr r3, [r3, #0]
|
|
800efcc: f403 63e0 and.w r3, r3, #1792 @ 0x700
|
|
800efd0: 4a19 ldr r2, [pc, #100] @ (800f038 <xPortStartScheduler+0x138>)
|
|
800efd2: 6013 str r3, [r2, #0]
|
|
|
|
/* Restore the clobbered interrupt priority register to its original
|
|
value. */
|
|
*pucFirstUserPriorityRegister = ulOriginalPriority;
|
|
800efd4: 687b ldr r3, [r7, #4]
|
|
800efd6: b2da uxtb r2, r3
|
|
800efd8: 697b ldr r3, [r7, #20]
|
|
800efda: 701a strb r2, [r3, #0]
|
|
}
|
|
#endif /* conifgASSERT_DEFINED */
|
|
|
|
/* Make PendSV and SysTick the lowest priority interrupts. */
|
|
portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
|
|
800efdc: 4b17 ldr r3, [pc, #92] @ (800f03c <xPortStartScheduler+0x13c>)
|
|
800efde: 681b ldr r3, [r3, #0]
|
|
800efe0: 4a16 ldr r2, [pc, #88] @ (800f03c <xPortStartScheduler+0x13c>)
|
|
800efe2: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
|
|
800efe6: 6013 str r3, [r2, #0]
|
|
portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
|
|
800efe8: 4b14 ldr r3, [pc, #80] @ (800f03c <xPortStartScheduler+0x13c>)
|
|
800efea: 681b ldr r3, [r3, #0]
|
|
800efec: 4a13 ldr r2, [pc, #76] @ (800f03c <xPortStartScheduler+0x13c>)
|
|
800efee: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
|
|
800eff2: 6013 str r3, [r2, #0]
|
|
|
|
/* Start the timer that generates the tick ISR. Interrupts are disabled
|
|
here already. */
|
|
vPortSetupTimerInterrupt();
|
|
800eff4: f000 f8da bl 800f1ac <vPortSetupTimerInterrupt>
|
|
|
|
/* Initialise the critical nesting count ready for the first task. */
|
|
uxCriticalNesting = 0;
|
|
800eff8: 4b11 ldr r3, [pc, #68] @ (800f040 <xPortStartScheduler+0x140>)
|
|
800effa: 2200 movs r2, #0
|
|
800effc: 601a str r2, [r3, #0]
|
|
|
|
/* Ensure the VFP is enabled - it should be anyway. */
|
|
vPortEnableVFP();
|
|
800effe: f000 f8f9 bl 800f1f4 <vPortEnableVFP>
|
|
|
|
/* Lazy save always. */
|
|
*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
|
|
800f002: 4b10 ldr r3, [pc, #64] @ (800f044 <xPortStartScheduler+0x144>)
|
|
800f004: 681b ldr r3, [r3, #0]
|
|
800f006: 4a0f ldr r2, [pc, #60] @ (800f044 <xPortStartScheduler+0x144>)
|
|
800f008: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
|
|
800f00c: 6013 str r3, [r2, #0]
|
|
|
|
/* Start the first task. */
|
|
prvPortStartFirstTask();
|
|
800f00e: f7ff ff63 bl 800eed8 <prvPortStartFirstTask>
|
|
exit error function to prevent compiler warnings about a static function
|
|
not being called in the case that the application writer overrides this
|
|
functionality by defining configTASK_RETURN_ADDRESS. Call
|
|
vTaskSwitchContext() so link time optimisation does not remove the
|
|
symbol. */
|
|
vTaskSwitchContext();
|
|
800f012: f7fe fb45 bl 800d6a0 <vTaskSwitchContext>
|
|
prvTaskExitError();
|
|
800f016: f7ff ff1b bl 800ee50 <prvTaskExitError>
|
|
|
|
/* Should not get here! */
|
|
return 0;
|
|
800f01a: 2300 movs r3, #0
|
|
}
|
|
800f01c: 4618 mov r0, r3
|
|
800f01e: 3718 adds r7, #24
|
|
800f020: 46bd mov sp, r7
|
|
800f022: bd80 pop {r7, pc}
|
|
800f024: e000ed00 .word 0xe000ed00
|
|
800f028: 410fc271 .word 0x410fc271
|
|
800f02c: 410fc270 .word 0x410fc270
|
|
800f030: e000e400 .word 0xe000e400
|
|
800f034: 20002504 .word 0x20002504
|
|
800f038: 20002508 .word 0x20002508
|
|
800f03c: e000ed20 .word 0xe000ed20
|
|
800f040: 2000000c .word 0x2000000c
|
|
800f044: e000ef34 .word 0xe000ef34
|
|
|
|
0800f048 <vPortEnterCritical>:
|
|
configASSERT( uxCriticalNesting == 1000UL );
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vPortEnterCritical( void )
|
|
{
|
|
800f048: b480 push {r7}
|
|
800f04a: b083 sub sp, #12
|
|
800f04c: af00 add r7, sp, #0
|
|
__asm volatile
|
|
800f04e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f052: f383 8811 msr BASEPRI, r3
|
|
800f056: f3bf 8f6f isb sy
|
|
800f05a: f3bf 8f4f dsb sy
|
|
800f05e: 607b str r3, [r7, #4]
|
|
}
|
|
800f060: bf00 nop
|
|
portDISABLE_INTERRUPTS();
|
|
uxCriticalNesting++;
|
|
800f062: 4b10 ldr r3, [pc, #64] @ (800f0a4 <vPortEnterCritical+0x5c>)
|
|
800f064: 681b ldr r3, [r3, #0]
|
|
800f066: 3301 adds r3, #1
|
|
800f068: 4a0e ldr r2, [pc, #56] @ (800f0a4 <vPortEnterCritical+0x5c>)
|
|
800f06a: 6013 str r3, [r2, #0]
|
|
/* This is not the interrupt safe version of the enter critical function so
|
|
assert() if it is being called from an interrupt context. Only API
|
|
functions that end in "FromISR" can be used in an interrupt. Only assert if
|
|
the critical nesting count is 1 to protect against recursive calls if the
|
|
assert function also uses a critical section. */
|
|
if( uxCriticalNesting == 1 )
|
|
800f06c: 4b0d ldr r3, [pc, #52] @ (800f0a4 <vPortEnterCritical+0x5c>)
|
|
800f06e: 681b ldr r3, [r3, #0]
|
|
800f070: 2b01 cmp r3, #1
|
|
800f072: d110 bne.n 800f096 <vPortEnterCritical+0x4e>
|
|
{
|
|
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
|
|
800f074: 4b0c ldr r3, [pc, #48] @ (800f0a8 <vPortEnterCritical+0x60>)
|
|
800f076: 681b ldr r3, [r3, #0]
|
|
800f078: b2db uxtb r3, r3
|
|
800f07a: 2b00 cmp r3, #0
|
|
800f07c: d00b beq.n 800f096 <vPortEnterCritical+0x4e>
|
|
__asm volatile
|
|
800f07e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f082: f383 8811 msr BASEPRI, r3
|
|
800f086: f3bf 8f6f isb sy
|
|
800f08a: f3bf 8f4f dsb sy
|
|
800f08e: 603b str r3, [r7, #0]
|
|
}
|
|
800f090: bf00 nop
|
|
800f092: bf00 nop
|
|
800f094: e7fd b.n 800f092 <vPortEnterCritical+0x4a>
|
|
}
|
|
}
|
|
800f096: bf00 nop
|
|
800f098: 370c adds r7, #12
|
|
800f09a: 46bd mov sp, r7
|
|
800f09c: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f0a0: 4770 bx lr
|
|
800f0a2: bf00 nop
|
|
800f0a4: 2000000c .word 0x2000000c
|
|
800f0a8: e000ed04 .word 0xe000ed04
|
|
|
|
0800f0ac <vPortExitCritical>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vPortExitCritical( void )
|
|
{
|
|
800f0ac: b480 push {r7}
|
|
800f0ae: b083 sub sp, #12
|
|
800f0b0: af00 add r7, sp, #0
|
|
configASSERT( uxCriticalNesting );
|
|
800f0b2: 4b12 ldr r3, [pc, #72] @ (800f0fc <vPortExitCritical+0x50>)
|
|
800f0b4: 681b ldr r3, [r3, #0]
|
|
800f0b6: 2b00 cmp r3, #0
|
|
800f0b8: d10b bne.n 800f0d2 <vPortExitCritical+0x26>
|
|
__asm volatile
|
|
800f0ba: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f0be: f383 8811 msr BASEPRI, r3
|
|
800f0c2: f3bf 8f6f isb sy
|
|
800f0c6: f3bf 8f4f dsb sy
|
|
800f0ca: 607b str r3, [r7, #4]
|
|
}
|
|
800f0cc: bf00 nop
|
|
800f0ce: bf00 nop
|
|
800f0d0: e7fd b.n 800f0ce <vPortExitCritical+0x22>
|
|
uxCriticalNesting--;
|
|
800f0d2: 4b0a ldr r3, [pc, #40] @ (800f0fc <vPortExitCritical+0x50>)
|
|
800f0d4: 681b ldr r3, [r3, #0]
|
|
800f0d6: 3b01 subs r3, #1
|
|
800f0d8: 4a08 ldr r2, [pc, #32] @ (800f0fc <vPortExitCritical+0x50>)
|
|
800f0da: 6013 str r3, [r2, #0]
|
|
if( uxCriticalNesting == 0 )
|
|
800f0dc: 4b07 ldr r3, [pc, #28] @ (800f0fc <vPortExitCritical+0x50>)
|
|
800f0de: 681b ldr r3, [r3, #0]
|
|
800f0e0: 2b00 cmp r3, #0
|
|
800f0e2: d105 bne.n 800f0f0 <vPortExitCritical+0x44>
|
|
800f0e4: 2300 movs r3, #0
|
|
800f0e6: 603b str r3, [r7, #0]
|
|
__asm volatile
|
|
800f0e8: 683b ldr r3, [r7, #0]
|
|
800f0ea: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800f0ee: bf00 nop
|
|
{
|
|
portENABLE_INTERRUPTS();
|
|
}
|
|
}
|
|
800f0f0: bf00 nop
|
|
800f0f2: 370c adds r7, #12
|
|
800f0f4: 46bd mov sp, r7
|
|
800f0f6: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f0fa: 4770 bx lr
|
|
800f0fc: 2000000c .word 0x2000000c
|
|
|
|
0800f100 <PendSV_Handler>:
|
|
|
|
void xPortPendSVHandler( void )
|
|
{
|
|
/* This is a naked function. */
|
|
|
|
__asm volatile
|
|
800f100: f3ef 8009 mrs r0, PSP
|
|
800f104: f3bf 8f6f isb sy
|
|
800f108: 4b15 ldr r3, [pc, #84] @ (800f160 <pxCurrentTCBConst>)
|
|
800f10a: 681a ldr r2, [r3, #0]
|
|
800f10c: f01e 0f10 tst.w lr, #16
|
|
800f110: bf08 it eq
|
|
800f112: ed20 8a10 vstmdbeq r0!, {s16-s31}
|
|
800f116: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800f11a: 6010 str r0, [r2, #0]
|
|
800f11c: e92d 0009 stmdb sp!, {r0, r3}
|
|
800f120: f04f 0050 mov.w r0, #80 @ 0x50
|
|
800f124: f380 8811 msr BASEPRI, r0
|
|
800f128: f3bf 8f4f dsb sy
|
|
800f12c: f3bf 8f6f isb sy
|
|
800f130: f7fe fab6 bl 800d6a0 <vTaskSwitchContext>
|
|
800f134: f04f 0000 mov.w r0, #0
|
|
800f138: f380 8811 msr BASEPRI, r0
|
|
800f13c: bc09 pop {r0, r3}
|
|
800f13e: 6819 ldr r1, [r3, #0]
|
|
800f140: 6808 ldr r0, [r1, #0]
|
|
800f142: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800f146: f01e 0f10 tst.w lr, #16
|
|
800f14a: bf08 it eq
|
|
800f14c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
|
|
800f150: f380 8809 msr PSP, r0
|
|
800f154: f3bf 8f6f isb sy
|
|
800f158: 4770 bx lr
|
|
800f15a: bf00 nop
|
|
800f15c: f3af 8000 nop.w
|
|
|
|
0800f160 <pxCurrentTCBConst>:
|
|
800f160: 20001ed8 .word 0x20001ed8
|
|
" \n"
|
|
" .align 4 \n"
|
|
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
|
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
|
|
);
|
|
}
|
|
800f164: bf00 nop
|
|
800f166: bf00 nop
|
|
|
|
0800f168 <xPortSysTickHandler>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void xPortSysTickHandler( void )
|
|
{
|
|
800f168: b580 push {r7, lr}
|
|
800f16a: b082 sub sp, #8
|
|
800f16c: af00 add r7, sp, #0
|
|
__asm volatile
|
|
800f16e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f172: f383 8811 msr BASEPRI, r3
|
|
800f176: f3bf 8f6f isb sy
|
|
800f17a: f3bf 8f4f dsb sy
|
|
800f17e: 607b str r3, [r7, #4]
|
|
}
|
|
800f180: bf00 nop
|
|
save and then restore the interrupt mask value as its value is already
|
|
known. */
|
|
portDISABLE_INTERRUPTS();
|
|
{
|
|
/* Increment the RTOS tick. */
|
|
if( xTaskIncrementTick() != pdFALSE )
|
|
800f182: f7fe f9d3 bl 800d52c <xTaskIncrementTick>
|
|
800f186: 4603 mov r3, r0
|
|
800f188: 2b00 cmp r3, #0
|
|
800f18a: d003 beq.n 800f194 <xPortSysTickHandler+0x2c>
|
|
{
|
|
/* A context switch is required. Context switching is performed in
|
|
the PendSV interrupt. Pend the PendSV interrupt. */
|
|
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
|
|
800f18c: 4b06 ldr r3, [pc, #24] @ (800f1a8 <xPortSysTickHandler+0x40>)
|
|
800f18e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
|
|
800f192: 601a str r2, [r3, #0]
|
|
800f194: 2300 movs r3, #0
|
|
800f196: 603b str r3, [r7, #0]
|
|
__asm volatile
|
|
800f198: 683b ldr r3, [r7, #0]
|
|
800f19a: f383 8811 msr BASEPRI, r3
|
|
}
|
|
800f19e: bf00 nop
|
|
}
|
|
}
|
|
portENABLE_INTERRUPTS();
|
|
}
|
|
800f1a0: bf00 nop
|
|
800f1a2: 3708 adds r7, #8
|
|
800f1a4: 46bd mov sp, r7
|
|
800f1a6: bd80 pop {r7, pc}
|
|
800f1a8: e000ed04 .word 0xe000ed04
|
|
|
|
0800f1ac <vPortSetupTimerInterrupt>:
|
|
/*
|
|
* Setup the systick timer to generate the tick interrupts at the required
|
|
* frequency.
|
|
*/
|
|
__attribute__(( weak )) void vPortSetupTimerInterrupt( void )
|
|
{
|
|
800f1ac: b480 push {r7}
|
|
800f1ae: af00 add r7, sp, #0
|
|
ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
|
|
}
|
|
#endif /* configUSE_TICKLESS_IDLE */
|
|
|
|
/* Stop and clear the SysTick. */
|
|
portNVIC_SYSTICK_CTRL_REG = 0UL;
|
|
800f1b0: 4b0b ldr r3, [pc, #44] @ (800f1e0 <vPortSetupTimerInterrupt+0x34>)
|
|
800f1b2: 2200 movs r2, #0
|
|
800f1b4: 601a str r2, [r3, #0]
|
|
portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
|
|
800f1b6: 4b0b ldr r3, [pc, #44] @ (800f1e4 <vPortSetupTimerInterrupt+0x38>)
|
|
800f1b8: 2200 movs r2, #0
|
|
800f1ba: 601a str r2, [r3, #0]
|
|
|
|
/* Configure SysTick to interrupt at the requested rate. */
|
|
portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
|
|
800f1bc: 4b0a ldr r3, [pc, #40] @ (800f1e8 <vPortSetupTimerInterrupt+0x3c>)
|
|
800f1be: 681b ldr r3, [r3, #0]
|
|
800f1c0: 4a0a ldr r2, [pc, #40] @ (800f1ec <vPortSetupTimerInterrupt+0x40>)
|
|
800f1c2: fba2 2303 umull r2, r3, r2, r3
|
|
800f1c6: 099b lsrs r3, r3, #6
|
|
800f1c8: 4a09 ldr r2, [pc, #36] @ (800f1f0 <vPortSetupTimerInterrupt+0x44>)
|
|
800f1ca: 3b01 subs r3, #1
|
|
800f1cc: 6013 str r3, [r2, #0]
|
|
portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
|
|
800f1ce: 4b04 ldr r3, [pc, #16] @ (800f1e0 <vPortSetupTimerInterrupt+0x34>)
|
|
800f1d0: 2207 movs r2, #7
|
|
800f1d2: 601a str r2, [r3, #0]
|
|
}
|
|
800f1d4: bf00 nop
|
|
800f1d6: 46bd mov sp, r7
|
|
800f1d8: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f1dc: 4770 bx lr
|
|
800f1de: bf00 nop
|
|
800f1e0: e000e010 .word 0xe000e010
|
|
800f1e4: e000e018 .word 0xe000e018
|
|
800f1e8: 20000000 .word 0x20000000
|
|
800f1ec: 10624dd3 .word 0x10624dd3
|
|
800f1f0: e000e014 .word 0xe000e014
|
|
|
|
0800f1f4 <vPortEnableVFP>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
/* This is a naked function. */
|
|
static void vPortEnableVFP( void )
|
|
{
|
|
__asm volatile
|
|
800f1f4: f8df 000c ldr.w r0, [pc, #12] @ 800f204 <vPortEnableVFP+0x10>
|
|
800f1f8: 6801 ldr r1, [r0, #0]
|
|
800f1fa: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
|
|
800f1fe: 6001 str r1, [r0, #0]
|
|
800f200: 4770 bx lr
|
|
" \n"
|
|
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
|
|
" str r1, [r0] \n"
|
|
" bx r14 "
|
|
);
|
|
}
|
|
800f202: bf00 nop
|
|
800f204: e000ed88 .word 0xe000ed88
|
|
|
|
0800f208 <vPortValidateInterruptPriority>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
#if( configASSERT_DEFINED == 1 )
|
|
|
|
void vPortValidateInterruptPriority( void )
|
|
{
|
|
800f208: b480 push {r7}
|
|
800f20a: b085 sub sp, #20
|
|
800f20c: af00 add r7, sp, #0
|
|
uint32_t ulCurrentInterrupt;
|
|
uint8_t ucCurrentPriority;
|
|
|
|
/* Obtain the number of the currently executing interrupt. */
|
|
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
|
|
800f20e: f3ef 8305 mrs r3, IPSR
|
|
800f212: 60fb str r3, [r7, #12]
|
|
|
|
/* Is the interrupt number a user defined interrupt? */
|
|
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
|
|
800f214: 68fb ldr r3, [r7, #12]
|
|
800f216: 2b0f cmp r3, #15
|
|
800f218: d915 bls.n 800f246 <vPortValidateInterruptPriority+0x3e>
|
|
{
|
|
/* Look up the interrupt's priority. */
|
|
ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
|
|
800f21a: 4a18 ldr r2, [pc, #96] @ (800f27c <vPortValidateInterruptPriority+0x74>)
|
|
800f21c: 68fb ldr r3, [r7, #12]
|
|
800f21e: 4413 add r3, r2
|
|
800f220: 781b ldrb r3, [r3, #0]
|
|
800f222: 72fb strb r3, [r7, #11]
|
|
interrupt entry is as fast and simple as possible.
|
|
|
|
The following links provide detailed information:
|
|
http://www.freertos.org/RTOS-Cortex-M3-M4.html
|
|
http://www.freertos.org/FAQHelp.html */
|
|
configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
|
|
800f224: 4b16 ldr r3, [pc, #88] @ (800f280 <vPortValidateInterruptPriority+0x78>)
|
|
800f226: 781b ldrb r3, [r3, #0]
|
|
800f228: 7afa ldrb r2, [r7, #11]
|
|
800f22a: 429a cmp r2, r3
|
|
800f22c: d20b bcs.n 800f246 <vPortValidateInterruptPriority+0x3e>
|
|
__asm volatile
|
|
800f22e: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f232: f383 8811 msr BASEPRI, r3
|
|
800f236: f3bf 8f6f isb sy
|
|
800f23a: f3bf 8f4f dsb sy
|
|
800f23e: 607b str r3, [r7, #4]
|
|
}
|
|
800f240: bf00 nop
|
|
800f242: bf00 nop
|
|
800f244: e7fd b.n 800f242 <vPortValidateInterruptPriority+0x3a>
|
|
configuration then the correct setting can be achieved on all Cortex-M
|
|
devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
|
|
scheduler. Note however that some vendor specific peripheral libraries
|
|
assume a non-zero priority group setting, in which cases using a value
|
|
of zero will result in unpredictable behaviour. */
|
|
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
|
|
800f246: 4b0f ldr r3, [pc, #60] @ (800f284 <vPortValidateInterruptPriority+0x7c>)
|
|
800f248: 681b ldr r3, [r3, #0]
|
|
800f24a: f403 62e0 and.w r2, r3, #1792 @ 0x700
|
|
800f24e: 4b0e ldr r3, [pc, #56] @ (800f288 <vPortValidateInterruptPriority+0x80>)
|
|
800f250: 681b ldr r3, [r3, #0]
|
|
800f252: 429a cmp r2, r3
|
|
800f254: d90b bls.n 800f26e <vPortValidateInterruptPriority+0x66>
|
|
__asm volatile
|
|
800f256: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f25a: f383 8811 msr BASEPRI, r3
|
|
800f25e: f3bf 8f6f isb sy
|
|
800f262: f3bf 8f4f dsb sy
|
|
800f266: 603b str r3, [r7, #0]
|
|
}
|
|
800f268: bf00 nop
|
|
800f26a: bf00 nop
|
|
800f26c: e7fd b.n 800f26a <vPortValidateInterruptPriority+0x62>
|
|
}
|
|
800f26e: bf00 nop
|
|
800f270: 3714 adds r7, #20
|
|
800f272: 46bd mov sp, r7
|
|
800f274: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f278: 4770 bx lr
|
|
800f27a: bf00 nop
|
|
800f27c: e000e3f0 .word 0xe000e3f0
|
|
800f280: 20002504 .word 0x20002504
|
|
800f284: e000ed0c .word 0xe000ed0c
|
|
800f288: 20002508 .word 0x20002508
|
|
|
|
0800f28c <pvPortMalloc>:
|
|
static size_t xBlockAllocatedBit = 0;
|
|
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void *pvPortMalloc( size_t xWantedSize )
|
|
{
|
|
800f28c: b580 push {r7, lr}
|
|
800f28e: b08a sub sp, #40 @ 0x28
|
|
800f290: af00 add r7, sp, #0
|
|
800f292: 6078 str r0, [r7, #4]
|
|
BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
|
|
void *pvReturn = NULL;
|
|
800f294: 2300 movs r3, #0
|
|
800f296: 61fb str r3, [r7, #28]
|
|
|
|
vTaskSuspendAll();
|
|
800f298: f7fe f87a bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
/* If this is the first call to malloc then the heap will require
|
|
initialisation to setup the list of free blocks. */
|
|
if( pxEnd == NULL )
|
|
800f29c: 4b5c ldr r3, [pc, #368] @ (800f410 <pvPortMalloc+0x184>)
|
|
800f29e: 681b ldr r3, [r3, #0]
|
|
800f2a0: 2b00 cmp r3, #0
|
|
800f2a2: d101 bne.n 800f2a8 <pvPortMalloc+0x1c>
|
|
{
|
|
prvHeapInit();
|
|
800f2a4: f000 f924 bl 800f4f0 <prvHeapInit>
|
|
|
|
/* Check the requested block size is not so large that the top bit is
|
|
set. The top bit of the block size member of the BlockLink_t structure
|
|
is used to determine who owns the block - the application or the
|
|
kernel, so it must be free. */
|
|
if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
|
|
800f2a8: 4b5a ldr r3, [pc, #360] @ (800f414 <pvPortMalloc+0x188>)
|
|
800f2aa: 681a ldr r2, [r3, #0]
|
|
800f2ac: 687b ldr r3, [r7, #4]
|
|
800f2ae: 4013 ands r3, r2
|
|
800f2b0: 2b00 cmp r3, #0
|
|
800f2b2: f040 8095 bne.w 800f3e0 <pvPortMalloc+0x154>
|
|
{
|
|
/* The wanted size is increased so it can contain a BlockLink_t
|
|
structure in addition to the requested amount of bytes. */
|
|
if( xWantedSize > 0 )
|
|
800f2b6: 687b ldr r3, [r7, #4]
|
|
800f2b8: 2b00 cmp r3, #0
|
|
800f2ba: d01e beq.n 800f2fa <pvPortMalloc+0x6e>
|
|
{
|
|
xWantedSize += xHeapStructSize;
|
|
800f2bc: 2208 movs r2, #8
|
|
800f2be: 687b ldr r3, [r7, #4]
|
|
800f2c0: 4413 add r3, r2
|
|
800f2c2: 607b str r3, [r7, #4]
|
|
|
|
/* Ensure that blocks are always aligned to the required number
|
|
of bytes. */
|
|
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
|
|
800f2c4: 687b ldr r3, [r7, #4]
|
|
800f2c6: f003 0307 and.w r3, r3, #7
|
|
800f2ca: 2b00 cmp r3, #0
|
|
800f2cc: d015 beq.n 800f2fa <pvPortMalloc+0x6e>
|
|
{
|
|
/* Byte alignment required. */
|
|
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
|
800f2ce: 687b ldr r3, [r7, #4]
|
|
800f2d0: f023 0307 bic.w r3, r3, #7
|
|
800f2d4: 3308 adds r3, #8
|
|
800f2d6: 607b str r3, [r7, #4]
|
|
configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
800f2d8: 687b ldr r3, [r7, #4]
|
|
800f2da: f003 0307 and.w r3, r3, #7
|
|
800f2de: 2b00 cmp r3, #0
|
|
800f2e0: d00b beq.n 800f2fa <pvPortMalloc+0x6e>
|
|
__asm volatile
|
|
800f2e2: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f2e6: f383 8811 msr BASEPRI, r3
|
|
800f2ea: f3bf 8f6f isb sy
|
|
800f2ee: f3bf 8f4f dsb sy
|
|
800f2f2: 617b str r3, [r7, #20]
|
|
}
|
|
800f2f4: bf00 nop
|
|
800f2f6: bf00 nop
|
|
800f2f8: e7fd b.n 800f2f6 <pvPortMalloc+0x6a>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
|
800f2fa: 687b ldr r3, [r7, #4]
|
|
800f2fc: 2b00 cmp r3, #0
|
|
800f2fe: d06f beq.n 800f3e0 <pvPortMalloc+0x154>
|
|
800f300: 4b45 ldr r3, [pc, #276] @ (800f418 <pvPortMalloc+0x18c>)
|
|
800f302: 681b ldr r3, [r3, #0]
|
|
800f304: 687a ldr r2, [r7, #4]
|
|
800f306: 429a cmp r2, r3
|
|
800f308: d86a bhi.n 800f3e0 <pvPortMalloc+0x154>
|
|
{
|
|
/* Traverse the list from the start (lowest address) block until
|
|
one of adequate size is found. */
|
|
pxPreviousBlock = &xStart;
|
|
800f30a: 4b44 ldr r3, [pc, #272] @ (800f41c <pvPortMalloc+0x190>)
|
|
800f30c: 623b str r3, [r7, #32]
|
|
pxBlock = xStart.pxNextFreeBlock;
|
|
800f30e: 4b43 ldr r3, [pc, #268] @ (800f41c <pvPortMalloc+0x190>)
|
|
800f310: 681b ldr r3, [r3, #0]
|
|
800f312: 627b str r3, [r7, #36] @ 0x24
|
|
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
|
|
800f314: e004 b.n 800f320 <pvPortMalloc+0x94>
|
|
{
|
|
pxPreviousBlock = pxBlock;
|
|
800f316: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f318: 623b str r3, [r7, #32]
|
|
pxBlock = pxBlock->pxNextFreeBlock;
|
|
800f31a: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f31c: 681b ldr r3, [r3, #0]
|
|
800f31e: 627b str r3, [r7, #36] @ 0x24
|
|
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
|
|
800f320: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f322: 685b ldr r3, [r3, #4]
|
|
800f324: 687a ldr r2, [r7, #4]
|
|
800f326: 429a cmp r2, r3
|
|
800f328: d903 bls.n 800f332 <pvPortMalloc+0xa6>
|
|
800f32a: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f32c: 681b ldr r3, [r3, #0]
|
|
800f32e: 2b00 cmp r3, #0
|
|
800f330: d1f1 bne.n 800f316 <pvPortMalloc+0x8a>
|
|
}
|
|
|
|
/* If the end marker was reached then a block of adequate size
|
|
was not found. */
|
|
if( pxBlock != pxEnd )
|
|
800f332: 4b37 ldr r3, [pc, #220] @ (800f410 <pvPortMalloc+0x184>)
|
|
800f334: 681b ldr r3, [r3, #0]
|
|
800f336: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800f338: 429a cmp r2, r3
|
|
800f33a: d051 beq.n 800f3e0 <pvPortMalloc+0x154>
|
|
{
|
|
/* Return the memory space pointed to - jumping over the
|
|
BlockLink_t structure at its start. */
|
|
pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
|
|
800f33c: 6a3b ldr r3, [r7, #32]
|
|
800f33e: 681b ldr r3, [r3, #0]
|
|
800f340: 2208 movs r2, #8
|
|
800f342: 4413 add r3, r2
|
|
800f344: 61fb str r3, [r7, #28]
|
|
|
|
/* This block is being returned for use so must be taken out
|
|
of the list of free blocks. */
|
|
pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
|
|
800f346: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f348: 681a ldr r2, [r3, #0]
|
|
800f34a: 6a3b ldr r3, [r7, #32]
|
|
800f34c: 601a str r2, [r3, #0]
|
|
|
|
/* If the block is larger than required it can be split into
|
|
two. */
|
|
if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
|
|
800f34e: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f350: 685a ldr r2, [r3, #4]
|
|
800f352: 687b ldr r3, [r7, #4]
|
|
800f354: 1ad2 subs r2, r2, r3
|
|
800f356: 2308 movs r3, #8
|
|
800f358: 005b lsls r3, r3, #1
|
|
800f35a: 429a cmp r2, r3
|
|
800f35c: d920 bls.n 800f3a0 <pvPortMalloc+0x114>
|
|
{
|
|
/* This block is to be split into two. Create a new
|
|
block following the number of bytes requested. The void
|
|
cast is used to prevent byte alignment warnings from the
|
|
compiler. */
|
|
pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
|
|
800f35e: 6a7a ldr r2, [r7, #36] @ 0x24
|
|
800f360: 687b ldr r3, [r7, #4]
|
|
800f362: 4413 add r3, r2
|
|
800f364: 61bb str r3, [r7, #24]
|
|
configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
800f366: 69bb ldr r3, [r7, #24]
|
|
800f368: f003 0307 and.w r3, r3, #7
|
|
800f36c: 2b00 cmp r3, #0
|
|
800f36e: d00b beq.n 800f388 <pvPortMalloc+0xfc>
|
|
__asm volatile
|
|
800f370: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f374: f383 8811 msr BASEPRI, r3
|
|
800f378: f3bf 8f6f isb sy
|
|
800f37c: f3bf 8f4f dsb sy
|
|
800f380: 613b str r3, [r7, #16]
|
|
}
|
|
800f382: bf00 nop
|
|
800f384: bf00 nop
|
|
800f386: e7fd b.n 800f384 <pvPortMalloc+0xf8>
|
|
|
|
/* Calculate the sizes of two blocks split from the
|
|
single block. */
|
|
pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
|
|
800f388: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f38a: 685a ldr r2, [r3, #4]
|
|
800f38c: 687b ldr r3, [r7, #4]
|
|
800f38e: 1ad2 subs r2, r2, r3
|
|
800f390: 69bb ldr r3, [r7, #24]
|
|
800f392: 605a str r2, [r3, #4]
|
|
pxBlock->xBlockSize = xWantedSize;
|
|
800f394: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f396: 687a ldr r2, [r7, #4]
|
|
800f398: 605a str r2, [r3, #4]
|
|
|
|
/* Insert the new block into the list of free blocks. */
|
|
prvInsertBlockIntoFreeList( pxNewBlockLink );
|
|
800f39a: 69b8 ldr r0, [r7, #24]
|
|
800f39c: f000 f90a bl 800f5b4 <prvInsertBlockIntoFreeList>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
|
800f3a0: 4b1d ldr r3, [pc, #116] @ (800f418 <pvPortMalloc+0x18c>)
|
|
800f3a2: 681a ldr r2, [r3, #0]
|
|
800f3a4: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f3a6: 685b ldr r3, [r3, #4]
|
|
800f3a8: 1ad3 subs r3, r2, r3
|
|
800f3aa: 4a1b ldr r2, [pc, #108] @ (800f418 <pvPortMalloc+0x18c>)
|
|
800f3ac: 6013 str r3, [r2, #0]
|
|
|
|
if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
|
|
800f3ae: 4b1a ldr r3, [pc, #104] @ (800f418 <pvPortMalloc+0x18c>)
|
|
800f3b0: 681a ldr r2, [r3, #0]
|
|
800f3b2: 4b1b ldr r3, [pc, #108] @ (800f420 <pvPortMalloc+0x194>)
|
|
800f3b4: 681b ldr r3, [r3, #0]
|
|
800f3b6: 429a cmp r2, r3
|
|
800f3b8: d203 bcs.n 800f3c2 <pvPortMalloc+0x136>
|
|
{
|
|
xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
|
|
800f3ba: 4b17 ldr r3, [pc, #92] @ (800f418 <pvPortMalloc+0x18c>)
|
|
800f3bc: 681b ldr r3, [r3, #0]
|
|
800f3be: 4a18 ldr r2, [pc, #96] @ (800f420 <pvPortMalloc+0x194>)
|
|
800f3c0: 6013 str r3, [r2, #0]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* The block is being returned - it is allocated and owned
|
|
by the application and has no "next" block. */
|
|
pxBlock->xBlockSize |= xBlockAllocatedBit;
|
|
800f3c2: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f3c4: 685a ldr r2, [r3, #4]
|
|
800f3c6: 4b13 ldr r3, [pc, #76] @ (800f414 <pvPortMalloc+0x188>)
|
|
800f3c8: 681b ldr r3, [r3, #0]
|
|
800f3ca: 431a orrs r2, r3
|
|
800f3cc: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f3ce: 605a str r2, [r3, #4]
|
|
pxBlock->pxNextFreeBlock = NULL;
|
|
800f3d0: 6a7b ldr r3, [r7, #36] @ 0x24
|
|
800f3d2: 2200 movs r2, #0
|
|
800f3d4: 601a str r2, [r3, #0]
|
|
xNumberOfSuccessfulAllocations++;
|
|
800f3d6: 4b13 ldr r3, [pc, #76] @ (800f424 <pvPortMalloc+0x198>)
|
|
800f3d8: 681b ldr r3, [r3, #0]
|
|
800f3da: 3301 adds r3, #1
|
|
800f3dc: 4a11 ldr r2, [pc, #68] @ (800f424 <pvPortMalloc+0x198>)
|
|
800f3de: 6013 str r3, [r2, #0]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
traceMALLOC( pvReturn, xWantedSize );
|
|
}
|
|
( void ) xTaskResumeAll();
|
|
800f3e0: f7fd ffe4 bl 800d3ac <xTaskResumeAll>
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
#endif
|
|
|
|
configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
800f3e4: 69fb ldr r3, [r7, #28]
|
|
800f3e6: f003 0307 and.w r3, r3, #7
|
|
800f3ea: 2b00 cmp r3, #0
|
|
800f3ec: d00b beq.n 800f406 <pvPortMalloc+0x17a>
|
|
__asm volatile
|
|
800f3ee: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f3f2: f383 8811 msr BASEPRI, r3
|
|
800f3f6: f3bf 8f6f isb sy
|
|
800f3fa: f3bf 8f4f dsb sy
|
|
800f3fe: 60fb str r3, [r7, #12]
|
|
}
|
|
800f400: bf00 nop
|
|
800f402: bf00 nop
|
|
800f404: e7fd b.n 800f402 <pvPortMalloc+0x176>
|
|
return pvReturn;
|
|
800f406: 69fb ldr r3, [r7, #28]
|
|
}
|
|
800f408: 4618 mov r0, r3
|
|
800f40a: 3728 adds r7, #40 @ 0x28
|
|
800f40c: 46bd mov sp, r7
|
|
800f40e: bd80 pop {r7, pc}
|
|
800f410: 20008824 .word 0x20008824
|
|
800f414: 20008838 .word 0x20008838
|
|
800f418: 20008828 .word 0x20008828
|
|
800f41c: 2000881c .word 0x2000881c
|
|
800f420: 2000882c .word 0x2000882c
|
|
800f424: 20008830 .word 0x20008830
|
|
|
|
0800f428 <vPortFree>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vPortFree( void *pv )
|
|
{
|
|
800f428: b580 push {r7, lr}
|
|
800f42a: b086 sub sp, #24
|
|
800f42c: af00 add r7, sp, #0
|
|
800f42e: 6078 str r0, [r7, #4]
|
|
uint8_t *puc = ( uint8_t * ) pv;
|
|
800f430: 687b ldr r3, [r7, #4]
|
|
800f432: 617b str r3, [r7, #20]
|
|
BlockLink_t *pxLink;
|
|
|
|
if( pv != NULL )
|
|
800f434: 687b ldr r3, [r7, #4]
|
|
800f436: 2b00 cmp r3, #0
|
|
800f438: d04f beq.n 800f4da <vPortFree+0xb2>
|
|
{
|
|
/* The memory being freed will have an BlockLink_t structure immediately
|
|
before it. */
|
|
puc -= xHeapStructSize;
|
|
800f43a: 2308 movs r3, #8
|
|
800f43c: 425b negs r3, r3
|
|
800f43e: 697a ldr r2, [r7, #20]
|
|
800f440: 4413 add r3, r2
|
|
800f442: 617b str r3, [r7, #20]
|
|
|
|
/* This casting is to keep the compiler from issuing warnings. */
|
|
pxLink = ( void * ) puc;
|
|
800f444: 697b ldr r3, [r7, #20]
|
|
800f446: 613b str r3, [r7, #16]
|
|
|
|
/* Check the block is actually allocated. */
|
|
configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
|
|
800f448: 693b ldr r3, [r7, #16]
|
|
800f44a: 685a ldr r2, [r3, #4]
|
|
800f44c: 4b25 ldr r3, [pc, #148] @ (800f4e4 <vPortFree+0xbc>)
|
|
800f44e: 681b ldr r3, [r3, #0]
|
|
800f450: 4013 ands r3, r2
|
|
800f452: 2b00 cmp r3, #0
|
|
800f454: d10b bne.n 800f46e <vPortFree+0x46>
|
|
__asm volatile
|
|
800f456: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f45a: f383 8811 msr BASEPRI, r3
|
|
800f45e: f3bf 8f6f isb sy
|
|
800f462: f3bf 8f4f dsb sy
|
|
800f466: 60fb str r3, [r7, #12]
|
|
}
|
|
800f468: bf00 nop
|
|
800f46a: bf00 nop
|
|
800f46c: e7fd b.n 800f46a <vPortFree+0x42>
|
|
configASSERT( pxLink->pxNextFreeBlock == NULL );
|
|
800f46e: 693b ldr r3, [r7, #16]
|
|
800f470: 681b ldr r3, [r3, #0]
|
|
800f472: 2b00 cmp r3, #0
|
|
800f474: d00b beq.n 800f48e <vPortFree+0x66>
|
|
__asm volatile
|
|
800f476: f04f 0350 mov.w r3, #80 @ 0x50
|
|
800f47a: f383 8811 msr BASEPRI, r3
|
|
800f47e: f3bf 8f6f isb sy
|
|
800f482: f3bf 8f4f dsb sy
|
|
800f486: 60bb str r3, [r7, #8]
|
|
}
|
|
800f488: bf00 nop
|
|
800f48a: bf00 nop
|
|
800f48c: e7fd b.n 800f48a <vPortFree+0x62>
|
|
|
|
if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
|
|
800f48e: 693b ldr r3, [r7, #16]
|
|
800f490: 685a ldr r2, [r3, #4]
|
|
800f492: 4b14 ldr r3, [pc, #80] @ (800f4e4 <vPortFree+0xbc>)
|
|
800f494: 681b ldr r3, [r3, #0]
|
|
800f496: 4013 ands r3, r2
|
|
800f498: 2b00 cmp r3, #0
|
|
800f49a: d01e beq.n 800f4da <vPortFree+0xb2>
|
|
{
|
|
if( pxLink->pxNextFreeBlock == NULL )
|
|
800f49c: 693b ldr r3, [r7, #16]
|
|
800f49e: 681b ldr r3, [r3, #0]
|
|
800f4a0: 2b00 cmp r3, #0
|
|
800f4a2: d11a bne.n 800f4da <vPortFree+0xb2>
|
|
{
|
|
/* The block is being returned to the heap - it is no longer
|
|
allocated. */
|
|
pxLink->xBlockSize &= ~xBlockAllocatedBit;
|
|
800f4a4: 693b ldr r3, [r7, #16]
|
|
800f4a6: 685a ldr r2, [r3, #4]
|
|
800f4a8: 4b0e ldr r3, [pc, #56] @ (800f4e4 <vPortFree+0xbc>)
|
|
800f4aa: 681b ldr r3, [r3, #0]
|
|
800f4ac: 43db mvns r3, r3
|
|
800f4ae: 401a ands r2, r3
|
|
800f4b0: 693b ldr r3, [r7, #16]
|
|
800f4b2: 605a str r2, [r3, #4]
|
|
|
|
vTaskSuspendAll();
|
|
800f4b4: f7fd ff6c bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
/* Add this block to the list of free blocks. */
|
|
xFreeBytesRemaining += pxLink->xBlockSize;
|
|
800f4b8: 693b ldr r3, [r7, #16]
|
|
800f4ba: 685a ldr r2, [r3, #4]
|
|
800f4bc: 4b0a ldr r3, [pc, #40] @ (800f4e8 <vPortFree+0xc0>)
|
|
800f4be: 681b ldr r3, [r3, #0]
|
|
800f4c0: 4413 add r3, r2
|
|
800f4c2: 4a09 ldr r2, [pc, #36] @ (800f4e8 <vPortFree+0xc0>)
|
|
800f4c4: 6013 str r3, [r2, #0]
|
|
traceFREE( pv, pxLink->xBlockSize );
|
|
prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
|
|
800f4c6: 6938 ldr r0, [r7, #16]
|
|
800f4c8: f000 f874 bl 800f5b4 <prvInsertBlockIntoFreeList>
|
|
xNumberOfSuccessfulFrees++;
|
|
800f4cc: 4b07 ldr r3, [pc, #28] @ (800f4ec <vPortFree+0xc4>)
|
|
800f4ce: 681b ldr r3, [r3, #0]
|
|
800f4d0: 3301 adds r3, #1
|
|
800f4d2: 4a06 ldr r2, [pc, #24] @ (800f4ec <vPortFree+0xc4>)
|
|
800f4d4: 6013 str r3, [r2, #0]
|
|
}
|
|
( void ) xTaskResumeAll();
|
|
800f4d6: f7fd ff69 bl 800d3ac <xTaskResumeAll>
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
}
|
|
800f4da: bf00 nop
|
|
800f4dc: 3718 adds r7, #24
|
|
800f4de: 46bd mov sp, r7
|
|
800f4e0: bd80 pop {r7, pc}
|
|
800f4e2: bf00 nop
|
|
800f4e4: 20008838 .word 0x20008838
|
|
800f4e8: 20008828 .word 0x20008828
|
|
800f4ec: 20008834 .word 0x20008834
|
|
|
|
0800f4f0 <prvHeapInit>:
|
|
/* This just exists to keep the linker quiet. */
|
|
}
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvHeapInit( void )
|
|
{
|
|
800f4f0: b480 push {r7}
|
|
800f4f2: b085 sub sp, #20
|
|
800f4f4: af00 add r7, sp, #0
|
|
BlockLink_t *pxFirstFreeBlock;
|
|
uint8_t *pucAlignedHeap;
|
|
size_t uxAddress;
|
|
size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
|
|
800f4f6: f246 3310 movw r3, #25360 @ 0x6310
|
|
800f4fa: 60bb str r3, [r7, #8]
|
|
|
|
/* Ensure the heap starts on a correctly aligned boundary. */
|
|
uxAddress = ( size_t ) ucHeap;
|
|
800f4fc: 4b27 ldr r3, [pc, #156] @ (800f59c <prvHeapInit+0xac>)
|
|
800f4fe: 60fb str r3, [r7, #12]
|
|
|
|
if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
|
|
800f500: 68fb ldr r3, [r7, #12]
|
|
800f502: f003 0307 and.w r3, r3, #7
|
|
800f506: 2b00 cmp r3, #0
|
|
800f508: d00c beq.n 800f524 <prvHeapInit+0x34>
|
|
{
|
|
uxAddress += ( portBYTE_ALIGNMENT - 1 );
|
|
800f50a: 68fb ldr r3, [r7, #12]
|
|
800f50c: 3307 adds r3, #7
|
|
800f50e: 60fb str r3, [r7, #12]
|
|
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
|
|
800f510: 68fb ldr r3, [r7, #12]
|
|
800f512: f023 0307 bic.w r3, r3, #7
|
|
800f516: 60fb str r3, [r7, #12]
|
|
xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
|
|
800f518: 68ba ldr r2, [r7, #8]
|
|
800f51a: 68fb ldr r3, [r7, #12]
|
|
800f51c: 1ad3 subs r3, r2, r3
|
|
800f51e: 4a1f ldr r2, [pc, #124] @ (800f59c <prvHeapInit+0xac>)
|
|
800f520: 4413 add r3, r2
|
|
800f522: 60bb str r3, [r7, #8]
|
|
}
|
|
|
|
pucAlignedHeap = ( uint8_t * ) uxAddress;
|
|
800f524: 68fb ldr r3, [r7, #12]
|
|
800f526: 607b str r3, [r7, #4]
|
|
|
|
/* xStart is used to hold a pointer to the first item in the list of free
|
|
blocks. The void cast is used to prevent compiler warnings. */
|
|
xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
|
|
800f528: 4a1d ldr r2, [pc, #116] @ (800f5a0 <prvHeapInit+0xb0>)
|
|
800f52a: 687b ldr r3, [r7, #4]
|
|
800f52c: 6013 str r3, [r2, #0]
|
|
xStart.xBlockSize = ( size_t ) 0;
|
|
800f52e: 4b1c ldr r3, [pc, #112] @ (800f5a0 <prvHeapInit+0xb0>)
|
|
800f530: 2200 movs r2, #0
|
|
800f532: 605a str r2, [r3, #4]
|
|
|
|
/* pxEnd is used to mark the end of the list of free blocks and is inserted
|
|
at the end of the heap space. */
|
|
uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
|
|
800f534: 687b ldr r3, [r7, #4]
|
|
800f536: 68ba ldr r2, [r7, #8]
|
|
800f538: 4413 add r3, r2
|
|
800f53a: 60fb str r3, [r7, #12]
|
|
uxAddress -= xHeapStructSize;
|
|
800f53c: 2208 movs r2, #8
|
|
800f53e: 68fb ldr r3, [r7, #12]
|
|
800f540: 1a9b subs r3, r3, r2
|
|
800f542: 60fb str r3, [r7, #12]
|
|
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
|
|
800f544: 68fb ldr r3, [r7, #12]
|
|
800f546: f023 0307 bic.w r3, r3, #7
|
|
800f54a: 60fb str r3, [r7, #12]
|
|
pxEnd = ( void * ) uxAddress;
|
|
800f54c: 68fb ldr r3, [r7, #12]
|
|
800f54e: 4a15 ldr r2, [pc, #84] @ (800f5a4 <prvHeapInit+0xb4>)
|
|
800f550: 6013 str r3, [r2, #0]
|
|
pxEnd->xBlockSize = 0;
|
|
800f552: 4b14 ldr r3, [pc, #80] @ (800f5a4 <prvHeapInit+0xb4>)
|
|
800f554: 681b ldr r3, [r3, #0]
|
|
800f556: 2200 movs r2, #0
|
|
800f558: 605a str r2, [r3, #4]
|
|
pxEnd->pxNextFreeBlock = NULL;
|
|
800f55a: 4b12 ldr r3, [pc, #72] @ (800f5a4 <prvHeapInit+0xb4>)
|
|
800f55c: 681b ldr r3, [r3, #0]
|
|
800f55e: 2200 movs r2, #0
|
|
800f560: 601a str r2, [r3, #0]
|
|
|
|
/* To start with there is a single free block that is sized to take up the
|
|
entire heap space, minus the space taken by pxEnd. */
|
|
pxFirstFreeBlock = ( void * ) pucAlignedHeap;
|
|
800f562: 687b ldr r3, [r7, #4]
|
|
800f564: 603b str r3, [r7, #0]
|
|
pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
|
|
800f566: 683b ldr r3, [r7, #0]
|
|
800f568: 68fa ldr r2, [r7, #12]
|
|
800f56a: 1ad2 subs r2, r2, r3
|
|
800f56c: 683b ldr r3, [r7, #0]
|
|
800f56e: 605a str r2, [r3, #4]
|
|
pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
|
|
800f570: 4b0c ldr r3, [pc, #48] @ (800f5a4 <prvHeapInit+0xb4>)
|
|
800f572: 681a ldr r2, [r3, #0]
|
|
800f574: 683b ldr r3, [r7, #0]
|
|
800f576: 601a str r2, [r3, #0]
|
|
|
|
/* Only one block exists - and it covers the entire usable heap space. */
|
|
xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
|
|
800f578: 683b ldr r3, [r7, #0]
|
|
800f57a: 685b ldr r3, [r3, #4]
|
|
800f57c: 4a0a ldr r2, [pc, #40] @ (800f5a8 <prvHeapInit+0xb8>)
|
|
800f57e: 6013 str r3, [r2, #0]
|
|
xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
|
|
800f580: 683b ldr r3, [r7, #0]
|
|
800f582: 685b ldr r3, [r3, #4]
|
|
800f584: 4a09 ldr r2, [pc, #36] @ (800f5ac <prvHeapInit+0xbc>)
|
|
800f586: 6013 str r3, [r2, #0]
|
|
|
|
/* Work out the position of the top bit in a size_t variable. */
|
|
xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
|
|
800f588: 4b09 ldr r3, [pc, #36] @ (800f5b0 <prvHeapInit+0xc0>)
|
|
800f58a: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
|
|
800f58e: 601a str r2, [r3, #0]
|
|
}
|
|
800f590: bf00 nop
|
|
800f592: 3714 adds r7, #20
|
|
800f594: 46bd mov sp, r7
|
|
800f596: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f59a: 4770 bx lr
|
|
800f59c: 2000250c .word 0x2000250c
|
|
800f5a0: 2000881c .word 0x2000881c
|
|
800f5a4: 20008824 .word 0x20008824
|
|
800f5a8: 2000882c .word 0x2000882c
|
|
800f5ac: 20008828 .word 0x20008828
|
|
800f5b0: 20008838 .word 0x20008838
|
|
|
|
0800f5b4 <prvInsertBlockIntoFreeList>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
|
|
{
|
|
800f5b4: b480 push {r7}
|
|
800f5b6: b085 sub sp, #20
|
|
800f5b8: af00 add r7, sp, #0
|
|
800f5ba: 6078 str r0, [r7, #4]
|
|
BlockLink_t *pxIterator;
|
|
uint8_t *puc;
|
|
|
|
/* Iterate through the list until a block is found that has a higher address
|
|
than the block being inserted. */
|
|
for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
|
|
800f5bc: 4b28 ldr r3, [pc, #160] @ (800f660 <prvInsertBlockIntoFreeList+0xac>)
|
|
800f5be: 60fb str r3, [r7, #12]
|
|
800f5c0: e002 b.n 800f5c8 <prvInsertBlockIntoFreeList+0x14>
|
|
800f5c2: 68fb ldr r3, [r7, #12]
|
|
800f5c4: 681b ldr r3, [r3, #0]
|
|
800f5c6: 60fb str r3, [r7, #12]
|
|
800f5c8: 68fb ldr r3, [r7, #12]
|
|
800f5ca: 681b ldr r3, [r3, #0]
|
|
800f5cc: 687a ldr r2, [r7, #4]
|
|
800f5ce: 429a cmp r2, r3
|
|
800f5d0: d8f7 bhi.n 800f5c2 <prvInsertBlockIntoFreeList+0xe>
|
|
/* Nothing to do here, just iterate to the right position. */
|
|
}
|
|
|
|
/* Do the block being inserted, and the block it is being inserted after
|
|
make a contiguous block of memory? */
|
|
puc = ( uint8_t * ) pxIterator;
|
|
800f5d2: 68fb ldr r3, [r7, #12]
|
|
800f5d4: 60bb str r3, [r7, #8]
|
|
if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
|
|
800f5d6: 68fb ldr r3, [r7, #12]
|
|
800f5d8: 685b ldr r3, [r3, #4]
|
|
800f5da: 68ba ldr r2, [r7, #8]
|
|
800f5dc: 4413 add r3, r2
|
|
800f5de: 687a ldr r2, [r7, #4]
|
|
800f5e0: 429a cmp r2, r3
|
|
800f5e2: d108 bne.n 800f5f6 <prvInsertBlockIntoFreeList+0x42>
|
|
{
|
|
pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
|
|
800f5e4: 68fb ldr r3, [r7, #12]
|
|
800f5e6: 685a ldr r2, [r3, #4]
|
|
800f5e8: 687b ldr r3, [r7, #4]
|
|
800f5ea: 685b ldr r3, [r3, #4]
|
|
800f5ec: 441a add r2, r3
|
|
800f5ee: 68fb ldr r3, [r7, #12]
|
|
800f5f0: 605a str r2, [r3, #4]
|
|
pxBlockToInsert = pxIterator;
|
|
800f5f2: 68fb ldr r3, [r7, #12]
|
|
800f5f4: 607b str r3, [r7, #4]
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
|
|
/* Do the block being inserted, and the block it is being inserted before
|
|
make a contiguous block of memory? */
|
|
puc = ( uint8_t * ) pxBlockToInsert;
|
|
800f5f6: 687b ldr r3, [r7, #4]
|
|
800f5f8: 60bb str r3, [r7, #8]
|
|
if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
|
|
800f5fa: 687b ldr r3, [r7, #4]
|
|
800f5fc: 685b ldr r3, [r3, #4]
|
|
800f5fe: 68ba ldr r2, [r7, #8]
|
|
800f600: 441a add r2, r3
|
|
800f602: 68fb ldr r3, [r7, #12]
|
|
800f604: 681b ldr r3, [r3, #0]
|
|
800f606: 429a cmp r2, r3
|
|
800f608: d118 bne.n 800f63c <prvInsertBlockIntoFreeList+0x88>
|
|
{
|
|
if( pxIterator->pxNextFreeBlock != pxEnd )
|
|
800f60a: 68fb ldr r3, [r7, #12]
|
|
800f60c: 681a ldr r2, [r3, #0]
|
|
800f60e: 4b15 ldr r3, [pc, #84] @ (800f664 <prvInsertBlockIntoFreeList+0xb0>)
|
|
800f610: 681b ldr r3, [r3, #0]
|
|
800f612: 429a cmp r2, r3
|
|
800f614: d00d beq.n 800f632 <prvInsertBlockIntoFreeList+0x7e>
|
|
{
|
|
/* Form one big block from the two blocks. */
|
|
pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
|
|
800f616: 687b ldr r3, [r7, #4]
|
|
800f618: 685a ldr r2, [r3, #4]
|
|
800f61a: 68fb ldr r3, [r7, #12]
|
|
800f61c: 681b ldr r3, [r3, #0]
|
|
800f61e: 685b ldr r3, [r3, #4]
|
|
800f620: 441a add r2, r3
|
|
800f622: 687b ldr r3, [r7, #4]
|
|
800f624: 605a str r2, [r3, #4]
|
|
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
|
|
800f626: 68fb ldr r3, [r7, #12]
|
|
800f628: 681b ldr r3, [r3, #0]
|
|
800f62a: 681a ldr r2, [r3, #0]
|
|
800f62c: 687b ldr r3, [r7, #4]
|
|
800f62e: 601a str r2, [r3, #0]
|
|
800f630: e008 b.n 800f644 <prvInsertBlockIntoFreeList+0x90>
|
|
}
|
|
else
|
|
{
|
|
pxBlockToInsert->pxNextFreeBlock = pxEnd;
|
|
800f632: 4b0c ldr r3, [pc, #48] @ (800f664 <prvInsertBlockIntoFreeList+0xb0>)
|
|
800f634: 681a ldr r2, [r3, #0]
|
|
800f636: 687b ldr r3, [r7, #4]
|
|
800f638: 601a str r2, [r3, #0]
|
|
800f63a: e003 b.n 800f644 <prvInsertBlockIntoFreeList+0x90>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
|
|
800f63c: 68fb ldr r3, [r7, #12]
|
|
800f63e: 681a ldr r2, [r3, #0]
|
|
800f640: 687b ldr r3, [r7, #4]
|
|
800f642: 601a str r2, [r3, #0]
|
|
|
|
/* If the block being inserted plugged a gab, so was merged with the block
|
|
before and the block after, then it's pxNextFreeBlock pointer will have
|
|
already been set, and should not be set here as that would make it point
|
|
to itself. */
|
|
if( pxIterator != pxBlockToInsert )
|
|
800f644: 68fa ldr r2, [r7, #12]
|
|
800f646: 687b ldr r3, [r7, #4]
|
|
800f648: 429a cmp r2, r3
|
|
800f64a: d002 beq.n 800f652 <prvInsertBlockIntoFreeList+0x9e>
|
|
{
|
|
pxIterator->pxNextFreeBlock = pxBlockToInsert;
|
|
800f64c: 68fb ldr r3, [r7, #12]
|
|
800f64e: 687a ldr r2, [r7, #4]
|
|
800f650: 601a str r2, [r3, #0]
|
|
}
|
|
else
|
|
{
|
|
mtCOVERAGE_TEST_MARKER();
|
|
}
|
|
}
|
|
800f652: bf00 nop
|
|
800f654: 3714 adds r7, #20
|
|
800f656: 46bd mov sp, r7
|
|
800f658: f85d 7b04 ldr.w r7, [sp], #4
|
|
800f65c: 4770 bx lr
|
|
800f65e: bf00 nop
|
|
800f660: 2000881c .word 0x2000881c
|
|
800f664: 20008824 .word 0x20008824
|
|
|
|
0800f668 <vPortGetHeapStats>:
|
|
/*-----------------------------------------------------------*/
|
|
|
|
void vPortGetHeapStats( HeapStats_t *pxHeapStats )
|
|
{
|
|
800f668: b580 push {r7, lr}
|
|
800f66a: b086 sub sp, #24
|
|
800f66c: af00 add r7, sp, #0
|
|
800f66e: 6078 str r0, [r7, #4]
|
|
BlockLink_t *pxBlock;
|
|
size_t xBlocks = 0, xMaxSize = 0, xMinSize = portMAX_DELAY; /* portMAX_DELAY used as a portable way of getting the maximum value. */
|
|
800f670: 2300 movs r3, #0
|
|
800f672: 613b str r3, [r7, #16]
|
|
800f674: 2300 movs r3, #0
|
|
800f676: 60fb str r3, [r7, #12]
|
|
800f678: f04f 33ff mov.w r3, #4294967295
|
|
800f67c: 60bb str r3, [r7, #8]
|
|
|
|
vTaskSuspendAll();
|
|
800f67e: f7fd fe87 bl 800d390 <vTaskSuspendAll>
|
|
{
|
|
pxBlock = xStart.pxNextFreeBlock;
|
|
800f682: 4b22 ldr r3, [pc, #136] @ (800f70c <vPortGetHeapStats+0xa4>)
|
|
800f684: 681b ldr r3, [r3, #0]
|
|
800f686: 617b str r3, [r7, #20]
|
|
|
|
/* pxBlock will be NULL if the heap has not been initialised. The heap
|
|
is initialised automatically when the first allocation is made. */
|
|
if( pxBlock != NULL )
|
|
800f688: 697b ldr r3, [r7, #20]
|
|
800f68a: 2b00 cmp r3, #0
|
|
800f68c: d01a beq.n 800f6c4 <vPortGetHeapStats+0x5c>
|
|
{
|
|
do
|
|
{
|
|
/* Increment the number of blocks and record the largest block seen
|
|
so far. */
|
|
xBlocks++;
|
|
800f68e: 693b ldr r3, [r7, #16]
|
|
800f690: 3301 adds r3, #1
|
|
800f692: 613b str r3, [r7, #16]
|
|
|
|
if( pxBlock->xBlockSize > xMaxSize )
|
|
800f694: 697b ldr r3, [r7, #20]
|
|
800f696: 685b ldr r3, [r3, #4]
|
|
800f698: 68fa ldr r2, [r7, #12]
|
|
800f69a: 429a cmp r2, r3
|
|
800f69c: d202 bcs.n 800f6a4 <vPortGetHeapStats+0x3c>
|
|
{
|
|
xMaxSize = pxBlock->xBlockSize;
|
|
800f69e: 697b ldr r3, [r7, #20]
|
|
800f6a0: 685b ldr r3, [r3, #4]
|
|
800f6a2: 60fb str r3, [r7, #12]
|
|
}
|
|
|
|
if( pxBlock->xBlockSize < xMinSize )
|
|
800f6a4: 697b ldr r3, [r7, #20]
|
|
800f6a6: 685b ldr r3, [r3, #4]
|
|
800f6a8: 68ba ldr r2, [r7, #8]
|
|
800f6aa: 429a cmp r2, r3
|
|
800f6ac: d902 bls.n 800f6b4 <vPortGetHeapStats+0x4c>
|
|
{
|
|
xMinSize = pxBlock->xBlockSize;
|
|
800f6ae: 697b ldr r3, [r7, #20]
|
|
800f6b0: 685b ldr r3, [r3, #4]
|
|
800f6b2: 60bb str r3, [r7, #8]
|
|
}
|
|
|
|
/* Move to the next block in the chain until the last block is
|
|
reached. */
|
|
pxBlock = pxBlock->pxNextFreeBlock;
|
|
800f6b4: 697b ldr r3, [r7, #20]
|
|
800f6b6: 681b ldr r3, [r3, #0]
|
|
800f6b8: 617b str r3, [r7, #20]
|
|
} while( pxBlock != pxEnd );
|
|
800f6ba: 4b15 ldr r3, [pc, #84] @ (800f710 <vPortGetHeapStats+0xa8>)
|
|
800f6bc: 681b ldr r3, [r3, #0]
|
|
800f6be: 697a ldr r2, [r7, #20]
|
|
800f6c0: 429a cmp r2, r3
|
|
800f6c2: d1e4 bne.n 800f68e <vPortGetHeapStats+0x26>
|
|
}
|
|
}
|
|
xTaskResumeAll();
|
|
800f6c4: f7fd fe72 bl 800d3ac <xTaskResumeAll>
|
|
|
|
pxHeapStats->xSizeOfLargestFreeBlockInBytes = xMaxSize;
|
|
800f6c8: 687b ldr r3, [r7, #4]
|
|
800f6ca: 68fa ldr r2, [r7, #12]
|
|
800f6cc: 605a str r2, [r3, #4]
|
|
pxHeapStats->xSizeOfSmallestFreeBlockInBytes = xMinSize;
|
|
800f6ce: 687b ldr r3, [r7, #4]
|
|
800f6d0: 68ba ldr r2, [r7, #8]
|
|
800f6d2: 609a str r2, [r3, #8]
|
|
pxHeapStats->xNumberOfFreeBlocks = xBlocks;
|
|
800f6d4: 687b ldr r3, [r7, #4]
|
|
800f6d6: 693a ldr r2, [r7, #16]
|
|
800f6d8: 60da str r2, [r3, #12]
|
|
|
|
taskENTER_CRITICAL();
|
|
800f6da: f7ff fcb5 bl 800f048 <vPortEnterCritical>
|
|
{
|
|
pxHeapStats->xAvailableHeapSpaceInBytes = xFreeBytesRemaining;
|
|
800f6de: 4b0d ldr r3, [pc, #52] @ (800f714 <vPortGetHeapStats+0xac>)
|
|
800f6e0: 681a ldr r2, [r3, #0]
|
|
800f6e2: 687b ldr r3, [r7, #4]
|
|
800f6e4: 601a str r2, [r3, #0]
|
|
pxHeapStats->xNumberOfSuccessfulAllocations = xNumberOfSuccessfulAllocations;
|
|
800f6e6: 4b0c ldr r3, [pc, #48] @ (800f718 <vPortGetHeapStats+0xb0>)
|
|
800f6e8: 681a ldr r2, [r3, #0]
|
|
800f6ea: 687b ldr r3, [r7, #4]
|
|
800f6ec: 615a str r2, [r3, #20]
|
|
pxHeapStats->xNumberOfSuccessfulFrees = xNumberOfSuccessfulFrees;
|
|
800f6ee: 4b0b ldr r3, [pc, #44] @ (800f71c <vPortGetHeapStats+0xb4>)
|
|
800f6f0: 681a ldr r2, [r3, #0]
|
|
800f6f2: 687b ldr r3, [r7, #4]
|
|
800f6f4: 619a str r2, [r3, #24]
|
|
pxHeapStats->xMinimumEverFreeBytesRemaining = xMinimumEverFreeBytesRemaining;
|
|
800f6f6: 4b0a ldr r3, [pc, #40] @ (800f720 <vPortGetHeapStats+0xb8>)
|
|
800f6f8: 681a ldr r2, [r3, #0]
|
|
800f6fa: 687b ldr r3, [r7, #4]
|
|
800f6fc: 611a str r2, [r3, #16]
|
|
}
|
|
taskEXIT_CRITICAL();
|
|
800f6fe: f7ff fcd5 bl 800f0ac <vPortExitCritical>
|
|
}
|
|
800f702: bf00 nop
|
|
800f704: 3718 adds r7, #24
|
|
800f706: 46bd mov sp, r7
|
|
800f708: bd80 pop {r7, pc}
|
|
800f70a: bf00 nop
|
|
800f70c: 2000881c .word 0x2000881c
|
|
800f710: 20008824 .word 0x20008824
|
|
800f714: 20008828 .word 0x20008828
|
|
800f718: 20008830 .word 0x20008830
|
|
800f71c: 20008834 .word 0x20008834
|
|
800f720: 2000882c .word 0x2000882c
|
|
|
|
0800f724 <_ZdlPvj>:
|
|
800f724: f000 b95a b.w 800f9dc <_ZdlPv>
|
|
|
|
0800f728 <_ZdaPv>:
|
|
800f728: f000 b958 b.w 800f9dc <_ZdlPv>
|
|
|
|
0800f72c <_Znwj>:
|
|
800f72c: 2801 cmp r0, #1
|
|
800f72e: bf38 it cc
|
|
800f730: 2001 movcc r0, #1
|
|
800f732: b510 push {r4, lr}
|
|
800f734: 4604 mov r4, r0
|
|
800f736: 4620 mov r0, r4
|
|
800f738: f000 fa02 bl 800fb40 <malloc>
|
|
800f73c: b100 cbz r0, 800f740 <_Znwj+0x14>
|
|
800f73e: bd10 pop {r4, pc}
|
|
800f740: f000 f94e bl 800f9e0 <_ZSt15get_new_handlerv>
|
|
800f744: b908 cbnz r0, 800f74a <_Znwj+0x1e>
|
|
800f746: f000 f9ed bl 800fb24 <abort>
|
|
800f74a: 4780 blx r0
|
|
800f74c: e7f3 b.n 800f736 <_Znwj+0xa>
|
|
|
|
0800f74e <_Znaj>:
|
|
800f74e: f7ff bfed b.w 800f72c <_Znwj>
|
|
|
|
0800f752 <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_>:
|
|
800f752: 68c3 ldr r3, [r0, #12]
|
|
800f754: 689a ldr r2, [r3, #8]
|
|
800f756: 60c2 str r2, [r0, #12]
|
|
800f758: b510 push {r4, lr}
|
|
800f75a: b102 cbz r2, 800f75e <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_+0xc>
|
|
800f75c: 6050 str r0, [r2, #4]
|
|
800f75e: 6842 ldr r2, [r0, #4]
|
|
800f760: 605a str r2, [r3, #4]
|
|
800f762: 680c ldr r4, [r1, #0]
|
|
800f764: 4284 cmp r4, r0
|
|
800f766: d103 bne.n 800f770 <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_+0x1e>
|
|
800f768: 600b str r3, [r1, #0]
|
|
800f76a: 6098 str r0, [r3, #8]
|
|
800f76c: 6043 str r3, [r0, #4]
|
|
800f76e: bd10 pop {r4, pc}
|
|
800f770: 6891 ldr r1, [r2, #8]
|
|
800f772: 4281 cmp r1, r0
|
|
800f774: bf0c ite eq
|
|
800f776: 6093 streq r3, [r2, #8]
|
|
800f778: 60d3 strne r3, [r2, #12]
|
|
800f77a: e7f6 b.n 800f76a <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_+0x18>
|
|
|
|
0800f77c <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_>:
|
|
800f77c: 6883 ldr r3, [r0, #8]
|
|
800f77e: 68da ldr r2, [r3, #12]
|
|
800f780: 6082 str r2, [r0, #8]
|
|
800f782: b510 push {r4, lr}
|
|
800f784: b102 cbz r2, 800f788 <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_+0xc>
|
|
800f786: 6050 str r0, [r2, #4]
|
|
800f788: 6842 ldr r2, [r0, #4]
|
|
800f78a: 605a str r2, [r3, #4]
|
|
800f78c: 680c ldr r4, [r1, #0]
|
|
800f78e: 4284 cmp r4, r0
|
|
800f790: d103 bne.n 800f79a <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_+0x1e>
|
|
800f792: 600b str r3, [r1, #0]
|
|
800f794: 60d8 str r0, [r3, #12]
|
|
800f796: 6043 str r3, [r0, #4]
|
|
800f798: bd10 pop {r4, pc}
|
|
800f79a: 68d1 ldr r1, [r2, #12]
|
|
800f79c: 4281 cmp r1, r0
|
|
800f79e: bf0c ite eq
|
|
800f7a0: 60d3 streq r3, [r2, #12]
|
|
800f7a2: 6093 strne r3, [r2, #8]
|
|
800f7a4: e7f6 b.n 800f794 <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_+0x18>
|
|
|
|
0800f7a6 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base>:
|
|
800f7a6: 68c3 ldr r3, [r0, #12]
|
|
800f7a8: b123 cbz r3, 800f7b4 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base+0xe>
|
|
800f7aa: 4618 mov r0, r3
|
|
800f7ac: 689b ldr r3, [r3, #8]
|
|
800f7ae: 2b00 cmp r3, #0
|
|
800f7b0: d1fb bne.n 800f7aa <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base+0x4>
|
|
800f7b2: 4770 bx lr
|
|
800f7b4: 6843 ldr r3, [r0, #4]
|
|
800f7b6: 68da ldr r2, [r3, #12]
|
|
800f7b8: 4282 cmp r2, r0
|
|
800f7ba: d004 beq.n 800f7c6 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base+0x20>
|
|
800f7bc: 68c2 ldr r2, [r0, #12]
|
|
800f7be: 4293 cmp r3, r2
|
|
800f7c0: bf18 it ne
|
|
800f7c2: 4618 movne r0, r3
|
|
800f7c4: 4770 bx lr
|
|
800f7c6: 4618 mov r0, r3
|
|
800f7c8: 685b ldr r3, [r3, #4]
|
|
800f7ca: e7f4 b.n 800f7b6 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base+0x10>
|
|
|
|
0800f7cc <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base>:
|
|
800f7cc: 7802 ldrb r2, [r0, #0]
|
|
800f7ce: 4603 mov r3, r0
|
|
800f7d0: b92a cbnz r2, 800f7de <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x12>
|
|
800f7d2: 6842 ldr r2, [r0, #4]
|
|
800f7d4: 6852 ldr r2, [r2, #4]
|
|
800f7d6: 4282 cmp r2, r0
|
|
800f7d8: d101 bne.n 800f7de <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x12>
|
|
800f7da: 68d0 ldr r0, [r2, #12]
|
|
800f7dc: 4770 bx lr
|
|
800f7de: 689a ldr r2, [r3, #8]
|
|
800f7e0: b122 cbz r2, 800f7ec <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x20>
|
|
800f7e2: 4610 mov r0, r2
|
|
800f7e4: 68d2 ldr r2, [r2, #12]
|
|
800f7e6: 2a00 cmp r2, #0
|
|
800f7e8: d1fb bne.n 800f7e2 <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x16>
|
|
800f7ea: 4770 bx lr
|
|
800f7ec: 6858 ldr r0, [r3, #4]
|
|
800f7ee: 6882 ldr r2, [r0, #8]
|
|
800f7f0: 429a cmp r2, r3
|
|
800f7f2: d000 beq.n 800f7f6 <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x2a>
|
|
800f7f4: 4770 bx lr
|
|
800f7f6: 4603 mov r3, r0
|
|
800f7f8: 6840 ldr r0, [r0, #4]
|
|
800f7fa: e7f8 b.n 800f7ee <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base+0x22>
|
|
|
|
0800f7fc <_ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base>:
|
|
800f7fc: f7ff bfd3 b.w 800f7a6 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base>
|
|
|
|
0800f800 <_ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base>:
|
|
800f800: f7ff bfd1 b.w 800f7a6 <_ZStL23local_Rb_tree_incrementPSt18_Rb_tree_node_base>
|
|
|
|
0800f804 <_ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base>:
|
|
800f804: f7ff bfe2 b.w 800f7cc <_ZStL23local_Rb_tree_decrementPSt18_Rb_tree_node_base>
|
|
|
|
0800f808 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_>:
|
|
800f808: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
|
|
800f80c: 461d mov r5, r3
|
|
800f80e: 1d1f adds r7, r3, #4
|
|
800f810: 2300 movs r3, #0
|
|
800f812: e9c1 3302 strd r3, r3, [r1, #8]
|
|
800f816: 460c mov r4, r1
|
|
800f818: 604a str r2, [r1, #4]
|
|
800f81a: 700b strb r3, [r1, #0]
|
|
800f81c: b1a0 cbz r0, 800f848 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x40>
|
|
800f81e: 4295 cmp r5, r2
|
|
800f820: 6091 str r1, [r2, #8]
|
|
800f822: d102 bne.n 800f82a <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x22>
|
|
800f824: 6069 str r1, [r5, #4]
|
|
800f826: 60ec str r4, [r5, #12]
|
|
800f828: e003 b.n 800f832 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x2a>
|
|
800f82a: 68ab ldr r3, [r5, #8]
|
|
800f82c: 4293 cmp r3, r2
|
|
800f82e: bf08 it eq
|
|
800f830: 60a9 streq r1, [r5, #8]
|
|
800f832: f04f 0900 mov.w r9, #0
|
|
800f836: f04f 0801 mov.w r8, #1
|
|
800f83a: 686b ldr r3, [r5, #4]
|
|
800f83c: 42a3 cmp r3, r4
|
|
800f83e: d132 bne.n 800f8a6 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x9e>
|
|
800f840: 2201 movs r2, #1
|
|
800f842: 701a strb r2, [r3, #0]
|
|
800f844: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
|
|
800f848: 60d1 str r1, [r2, #12]
|
|
800f84a: 68eb ldr r3, [r5, #12]
|
|
800f84c: 4293 cmp r3, r2
|
|
800f84e: d1f0 bne.n 800f832 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x2a>
|
|
800f850: e7e9 b.n 800f826 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x1e>
|
|
800f852: 68c3 ldr r3, [r0, #12]
|
|
800f854: 42a3 cmp r3, r4
|
|
800f856: d103 bne.n 800f860 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x58>
|
|
800f858: 4639 mov r1, r7
|
|
800f85a: f7ff ff7a bl 800f752 <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_>
|
|
800f85e: 4604 mov r4, r0
|
|
800f860: 6863 ldr r3, [r4, #4]
|
|
800f862: 4639 mov r1, r7
|
|
800f864: f883 8000 strb.w r8, [r3]
|
|
800f868: 4630 mov r0, r6
|
|
800f86a: f886 9000 strb.w r9, [r6]
|
|
800f86e: f7ff ff85 bl 800f77c <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_>
|
|
800f872: e7e2 b.n 800f83a <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x32>
|
|
800f874: b133 cbz r3, 800f884 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x7c>
|
|
800f876: 781a ldrb r2, [r3, #0]
|
|
800f878: b922 cbnz r2, 800f884 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x7c>
|
|
800f87a: f880 8000 strb.w r8, [r0]
|
|
800f87e: f883 8000 strb.w r8, [r3]
|
|
800f882: e021 b.n 800f8c8 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0xc0>
|
|
800f884: 6883 ldr r3, [r0, #8]
|
|
800f886: 42a3 cmp r3, r4
|
|
800f888: d103 bne.n 800f892 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x8a>
|
|
800f88a: 4639 mov r1, r7
|
|
800f88c: f7ff ff76 bl 800f77c <_ZStL26local_Rb_tree_rotate_rightPSt18_Rb_tree_node_baseRS0_>
|
|
800f890: 4604 mov r4, r0
|
|
800f892: 6863 ldr r3, [r4, #4]
|
|
800f894: 4639 mov r1, r7
|
|
800f896: f883 8000 strb.w r8, [r3]
|
|
800f89a: 4630 mov r0, r6
|
|
800f89c: f886 9000 strb.w r9, [r6]
|
|
800f8a0: f7ff ff57 bl 800f752 <_ZStL25local_Rb_tree_rotate_leftPSt18_Rb_tree_node_baseRS0_>
|
|
800f8a4: e7c9 b.n 800f83a <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x32>
|
|
800f8a6: 6860 ldr r0, [r4, #4]
|
|
800f8a8: 7802 ldrb r2, [r0, #0]
|
|
800f8aa: 2a00 cmp r2, #0
|
|
800f8ac: d1c8 bne.n 800f840 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x38>
|
|
800f8ae: 6846 ldr r6, [r0, #4]
|
|
800f8b0: 68b3 ldr r3, [r6, #8]
|
|
800f8b2: 4283 cmp r3, r0
|
|
800f8b4: d1de bne.n 800f874 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x6c>
|
|
800f8b6: 68f2 ldr r2, [r6, #12]
|
|
800f8b8: 2a00 cmp r2, #0
|
|
800f8ba: d0ca beq.n 800f852 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x4a>
|
|
800f8bc: 7811 ldrb r1, [r2, #0]
|
|
800f8be: 2900 cmp r1, #0
|
|
800f8c0: d1c7 bne.n 800f852 <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x4a>
|
|
800f8c2: 2101 movs r1, #1
|
|
800f8c4: 7019 strb r1, [r3, #0]
|
|
800f8c6: 7011 strb r1, [r2, #0]
|
|
800f8c8: f886 9000 strb.w r9, [r6]
|
|
800f8cc: 4634 mov r4, r6
|
|
800f8ce: e7b4 b.n 800f83a <_ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_+0x32>
|
|
|
|
0800f8d0 <_ZSt17__throw_bad_allocv>:
|
|
800f8d0: b508 push {r3, lr}
|
|
800f8d2: f000 f927 bl 800fb24 <abort>
|
|
|
|
0800f8d6 <_ZSt28__throw_bad_array_new_lengthv>:
|
|
800f8d6: b508 push {r3, lr}
|
|
800f8d8: f000 f924 bl 800fb24 <abort>
|
|
|
|
0800f8dc <_ZSt20__throw_length_errorPKc>:
|
|
800f8dc: b508 push {r3, lr}
|
|
800f8de: f000 f921 bl 800fb24 <abort>
|
|
|
|
0800f8e2 <_ZSt25__throw_bad_function_callv>:
|
|
800f8e2: b508 push {r3, lr}
|
|
800f8e4: f000 f91e bl 800fb24 <abort>
|
|
|
|
0800f8e8 <_ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info>:
|
|
800f8e8: 4901 ldr r1, [pc, #4] @ (800f8f0 <_ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info+0x8>)
|
|
800f8ea: f000 b905 b.w 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800f8ee: bf00 nop
|
|
800f8f0: 080132ec .word 0x080132ec
|
|
|
|
0800f8f4 <_ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv>:
|
|
800f8f4: b57f push {r0, r1, r2, r3, r4, r5, r6, lr}
|
|
800f8f6: 2400 movs r4, #0
|
|
800f8f8: 2310 movs r3, #16
|
|
800f8fa: e9cd 3402 strd r3, r4, [sp, #8]
|
|
800f8fe: 6803 ldr r3, [r0, #0]
|
|
800f900: 4615 mov r5, r2
|
|
800f902: 699e ldr r6, [r3, #24]
|
|
800f904: 6812 ldr r2, [r2, #0]
|
|
800f906: 466b mov r3, sp
|
|
800f908: e9cd 4400 strd r4, r4, [sp]
|
|
800f90c: 47b0 blx r6
|
|
800f90e: f89d 3004 ldrb.w r3, [sp, #4]
|
|
800f912: f003 0306 and.w r3, r3, #6
|
|
800f916: 2b06 cmp r3, #6
|
|
800f918: bf03 ittte eq
|
|
800f91a: 9b00 ldreq r3, [sp, #0]
|
|
800f91c: 602b streq r3, [r5, #0]
|
|
800f91e: 2001 moveq r0, #1
|
|
800f920: 4620 movne r0, r4
|
|
800f922: b004 add sp, #16
|
|
800f924: bd70 pop {r4, r5, r6, pc}
|
|
|
|
0800f926 <_ZNK10__cxxabiv117__class_type_info20__do_find_public_srcEiPKvPKS0_S2_>:
|
|
800f926: 9800 ldr r0, [sp, #0]
|
|
800f928: 4290 cmp r0, r2
|
|
800f92a: bf0c ite eq
|
|
800f92c: 2006 moveq r0, #6
|
|
800f92e: 2001 movne r0, #1
|
|
800f930: 4770 bx lr
|
|
...
|
|
|
|
0800f934 <_ZN10__cxxabiv117__class_type_infoD1Ev>:
|
|
800f934: b510 push {r4, lr}
|
|
800f936: 4b03 ldr r3, [pc, #12] @ (800f944 <_ZN10__cxxabiv117__class_type_infoD1Ev+0x10>)
|
|
800f938: 6003 str r3, [r0, #0]
|
|
800f93a: 4604 mov r4, r0
|
|
800f93c: f000 f8d9 bl 800faf2 <_ZNSt9type_infoD1Ev>
|
|
800f940: 4620 mov r0, r4
|
|
800f942: bd10 pop {r4, pc}
|
|
800f944: 0801332c .word 0x0801332c
|
|
|
|
0800f948 <_ZN10__cxxabiv117__class_type_infoD0Ev>:
|
|
800f948: b510 push {r4, lr}
|
|
800f94a: 4604 mov r4, r0
|
|
800f94c: f7ff fff2 bl 800f934 <_ZN10__cxxabiv117__class_type_infoD1Ev>
|
|
800f950: 4620 mov r0, r4
|
|
800f952: 2108 movs r1, #8
|
|
800f954: f7ff fee6 bl 800f724 <_ZdlPvj>
|
|
800f958: 4620 mov r0, r4
|
|
800f95a: bd10 pop {r4, pc}
|
|
|
|
0800f95c <_ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE>:
|
|
800f95c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
800f960: 461f mov r7, r3
|
|
800f962: e9dd 3408 ldrd r3, r4, [sp, #32]
|
|
800f966: f8dd 8018 ldr.w r8, [sp, #24]
|
|
800f96a: 4598 cmp r8, r3
|
|
800f96c: 4606 mov r6, r0
|
|
800f96e: 4615 mov r5, r2
|
|
800f970: d107 bne.n 800f982 <_ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE+0x26>
|
|
800f972: 9907 ldr r1, [sp, #28]
|
|
800f974: f000 f8c0 bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800f978: b118 cbz r0, 800f982 <_ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE+0x26>
|
|
800f97a: 7165 strb r5, [r4, #5]
|
|
800f97c: 2000 movs r0, #0
|
|
800f97e: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
800f982: 4639 mov r1, r7
|
|
800f984: 4630 mov r0, r6
|
|
800f986: f000 f8b7 bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800f98a: 2800 cmp r0, #0
|
|
800f98c: d0f6 beq.n 800f97c <_ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE+0x20>
|
|
800f98e: 2301 movs r3, #1
|
|
800f990: f8c4 8000 str.w r8, [r4]
|
|
800f994: 7125 strb r5, [r4, #4]
|
|
800f996: 71a3 strb r3, [r4, #6]
|
|
800f998: e7f0 b.n 800f97c <_ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE+0x20>
|
|
|
|
0800f99a <_ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE>:
|
|
800f99a: b538 push {r3, r4, r5, lr}
|
|
800f99c: 4615 mov r5, r2
|
|
800f99e: 461c mov r4, r3
|
|
800f9a0: f000 f8aa bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800f9a4: b120 cbz r0, 800f9b0 <_ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE+0x16>
|
|
800f9a6: 2308 movs r3, #8
|
|
800f9a8: 60e3 str r3, [r4, #12]
|
|
800f9aa: 2306 movs r3, #6
|
|
800f9ac: 6025 str r5, [r4, #0]
|
|
800f9ae: 7123 strb r3, [r4, #4]
|
|
800f9b0: bd38 pop {r3, r4, r5, pc}
|
|
|
|
0800f9b2 <_ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj>:
|
|
800f9b2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
800f9b6: 4605 mov r5, r0
|
|
800f9b8: 460c mov r4, r1
|
|
800f9ba: 4616 mov r6, r2
|
|
800f9bc: 461f mov r7, r3
|
|
800f9be: f000 f89b bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800f9c2: b948 cbnz r0, 800f9d8 <_ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj+0x26>
|
|
800f9c4: 2f03 cmp r7, #3
|
|
800f9c6: d807 bhi.n 800f9d8 <_ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj+0x26>
|
|
800f9c8: 6823 ldr r3, [r4, #0]
|
|
800f9ca: 4632 mov r2, r6
|
|
800f9cc: 4629 mov r1, r5
|
|
800f9ce: 4620 mov r0, r4
|
|
800f9d0: 695b ldr r3, [r3, #20]
|
|
800f9d2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
|
|
800f9d6: 4718 bx r3
|
|
800f9d8: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
|
|
0800f9dc <_ZdlPv>:
|
|
800f9dc: f000 b8b8 b.w 800fb50 <free>
|
|
|
|
0800f9e0 <_ZSt15get_new_handlerv>:
|
|
800f9e0: 4b02 ldr r3, [pc, #8] @ (800f9ec <_ZSt15get_new_handlerv+0xc>)
|
|
800f9e2: 6818 ldr r0, [r3, #0]
|
|
800f9e4: f3bf 8f5b dmb ish
|
|
800f9e8: 4770 bx lr
|
|
800f9ea: bf00 nop
|
|
800f9ec: 2000883c .word 0x2000883c
|
|
|
|
0800f9f0 <_ZN10__cxxabiv120__si_class_type_infoD1Ev>:
|
|
800f9f0: b510 push {r4, lr}
|
|
800f9f2: 4b03 ldr r3, [pc, #12] @ (800fa00 <_ZN10__cxxabiv120__si_class_type_infoD1Ev+0x10>)
|
|
800f9f4: 6003 str r3, [r0, #0]
|
|
800f9f6: 4604 mov r4, r0
|
|
800f9f8: f7ff ff9c bl 800f934 <_ZN10__cxxabiv117__class_type_infoD1Ev>
|
|
800f9fc: 4620 mov r0, r4
|
|
800f9fe: bd10 pop {r4, pc}
|
|
800fa00: 0801338c .word 0x0801338c
|
|
|
|
0800fa04 <_ZN10__cxxabiv120__si_class_type_infoD0Ev>:
|
|
800fa04: b510 push {r4, lr}
|
|
800fa06: 4604 mov r4, r0
|
|
800fa08: f7ff fff2 bl 800f9f0 <_ZN10__cxxabiv120__si_class_type_infoD1Ev>
|
|
800fa0c: 4620 mov r0, r4
|
|
800fa0e: 210c movs r1, #12
|
|
800fa10: f7ff fe88 bl 800f724 <_ZdlPvj>
|
|
800fa14: 4620 mov r0, r4
|
|
800fa16: bd10 pop {r4, pc}
|
|
|
|
0800fa18 <_ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_>:
|
|
800fa18: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
800fa1c: f8dd 8018 ldr.w r8, [sp, #24]
|
|
800fa20: 4590 cmp r8, r2
|
|
800fa22: 4606 mov r6, r0
|
|
800fa24: 460f mov r7, r1
|
|
800fa26: 4615 mov r5, r2
|
|
800fa28: 461c mov r4, r3
|
|
800fa2a: d00b beq.n 800fa44 <_ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_+0x2c>
|
|
800fa2c: 68b0 ldr r0, [r6, #8]
|
|
800fa2e: 6803 ldr r3, [r0, #0]
|
|
800fa30: f8cd 8018 str.w r8, [sp, #24]
|
|
800fa34: 6a1e ldr r6, [r3, #32]
|
|
800fa36: 462a mov r2, r5
|
|
800fa38: 4623 mov r3, r4
|
|
800fa3a: 4639 mov r1, r7
|
|
800fa3c: 46b4 mov ip, r6
|
|
800fa3e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
|
|
800fa42: 4760 bx ip
|
|
800fa44: 4619 mov r1, r3
|
|
800fa46: f000 f857 bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800fa4a: 2800 cmp r0, #0
|
|
800fa4c: d0ee beq.n 800fa2c <_ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_+0x14>
|
|
800fa4e: 2006 movs r0, #6
|
|
800fa50: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
|
|
0800fa54 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE>:
|
|
800fa54: e92d 4ff1 stmdb sp!, {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800fa58: 460d mov r5, r1
|
|
800fa5a: 4619 mov r1, r3
|
|
800fa5c: e9dd 4b0a ldrd r4, fp, [sp, #40] @ 0x28
|
|
800fa60: e9dd a60c ldrd sl, r6, [sp, #48] @ 0x30
|
|
800fa64: 4681 mov r9, r0
|
|
800fa66: 4617 mov r7, r2
|
|
800fa68: 4698 mov r8, r3
|
|
800fa6a: f000 f845 bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800fa6e: b190 cbz r0, 800fa96 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x42>
|
|
800fa70: 2d00 cmp r5, #0
|
|
800fa72: 6034 str r4, [r6, #0]
|
|
800fa74: 7137 strb r7, [r6, #4]
|
|
800fa76: db09 blt.n 800fa8c <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x38>
|
|
800fa78: 442c add r4, r5
|
|
800fa7a: 45a2 cmp sl, r4
|
|
800fa7c: bf14 ite ne
|
|
800fa7e: 2401 movne r4, #1
|
|
800fa80: 2406 moveq r4, #6
|
|
800fa82: 71b4 strb r4, [r6, #6]
|
|
800fa84: 2000 movs r0, #0
|
|
800fa86: b001 add sp, #4
|
|
800fa88: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
800fa8c: 3502 adds r5, #2
|
|
800fa8e: d1f9 bne.n 800fa84 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x30>
|
|
800fa90: 2301 movs r3, #1
|
|
800fa92: 71b3 strb r3, [r6, #6]
|
|
800fa94: e7f6 b.n 800fa84 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x30>
|
|
800fa96: 4554 cmp r4, sl
|
|
800fa98: d106 bne.n 800faa8 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x54>
|
|
800fa9a: 4659 mov r1, fp
|
|
800fa9c: 4648 mov r0, r9
|
|
800fa9e: f000 f82b bl 800faf8 <_ZNKSt9type_info7__equalERKS_>
|
|
800faa2: b108 cbz r0, 800faa8 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x54>
|
|
800faa4: 7177 strb r7, [r6, #5]
|
|
800faa6: e7ed b.n 800fa84 <_ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE+0x30>
|
|
800faa8: f8d9 0008 ldr.w r0, [r9, #8]
|
|
800faac: 6803 ldr r3, [r0, #0]
|
|
800faae: e9cd a60c strd sl, r6, [sp, #48] @ 0x30
|
|
800fab2: e9cd 4b0a strd r4, fp, [sp, #40] @ 0x28
|
|
800fab6: 69dc ldr r4, [r3, #28]
|
|
800fab8: 463a mov r2, r7
|
|
800faba: 4643 mov r3, r8
|
|
800fabc: 4629 mov r1, r5
|
|
800fabe: 46a4 mov ip, r4
|
|
800fac0: b001 add sp, #4
|
|
800fac2: e8bd 4ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800fac6: 4760 bx ip
|
|
|
|
0800fac8 <_ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE>:
|
|
800fac8: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
800facc: 4607 mov r7, r0
|
|
800face: 460c mov r4, r1
|
|
800fad0: 4615 mov r5, r2
|
|
800fad2: 461e mov r6, r3
|
|
800fad4: f7ff ff61 bl 800f99a <_ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE>
|
|
800fad8: b948 cbnz r0, 800faee <_ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE+0x26>
|
|
800fada: 68b8 ldr r0, [r7, #8]
|
|
800fadc: 6803 ldr r3, [r0, #0]
|
|
800fade: 699f ldr r7, [r3, #24]
|
|
800fae0: 462a mov r2, r5
|
|
800fae2: 4633 mov r3, r6
|
|
800fae4: 4621 mov r1, r4
|
|
800fae6: 46bc mov ip, r7
|
|
800fae8: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
|
|
800faec: 4760 bx ip
|
|
800faee: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
|
|
0800faf2 <_ZNSt9type_infoD1Ev>:
|
|
800faf2: 4770 bx lr
|
|
|
|
0800faf4 <_ZNKSt9type_info14__is_pointer_pEv>:
|
|
800faf4: 2000 movs r0, #0
|
|
800faf6: 4770 bx lr
|
|
|
|
0800faf8 <_ZNKSt9type_info7__equalERKS_>:
|
|
800faf8: 4281 cmp r1, r0
|
|
800fafa: b508 push {r3, lr}
|
|
800fafc: d00e beq.n 800fb1c <_ZNKSt9type_info7__equalERKS_+0x24>
|
|
800fafe: 6840 ldr r0, [r0, #4]
|
|
800fb00: 7803 ldrb r3, [r0, #0]
|
|
800fb02: 2b2a cmp r3, #42 @ 0x2a
|
|
800fb04: d00c beq.n 800fb20 <_ZNKSt9type_info7__equalERKS_+0x28>
|
|
800fb06: 6849 ldr r1, [r1, #4]
|
|
800fb08: 780b ldrb r3, [r1, #0]
|
|
800fb0a: 2b2a cmp r3, #42 @ 0x2a
|
|
800fb0c: bf08 it eq
|
|
800fb0e: 3101 addeq r1, #1
|
|
800fb10: f7f0 fb5e bl 80001d0 <strcmp>
|
|
800fb14: fab0 f080 clz r0, r0
|
|
800fb18: 0940 lsrs r0, r0, #5
|
|
800fb1a: bd08 pop {r3, pc}
|
|
800fb1c: 2001 movs r0, #1
|
|
800fb1e: e7fc b.n 800fb1a <_ZNKSt9type_info7__equalERKS_+0x22>
|
|
800fb20: 2000 movs r0, #0
|
|
800fb22: e7fa b.n 800fb1a <_ZNKSt9type_info7__equalERKS_+0x22>
|
|
|
|
0800fb24 <abort>:
|
|
800fb24: b508 push {r3, lr}
|
|
800fb26: 2006 movs r0, #6
|
|
800fb28: f000 fec2 bl 80108b0 <raise>
|
|
800fb2c: 2001 movs r0, #1
|
|
800fb2e: f7f3 fe19 bl 8003764 <_exit>
|
|
|
|
0800fb32 <atexit>:
|
|
800fb32: 2300 movs r3, #0
|
|
800fb34: 4601 mov r1, r0
|
|
800fb36: 461a mov r2, r3
|
|
800fb38: 4618 mov r0, r3
|
|
800fb3a: f000 bfbd b.w 8010ab8 <__register_exitproc>
|
|
...
|
|
|
|
0800fb40 <malloc>:
|
|
800fb40: 4b02 ldr r3, [pc, #8] @ (800fb4c <malloc+0xc>)
|
|
800fb42: 4601 mov r1, r0
|
|
800fb44: 6818 ldr r0, [r3, #0]
|
|
800fb46: f000 b82d b.w 800fba4 <_malloc_r>
|
|
800fb4a: bf00 nop
|
|
800fb4c: 2000001c .word 0x2000001c
|
|
|
|
0800fb50 <free>:
|
|
800fb50: 4b02 ldr r3, [pc, #8] @ (800fb5c <free+0xc>)
|
|
800fb52: 4601 mov r1, r0
|
|
800fb54: 6818 ldr r0, [r3, #0]
|
|
800fb56: f001 be57 b.w 8011808 <_free_r>
|
|
800fb5a: bf00 nop
|
|
800fb5c: 2000001c .word 0x2000001c
|
|
|
|
0800fb60 <sbrk_aligned>:
|
|
800fb60: b570 push {r4, r5, r6, lr}
|
|
800fb62: 4e0f ldr r6, [pc, #60] @ (800fba0 <sbrk_aligned+0x40>)
|
|
800fb64: 460c mov r4, r1
|
|
800fb66: 6831 ldr r1, [r6, #0]
|
|
800fb68: 4605 mov r5, r0
|
|
800fb6a: b911 cbnz r1, 800fb72 <sbrk_aligned+0x12>
|
|
800fb6c: f000 ff4a bl 8010a04 <_sbrk_r>
|
|
800fb70: 6030 str r0, [r6, #0]
|
|
800fb72: 4621 mov r1, r4
|
|
800fb74: 4628 mov r0, r5
|
|
800fb76: f000 ff45 bl 8010a04 <_sbrk_r>
|
|
800fb7a: 1c43 adds r3, r0, #1
|
|
800fb7c: d103 bne.n 800fb86 <sbrk_aligned+0x26>
|
|
800fb7e: f04f 34ff mov.w r4, #4294967295
|
|
800fb82: 4620 mov r0, r4
|
|
800fb84: bd70 pop {r4, r5, r6, pc}
|
|
800fb86: 1cc4 adds r4, r0, #3
|
|
800fb88: f024 0403 bic.w r4, r4, #3
|
|
800fb8c: 42a0 cmp r0, r4
|
|
800fb8e: d0f8 beq.n 800fb82 <sbrk_aligned+0x22>
|
|
800fb90: 1a21 subs r1, r4, r0
|
|
800fb92: 4628 mov r0, r5
|
|
800fb94: f000 ff36 bl 8010a04 <_sbrk_r>
|
|
800fb98: 3001 adds r0, #1
|
|
800fb9a: d1f2 bne.n 800fb82 <sbrk_aligned+0x22>
|
|
800fb9c: e7ef b.n 800fb7e <sbrk_aligned+0x1e>
|
|
800fb9e: bf00 nop
|
|
800fba0: 20008840 .word 0x20008840
|
|
|
|
0800fba4 <_malloc_r>:
|
|
800fba4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
|
|
800fba8: 1ccd adds r5, r1, #3
|
|
800fbaa: f025 0503 bic.w r5, r5, #3
|
|
800fbae: 3508 adds r5, #8
|
|
800fbb0: 2d0c cmp r5, #12
|
|
800fbb2: bf38 it cc
|
|
800fbb4: 250c movcc r5, #12
|
|
800fbb6: 2d00 cmp r5, #0
|
|
800fbb8: 4606 mov r6, r0
|
|
800fbba: db01 blt.n 800fbc0 <_malloc_r+0x1c>
|
|
800fbbc: 42a9 cmp r1, r5
|
|
800fbbe: d904 bls.n 800fbca <_malloc_r+0x26>
|
|
800fbc0: 230c movs r3, #12
|
|
800fbc2: 6033 str r3, [r6, #0]
|
|
800fbc4: 2000 movs r0, #0
|
|
800fbc6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
|
|
800fbca: f8df 80d4 ldr.w r8, [pc, #212] @ 800fca0 <_malloc_r+0xfc>
|
|
800fbce: f000 f869 bl 800fca4 <__malloc_lock>
|
|
800fbd2: f8d8 3000 ldr.w r3, [r8]
|
|
800fbd6: 461c mov r4, r3
|
|
800fbd8: bb44 cbnz r4, 800fc2c <_malloc_r+0x88>
|
|
800fbda: 4629 mov r1, r5
|
|
800fbdc: 4630 mov r0, r6
|
|
800fbde: f7ff ffbf bl 800fb60 <sbrk_aligned>
|
|
800fbe2: 1c43 adds r3, r0, #1
|
|
800fbe4: 4604 mov r4, r0
|
|
800fbe6: d158 bne.n 800fc9a <_malloc_r+0xf6>
|
|
800fbe8: f8d8 4000 ldr.w r4, [r8]
|
|
800fbec: 4627 mov r7, r4
|
|
800fbee: 2f00 cmp r7, #0
|
|
800fbf0: d143 bne.n 800fc7a <_malloc_r+0xd6>
|
|
800fbf2: 2c00 cmp r4, #0
|
|
800fbf4: d04b beq.n 800fc8e <_malloc_r+0xea>
|
|
800fbf6: 6823 ldr r3, [r4, #0]
|
|
800fbf8: 4639 mov r1, r7
|
|
800fbfa: 4630 mov r0, r6
|
|
800fbfc: eb04 0903 add.w r9, r4, r3
|
|
800fc00: f000 ff00 bl 8010a04 <_sbrk_r>
|
|
800fc04: 4581 cmp r9, r0
|
|
800fc06: d142 bne.n 800fc8e <_malloc_r+0xea>
|
|
800fc08: 6821 ldr r1, [r4, #0]
|
|
800fc0a: 1a6d subs r5, r5, r1
|
|
800fc0c: 4629 mov r1, r5
|
|
800fc0e: 4630 mov r0, r6
|
|
800fc10: f7ff ffa6 bl 800fb60 <sbrk_aligned>
|
|
800fc14: 3001 adds r0, #1
|
|
800fc16: d03a beq.n 800fc8e <_malloc_r+0xea>
|
|
800fc18: 6823 ldr r3, [r4, #0]
|
|
800fc1a: 442b add r3, r5
|
|
800fc1c: 6023 str r3, [r4, #0]
|
|
800fc1e: f8d8 3000 ldr.w r3, [r8]
|
|
800fc22: 685a ldr r2, [r3, #4]
|
|
800fc24: bb62 cbnz r2, 800fc80 <_malloc_r+0xdc>
|
|
800fc26: f8c8 7000 str.w r7, [r8]
|
|
800fc2a: e00f b.n 800fc4c <_malloc_r+0xa8>
|
|
800fc2c: 6822 ldr r2, [r4, #0]
|
|
800fc2e: 1b52 subs r2, r2, r5
|
|
800fc30: d420 bmi.n 800fc74 <_malloc_r+0xd0>
|
|
800fc32: 2a0b cmp r2, #11
|
|
800fc34: d917 bls.n 800fc66 <_malloc_r+0xc2>
|
|
800fc36: 1961 adds r1, r4, r5
|
|
800fc38: 42a3 cmp r3, r4
|
|
800fc3a: 6025 str r5, [r4, #0]
|
|
800fc3c: bf18 it ne
|
|
800fc3e: 6059 strne r1, [r3, #4]
|
|
800fc40: 6863 ldr r3, [r4, #4]
|
|
800fc42: bf08 it eq
|
|
800fc44: f8c8 1000 streq.w r1, [r8]
|
|
800fc48: 5162 str r2, [r4, r5]
|
|
800fc4a: 604b str r3, [r1, #4]
|
|
800fc4c: 4630 mov r0, r6
|
|
800fc4e: f000 f82f bl 800fcb0 <__malloc_unlock>
|
|
800fc52: f104 000b add.w r0, r4, #11
|
|
800fc56: 1d23 adds r3, r4, #4
|
|
800fc58: f020 0007 bic.w r0, r0, #7
|
|
800fc5c: 1ac2 subs r2, r0, r3
|
|
800fc5e: bf1c itt ne
|
|
800fc60: 1a1b subne r3, r3, r0
|
|
800fc62: 50a3 strne r3, [r4, r2]
|
|
800fc64: e7af b.n 800fbc6 <_malloc_r+0x22>
|
|
800fc66: 6862 ldr r2, [r4, #4]
|
|
800fc68: 42a3 cmp r3, r4
|
|
800fc6a: bf0c ite eq
|
|
800fc6c: f8c8 2000 streq.w r2, [r8]
|
|
800fc70: 605a strne r2, [r3, #4]
|
|
800fc72: e7eb b.n 800fc4c <_malloc_r+0xa8>
|
|
800fc74: 4623 mov r3, r4
|
|
800fc76: 6864 ldr r4, [r4, #4]
|
|
800fc78: e7ae b.n 800fbd8 <_malloc_r+0x34>
|
|
800fc7a: 463c mov r4, r7
|
|
800fc7c: 687f ldr r7, [r7, #4]
|
|
800fc7e: e7b6 b.n 800fbee <_malloc_r+0x4a>
|
|
800fc80: 461a mov r2, r3
|
|
800fc82: 685b ldr r3, [r3, #4]
|
|
800fc84: 42a3 cmp r3, r4
|
|
800fc86: d1fb bne.n 800fc80 <_malloc_r+0xdc>
|
|
800fc88: 2300 movs r3, #0
|
|
800fc8a: 6053 str r3, [r2, #4]
|
|
800fc8c: e7de b.n 800fc4c <_malloc_r+0xa8>
|
|
800fc8e: 230c movs r3, #12
|
|
800fc90: 6033 str r3, [r6, #0]
|
|
800fc92: 4630 mov r0, r6
|
|
800fc94: f000 f80c bl 800fcb0 <__malloc_unlock>
|
|
800fc98: e794 b.n 800fbc4 <_malloc_r+0x20>
|
|
800fc9a: 6005 str r5, [r0, #0]
|
|
800fc9c: e7d6 b.n 800fc4c <_malloc_r+0xa8>
|
|
800fc9e: bf00 nop
|
|
800fca0: 20008844 .word 0x20008844
|
|
|
|
0800fca4 <__malloc_lock>:
|
|
800fca4: 4801 ldr r0, [pc, #4] @ (800fcac <__malloc_lock+0x8>)
|
|
800fca6: f7f3 bf5f b.w 8003b68 <__retarget_lock_acquire_recursive>
|
|
800fcaa: bf00 nop
|
|
800fcac: 200002d8 .word 0x200002d8
|
|
|
|
0800fcb0 <__malloc_unlock>:
|
|
800fcb0: 4801 ldr r0, [pc, #4] @ (800fcb8 <__malloc_unlock+0x8>)
|
|
800fcb2: f7f3 bf6e b.w 8003b92 <__retarget_lock_release_recursive>
|
|
800fcb6: bf00 nop
|
|
800fcb8: 200002d8 .word 0x200002d8
|
|
|
|
0800fcbc <__cvt>:
|
|
800fcbc: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
|
|
800fcc0: ec57 6b10 vmov r6, r7, d0
|
|
800fcc4: 2f00 cmp r7, #0
|
|
800fcc6: 460c mov r4, r1
|
|
800fcc8: 4619 mov r1, r3
|
|
800fcca: 463b mov r3, r7
|
|
800fccc: bfbb ittet lt
|
|
800fcce: f107 4300 addlt.w r3, r7, #2147483648 @ 0x80000000
|
|
800fcd2: 461f movlt r7, r3
|
|
800fcd4: 2300 movge r3, #0
|
|
800fcd6: 232d movlt r3, #45 @ 0x2d
|
|
800fcd8: 700b strb r3, [r1, #0]
|
|
800fcda: 9b0d ldr r3, [sp, #52] @ 0x34
|
|
800fcdc: f8dd a030 ldr.w sl, [sp, #48] @ 0x30
|
|
800fce0: 4691 mov r9, r2
|
|
800fce2: f023 0820 bic.w r8, r3, #32
|
|
800fce6: bfbc itt lt
|
|
800fce8: 4632 movlt r2, r6
|
|
800fcea: 4616 movlt r6, r2
|
|
800fcec: f1b8 0f46 cmp.w r8, #70 @ 0x46
|
|
800fcf0: d005 beq.n 800fcfe <__cvt+0x42>
|
|
800fcf2: f1b8 0f45 cmp.w r8, #69 @ 0x45
|
|
800fcf6: d100 bne.n 800fcfa <__cvt+0x3e>
|
|
800fcf8: 3401 adds r4, #1
|
|
800fcfa: 2102 movs r1, #2
|
|
800fcfc: e000 b.n 800fd00 <__cvt+0x44>
|
|
800fcfe: 2103 movs r1, #3
|
|
800fd00: ab03 add r3, sp, #12
|
|
800fd02: 9301 str r3, [sp, #4]
|
|
800fd04: ab02 add r3, sp, #8
|
|
800fd06: 9300 str r3, [sp, #0]
|
|
800fd08: ec47 6b10 vmov d0, r6, r7
|
|
800fd0c: 4653 mov r3, sl
|
|
800fd0e: 4622 mov r2, r4
|
|
800fd10: f000 ffb6 bl 8010c80 <_dtoa_r>
|
|
800fd14: f1b8 0f47 cmp.w r8, #71 @ 0x47
|
|
800fd18: 4605 mov r5, r0
|
|
800fd1a: d119 bne.n 800fd50 <__cvt+0x94>
|
|
800fd1c: f019 0f01 tst.w r9, #1
|
|
800fd20: d00e beq.n 800fd40 <__cvt+0x84>
|
|
800fd22: eb00 0904 add.w r9, r0, r4
|
|
800fd26: 2200 movs r2, #0
|
|
800fd28: 2300 movs r3, #0
|
|
800fd2a: 4630 mov r0, r6
|
|
800fd2c: 4639 mov r1, r7
|
|
800fd2e: f7f0 fedb bl 8000ae8 <__aeabi_dcmpeq>
|
|
800fd32: b108 cbz r0, 800fd38 <__cvt+0x7c>
|
|
800fd34: f8cd 900c str.w r9, [sp, #12]
|
|
800fd38: 2230 movs r2, #48 @ 0x30
|
|
800fd3a: 9b03 ldr r3, [sp, #12]
|
|
800fd3c: 454b cmp r3, r9
|
|
800fd3e: d31e bcc.n 800fd7e <__cvt+0xc2>
|
|
800fd40: 9b03 ldr r3, [sp, #12]
|
|
800fd42: 9a0e ldr r2, [sp, #56] @ 0x38
|
|
800fd44: 1b5b subs r3, r3, r5
|
|
800fd46: 4628 mov r0, r5
|
|
800fd48: 6013 str r3, [r2, #0]
|
|
800fd4a: b004 add sp, #16
|
|
800fd4c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
800fd50: f1b8 0f46 cmp.w r8, #70 @ 0x46
|
|
800fd54: eb00 0904 add.w r9, r0, r4
|
|
800fd58: d1e5 bne.n 800fd26 <__cvt+0x6a>
|
|
800fd5a: 7803 ldrb r3, [r0, #0]
|
|
800fd5c: 2b30 cmp r3, #48 @ 0x30
|
|
800fd5e: d10a bne.n 800fd76 <__cvt+0xba>
|
|
800fd60: 2200 movs r2, #0
|
|
800fd62: 2300 movs r3, #0
|
|
800fd64: 4630 mov r0, r6
|
|
800fd66: 4639 mov r1, r7
|
|
800fd68: f7f0 febe bl 8000ae8 <__aeabi_dcmpeq>
|
|
800fd6c: b918 cbnz r0, 800fd76 <__cvt+0xba>
|
|
800fd6e: f1c4 0401 rsb r4, r4, #1
|
|
800fd72: f8ca 4000 str.w r4, [sl]
|
|
800fd76: f8da 3000 ldr.w r3, [sl]
|
|
800fd7a: 4499 add r9, r3
|
|
800fd7c: e7d3 b.n 800fd26 <__cvt+0x6a>
|
|
800fd7e: 1c59 adds r1, r3, #1
|
|
800fd80: 9103 str r1, [sp, #12]
|
|
800fd82: 701a strb r2, [r3, #0]
|
|
800fd84: e7d9 b.n 800fd3a <__cvt+0x7e>
|
|
|
|
0800fd86 <__exponent>:
|
|
800fd86: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
|
|
800fd88: 2900 cmp r1, #0
|
|
800fd8a: bfba itte lt
|
|
800fd8c: 4249 neglt r1, r1
|
|
800fd8e: 232d movlt r3, #45 @ 0x2d
|
|
800fd90: 232b movge r3, #43 @ 0x2b
|
|
800fd92: 2909 cmp r1, #9
|
|
800fd94: 7002 strb r2, [r0, #0]
|
|
800fd96: 7043 strb r3, [r0, #1]
|
|
800fd98: dd29 ble.n 800fdee <__exponent+0x68>
|
|
800fd9a: f10d 0307 add.w r3, sp, #7
|
|
800fd9e: 461d mov r5, r3
|
|
800fda0: 270a movs r7, #10
|
|
800fda2: 461a mov r2, r3
|
|
800fda4: fbb1 f6f7 udiv r6, r1, r7
|
|
800fda8: fb07 1416 mls r4, r7, r6, r1
|
|
800fdac: 3430 adds r4, #48 @ 0x30
|
|
800fdae: f802 4c01 strb.w r4, [r2, #-1]
|
|
800fdb2: 460c mov r4, r1
|
|
800fdb4: 2c63 cmp r4, #99 @ 0x63
|
|
800fdb6: f103 33ff add.w r3, r3, #4294967295
|
|
800fdba: 4631 mov r1, r6
|
|
800fdbc: dcf1 bgt.n 800fda2 <__exponent+0x1c>
|
|
800fdbe: 3130 adds r1, #48 @ 0x30
|
|
800fdc0: 1e94 subs r4, r2, #2
|
|
800fdc2: f803 1c01 strb.w r1, [r3, #-1]
|
|
800fdc6: 1c41 adds r1, r0, #1
|
|
800fdc8: 4623 mov r3, r4
|
|
800fdca: 42ab cmp r3, r5
|
|
800fdcc: d30a bcc.n 800fde4 <__exponent+0x5e>
|
|
800fdce: f10d 0309 add.w r3, sp, #9
|
|
800fdd2: 1a9b subs r3, r3, r2
|
|
800fdd4: 42ac cmp r4, r5
|
|
800fdd6: bf88 it hi
|
|
800fdd8: 2300 movhi r3, #0
|
|
800fdda: 3302 adds r3, #2
|
|
800fddc: 4403 add r3, r0
|
|
800fdde: 1a18 subs r0, r3, r0
|
|
800fde0: b003 add sp, #12
|
|
800fde2: bdf0 pop {r4, r5, r6, r7, pc}
|
|
800fde4: f813 6b01 ldrb.w r6, [r3], #1
|
|
800fde8: f801 6f01 strb.w r6, [r1, #1]!
|
|
800fdec: e7ed b.n 800fdca <__exponent+0x44>
|
|
800fdee: 2330 movs r3, #48 @ 0x30
|
|
800fdf0: 3130 adds r1, #48 @ 0x30
|
|
800fdf2: 7083 strb r3, [r0, #2]
|
|
800fdf4: 70c1 strb r1, [r0, #3]
|
|
800fdf6: 1d03 adds r3, r0, #4
|
|
800fdf8: e7f1 b.n 800fdde <__exponent+0x58>
|
|
...
|
|
|
|
0800fdfc <_printf_float>:
|
|
800fdfc: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
800fe00: b08d sub sp, #52 @ 0x34
|
|
800fe02: 460c mov r4, r1
|
|
800fe04: f8dd 8058 ldr.w r8, [sp, #88] @ 0x58
|
|
800fe08: 4616 mov r6, r2
|
|
800fe0a: 461f mov r7, r3
|
|
800fe0c: 4605 mov r5, r0
|
|
800fe0e: f000 fd57 bl 80108c0 <_localeconv_r>
|
|
800fe12: 6803 ldr r3, [r0, #0]
|
|
800fe14: 9304 str r3, [sp, #16]
|
|
800fe16: 4618 mov r0, r3
|
|
800fe18: f7f0 fa3a bl 8000290 <strlen>
|
|
800fe1c: 2300 movs r3, #0
|
|
800fe1e: 930a str r3, [sp, #40] @ 0x28
|
|
800fe20: f8d8 3000 ldr.w r3, [r8]
|
|
800fe24: 9005 str r0, [sp, #20]
|
|
800fe26: 3307 adds r3, #7
|
|
800fe28: f023 0307 bic.w r3, r3, #7
|
|
800fe2c: f103 0208 add.w r2, r3, #8
|
|
800fe30: f894 a018 ldrb.w sl, [r4, #24]
|
|
800fe34: f8d4 b000 ldr.w fp, [r4]
|
|
800fe38: f8c8 2000 str.w r2, [r8]
|
|
800fe3c: e9d3 8900 ldrd r8, r9, [r3]
|
|
800fe40: f029 4300 bic.w r3, r9, #2147483648 @ 0x80000000
|
|
800fe44: 9307 str r3, [sp, #28]
|
|
800fe46: f8cd 8018 str.w r8, [sp, #24]
|
|
800fe4a: e9c4 8912 strd r8, r9, [r4, #72] @ 0x48
|
|
800fe4e: e9dd 0106 ldrd r0, r1, [sp, #24]
|
|
800fe52: 4b9c ldr r3, [pc, #624] @ (80100c4 <_printf_float+0x2c8>)
|
|
800fe54: f04f 32ff mov.w r2, #4294967295
|
|
800fe58: f7f0 fe78 bl 8000b4c <__aeabi_dcmpun>
|
|
800fe5c: bb70 cbnz r0, 800febc <_printf_float+0xc0>
|
|
800fe5e: e9dd 0106 ldrd r0, r1, [sp, #24]
|
|
800fe62: 4b98 ldr r3, [pc, #608] @ (80100c4 <_printf_float+0x2c8>)
|
|
800fe64: f04f 32ff mov.w r2, #4294967295
|
|
800fe68: f7f0 fe52 bl 8000b10 <__aeabi_dcmple>
|
|
800fe6c: bb30 cbnz r0, 800febc <_printf_float+0xc0>
|
|
800fe6e: 2200 movs r2, #0
|
|
800fe70: 2300 movs r3, #0
|
|
800fe72: 4640 mov r0, r8
|
|
800fe74: 4649 mov r1, r9
|
|
800fe76: f7f0 fe41 bl 8000afc <__aeabi_dcmplt>
|
|
800fe7a: b110 cbz r0, 800fe82 <_printf_float+0x86>
|
|
800fe7c: 232d movs r3, #45 @ 0x2d
|
|
800fe7e: f884 3043 strb.w r3, [r4, #67] @ 0x43
|
|
800fe82: 4a91 ldr r2, [pc, #580] @ (80100c8 <_printf_float+0x2cc>)
|
|
800fe84: 4b91 ldr r3, [pc, #580] @ (80100cc <_printf_float+0x2d0>)
|
|
800fe86: f1ba 0f47 cmp.w sl, #71 @ 0x47
|
|
800fe8a: bf94 ite ls
|
|
800fe8c: 4690 movls r8, r2
|
|
800fe8e: 4698 movhi r8, r3
|
|
800fe90: 2303 movs r3, #3
|
|
800fe92: 6123 str r3, [r4, #16]
|
|
800fe94: f02b 0304 bic.w r3, fp, #4
|
|
800fe98: 6023 str r3, [r4, #0]
|
|
800fe9a: f04f 0900 mov.w r9, #0
|
|
800fe9e: 9700 str r7, [sp, #0]
|
|
800fea0: 4633 mov r3, r6
|
|
800fea2: aa0b add r2, sp, #44 @ 0x2c
|
|
800fea4: 4621 mov r1, r4
|
|
800fea6: 4628 mov r0, r5
|
|
800fea8: f000 f9d2 bl 8010250 <_printf_common>
|
|
800feac: 3001 adds r0, #1
|
|
800feae: f040 808d bne.w 800ffcc <_printf_float+0x1d0>
|
|
800feb2: f04f 30ff mov.w r0, #4294967295
|
|
800feb6: b00d add sp, #52 @ 0x34
|
|
800feb8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
800febc: 4642 mov r2, r8
|
|
800febe: 464b mov r3, r9
|
|
800fec0: 4640 mov r0, r8
|
|
800fec2: 4649 mov r1, r9
|
|
800fec4: f7f0 fe42 bl 8000b4c <__aeabi_dcmpun>
|
|
800fec8: b140 cbz r0, 800fedc <_printf_float+0xe0>
|
|
800feca: 464b mov r3, r9
|
|
800fecc: 2b00 cmp r3, #0
|
|
800fece: bfbc itt lt
|
|
800fed0: 232d movlt r3, #45 @ 0x2d
|
|
800fed2: f884 3043 strblt.w r3, [r4, #67] @ 0x43
|
|
800fed6: 4a7e ldr r2, [pc, #504] @ (80100d0 <_printf_float+0x2d4>)
|
|
800fed8: 4b7e ldr r3, [pc, #504] @ (80100d4 <_printf_float+0x2d8>)
|
|
800feda: e7d4 b.n 800fe86 <_printf_float+0x8a>
|
|
800fedc: 6863 ldr r3, [r4, #4]
|
|
800fede: f00a 02df and.w r2, sl, #223 @ 0xdf
|
|
800fee2: 9206 str r2, [sp, #24]
|
|
800fee4: 1c5a adds r2, r3, #1
|
|
800fee6: d13b bne.n 800ff60 <_printf_float+0x164>
|
|
800fee8: 2306 movs r3, #6
|
|
800feea: 6063 str r3, [r4, #4]
|
|
800feec: f44b 6280 orr.w r2, fp, #1024 @ 0x400
|
|
800fef0: 2300 movs r3, #0
|
|
800fef2: 6022 str r2, [r4, #0]
|
|
800fef4: 9303 str r3, [sp, #12]
|
|
800fef6: ab0a add r3, sp, #40 @ 0x28
|
|
800fef8: e9cd a301 strd sl, r3, [sp, #4]
|
|
800fefc: ab09 add r3, sp, #36 @ 0x24
|
|
800fefe: 9300 str r3, [sp, #0]
|
|
800ff00: 6861 ldr r1, [r4, #4]
|
|
800ff02: ec49 8b10 vmov d0, r8, r9
|
|
800ff06: f10d 0323 add.w r3, sp, #35 @ 0x23
|
|
800ff0a: 4628 mov r0, r5
|
|
800ff0c: f7ff fed6 bl 800fcbc <__cvt>
|
|
800ff10: 9b06 ldr r3, [sp, #24]
|
|
800ff12: 9909 ldr r1, [sp, #36] @ 0x24
|
|
800ff14: 2b47 cmp r3, #71 @ 0x47
|
|
800ff16: 4680 mov r8, r0
|
|
800ff18: d129 bne.n 800ff6e <_printf_float+0x172>
|
|
800ff1a: 1cc8 adds r0, r1, #3
|
|
800ff1c: db02 blt.n 800ff24 <_printf_float+0x128>
|
|
800ff1e: 6863 ldr r3, [r4, #4]
|
|
800ff20: 4299 cmp r1, r3
|
|
800ff22: dd41 ble.n 800ffa8 <_printf_float+0x1ac>
|
|
800ff24: f1aa 0a02 sub.w sl, sl, #2
|
|
800ff28: fa5f fa8a uxtb.w sl, sl
|
|
800ff2c: 3901 subs r1, #1
|
|
800ff2e: 4652 mov r2, sl
|
|
800ff30: f104 0050 add.w r0, r4, #80 @ 0x50
|
|
800ff34: 9109 str r1, [sp, #36] @ 0x24
|
|
800ff36: f7ff ff26 bl 800fd86 <__exponent>
|
|
800ff3a: 9a0a ldr r2, [sp, #40] @ 0x28
|
|
800ff3c: 1813 adds r3, r2, r0
|
|
800ff3e: 2a01 cmp r2, #1
|
|
800ff40: 4681 mov r9, r0
|
|
800ff42: 6123 str r3, [r4, #16]
|
|
800ff44: dc02 bgt.n 800ff4c <_printf_float+0x150>
|
|
800ff46: 6822 ldr r2, [r4, #0]
|
|
800ff48: 07d2 lsls r2, r2, #31
|
|
800ff4a: d501 bpl.n 800ff50 <_printf_float+0x154>
|
|
800ff4c: 3301 adds r3, #1
|
|
800ff4e: 6123 str r3, [r4, #16]
|
|
800ff50: f89d 3023 ldrb.w r3, [sp, #35] @ 0x23
|
|
800ff54: 2b00 cmp r3, #0
|
|
800ff56: d0a2 beq.n 800fe9e <_printf_float+0xa2>
|
|
800ff58: 232d movs r3, #45 @ 0x2d
|
|
800ff5a: f884 3043 strb.w r3, [r4, #67] @ 0x43
|
|
800ff5e: e79e b.n 800fe9e <_printf_float+0xa2>
|
|
800ff60: 9a06 ldr r2, [sp, #24]
|
|
800ff62: 2a47 cmp r2, #71 @ 0x47
|
|
800ff64: d1c2 bne.n 800feec <_printf_float+0xf0>
|
|
800ff66: 2b00 cmp r3, #0
|
|
800ff68: d1c0 bne.n 800feec <_printf_float+0xf0>
|
|
800ff6a: 2301 movs r3, #1
|
|
800ff6c: e7bd b.n 800feea <_printf_float+0xee>
|
|
800ff6e: f1ba 0f65 cmp.w sl, #101 @ 0x65
|
|
800ff72: d9db bls.n 800ff2c <_printf_float+0x130>
|
|
800ff74: f1ba 0f66 cmp.w sl, #102 @ 0x66
|
|
800ff78: d118 bne.n 800ffac <_printf_float+0x1b0>
|
|
800ff7a: 2900 cmp r1, #0
|
|
800ff7c: 6863 ldr r3, [r4, #4]
|
|
800ff7e: dd0b ble.n 800ff98 <_printf_float+0x19c>
|
|
800ff80: 6121 str r1, [r4, #16]
|
|
800ff82: b913 cbnz r3, 800ff8a <_printf_float+0x18e>
|
|
800ff84: 6822 ldr r2, [r4, #0]
|
|
800ff86: 07d0 lsls r0, r2, #31
|
|
800ff88: d502 bpl.n 800ff90 <_printf_float+0x194>
|
|
800ff8a: 3301 adds r3, #1
|
|
800ff8c: 440b add r3, r1
|
|
800ff8e: 6123 str r3, [r4, #16]
|
|
800ff90: 65a1 str r1, [r4, #88] @ 0x58
|
|
800ff92: f04f 0900 mov.w r9, #0
|
|
800ff96: e7db b.n 800ff50 <_printf_float+0x154>
|
|
800ff98: b913 cbnz r3, 800ffa0 <_printf_float+0x1a4>
|
|
800ff9a: 6822 ldr r2, [r4, #0]
|
|
800ff9c: 07d2 lsls r2, r2, #31
|
|
800ff9e: d501 bpl.n 800ffa4 <_printf_float+0x1a8>
|
|
800ffa0: 3302 adds r3, #2
|
|
800ffa2: e7f4 b.n 800ff8e <_printf_float+0x192>
|
|
800ffa4: 2301 movs r3, #1
|
|
800ffa6: e7f2 b.n 800ff8e <_printf_float+0x192>
|
|
800ffa8: f04f 0a67 mov.w sl, #103 @ 0x67
|
|
800ffac: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
800ffae: 4299 cmp r1, r3
|
|
800ffb0: db05 blt.n 800ffbe <_printf_float+0x1c2>
|
|
800ffb2: 6823 ldr r3, [r4, #0]
|
|
800ffb4: 6121 str r1, [r4, #16]
|
|
800ffb6: 07d8 lsls r0, r3, #31
|
|
800ffb8: d5ea bpl.n 800ff90 <_printf_float+0x194>
|
|
800ffba: 1c4b adds r3, r1, #1
|
|
800ffbc: e7e7 b.n 800ff8e <_printf_float+0x192>
|
|
800ffbe: 2900 cmp r1, #0
|
|
800ffc0: bfd4 ite le
|
|
800ffc2: f1c1 0202 rsble r2, r1, #2
|
|
800ffc6: 2201 movgt r2, #1
|
|
800ffc8: 4413 add r3, r2
|
|
800ffca: e7e0 b.n 800ff8e <_printf_float+0x192>
|
|
800ffcc: 6823 ldr r3, [r4, #0]
|
|
800ffce: 055a lsls r2, r3, #21
|
|
800ffd0: d407 bmi.n 800ffe2 <_printf_float+0x1e6>
|
|
800ffd2: 6923 ldr r3, [r4, #16]
|
|
800ffd4: 4642 mov r2, r8
|
|
800ffd6: 4631 mov r1, r6
|
|
800ffd8: 4628 mov r0, r5
|
|
800ffda: 47b8 blx r7
|
|
800ffdc: 3001 adds r0, #1
|
|
800ffde: d12b bne.n 8010038 <_printf_float+0x23c>
|
|
800ffe0: e767 b.n 800feb2 <_printf_float+0xb6>
|
|
800ffe2: f1ba 0f65 cmp.w sl, #101 @ 0x65
|
|
800ffe6: f240 80dd bls.w 80101a4 <_printf_float+0x3a8>
|
|
800ffea: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48
|
|
800ffee: 2200 movs r2, #0
|
|
800fff0: 2300 movs r3, #0
|
|
800fff2: f7f0 fd79 bl 8000ae8 <__aeabi_dcmpeq>
|
|
800fff6: 2800 cmp r0, #0
|
|
800fff8: d033 beq.n 8010062 <_printf_float+0x266>
|
|
800fffa: 4a37 ldr r2, [pc, #220] @ (80100d8 <_printf_float+0x2dc>)
|
|
800fffc: 2301 movs r3, #1
|
|
800fffe: 4631 mov r1, r6
|
|
8010000: 4628 mov r0, r5
|
|
8010002: 47b8 blx r7
|
|
8010004: 3001 adds r0, #1
|
|
8010006: f43f af54 beq.w 800feb2 <_printf_float+0xb6>
|
|
801000a: e9dd 3809 ldrd r3, r8, [sp, #36] @ 0x24
|
|
801000e: 4543 cmp r3, r8
|
|
8010010: db02 blt.n 8010018 <_printf_float+0x21c>
|
|
8010012: 6823 ldr r3, [r4, #0]
|
|
8010014: 07d8 lsls r0, r3, #31
|
|
8010016: d50f bpl.n 8010038 <_printf_float+0x23c>
|
|
8010018: e9dd 2304 ldrd r2, r3, [sp, #16]
|
|
801001c: 4631 mov r1, r6
|
|
801001e: 4628 mov r0, r5
|
|
8010020: 47b8 blx r7
|
|
8010022: 3001 adds r0, #1
|
|
8010024: f43f af45 beq.w 800feb2 <_printf_float+0xb6>
|
|
8010028: f04f 0900 mov.w r9, #0
|
|
801002c: f108 38ff add.w r8, r8, #4294967295
|
|
8010030: f104 0a1a add.w sl, r4, #26
|
|
8010034: 45c8 cmp r8, r9
|
|
8010036: dc09 bgt.n 801004c <_printf_float+0x250>
|
|
8010038: 6823 ldr r3, [r4, #0]
|
|
801003a: 079b lsls r3, r3, #30
|
|
801003c: f100 8103 bmi.w 8010246 <_printf_float+0x44a>
|
|
8010040: 68e0 ldr r0, [r4, #12]
|
|
8010042: 9b0b ldr r3, [sp, #44] @ 0x2c
|
|
8010044: 4298 cmp r0, r3
|
|
8010046: bfb8 it lt
|
|
8010048: 4618 movlt r0, r3
|
|
801004a: e734 b.n 800feb6 <_printf_float+0xba>
|
|
801004c: 2301 movs r3, #1
|
|
801004e: 4652 mov r2, sl
|
|
8010050: 4631 mov r1, r6
|
|
8010052: 4628 mov r0, r5
|
|
8010054: 47b8 blx r7
|
|
8010056: 3001 adds r0, #1
|
|
8010058: f43f af2b beq.w 800feb2 <_printf_float+0xb6>
|
|
801005c: f109 0901 add.w r9, r9, #1
|
|
8010060: e7e8 b.n 8010034 <_printf_float+0x238>
|
|
8010062: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010064: 2b00 cmp r3, #0
|
|
8010066: dc39 bgt.n 80100dc <_printf_float+0x2e0>
|
|
8010068: 4a1b ldr r2, [pc, #108] @ (80100d8 <_printf_float+0x2dc>)
|
|
801006a: 2301 movs r3, #1
|
|
801006c: 4631 mov r1, r6
|
|
801006e: 4628 mov r0, r5
|
|
8010070: 47b8 blx r7
|
|
8010072: 3001 adds r0, #1
|
|
8010074: f43f af1d beq.w 800feb2 <_printf_float+0xb6>
|
|
8010078: e9dd 3909 ldrd r3, r9, [sp, #36] @ 0x24
|
|
801007c: ea59 0303 orrs.w r3, r9, r3
|
|
8010080: d102 bne.n 8010088 <_printf_float+0x28c>
|
|
8010082: 6823 ldr r3, [r4, #0]
|
|
8010084: 07d9 lsls r1, r3, #31
|
|
8010086: d5d7 bpl.n 8010038 <_printf_float+0x23c>
|
|
8010088: e9dd 2304 ldrd r2, r3, [sp, #16]
|
|
801008c: 4631 mov r1, r6
|
|
801008e: 4628 mov r0, r5
|
|
8010090: 47b8 blx r7
|
|
8010092: 3001 adds r0, #1
|
|
8010094: f43f af0d beq.w 800feb2 <_printf_float+0xb6>
|
|
8010098: f04f 0a00 mov.w sl, #0
|
|
801009c: f104 0b1a add.w fp, r4, #26
|
|
80100a0: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
80100a2: 425b negs r3, r3
|
|
80100a4: 4553 cmp r3, sl
|
|
80100a6: dc01 bgt.n 80100ac <_printf_float+0x2b0>
|
|
80100a8: 464b mov r3, r9
|
|
80100aa: e793 b.n 800ffd4 <_printf_float+0x1d8>
|
|
80100ac: 2301 movs r3, #1
|
|
80100ae: 465a mov r2, fp
|
|
80100b0: 4631 mov r1, r6
|
|
80100b2: 4628 mov r0, r5
|
|
80100b4: 47b8 blx r7
|
|
80100b6: 3001 adds r0, #1
|
|
80100b8: f43f aefb beq.w 800feb2 <_printf_float+0xb6>
|
|
80100bc: f10a 0a01 add.w sl, sl, #1
|
|
80100c0: e7ee b.n 80100a0 <_printf_float+0x2a4>
|
|
80100c2: bf00 nop
|
|
80100c4: 7fefffff .word 0x7fefffff
|
|
80100c8: 080133c8 .word 0x080133c8
|
|
80100cc: 080133cc .word 0x080133cc
|
|
80100d0: 080133d0 .word 0x080133d0
|
|
80100d4: 080133d4 .word 0x080133d4
|
|
80100d8: 080133d8 .word 0x080133d8
|
|
80100dc: 6da3 ldr r3, [r4, #88] @ 0x58
|
|
80100de: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
|
|
80100e2: 4553 cmp r3, sl
|
|
80100e4: bfa8 it ge
|
|
80100e6: 4653 movge r3, sl
|
|
80100e8: 2b00 cmp r3, #0
|
|
80100ea: 4699 mov r9, r3
|
|
80100ec: dc36 bgt.n 801015c <_printf_float+0x360>
|
|
80100ee: f04f 0b00 mov.w fp, #0
|
|
80100f2: ea29 79e9 bic.w r9, r9, r9, asr #31
|
|
80100f6: f104 021a add.w r2, r4, #26
|
|
80100fa: 6da3 ldr r3, [r4, #88] @ 0x58
|
|
80100fc: 9306 str r3, [sp, #24]
|
|
80100fe: eba3 0309 sub.w r3, r3, r9
|
|
8010102: 455b cmp r3, fp
|
|
8010104: dc31 bgt.n 801016a <_printf_float+0x36e>
|
|
8010106: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010108: 459a cmp sl, r3
|
|
801010a: dc3a bgt.n 8010182 <_printf_float+0x386>
|
|
801010c: 6823 ldr r3, [r4, #0]
|
|
801010e: 07da lsls r2, r3, #31
|
|
8010110: d437 bmi.n 8010182 <_printf_float+0x386>
|
|
8010112: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010114: ebaa 0903 sub.w r9, sl, r3
|
|
8010118: 9b06 ldr r3, [sp, #24]
|
|
801011a: ebaa 0303 sub.w r3, sl, r3
|
|
801011e: 4599 cmp r9, r3
|
|
8010120: bfa8 it ge
|
|
8010122: 4699 movge r9, r3
|
|
8010124: f1b9 0f00 cmp.w r9, #0
|
|
8010128: dc33 bgt.n 8010192 <_printf_float+0x396>
|
|
801012a: f04f 0800 mov.w r8, #0
|
|
801012e: ea29 79e9 bic.w r9, r9, r9, asr #31
|
|
8010132: f104 0b1a add.w fp, r4, #26
|
|
8010136: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010138: ebaa 0303 sub.w r3, sl, r3
|
|
801013c: eba3 0309 sub.w r3, r3, r9
|
|
8010140: 4543 cmp r3, r8
|
|
8010142: f77f af79 ble.w 8010038 <_printf_float+0x23c>
|
|
8010146: 2301 movs r3, #1
|
|
8010148: 465a mov r2, fp
|
|
801014a: 4631 mov r1, r6
|
|
801014c: 4628 mov r0, r5
|
|
801014e: 47b8 blx r7
|
|
8010150: 3001 adds r0, #1
|
|
8010152: f43f aeae beq.w 800feb2 <_printf_float+0xb6>
|
|
8010156: f108 0801 add.w r8, r8, #1
|
|
801015a: e7ec b.n 8010136 <_printf_float+0x33a>
|
|
801015c: 4642 mov r2, r8
|
|
801015e: 4631 mov r1, r6
|
|
8010160: 4628 mov r0, r5
|
|
8010162: 47b8 blx r7
|
|
8010164: 3001 adds r0, #1
|
|
8010166: d1c2 bne.n 80100ee <_printf_float+0x2f2>
|
|
8010168: e6a3 b.n 800feb2 <_printf_float+0xb6>
|
|
801016a: 2301 movs r3, #1
|
|
801016c: 4631 mov r1, r6
|
|
801016e: 4628 mov r0, r5
|
|
8010170: 9206 str r2, [sp, #24]
|
|
8010172: 47b8 blx r7
|
|
8010174: 3001 adds r0, #1
|
|
8010176: f43f ae9c beq.w 800feb2 <_printf_float+0xb6>
|
|
801017a: 9a06 ldr r2, [sp, #24]
|
|
801017c: f10b 0b01 add.w fp, fp, #1
|
|
8010180: e7bb b.n 80100fa <_printf_float+0x2fe>
|
|
8010182: e9dd 2304 ldrd r2, r3, [sp, #16]
|
|
8010186: 4631 mov r1, r6
|
|
8010188: 4628 mov r0, r5
|
|
801018a: 47b8 blx r7
|
|
801018c: 3001 adds r0, #1
|
|
801018e: d1c0 bne.n 8010112 <_printf_float+0x316>
|
|
8010190: e68f b.n 800feb2 <_printf_float+0xb6>
|
|
8010192: 9a06 ldr r2, [sp, #24]
|
|
8010194: 464b mov r3, r9
|
|
8010196: 4442 add r2, r8
|
|
8010198: 4631 mov r1, r6
|
|
801019a: 4628 mov r0, r5
|
|
801019c: 47b8 blx r7
|
|
801019e: 3001 adds r0, #1
|
|
80101a0: d1c3 bne.n 801012a <_printf_float+0x32e>
|
|
80101a2: e686 b.n 800feb2 <_printf_float+0xb6>
|
|
80101a4: f8dd a028 ldr.w sl, [sp, #40] @ 0x28
|
|
80101a8: f1ba 0f01 cmp.w sl, #1
|
|
80101ac: dc01 bgt.n 80101b2 <_printf_float+0x3b6>
|
|
80101ae: 07db lsls r3, r3, #31
|
|
80101b0: d536 bpl.n 8010220 <_printf_float+0x424>
|
|
80101b2: 2301 movs r3, #1
|
|
80101b4: 4642 mov r2, r8
|
|
80101b6: 4631 mov r1, r6
|
|
80101b8: 4628 mov r0, r5
|
|
80101ba: 47b8 blx r7
|
|
80101bc: 3001 adds r0, #1
|
|
80101be: f43f ae78 beq.w 800feb2 <_printf_float+0xb6>
|
|
80101c2: e9dd 2304 ldrd r2, r3, [sp, #16]
|
|
80101c6: 4631 mov r1, r6
|
|
80101c8: 4628 mov r0, r5
|
|
80101ca: 47b8 blx r7
|
|
80101cc: 3001 adds r0, #1
|
|
80101ce: f43f ae70 beq.w 800feb2 <_printf_float+0xb6>
|
|
80101d2: e9d4 0112 ldrd r0, r1, [r4, #72] @ 0x48
|
|
80101d6: 2200 movs r2, #0
|
|
80101d8: 2300 movs r3, #0
|
|
80101da: f10a 3aff add.w sl, sl, #4294967295
|
|
80101de: f7f0 fc83 bl 8000ae8 <__aeabi_dcmpeq>
|
|
80101e2: b9c0 cbnz r0, 8010216 <_printf_float+0x41a>
|
|
80101e4: 4653 mov r3, sl
|
|
80101e6: f108 0201 add.w r2, r8, #1
|
|
80101ea: 4631 mov r1, r6
|
|
80101ec: 4628 mov r0, r5
|
|
80101ee: 47b8 blx r7
|
|
80101f0: 3001 adds r0, #1
|
|
80101f2: d10c bne.n 801020e <_printf_float+0x412>
|
|
80101f4: e65d b.n 800feb2 <_printf_float+0xb6>
|
|
80101f6: 2301 movs r3, #1
|
|
80101f8: 465a mov r2, fp
|
|
80101fa: 4631 mov r1, r6
|
|
80101fc: 4628 mov r0, r5
|
|
80101fe: 47b8 blx r7
|
|
8010200: 3001 adds r0, #1
|
|
8010202: f43f ae56 beq.w 800feb2 <_printf_float+0xb6>
|
|
8010206: f108 0801 add.w r8, r8, #1
|
|
801020a: 45d0 cmp r8, sl
|
|
801020c: dbf3 blt.n 80101f6 <_printf_float+0x3fa>
|
|
801020e: 464b mov r3, r9
|
|
8010210: f104 0250 add.w r2, r4, #80 @ 0x50
|
|
8010214: e6df b.n 800ffd6 <_printf_float+0x1da>
|
|
8010216: f04f 0800 mov.w r8, #0
|
|
801021a: f104 0b1a add.w fp, r4, #26
|
|
801021e: e7f4 b.n 801020a <_printf_float+0x40e>
|
|
8010220: 2301 movs r3, #1
|
|
8010222: 4642 mov r2, r8
|
|
8010224: e7e1 b.n 80101ea <_printf_float+0x3ee>
|
|
8010226: 2301 movs r3, #1
|
|
8010228: 464a mov r2, r9
|
|
801022a: 4631 mov r1, r6
|
|
801022c: 4628 mov r0, r5
|
|
801022e: 47b8 blx r7
|
|
8010230: 3001 adds r0, #1
|
|
8010232: f43f ae3e beq.w 800feb2 <_printf_float+0xb6>
|
|
8010236: f108 0801 add.w r8, r8, #1
|
|
801023a: 68e3 ldr r3, [r4, #12]
|
|
801023c: 990b ldr r1, [sp, #44] @ 0x2c
|
|
801023e: 1a5b subs r3, r3, r1
|
|
8010240: 4543 cmp r3, r8
|
|
8010242: dcf0 bgt.n 8010226 <_printf_float+0x42a>
|
|
8010244: e6fc b.n 8010040 <_printf_float+0x244>
|
|
8010246: f04f 0800 mov.w r8, #0
|
|
801024a: f104 0919 add.w r9, r4, #25
|
|
801024e: e7f4 b.n 801023a <_printf_float+0x43e>
|
|
|
|
08010250 <_printf_common>:
|
|
8010250: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
|
|
8010254: 4616 mov r6, r2
|
|
8010256: 4698 mov r8, r3
|
|
8010258: 688a ldr r2, [r1, #8]
|
|
801025a: 690b ldr r3, [r1, #16]
|
|
801025c: f8dd 9020 ldr.w r9, [sp, #32]
|
|
8010260: 4293 cmp r3, r2
|
|
8010262: bfb8 it lt
|
|
8010264: 4613 movlt r3, r2
|
|
8010266: 6033 str r3, [r6, #0]
|
|
8010268: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
|
|
801026c: 4607 mov r7, r0
|
|
801026e: 460c mov r4, r1
|
|
8010270: b10a cbz r2, 8010276 <_printf_common+0x26>
|
|
8010272: 3301 adds r3, #1
|
|
8010274: 6033 str r3, [r6, #0]
|
|
8010276: 6823 ldr r3, [r4, #0]
|
|
8010278: 0699 lsls r1, r3, #26
|
|
801027a: bf42 ittt mi
|
|
801027c: 6833 ldrmi r3, [r6, #0]
|
|
801027e: 3302 addmi r3, #2
|
|
8010280: 6033 strmi r3, [r6, #0]
|
|
8010282: 6825 ldr r5, [r4, #0]
|
|
8010284: f015 0506 ands.w r5, r5, #6
|
|
8010288: d106 bne.n 8010298 <_printf_common+0x48>
|
|
801028a: f104 0a19 add.w sl, r4, #25
|
|
801028e: 68e3 ldr r3, [r4, #12]
|
|
8010290: 6832 ldr r2, [r6, #0]
|
|
8010292: 1a9b subs r3, r3, r2
|
|
8010294: 42ab cmp r3, r5
|
|
8010296: dc26 bgt.n 80102e6 <_printf_common+0x96>
|
|
8010298: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
|
|
801029c: 6822 ldr r2, [r4, #0]
|
|
801029e: 3b00 subs r3, #0
|
|
80102a0: bf18 it ne
|
|
80102a2: 2301 movne r3, #1
|
|
80102a4: 0692 lsls r2, r2, #26
|
|
80102a6: d42b bmi.n 8010300 <_printf_common+0xb0>
|
|
80102a8: f104 0243 add.w r2, r4, #67 @ 0x43
|
|
80102ac: 4641 mov r1, r8
|
|
80102ae: 4638 mov r0, r7
|
|
80102b0: 47c8 blx r9
|
|
80102b2: 3001 adds r0, #1
|
|
80102b4: d01e beq.n 80102f4 <_printf_common+0xa4>
|
|
80102b6: 6823 ldr r3, [r4, #0]
|
|
80102b8: 6922 ldr r2, [r4, #16]
|
|
80102ba: f003 0306 and.w r3, r3, #6
|
|
80102be: 2b04 cmp r3, #4
|
|
80102c0: bf02 ittt eq
|
|
80102c2: 68e5 ldreq r5, [r4, #12]
|
|
80102c4: 6833 ldreq r3, [r6, #0]
|
|
80102c6: 1aed subeq r5, r5, r3
|
|
80102c8: 68a3 ldr r3, [r4, #8]
|
|
80102ca: bf0c ite eq
|
|
80102cc: ea25 75e5 biceq.w r5, r5, r5, asr #31
|
|
80102d0: 2500 movne r5, #0
|
|
80102d2: 4293 cmp r3, r2
|
|
80102d4: bfc4 itt gt
|
|
80102d6: 1a9b subgt r3, r3, r2
|
|
80102d8: 18ed addgt r5, r5, r3
|
|
80102da: 2600 movs r6, #0
|
|
80102dc: 341a adds r4, #26
|
|
80102de: 42b5 cmp r5, r6
|
|
80102e0: d11a bne.n 8010318 <_printf_common+0xc8>
|
|
80102e2: 2000 movs r0, #0
|
|
80102e4: e008 b.n 80102f8 <_printf_common+0xa8>
|
|
80102e6: 2301 movs r3, #1
|
|
80102e8: 4652 mov r2, sl
|
|
80102ea: 4641 mov r1, r8
|
|
80102ec: 4638 mov r0, r7
|
|
80102ee: 47c8 blx r9
|
|
80102f0: 3001 adds r0, #1
|
|
80102f2: d103 bne.n 80102fc <_printf_common+0xac>
|
|
80102f4: f04f 30ff mov.w r0, #4294967295
|
|
80102f8: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
80102fc: 3501 adds r5, #1
|
|
80102fe: e7c6 b.n 801028e <_printf_common+0x3e>
|
|
8010300: 18e1 adds r1, r4, r3
|
|
8010302: 1c5a adds r2, r3, #1
|
|
8010304: 2030 movs r0, #48 @ 0x30
|
|
8010306: f881 0043 strb.w r0, [r1, #67] @ 0x43
|
|
801030a: 4422 add r2, r4
|
|
801030c: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
|
|
8010310: f882 1043 strb.w r1, [r2, #67] @ 0x43
|
|
8010314: 3302 adds r3, #2
|
|
8010316: e7c7 b.n 80102a8 <_printf_common+0x58>
|
|
8010318: 2301 movs r3, #1
|
|
801031a: 4622 mov r2, r4
|
|
801031c: 4641 mov r1, r8
|
|
801031e: 4638 mov r0, r7
|
|
8010320: 47c8 blx r9
|
|
8010322: 3001 adds r0, #1
|
|
8010324: d0e6 beq.n 80102f4 <_printf_common+0xa4>
|
|
8010326: 3601 adds r6, #1
|
|
8010328: e7d9 b.n 80102de <_printf_common+0x8e>
|
|
...
|
|
|
|
0801032c <_printf_i>:
|
|
801032c: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
|
|
8010330: 7e0f ldrb r7, [r1, #24]
|
|
8010332: 9e0c ldr r6, [sp, #48] @ 0x30
|
|
8010334: 2f78 cmp r7, #120 @ 0x78
|
|
8010336: 4691 mov r9, r2
|
|
8010338: 4680 mov r8, r0
|
|
801033a: 460c mov r4, r1
|
|
801033c: 469a mov sl, r3
|
|
801033e: f101 0243 add.w r2, r1, #67 @ 0x43
|
|
8010342: d807 bhi.n 8010354 <_printf_i+0x28>
|
|
8010344: 2f62 cmp r7, #98 @ 0x62
|
|
8010346: d80a bhi.n 801035e <_printf_i+0x32>
|
|
8010348: 2f00 cmp r7, #0
|
|
801034a: f000 80d2 beq.w 80104f2 <_printf_i+0x1c6>
|
|
801034e: 2f58 cmp r7, #88 @ 0x58
|
|
8010350: f000 80b9 beq.w 80104c6 <_printf_i+0x19a>
|
|
8010354: f104 0642 add.w r6, r4, #66 @ 0x42
|
|
8010358: f884 7042 strb.w r7, [r4, #66] @ 0x42
|
|
801035c: e03a b.n 80103d4 <_printf_i+0xa8>
|
|
801035e: f1a7 0363 sub.w r3, r7, #99 @ 0x63
|
|
8010362: 2b15 cmp r3, #21
|
|
8010364: d8f6 bhi.n 8010354 <_printf_i+0x28>
|
|
8010366: a101 add r1, pc, #4 @ (adr r1, 801036c <_printf_i+0x40>)
|
|
8010368: f851 f023 ldr.w pc, [r1, r3, lsl #2]
|
|
801036c: 080103c5 .word 0x080103c5
|
|
8010370: 080103d9 .word 0x080103d9
|
|
8010374: 08010355 .word 0x08010355
|
|
8010378: 08010355 .word 0x08010355
|
|
801037c: 08010355 .word 0x08010355
|
|
8010380: 08010355 .word 0x08010355
|
|
8010384: 080103d9 .word 0x080103d9
|
|
8010388: 08010355 .word 0x08010355
|
|
801038c: 08010355 .word 0x08010355
|
|
8010390: 08010355 .word 0x08010355
|
|
8010394: 08010355 .word 0x08010355
|
|
8010398: 080104d9 .word 0x080104d9
|
|
801039c: 08010403 .word 0x08010403
|
|
80103a0: 08010493 .word 0x08010493
|
|
80103a4: 08010355 .word 0x08010355
|
|
80103a8: 08010355 .word 0x08010355
|
|
80103ac: 080104fb .word 0x080104fb
|
|
80103b0: 08010355 .word 0x08010355
|
|
80103b4: 08010403 .word 0x08010403
|
|
80103b8: 08010355 .word 0x08010355
|
|
80103bc: 08010355 .word 0x08010355
|
|
80103c0: 0801049b .word 0x0801049b
|
|
80103c4: 6833 ldr r3, [r6, #0]
|
|
80103c6: 1d1a adds r2, r3, #4
|
|
80103c8: 681b ldr r3, [r3, #0]
|
|
80103ca: 6032 str r2, [r6, #0]
|
|
80103cc: f104 0642 add.w r6, r4, #66 @ 0x42
|
|
80103d0: f884 3042 strb.w r3, [r4, #66] @ 0x42
|
|
80103d4: 2301 movs r3, #1
|
|
80103d6: e09d b.n 8010514 <_printf_i+0x1e8>
|
|
80103d8: 6833 ldr r3, [r6, #0]
|
|
80103da: 6820 ldr r0, [r4, #0]
|
|
80103dc: 1d19 adds r1, r3, #4
|
|
80103de: 6031 str r1, [r6, #0]
|
|
80103e0: 0606 lsls r6, r0, #24
|
|
80103e2: d501 bpl.n 80103e8 <_printf_i+0xbc>
|
|
80103e4: 681d ldr r5, [r3, #0]
|
|
80103e6: e003 b.n 80103f0 <_printf_i+0xc4>
|
|
80103e8: 0645 lsls r5, r0, #25
|
|
80103ea: d5fb bpl.n 80103e4 <_printf_i+0xb8>
|
|
80103ec: f9b3 5000 ldrsh.w r5, [r3]
|
|
80103f0: 2d00 cmp r5, #0
|
|
80103f2: da03 bge.n 80103fc <_printf_i+0xd0>
|
|
80103f4: 232d movs r3, #45 @ 0x2d
|
|
80103f6: 426d negs r5, r5
|
|
80103f8: f884 3043 strb.w r3, [r4, #67] @ 0x43
|
|
80103fc: 4859 ldr r0, [pc, #356] @ (8010564 <_printf_i+0x238>)
|
|
80103fe: 230a movs r3, #10
|
|
8010400: e011 b.n 8010426 <_printf_i+0xfa>
|
|
8010402: 6821 ldr r1, [r4, #0]
|
|
8010404: 6833 ldr r3, [r6, #0]
|
|
8010406: 0608 lsls r0, r1, #24
|
|
8010408: f853 5b04 ldr.w r5, [r3], #4
|
|
801040c: d402 bmi.n 8010414 <_printf_i+0xe8>
|
|
801040e: 0649 lsls r1, r1, #25
|
|
8010410: bf48 it mi
|
|
8010412: b2ad uxthmi r5, r5
|
|
8010414: 2f6f cmp r7, #111 @ 0x6f
|
|
8010416: 4853 ldr r0, [pc, #332] @ (8010564 <_printf_i+0x238>)
|
|
8010418: 6033 str r3, [r6, #0]
|
|
801041a: bf14 ite ne
|
|
801041c: 230a movne r3, #10
|
|
801041e: 2308 moveq r3, #8
|
|
8010420: 2100 movs r1, #0
|
|
8010422: f884 1043 strb.w r1, [r4, #67] @ 0x43
|
|
8010426: 6866 ldr r6, [r4, #4]
|
|
8010428: 60a6 str r6, [r4, #8]
|
|
801042a: 2e00 cmp r6, #0
|
|
801042c: bfa2 ittt ge
|
|
801042e: 6821 ldrge r1, [r4, #0]
|
|
8010430: f021 0104 bicge.w r1, r1, #4
|
|
8010434: 6021 strge r1, [r4, #0]
|
|
8010436: b90d cbnz r5, 801043c <_printf_i+0x110>
|
|
8010438: 2e00 cmp r6, #0
|
|
801043a: d04b beq.n 80104d4 <_printf_i+0x1a8>
|
|
801043c: 4616 mov r6, r2
|
|
801043e: fbb5 f1f3 udiv r1, r5, r3
|
|
8010442: fb03 5711 mls r7, r3, r1, r5
|
|
8010446: 5dc7 ldrb r7, [r0, r7]
|
|
8010448: f806 7d01 strb.w r7, [r6, #-1]!
|
|
801044c: 462f mov r7, r5
|
|
801044e: 42bb cmp r3, r7
|
|
8010450: 460d mov r5, r1
|
|
8010452: d9f4 bls.n 801043e <_printf_i+0x112>
|
|
8010454: 2b08 cmp r3, #8
|
|
8010456: d10b bne.n 8010470 <_printf_i+0x144>
|
|
8010458: 6823 ldr r3, [r4, #0]
|
|
801045a: 07df lsls r7, r3, #31
|
|
801045c: d508 bpl.n 8010470 <_printf_i+0x144>
|
|
801045e: 6923 ldr r3, [r4, #16]
|
|
8010460: 6861 ldr r1, [r4, #4]
|
|
8010462: 4299 cmp r1, r3
|
|
8010464: bfde ittt le
|
|
8010466: 2330 movle r3, #48 @ 0x30
|
|
8010468: f806 3c01 strble.w r3, [r6, #-1]
|
|
801046c: f106 36ff addle.w r6, r6, #4294967295
|
|
8010470: 1b92 subs r2, r2, r6
|
|
8010472: 6122 str r2, [r4, #16]
|
|
8010474: f8cd a000 str.w sl, [sp]
|
|
8010478: 464b mov r3, r9
|
|
801047a: aa03 add r2, sp, #12
|
|
801047c: 4621 mov r1, r4
|
|
801047e: 4640 mov r0, r8
|
|
8010480: f7ff fee6 bl 8010250 <_printf_common>
|
|
8010484: 3001 adds r0, #1
|
|
8010486: d14a bne.n 801051e <_printf_i+0x1f2>
|
|
8010488: f04f 30ff mov.w r0, #4294967295
|
|
801048c: b004 add sp, #16
|
|
801048e: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
8010492: 6823 ldr r3, [r4, #0]
|
|
8010494: f043 0320 orr.w r3, r3, #32
|
|
8010498: 6023 str r3, [r4, #0]
|
|
801049a: 4833 ldr r0, [pc, #204] @ (8010568 <_printf_i+0x23c>)
|
|
801049c: 2778 movs r7, #120 @ 0x78
|
|
801049e: f884 7045 strb.w r7, [r4, #69] @ 0x45
|
|
80104a2: 6823 ldr r3, [r4, #0]
|
|
80104a4: 6831 ldr r1, [r6, #0]
|
|
80104a6: 061f lsls r7, r3, #24
|
|
80104a8: f851 5b04 ldr.w r5, [r1], #4
|
|
80104ac: d402 bmi.n 80104b4 <_printf_i+0x188>
|
|
80104ae: 065f lsls r7, r3, #25
|
|
80104b0: bf48 it mi
|
|
80104b2: b2ad uxthmi r5, r5
|
|
80104b4: 6031 str r1, [r6, #0]
|
|
80104b6: 07d9 lsls r1, r3, #31
|
|
80104b8: bf44 itt mi
|
|
80104ba: f043 0320 orrmi.w r3, r3, #32
|
|
80104be: 6023 strmi r3, [r4, #0]
|
|
80104c0: b11d cbz r5, 80104ca <_printf_i+0x19e>
|
|
80104c2: 2310 movs r3, #16
|
|
80104c4: e7ac b.n 8010420 <_printf_i+0xf4>
|
|
80104c6: 4827 ldr r0, [pc, #156] @ (8010564 <_printf_i+0x238>)
|
|
80104c8: e7e9 b.n 801049e <_printf_i+0x172>
|
|
80104ca: 6823 ldr r3, [r4, #0]
|
|
80104cc: f023 0320 bic.w r3, r3, #32
|
|
80104d0: 6023 str r3, [r4, #0]
|
|
80104d2: e7f6 b.n 80104c2 <_printf_i+0x196>
|
|
80104d4: 4616 mov r6, r2
|
|
80104d6: e7bd b.n 8010454 <_printf_i+0x128>
|
|
80104d8: 6833 ldr r3, [r6, #0]
|
|
80104da: 6825 ldr r5, [r4, #0]
|
|
80104dc: 6961 ldr r1, [r4, #20]
|
|
80104de: 1d18 adds r0, r3, #4
|
|
80104e0: 6030 str r0, [r6, #0]
|
|
80104e2: 062e lsls r6, r5, #24
|
|
80104e4: 681b ldr r3, [r3, #0]
|
|
80104e6: d501 bpl.n 80104ec <_printf_i+0x1c0>
|
|
80104e8: 6019 str r1, [r3, #0]
|
|
80104ea: e002 b.n 80104f2 <_printf_i+0x1c6>
|
|
80104ec: 0668 lsls r0, r5, #25
|
|
80104ee: d5fb bpl.n 80104e8 <_printf_i+0x1bc>
|
|
80104f0: 8019 strh r1, [r3, #0]
|
|
80104f2: 2300 movs r3, #0
|
|
80104f4: 6123 str r3, [r4, #16]
|
|
80104f6: 4616 mov r6, r2
|
|
80104f8: e7bc b.n 8010474 <_printf_i+0x148>
|
|
80104fa: 6833 ldr r3, [r6, #0]
|
|
80104fc: 1d1a adds r2, r3, #4
|
|
80104fe: 6032 str r2, [r6, #0]
|
|
8010500: 681e ldr r6, [r3, #0]
|
|
8010502: 6862 ldr r2, [r4, #4]
|
|
8010504: 2100 movs r1, #0
|
|
8010506: 4630 mov r0, r6
|
|
8010508: f7ef fe72 bl 80001f0 <memchr>
|
|
801050c: b108 cbz r0, 8010512 <_printf_i+0x1e6>
|
|
801050e: 1b80 subs r0, r0, r6
|
|
8010510: 6060 str r0, [r4, #4]
|
|
8010512: 6863 ldr r3, [r4, #4]
|
|
8010514: 6123 str r3, [r4, #16]
|
|
8010516: 2300 movs r3, #0
|
|
8010518: f884 3043 strb.w r3, [r4, #67] @ 0x43
|
|
801051c: e7aa b.n 8010474 <_printf_i+0x148>
|
|
801051e: 6923 ldr r3, [r4, #16]
|
|
8010520: 4632 mov r2, r6
|
|
8010522: 4649 mov r1, r9
|
|
8010524: 4640 mov r0, r8
|
|
8010526: 47d0 blx sl
|
|
8010528: 3001 adds r0, #1
|
|
801052a: d0ad beq.n 8010488 <_printf_i+0x15c>
|
|
801052c: 6823 ldr r3, [r4, #0]
|
|
801052e: 079b lsls r3, r3, #30
|
|
8010530: d413 bmi.n 801055a <_printf_i+0x22e>
|
|
8010532: 68e0 ldr r0, [r4, #12]
|
|
8010534: 9b03 ldr r3, [sp, #12]
|
|
8010536: 4298 cmp r0, r3
|
|
8010538: bfb8 it lt
|
|
801053a: 4618 movlt r0, r3
|
|
801053c: e7a6 b.n 801048c <_printf_i+0x160>
|
|
801053e: 2301 movs r3, #1
|
|
8010540: 4632 mov r2, r6
|
|
8010542: 4649 mov r1, r9
|
|
8010544: 4640 mov r0, r8
|
|
8010546: 47d0 blx sl
|
|
8010548: 3001 adds r0, #1
|
|
801054a: d09d beq.n 8010488 <_printf_i+0x15c>
|
|
801054c: 3501 adds r5, #1
|
|
801054e: 68e3 ldr r3, [r4, #12]
|
|
8010550: 9903 ldr r1, [sp, #12]
|
|
8010552: 1a5b subs r3, r3, r1
|
|
8010554: 42ab cmp r3, r5
|
|
8010556: dcf2 bgt.n 801053e <_printf_i+0x212>
|
|
8010558: e7eb b.n 8010532 <_printf_i+0x206>
|
|
801055a: 2500 movs r5, #0
|
|
801055c: f104 0619 add.w r6, r4, #25
|
|
8010560: e7f5 b.n 801054e <_printf_i+0x222>
|
|
8010562: bf00 nop
|
|
8010564: 080133da .word 0x080133da
|
|
8010568: 080133eb .word 0x080133eb
|
|
|
|
0801056c <std>:
|
|
801056c: 2300 movs r3, #0
|
|
801056e: b510 push {r4, lr}
|
|
8010570: 4604 mov r4, r0
|
|
8010572: e9c0 3300 strd r3, r3, [r0]
|
|
8010576: e9c0 3304 strd r3, r3, [r0, #16]
|
|
801057a: 6083 str r3, [r0, #8]
|
|
801057c: 8181 strh r1, [r0, #12]
|
|
801057e: 6643 str r3, [r0, #100] @ 0x64
|
|
8010580: 81c2 strh r2, [r0, #14]
|
|
8010582: 6183 str r3, [r0, #24]
|
|
8010584: 4619 mov r1, r3
|
|
8010586: 2208 movs r2, #8
|
|
8010588: 305c adds r0, #92 @ 0x5c
|
|
801058a: f000 f961 bl 8010850 <memset>
|
|
801058e: 4b0d ldr r3, [pc, #52] @ (80105c4 <std+0x58>)
|
|
8010590: 6263 str r3, [r4, #36] @ 0x24
|
|
8010592: 4b0d ldr r3, [pc, #52] @ (80105c8 <std+0x5c>)
|
|
8010594: 62a3 str r3, [r4, #40] @ 0x28
|
|
8010596: 4b0d ldr r3, [pc, #52] @ (80105cc <std+0x60>)
|
|
8010598: 62e3 str r3, [r4, #44] @ 0x2c
|
|
801059a: 4b0d ldr r3, [pc, #52] @ (80105d0 <std+0x64>)
|
|
801059c: 6323 str r3, [r4, #48] @ 0x30
|
|
801059e: 4b0d ldr r3, [pc, #52] @ (80105d4 <std+0x68>)
|
|
80105a0: 6224 str r4, [r4, #32]
|
|
80105a2: 429c cmp r4, r3
|
|
80105a4: d006 beq.n 80105b4 <std+0x48>
|
|
80105a6: f103 0268 add.w r2, r3, #104 @ 0x68
|
|
80105aa: 4294 cmp r4, r2
|
|
80105ac: d002 beq.n 80105b4 <std+0x48>
|
|
80105ae: 33d0 adds r3, #208 @ 0xd0
|
|
80105b0: 429c cmp r4, r3
|
|
80105b2: d105 bne.n 80105c0 <std+0x54>
|
|
80105b4: f104 0058 add.w r0, r4, #88 @ 0x58
|
|
80105b8: e8bd 4010 ldmia.w sp!, {r4, lr}
|
|
80105bc: f7f3 baad b.w 8003b1a <__retarget_lock_init_recursive>
|
|
80105c0: bd10 pop {r4, pc}
|
|
80105c2: bf00 nop
|
|
80105c4: 08010759 .word 0x08010759
|
|
80105c8: 0801077b .word 0x0801077b
|
|
80105cc: 080107b3 .word 0x080107b3
|
|
80105d0: 080107d7 .word 0x080107d7
|
|
80105d4: 20008848 .word 0x20008848
|
|
|
|
080105d8 <stdio_exit_handler>:
|
|
80105d8: 4a02 ldr r2, [pc, #8] @ (80105e4 <stdio_exit_handler+0xc>)
|
|
80105da: 4903 ldr r1, [pc, #12] @ (80105e8 <stdio_exit_handler+0x10>)
|
|
80105dc: 4803 ldr r0, [pc, #12] @ (80105ec <stdio_exit_handler+0x14>)
|
|
80105de: f000 b869 b.w 80106b4 <_fwalk_sglue>
|
|
80105e2: bf00 nop
|
|
80105e4: 20000010 .word 0x20000010
|
|
80105e8: 08012359 .word 0x08012359
|
|
80105ec: 20000020 .word 0x20000020
|
|
|
|
080105f0 <cleanup_stdio>:
|
|
80105f0: 6841 ldr r1, [r0, #4]
|
|
80105f2: 4b0c ldr r3, [pc, #48] @ (8010624 <cleanup_stdio+0x34>)
|
|
80105f4: 4299 cmp r1, r3
|
|
80105f6: b510 push {r4, lr}
|
|
80105f8: 4604 mov r4, r0
|
|
80105fa: d001 beq.n 8010600 <cleanup_stdio+0x10>
|
|
80105fc: f001 feac bl 8012358 <_fflush_r>
|
|
8010600: 68a1 ldr r1, [r4, #8]
|
|
8010602: 4b09 ldr r3, [pc, #36] @ (8010628 <cleanup_stdio+0x38>)
|
|
8010604: 4299 cmp r1, r3
|
|
8010606: d002 beq.n 801060e <cleanup_stdio+0x1e>
|
|
8010608: 4620 mov r0, r4
|
|
801060a: f001 fea5 bl 8012358 <_fflush_r>
|
|
801060e: 68e1 ldr r1, [r4, #12]
|
|
8010610: 4b06 ldr r3, [pc, #24] @ (801062c <cleanup_stdio+0x3c>)
|
|
8010612: 4299 cmp r1, r3
|
|
8010614: d004 beq.n 8010620 <cleanup_stdio+0x30>
|
|
8010616: 4620 mov r0, r4
|
|
8010618: e8bd 4010 ldmia.w sp!, {r4, lr}
|
|
801061c: f001 be9c b.w 8012358 <_fflush_r>
|
|
8010620: bd10 pop {r4, pc}
|
|
8010622: bf00 nop
|
|
8010624: 20008848 .word 0x20008848
|
|
8010628: 200088b0 .word 0x200088b0
|
|
801062c: 20008918 .word 0x20008918
|
|
|
|
08010630 <global_stdio_init.part.0>:
|
|
8010630: b510 push {r4, lr}
|
|
8010632: 4b0b ldr r3, [pc, #44] @ (8010660 <global_stdio_init.part.0+0x30>)
|
|
8010634: 4c0b ldr r4, [pc, #44] @ (8010664 <global_stdio_init.part.0+0x34>)
|
|
8010636: 4a0c ldr r2, [pc, #48] @ (8010668 <global_stdio_init.part.0+0x38>)
|
|
8010638: 601a str r2, [r3, #0]
|
|
801063a: 4620 mov r0, r4
|
|
801063c: 2200 movs r2, #0
|
|
801063e: 2104 movs r1, #4
|
|
8010640: f7ff ff94 bl 801056c <std>
|
|
8010644: f104 0068 add.w r0, r4, #104 @ 0x68
|
|
8010648: 2201 movs r2, #1
|
|
801064a: 2109 movs r1, #9
|
|
801064c: f7ff ff8e bl 801056c <std>
|
|
8010650: f104 00d0 add.w r0, r4, #208 @ 0xd0
|
|
8010654: 2202 movs r2, #2
|
|
8010656: e8bd 4010 ldmia.w sp!, {r4, lr}
|
|
801065a: 2112 movs r1, #18
|
|
801065c: f7ff bf86 b.w 801056c <std>
|
|
8010660: 20008980 .word 0x20008980
|
|
8010664: 20008848 .word 0x20008848
|
|
8010668: 080105d9 .word 0x080105d9
|
|
|
|
0801066c <__sfp_lock_acquire>:
|
|
801066c: 4801 ldr r0, [pc, #4] @ (8010674 <__sfp_lock_acquire+0x8>)
|
|
801066e: f7f3 ba7b b.w 8003b68 <__retarget_lock_acquire_recursive>
|
|
8010672: bf00 nop
|
|
8010674: 200002c0 .word 0x200002c0
|
|
|
|
08010678 <__sfp_lock_release>:
|
|
8010678: 4801 ldr r0, [pc, #4] @ (8010680 <__sfp_lock_release+0x8>)
|
|
801067a: f7f3 ba8a b.w 8003b92 <__retarget_lock_release_recursive>
|
|
801067e: bf00 nop
|
|
8010680: 200002c0 .word 0x200002c0
|
|
|
|
08010684 <__sinit>:
|
|
8010684: b510 push {r4, lr}
|
|
8010686: 4604 mov r4, r0
|
|
8010688: f7ff fff0 bl 801066c <__sfp_lock_acquire>
|
|
801068c: 6a23 ldr r3, [r4, #32]
|
|
801068e: b11b cbz r3, 8010698 <__sinit+0x14>
|
|
8010690: e8bd 4010 ldmia.w sp!, {r4, lr}
|
|
8010694: f7ff bff0 b.w 8010678 <__sfp_lock_release>
|
|
8010698: 4b04 ldr r3, [pc, #16] @ (80106ac <__sinit+0x28>)
|
|
801069a: 6223 str r3, [r4, #32]
|
|
801069c: 4b04 ldr r3, [pc, #16] @ (80106b0 <__sinit+0x2c>)
|
|
801069e: 681b ldr r3, [r3, #0]
|
|
80106a0: 2b00 cmp r3, #0
|
|
80106a2: d1f5 bne.n 8010690 <__sinit+0xc>
|
|
80106a4: f7ff ffc4 bl 8010630 <global_stdio_init.part.0>
|
|
80106a8: e7f2 b.n 8010690 <__sinit+0xc>
|
|
80106aa: bf00 nop
|
|
80106ac: 080105f1 .word 0x080105f1
|
|
80106b0: 20008980 .word 0x20008980
|
|
|
|
080106b4 <_fwalk_sglue>:
|
|
80106b4: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
|
|
80106b8: 4607 mov r7, r0
|
|
80106ba: 4688 mov r8, r1
|
|
80106bc: 4614 mov r4, r2
|
|
80106be: 2600 movs r6, #0
|
|
80106c0: e9d4 9501 ldrd r9, r5, [r4, #4]
|
|
80106c4: f1b9 0901 subs.w r9, r9, #1
|
|
80106c8: d505 bpl.n 80106d6 <_fwalk_sglue+0x22>
|
|
80106ca: 6824 ldr r4, [r4, #0]
|
|
80106cc: 2c00 cmp r4, #0
|
|
80106ce: d1f7 bne.n 80106c0 <_fwalk_sglue+0xc>
|
|
80106d0: 4630 mov r0, r6
|
|
80106d2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
|
|
80106d6: 89ab ldrh r3, [r5, #12]
|
|
80106d8: 2b01 cmp r3, #1
|
|
80106da: d907 bls.n 80106ec <_fwalk_sglue+0x38>
|
|
80106dc: f9b5 300e ldrsh.w r3, [r5, #14]
|
|
80106e0: 3301 adds r3, #1
|
|
80106e2: d003 beq.n 80106ec <_fwalk_sglue+0x38>
|
|
80106e4: 4629 mov r1, r5
|
|
80106e6: 4638 mov r0, r7
|
|
80106e8: 47c0 blx r8
|
|
80106ea: 4306 orrs r6, r0
|
|
80106ec: 3568 adds r5, #104 @ 0x68
|
|
80106ee: e7e9 b.n 80106c4 <_fwalk_sglue+0x10>
|
|
|
|
080106f0 <sniprintf>:
|
|
80106f0: b40c push {r2, r3}
|
|
80106f2: b530 push {r4, r5, lr}
|
|
80106f4: 4b17 ldr r3, [pc, #92] @ (8010754 <sniprintf+0x64>)
|
|
80106f6: 1e0c subs r4, r1, #0
|
|
80106f8: 681d ldr r5, [r3, #0]
|
|
80106fa: b09d sub sp, #116 @ 0x74
|
|
80106fc: da08 bge.n 8010710 <sniprintf+0x20>
|
|
80106fe: 238b movs r3, #139 @ 0x8b
|
|
8010700: 602b str r3, [r5, #0]
|
|
8010702: f04f 30ff mov.w r0, #4294967295
|
|
8010706: b01d add sp, #116 @ 0x74
|
|
8010708: e8bd 4030 ldmia.w sp!, {r4, r5, lr}
|
|
801070c: b002 add sp, #8
|
|
801070e: 4770 bx lr
|
|
8010710: f44f 7302 mov.w r3, #520 @ 0x208
|
|
8010714: f8ad 3014 strh.w r3, [sp, #20]
|
|
8010718: bf14 ite ne
|
|
801071a: f104 33ff addne.w r3, r4, #4294967295
|
|
801071e: 4623 moveq r3, r4
|
|
8010720: 9304 str r3, [sp, #16]
|
|
8010722: 9307 str r3, [sp, #28]
|
|
8010724: f64f 73ff movw r3, #65535 @ 0xffff
|
|
8010728: 9002 str r0, [sp, #8]
|
|
801072a: 9006 str r0, [sp, #24]
|
|
801072c: f8ad 3016 strh.w r3, [sp, #22]
|
|
8010730: 9a20 ldr r2, [sp, #128] @ 0x80
|
|
8010732: ab21 add r3, sp, #132 @ 0x84
|
|
8010734: a902 add r1, sp, #8
|
|
8010736: 4628 mov r0, r5
|
|
8010738: 9301 str r3, [sp, #4]
|
|
801073a: f001 fc8d bl 8012058 <_svfiprintf_r>
|
|
801073e: 1c43 adds r3, r0, #1
|
|
8010740: bfbc itt lt
|
|
8010742: 238b movlt r3, #139 @ 0x8b
|
|
8010744: 602b strlt r3, [r5, #0]
|
|
8010746: 2c00 cmp r4, #0
|
|
8010748: d0dd beq.n 8010706 <sniprintf+0x16>
|
|
801074a: 9b02 ldr r3, [sp, #8]
|
|
801074c: 2200 movs r2, #0
|
|
801074e: 701a strb r2, [r3, #0]
|
|
8010750: e7d9 b.n 8010706 <sniprintf+0x16>
|
|
8010752: bf00 nop
|
|
8010754: 2000001c .word 0x2000001c
|
|
|
|
08010758 <__sread>:
|
|
8010758: b510 push {r4, lr}
|
|
801075a: 460c mov r4, r1
|
|
801075c: f9b1 100e ldrsh.w r1, [r1, #14]
|
|
8010760: f000 f92a bl 80109b8 <_read_r>
|
|
8010764: 2800 cmp r0, #0
|
|
8010766: bfab itete ge
|
|
8010768: 6d63 ldrge r3, [r4, #84] @ 0x54
|
|
801076a: 89a3 ldrhlt r3, [r4, #12]
|
|
801076c: 181b addge r3, r3, r0
|
|
801076e: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
|
|
8010772: bfac ite ge
|
|
8010774: 6563 strge r3, [r4, #84] @ 0x54
|
|
8010776: 81a3 strhlt r3, [r4, #12]
|
|
8010778: bd10 pop {r4, pc}
|
|
|
|
0801077a <__swrite>:
|
|
801077a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
801077e: 461f mov r7, r3
|
|
8010780: 898b ldrh r3, [r1, #12]
|
|
8010782: 05db lsls r3, r3, #23
|
|
8010784: 4605 mov r5, r0
|
|
8010786: 460c mov r4, r1
|
|
8010788: 4616 mov r6, r2
|
|
801078a: d505 bpl.n 8010798 <__swrite+0x1e>
|
|
801078c: f9b1 100e ldrsh.w r1, [r1, #14]
|
|
8010790: 2302 movs r3, #2
|
|
8010792: 2200 movs r2, #0
|
|
8010794: f000 f8fe bl 8010994 <_lseek_r>
|
|
8010798: 89a3 ldrh r3, [r4, #12]
|
|
801079a: f9b4 100e ldrsh.w r1, [r4, #14]
|
|
801079e: f423 5380 bic.w r3, r3, #4096 @ 0x1000
|
|
80107a2: 81a3 strh r3, [r4, #12]
|
|
80107a4: 4632 mov r2, r6
|
|
80107a6: 463b mov r3, r7
|
|
80107a8: 4628 mov r0, r5
|
|
80107aa: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
|
|
80107ae: f000 b939 b.w 8010a24 <_write_r>
|
|
|
|
080107b2 <__sseek>:
|
|
80107b2: b510 push {r4, lr}
|
|
80107b4: 460c mov r4, r1
|
|
80107b6: f9b1 100e ldrsh.w r1, [r1, #14]
|
|
80107ba: f000 f8eb bl 8010994 <_lseek_r>
|
|
80107be: 1c43 adds r3, r0, #1
|
|
80107c0: 89a3 ldrh r3, [r4, #12]
|
|
80107c2: bf15 itete ne
|
|
80107c4: 6560 strne r0, [r4, #84] @ 0x54
|
|
80107c6: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
|
|
80107ca: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
|
|
80107ce: 81a3 strheq r3, [r4, #12]
|
|
80107d0: bf18 it ne
|
|
80107d2: 81a3 strhne r3, [r4, #12]
|
|
80107d4: bd10 pop {r4, pc}
|
|
|
|
080107d6 <__sclose>:
|
|
80107d6: f9b1 100e ldrsh.w r1, [r1, #14]
|
|
80107da: f000 b875 b.w 80108c8 <_close_r>
|
|
|
|
080107de <_vsniprintf_r>:
|
|
80107de: b530 push {r4, r5, lr}
|
|
80107e0: 4614 mov r4, r2
|
|
80107e2: 2c00 cmp r4, #0
|
|
80107e4: b09b sub sp, #108 @ 0x6c
|
|
80107e6: 4605 mov r5, r0
|
|
80107e8: 461a mov r2, r3
|
|
80107ea: da05 bge.n 80107f8 <_vsniprintf_r+0x1a>
|
|
80107ec: 238b movs r3, #139 @ 0x8b
|
|
80107ee: 6003 str r3, [r0, #0]
|
|
80107f0: f04f 30ff mov.w r0, #4294967295
|
|
80107f4: b01b add sp, #108 @ 0x6c
|
|
80107f6: bd30 pop {r4, r5, pc}
|
|
80107f8: f44f 7302 mov.w r3, #520 @ 0x208
|
|
80107fc: f8ad 300c strh.w r3, [sp, #12]
|
|
8010800: bf14 ite ne
|
|
8010802: f104 33ff addne.w r3, r4, #4294967295
|
|
8010806: 4623 moveq r3, r4
|
|
8010808: 9302 str r3, [sp, #8]
|
|
801080a: 9305 str r3, [sp, #20]
|
|
801080c: f64f 73ff movw r3, #65535 @ 0xffff
|
|
8010810: 9100 str r1, [sp, #0]
|
|
8010812: 9104 str r1, [sp, #16]
|
|
8010814: f8ad 300e strh.w r3, [sp, #14]
|
|
8010818: 4669 mov r1, sp
|
|
801081a: 9b1e ldr r3, [sp, #120] @ 0x78
|
|
801081c: f001 fc1c bl 8012058 <_svfiprintf_r>
|
|
8010820: 1c43 adds r3, r0, #1
|
|
8010822: bfbc itt lt
|
|
8010824: 238b movlt r3, #139 @ 0x8b
|
|
8010826: 602b strlt r3, [r5, #0]
|
|
8010828: 2c00 cmp r4, #0
|
|
801082a: d0e3 beq.n 80107f4 <_vsniprintf_r+0x16>
|
|
801082c: 9b00 ldr r3, [sp, #0]
|
|
801082e: 2200 movs r2, #0
|
|
8010830: 701a strb r2, [r3, #0]
|
|
8010832: e7df b.n 80107f4 <_vsniprintf_r+0x16>
|
|
|
|
08010834 <vsniprintf>:
|
|
8010834: b507 push {r0, r1, r2, lr}
|
|
8010836: 9300 str r3, [sp, #0]
|
|
8010838: 4613 mov r3, r2
|
|
801083a: 460a mov r2, r1
|
|
801083c: 4601 mov r1, r0
|
|
801083e: 4803 ldr r0, [pc, #12] @ (801084c <vsniprintf+0x18>)
|
|
8010840: 6800 ldr r0, [r0, #0]
|
|
8010842: f7ff ffcc bl 80107de <_vsniprintf_r>
|
|
8010846: b003 add sp, #12
|
|
8010848: f85d fb04 ldr.w pc, [sp], #4
|
|
801084c: 2000001c .word 0x2000001c
|
|
|
|
08010850 <memset>:
|
|
8010850: 4402 add r2, r0
|
|
8010852: 4603 mov r3, r0
|
|
8010854: 4293 cmp r3, r2
|
|
8010856: d100 bne.n 801085a <memset+0xa>
|
|
8010858: 4770 bx lr
|
|
801085a: f803 1b01 strb.w r1, [r3], #1
|
|
801085e: e7f9 b.n 8010854 <memset+0x4>
|
|
|
|
08010860 <_raise_r>:
|
|
8010860: 291f cmp r1, #31
|
|
8010862: b538 push {r3, r4, r5, lr}
|
|
8010864: 4605 mov r5, r0
|
|
8010866: 460c mov r4, r1
|
|
8010868: d904 bls.n 8010874 <_raise_r+0x14>
|
|
801086a: 2316 movs r3, #22
|
|
801086c: 6003 str r3, [r0, #0]
|
|
801086e: f04f 30ff mov.w r0, #4294967295
|
|
8010872: bd38 pop {r3, r4, r5, pc}
|
|
8010874: 6bc2 ldr r2, [r0, #60] @ 0x3c
|
|
8010876: b112 cbz r2, 801087e <_raise_r+0x1e>
|
|
8010878: f852 3021 ldr.w r3, [r2, r1, lsl #2]
|
|
801087c: b94b cbnz r3, 8010892 <_raise_r+0x32>
|
|
801087e: 4628 mov r0, r5
|
|
8010880: f000 f8be bl 8010a00 <_getpid_r>
|
|
8010884: 4622 mov r2, r4
|
|
8010886: 4601 mov r1, r0
|
|
8010888: 4628 mov r0, r5
|
|
801088a: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
|
|
801088e: f000 b8a5 b.w 80109dc <_kill_r>
|
|
8010892: 2b01 cmp r3, #1
|
|
8010894: d00a beq.n 80108ac <_raise_r+0x4c>
|
|
8010896: 1c59 adds r1, r3, #1
|
|
8010898: d103 bne.n 80108a2 <_raise_r+0x42>
|
|
801089a: 2316 movs r3, #22
|
|
801089c: 6003 str r3, [r0, #0]
|
|
801089e: 2001 movs r0, #1
|
|
80108a0: e7e7 b.n 8010872 <_raise_r+0x12>
|
|
80108a2: 2100 movs r1, #0
|
|
80108a4: f842 1024 str.w r1, [r2, r4, lsl #2]
|
|
80108a8: 4620 mov r0, r4
|
|
80108aa: 4798 blx r3
|
|
80108ac: 2000 movs r0, #0
|
|
80108ae: e7e0 b.n 8010872 <_raise_r+0x12>
|
|
|
|
080108b0 <raise>:
|
|
80108b0: 4b02 ldr r3, [pc, #8] @ (80108bc <raise+0xc>)
|
|
80108b2: 4601 mov r1, r0
|
|
80108b4: 6818 ldr r0, [r3, #0]
|
|
80108b6: f7ff bfd3 b.w 8010860 <_raise_r>
|
|
80108ba: bf00 nop
|
|
80108bc: 2000001c .word 0x2000001c
|
|
|
|
080108c0 <_localeconv_r>:
|
|
80108c0: 4800 ldr r0, [pc, #0] @ (80108c4 <_localeconv_r+0x4>)
|
|
80108c2: 4770 bx lr
|
|
80108c4: 20000160 .word 0x20000160
|
|
|
|
080108c8 <_close_r>:
|
|
80108c8: b538 push {r3, r4, r5, lr}
|
|
80108ca: 4d06 ldr r5, [pc, #24] @ (80108e4 <_close_r+0x1c>)
|
|
80108cc: 2300 movs r3, #0
|
|
80108ce: 4604 mov r4, r0
|
|
80108d0: 4608 mov r0, r1
|
|
80108d2: 602b str r3, [r5, #0]
|
|
80108d4: f7f2 ff8a bl 80037ec <_close>
|
|
80108d8: 1c43 adds r3, r0, #1
|
|
80108da: d102 bne.n 80108e2 <_close_r+0x1a>
|
|
80108dc: 682b ldr r3, [r5, #0]
|
|
80108de: b103 cbz r3, 80108e2 <_close_r+0x1a>
|
|
80108e0: 6023 str r3, [r4, #0]
|
|
80108e2: bd38 pop {r3, r4, r5, pc}
|
|
80108e4: 20008984 .word 0x20008984
|
|
|
|
080108e8 <_reclaim_reent>:
|
|
80108e8: 4b29 ldr r3, [pc, #164] @ (8010990 <_reclaim_reent+0xa8>)
|
|
80108ea: 681b ldr r3, [r3, #0]
|
|
80108ec: 4283 cmp r3, r0
|
|
80108ee: b570 push {r4, r5, r6, lr}
|
|
80108f0: 4604 mov r4, r0
|
|
80108f2: d04b beq.n 801098c <_reclaim_reent+0xa4>
|
|
80108f4: 69c3 ldr r3, [r0, #28]
|
|
80108f6: b1ab cbz r3, 8010924 <_reclaim_reent+0x3c>
|
|
80108f8: 68db ldr r3, [r3, #12]
|
|
80108fa: b16b cbz r3, 8010918 <_reclaim_reent+0x30>
|
|
80108fc: 2500 movs r5, #0
|
|
80108fe: 69e3 ldr r3, [r4, #28]
|
|
8010900: 68db ldr r3, [r3, #12]
|
|
8010902: 5959 ldr r1, [r3, r5]
|
|
8010904: 2900 cmp r1, #0
|
|
8010906: d13b bne.n 8010980 <_reclaim_reent+0x98>
|
|
8010908: 3504 adds r5, #4
|
|
801090a: 2d80 cmp r5, #128 @ 0x80
|
|
801090c: d1f7 bne.n 80108fe <_reclaim_reent+0x16>
|
|
801090e: 69e3 ldr r3, [r4, #28]
|
|
8010910: 4620 mov r0, r4
|
|
8010912: 68d9 ldr r1, [r3, #12]
|
|
8010914: f000 ff78 bl 8011808 <_free_r>
|
|
8010918: 69e3 ldr r3, [r4, #28]
|
|
801091a: 6819 ldr r1, [r3, #0]
|
|
801091c: b111 cbz r1, 8010924 <_reclaim_reent+0x3c>
|
|
801091e: 4620 mov r0, r4
|
|
8010920: f000 ff72 bl 8011808 <_free_r>
|
|
8010924: 6961 ldr r1, [r4, #20]
|
|
8010926: b111 cbz r1, 801092e <_reclaim_reent+0x46>
|
|
8010928: 4620 mov r0, r4
|
|
801092a: f000 ff6d bl 8011808 <_free_r>
|
|
801092e: 69e1 ldr r1, [r4, #28]
|
|
8010930: b111 cbz r1, 8010938 <_reclaim_reent+0x50>
|
|
8010932: 4620 mov r0, r4
|
|
8010934: f000 ff68 bl 8011808 <_free_r>
|
|
8010938: 6b21 ldr r1, [r4, #48] @ 0x30
|
|
801093a: b111 cbz r1, 8010942 <_reclaim_reent+0x5a>
|
|
801093c: 4620 mov r0, r4
|
|
801093e: f000 ff63 bl 8011808 <_free_r>
|
|
8010942: 6b61 ldr r1, [r4, #52] @ 0x34
|
|
8010944: b111 cbz r1, 801094c <_reclaim_reent+0x64>
|
|
8010946: 4620 mov r0, r4
|
|
8010948: f000 ff5e bl 8011808 <_free_r>
|
|
801094c: 6ba1 ldr r1, [r4, #56] @ 0x38
|
|
801094e: b111 cbz r1, 8010956 <_reclaim_reent+0x6e>
|
|
8010950: 4620 mov r0, r4
|
|
8010952: f000 ff59 bl 8011808 <_free_r>
|
|
8010956: 6ca1 ldr r1, [r4, #72] @ 0x48
|
|
8010958: b111 cbz r1, 8010960 <_reclaim_reent+0x78>
|
|
801095a: 4620 mov r0, r4
|
|
801095c: f000 ff54 bl 8011808 <_free_r>
|
|
8010960: 6c61 ldr r1, [r4, #68] @ 0x44
|
|
8010962: b111 cbz r1, 801096a <_reclaim_reent+0x82>
|
|
8010964: 4620 mov r0, r4
|
|
8010966: f000 ff4f bl 8011808 <_free_r>
|
|
801096a: 6ae1 ldr r1, [r4, #44] @ 0x2c
|
|
801096c: b111 cbz r1, 8010974 <_reclaim_reent+0x8c>
|
|
801096e: 4620 mov r0, r4
|
|
8010970: f000 ff4a bl 8011808 <_free_r>
|
|
8010974: 6a23 ldr r3, [r4, #32]
|
|
8010976: b14b cbz r3, 801098c <_reclaim_reent+0xa4>
|
|
8010978: 4620 mov r0, r4
|
|
801097a: e8bd 4070 ldmia.w sp!, {r4, r5, r6, lr}
|
|
801097e: 4718 bx r3
|
|
8010980: 680e ldr r6, [r1, #0]
|
|
8010982: 4620 mov r0, r4
|
|
8010984: f000 ff40 bl 8011808 <_free_r>
|
|
8010988: 4631 mov r1, r6
|
|
801098a: e7bb b.n 8010904 <_reclaim_reent+0x1c>
|
|
801098c: bd70 pop {r4, r5, r6, pc}
|
|
801098e: bf00 nop
|
|
8010990: 2000001c .word 0x2000001c
|
|
|
|
08010994 <_lseek_r>:
|
|
8010994: b538 push {r3, r4, r5, lr}
|
|
8010996: 4d07 ldr r5, [pc, #28] @ (80109b4 <_lseek_r+0x20>)
|
|
8010998: 4604 mov r4, r0
|
|
801099a: 4608 mov r0, r1
|
|
801099c: 4611 mov r1, r2
|
|
801099e: 2200 movs r2, #0
|
|
80109a0: 602a str r2, [r5, #0]
|
|
80109a2: 461a mov r2, r3
|
|
80109a4: f7f2 ff49 bl 800383a <_lseek>
|
|
80109a8: 1c43 adds r3, r0, #1
|
|
80109aa: d102 bne.n 80109b2 <_lseek_r+0x1e>
|
|
80109ac: 682b ldr r3, [r5, #0]
|
|
80109ae: b103 cbz r3, 80109b2 <_lseek_r+0x1e>
|
|
80109b0: 6023 str r3, [r4, #0]
|
|
80109b2: bd38 pop {r3, r4, r5, pc}
|
|
80109b4: 20008984 .word 0x20008984
|
|
|
|
080109b8 <_read_r>:
|
|
80109b8: b538 push {r3, r4, r5, lr}
|
|
80109ba: 4d07 ldr r5, [pc, #28] @ (80109d8 <_read_r+0x20>)
|
|
80109bc: 4604 mov r4, r0
|
|
80109be: 4608 mov r0, r1
|
|
80109c0: 4611 mov r1, r2
|
|
80109c2: 2200 movs r2, #0
|
|
80109c4: 602a str r2, [r5, #0]
|
|
80109c6: 461a mov r2, r3
|
|
80109c8: f7f2 fed7 bl 800377a <_read>
|
|
80109cc: 1c43 adds r3, r0, #1
|
|
80109ce: d102 bne.n 80109d6 <_read_r+0x1e>
|
|
80109d0: 682b ldr r3, [r5, #0]
|
|
80109d2: b103 cbz r3, 80109d6 <_read_r+0x1e>
|
|
80109d4: 6023 str r3, [r4, #0]
|
|
80109d6: bd38 pop {r3, r4, r5, pc}
|
|
80109d8: 20008984 .word 0x20008984
|
|
|
|
080109dc <_kill_r>:
|
|
80109dc: b538 push {r3, r4, r5, lr}
|
|
80109de: 4d07 ldr r5, [pc, #28] @ (80109fc <_kill_r+0x20>)
|
|
80109e0: 2300 movs r3, #0
|
|
80109e2: 4604 mov r4, r0
|
|
80109e4: 4608 mov r0, r1
|
|
80109e6: 4611 mov r1, r2
|
|
80109e8: 602b str r3, [r5, #0]
|
|
80109ea: f7f2 feab bl 8003744 <_kill>
|
|
80109ee: 1c43 adds r3, r0, #1
|
|
80109f0: d102 bne.n 80109f8 <_kill_r+0x1c>
|
|
80109f2: 682b ldr r3, [r5, #0]
|
|
80109f4: b103 cbz r3, 80109f8 <_kill_r+0x1c>
|
|
80109f6: 6023 str r3, [r4, #0]
|
|
80109f8: bd38 pop {r3, r4, r5, pc}
|
|
80109fa: bf00 nop
|
|
80109fc: 20008984 .word 0x20008984
|
|
|
|
08010a00 <_getpid_r>:
|
|
8010a00: f7f2 be98 b.w 8003734 <_getpid>
|
|
|
|
08010a04 <_sbrk_r>:
|
|
8010a04: b538 push {r3, r4, r5, lr}
|
|
8010a06: 4d06 ldr r5, [pc, #24] @ (8010a20 <_sbrk_r+0x1c>)
|
|
8010a08: 2300 movs r3, #0
|
|
8010a0a: 4604 mov r4, r0
|
|
8010a0c: 4608 mov r0, r1
|
|
8010a0e: 602b str r3, [r5, #0]
|
|
8010a10: f7f2 ff20 bl 8003854 <_sbrk>
|
|
8010a14: 1c43 adds r3, r0, #1
|
|
8010a16: d102 bne.n 8010a1e <_sbrk_r+0x1a>
|
|
8010a18: 682b ldr r3, [r5, #0]
|
|
8010a1a: b103 cbz r3, 8010a1e <_sbrk_r+0x1a>
|
|
8010a1c: 6023 str r3, [r4, #0]
|
|
8010a1e: bd38 pop {r3, r4, r5, pc}
|
|
8010a20: 20008984 .word 0x20008984
|
|
|
|
08010a24 <_write_r>:
|
|
8010a24: b538 push {r3, r4, r5, lr}
|
|
8010a26: 4d07 ldr r5, [pc, #28] @ (8010a44 <_write_r+0x20>)
|
|
8010a28: 4604 mov r4, r0
|
|
8010a2a: 4608 mov r0, r1
|
|
8010a2c: 4611 mov r1, r2
|
|
8010a2e: 2200 movs r2, #0
|
|
8010a30: 602a str r2, [r5, #0]
|
|
8010a32: 461a mov r2, r3
|
|
8010a34: f7f2 febe bl 80037b4 <_write>
|
|
8010a38: 1c43 adds r3, r0, #1
|
|
8010a3a: d102 bne.n 8010a42 <_write_r+0x1e>
|
|
8010a3c: 682b ldr r3, [r5, #0]
|
|
8010a3e: b103 cbz r3, 8010a42 <_write_r+0x1e>
|
|
8010a40: 6023 str r3, [r4, #0]
|
|
8010a42: bd38 pop {r3, r4, r5, pc}
|
|
8010a44: 20008984 .word 0x20008984
|
|
|
|
08010a48 <__errno>:
|
|
8010a48: 4b01 ldr r3, [pc, #4] @ (8010a50 <__errno+0x8>)
|
|
8010a4a: 6818 ldr r0, [r3, #0]
|
|
8010a4c: 4770 bx lr
|
|
8010a4e: bf00 nop
|
|
8010a50: 2000001c .word 0x2000001c
|
|
|
|
08010a54 <__libc_init_array>:
|
|
8010a54: b570 push {r4, r5, r6, lr}
|
|
8010a56: 4d0d ldr r5, [pc, #52] @ (8010a8c <__libc_init_array+0x38>)
|
|
8010a58: 4c0d ldr r4, [pc, #52] @ (8010a90 <__libc_init_array+0x3c>)
|
|
8010a5a: 1b64 subs r4, r4, r5
|
|
8010a5c: 10a4 asrs r4, r4, #2
|
|
8010a5e: 2600 movs r6, #0
|
|
8010a60: 42a6 cmp r6, r4
|
|
8010a62: d109 bne.n 8010a78 <__libc_init_array+0x24>
|
|
8010a64: 4d0b ldr r5, [pc, #44] @ (8010a94 <__libc_init_array+0x40>)
|
|
8010a66: 4c0c ldr r4, [pc, #48] @ (8010a98 <__libc_init_array+0x44>)
|
|
8010a68: f001 ffac bl 80129c4 <_init>
|
|
8010a6c: 1b64 subs r4, r4, r5
|
|
8010a6e: 10a4 asrs r4, r4, #2
|
|
8010a70: 2600 movs r6, #0
|
|
8010a72: 42a6 cmp r6, r4
|
|
8010a74: d105 bne.n 8010a82 <__libc_init_array+0x2e>
|
|
8010a76: bd70 pop {r4, r5, r6, pc}
|
|
8010a78: f855 3b04 ldr.w r3, [r5], #4
|
|
8010a7c: 4798 blx r3
|
|
8010a7e: 3601 adds r6, #1
|
|
8010a80: e7ee b.n 8010a60 <__libc_init_array+0xc>
|
|
8010a82: f855 3b04 ldr.w r3, [r5], #4
|
|
8010a86: 4798 blx r3
|
|
8010a88: 3601 adds r6, #1
|
|
8010a8a: e7f2 b.n 8010a72 <__libc_init_array+0x1e>
|
|
8010a8c: 08013740 .word 0x08013740
|
|
8010a90: 08013740 .word 0x08013740
|
|
8010a94: 08013740 .word 0x08013740
|
|
8010a98: 0801374c .word 0x0801374c
|
|
|
|
08010a9c <memcpy>:
|
|
8010a9c: 440a add r2, r1
|
|
8010a9e: 4291 cmp r1, r2
|
|
8010aa0: f100 33ff add.w r3, r0, #4294967295
|
|
8010aa4: d100 bne.n 8010aa8 <memcpy+0xc>
|
|
8010aa6: 4770 bx lr
|
|
8010aa8: b510 push {r4, lr}
|
|
8010aaa: f811 4b01 ldrb.w r4, [r1], #1
|
|
8010aae: f803 4f01 strb.w r4, [r3, #1]!
|
|
8010ab2: 4291 cmp r1, r2
|
|
8010ab4: d1f9 bne.n 8010aaa <memcpy+0xe>
|
|
8010ab6: bd10 pop {r4, pc}
|
|
|
|
08010ab8 <__register_exitproc>:
|
|
8010ab8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
|
|
8010abc: 4d27 ldr r5, [pc, #156] @ (8010b5c <__register_exitproc+0xa4>)
|
|
8010abe: 4607 mov r7, r0
|
|
8010ac0: 6828 ldr r0, [r5, #0]
|
|
8010ac2: 4691 mov r9, r2
|
|
8010ac4: 460e mov r6, r1
|
|
8010ac6: 4698 mov r8, r3
|
|
8010ac8: f7f3 f84e bl 8003b68 <__retarget_lock_acquire_recursive>
|
|
8010acc: 4a24 ldr r2, [pc, #144] @ (8010b60 <__register_exitproc+0xa8>)
|
|
8010ace: 6814 ldr r4, [r2, #0]
|
|
8010ad0: b93c cbnz r4, 8010ae2 <__register_exitproc+0x2a>
|
|
8010ad2: 4b24 ldr r3, [pc, #144] @ (8010b64 <__register_exitproc+0xac>)
|
|
8010ad4: 6013 str r3, [r2, #0]
|
|
8010ad6: 4a24 ldr r2, [pc, #144] @ (8010b68 <__register_exitproc+0xb0>)
|
|
8010ad8: b112 cbz r2, 8010ae0 <__register_exitproc+0x28>
|
|
8010ada: 6812 ldr r2, [r2, #0]
|
|
8010adc: f8c3 2088 str.w r2, [r3, #136] @ 0x88
|
|
8010ae0: 4c20 ldr r4, [pc, #128] @ (8010b64 <__register_exitproc+0xac>)
|
|
8010ae2: 6863 ldr r3, [r4, #4]
|
|
8010ae4: 2b1f cmp r3, #31
|
|
8010ae6: dd06 ble.n 8010af6 <__register_exitproc+0x3e>
|
|
8010ae8: 6828 ldr r0, [r5, #0]
|
|
8010aea: f7f3 f852 bl 8003b92 <__retarget_lock_release_recursive>
|
|
8010aee: f04f 30ff mov.w r0, #4294967295
|
|
8010af2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
|
|
8010af6: b32f cbz r7, 8010b44 <__register_exitproc+0x8c>
|
|
8010af8: f8d4 0088 ldr.w r0, [r4, #136] @ 0x88
|
|
8010afc: b968 cbnz r0, 8010b1a <__register_exitproc+0x62>
|
|
8010afe: 4b1b ldr r3, [pc, #108] @ (8010b6c <__register_exitproc+0xb4>)
|
|
8010b00: 2b00 cmp r3, #0
|
|
8010b02: d0f1 beq.n 8010ae8 <__register_exitproc+0x30>
|
|
8010b04: f44f 7084 mov.w r0, #264 @ 0x108
|
|
8010b08: f7ff f81a bl 800fb40 <malloc>
|
|
8010b0c: 2800 cmp r0, #0
|
|
8010b0e: d0eb beq.n 8010ae8 <__register_exitproc+0x30>
|
|
8010b10: 2300 movs r3, #0
|
|
8010b12: e9c0 3340 strd r3, r3, [r0, #256] @ 0x100
|
|
8010b16: f8c4 0088 str.w r0, [r4, #136] @ 0x88
|
|
8010b1a: 6863 ldr r3, [r4, #4]
|
|
8010b1c: f840 9023 str.w r9, [r0, r3, lsl #2]
|
|
8010b20: 2201 movs r2, #1
|
|
8010b22: 409a lsls r2, r3
|
|
8010b24: eb00 0183 add.w r1, r0, r3, lsl #2
|
|
8010b28: f8d0 3100 ldr.w r3, [r0, #256] @ 0x100
|
|
8010b2c: 4313 orrs r3, r2
|
|
8010b2e: f8c0 3100 str.w r3, [r0, #256] @ 0x100
|
|
8010b32: 2f02 cmp r7, #2
|
|
8010b34: f8c1 8080 str.w r8, [r1, #128] @ 0x80
|
|
8010b38: bf02 ittt eq
|
|
8010b3a: f8d0 3104 ldreq.w r3, [r0, #260] @ 0x104
|
|
8010b3e: 4313 orreq r3, r2
|
|
8010b40: f8c0 3104 streq.w r3, [r0, #260] @ 0x104
|
|
8010b44: 6863 ldr r3, [r4, #4]
|
|
8010b46: 6828 ldr r0, [r5, #0]
|
|
8010b48: 1c5a adds r2, r3, #1
|
|
8010b4a: 3302 adds r3, #2
|
|
8010b4c: 6062 str r2, [r4, #4]
|
|
8010b4e: f844 6023 str.w r6, [r4, r3, lsl #2]
|
|
8010b52: f7f3 f81e bl 8003b92 <__retarget_lock_release_recursive>
|
|
8010b56: 2000 movs r0, #0
|
|
8010b58: e7cb b.n 8010af2 <__register_exitproc+0x3a>
|
|
8010b5a: bf00 nop
|
|
8010b5c: 2000006c .word 0x2000006c
|
|
8010b60: 20008a14 .word 0x20008a14
|
|
8010b64: 20008988 .word 0x20008988
|
|
8010b68: 00000000 .word 0x00000000
|
|
8010b6c: 0800fb41 .word 0x0800fb41
|
|
|
|
08010b70 <quorem>:
|
|
8010b70: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
8010b74: 6903 ldr r3, [r0, #16]
|
|
8010b76: 690c ldr r4, [r1, #16]
|
|
8010b78: 42a3 cmp r3, r4
|
|
8010b7a: 4607 mov r7, r0
|
|
8010b7c: db7e blt.n 8010c7c <quorem+0x10c>
|
|
8010b7e: 3c01 subs r4, #1
|
|
8010b80: f101 0814 add.w r8, r1, #20
|
|
8010b84: 00a3 lsls r3, r4, #2
|
|
8010b86: f100 0514 add.w r5, r0, #20
|
|
8010b8a: 9300 str r3, [sp, #0]
|
|
8010b8c: eb05 0384 add.w r3, r5, r4, lsl #2
|
|
8010b90: 9301 str r3, [sp, #4]
|
|
8010b92: f858 3024 ldr.w r3, [r8, r4, lsl #2]
|
|
8010b96: f855 2024 ldr.w r2, [r5, r4, lsl #2]
|
|
8010b9a: 3301 adds r3, #1
|
|
8010b9c: 429a cmp r2, r3
|
|
8010b9e: eb08 0984 add.w r9, r8, r4, lsl #2
|
|
8010ba2: fbb2 f6f3 udiv r6, r2, r3
|
|
8010ba6: d32e bcc.n 8010c06 <quorem+0x96>
|
|
8010ba8: f04f 0a00 mov.w sl, #0
|
|
8010bac: 46c4 mov ip, r8
|
|
8010bae: 46ae mov lr, r5
|
|
8010bb0: 46d3 mov fp, sl
|
|
8010bb2: f85c 3b04 ldr.w r3, [ip], #4
|
|
8010bb6: b298 uxth r0, r3
|
|
8010bb8: fb06 a000 mla r0, r6, r0, sl
|
|
8010bbc: 0c02 lsrs r2, r0, #16
|
|
8010bbe: 0c1b lsrs r3, r3, #16
|
|
8010bc0: fb06 2303 mla r3, r6, r3, r2
|
|
8010bc4: f8de 2000 ldr.w r2, [lr]
|
|
8010bc8: b280 uxth r0, r0
|
|
8010bca: b292 uxth r2, r2
|
|
8010bcc: 1a12 subs r2, r2, r0
|
|
8010bce: 445a add r2, fp
|
|
8010bd0: f8de 0000 ldr.w r0, [lr]
|
|
8010bd4: ea4f 4a13 mov.w sl, r3, lsr #16
|
|
8010bd8: b29b uxth r3, r3
|
|
8010bda: ebc3 4322 rsb r3, r3, r2, asr #16
|
|
8010bde: eb03 4310 add.w r3, r3, r0, lsr #16
|
|
8010be2: b292 uxth r2, r2
|
|
8010be4: ea42 4203 orr.w r2, r2, r3, lsl #16
|
|
8010be8: 45e1 cmp r9, ip
|
|
8010bea: f84e 2b04 str.w r2, [lr], #4
|
|
8010bee: ea4f 4b23 mov.w fp, r3, asr #16
|
|
8010bf2: d2de bcs.n 8010bb2 <quorem+0x42>
|
|
8010bf4: 9b00 ldr r3, [sp, #0]
|
|
8010bf6: 58eb ldr r3, [r5, r3]
|
|
8010bf8: b92b cbnz r3, 8010c06 <quorem+0x96>
|
|
8010bfa: 9b01 ldr r3, [sp, #4]
|
|
8010bfc: 3b04 subs r3, #4
|
|
8010bfe: 429d cmp r5, r3
|
|
8010c00: 461a mov r2, r3
|
|
8010c02: d32f bcc.n 8010c64 <quorem+0xf4>
|
|
8010c04: 613c str r4, [r7, #16]
|
|
8010c06: 4638 mov r0, r7
|
|
8010c08: f001 f8c2 bl 8011d90 <__mcmp>
|
|
8010c0c: 2800 cmp r0, #0
|
|
8010c0e: db25 blt.n 8010c5c <quorem+0xec>
|
|
8010c10: 4629 mov r1, r5
|
|
8010c12: 2000 movs r0, #0
|
|
8010c14: f858 2b04 ldr.w r2, [r8], #4
|
|
8010c18: f8d1 c000 ldr.w ip, [r1]
|
|
8010c1c: fa1f fe82 uxth.w lr, r2
|
|
8010c20: fa1f f38c uxth.w r3, ip
|
|
8010c24: eba3 030e sub.w r3, r3, lr
|
|
8010c28: 4403 add r3, r0
|
|
8010c2a: 0c12 lsrs r2, r2, #16
|
|
8010c2c: ebc2 4223 rsb r2, r2, r3, asr #16
|
|
8010c30: eb02 421c add.w r2, r2, ip, lsr #16
|
|
8010c34: b29b uxth r3, r3
|
|
8010c36: ea43 4302 orr.w r3, r3, r2, lsl #16
|
|
8010c3a: 45c1 cmp r9, r8
|
|
8010c3c: f841 3b04 str.w r3, [r1], #4
|
|
8010c40: ea4f 4022 mov.w r0, r2, asr #16
|
|
8010c44: d2e6 bcs.n 8010c14 <quorem+0xa4>
|
|
8010c46: f855 2024 ldr.w r2, [r5, r4, lsl #2]
|
|
8010c4a: eb05 0384 add.w r3, r5, r4, lsl #2
|
|
8010c4e: b922 cbnz r2, 8010c5a <quorem+0xea>
|
|
8010c50: 3b04 subs r3, #4
|
|
8010c52: 429d cmp r5, r3
|
|
8010c54: 461a mov r2, r3
|
|
8010c56: d30b bcc.n 8010c70 <quorem+0x100>
|
|
8010c58: 613c str r4, [r7, #16]
|
|
8010c5a: 3601 adds r6, #1
|
|
8010c5c: 4630 mov r0, r6
|
|
8010c5e: b003 add sp, #12
|
|
8010c60: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
8010c64: 6812 ldr r2, [r2, #0]
|
|
8010c66: 3b04 subs r3, #4
|
|
8010c68: 2a00 cmp r2, #0
|
|
8010c6a: d1cb bne.n 8010c04 <quorem+0x94>
|
|
8010c6c: 3c01 subs r4, #1
|
|
8010c6e: e7c6 b.n 8010bfe <quorem+0x8e>
|
|
8010c70: 6812 ldr r2, [r2, #0]
|
|
8010c72: 3b04 subs r3, #4
|
|
8010c74: 2a00 cmp r2, #0
|
|
8010c76: d1ef bne.n 8010c58 <quorem+0xe8>
|
|
8010c78: 3c01 subs r4, #1
|
|
8010c7a: e7ea b.n 8010c52 <quorem+0xe2>
|
|
8010c7c: 2000 movs r0, #0
|
|
8010c7e: e7ee b.n 8010c5e <quorem+0xee>
|
|
|
|
08010c80 <_dtoa_r>:
|
|
8010c80: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
8010c84: 69c7 ldr r7, [r0, #28]
|
|
8010c86: b099 sub sp, #100 @ 0x64
|
|
8010c88: ed8d 0b02 vstr d0, [sp, #8]
|
|
8010c8c: ec55 4b10 vmov r4, r5, d0
|
|
8010c90: 9e22 ldr r6, [sp, #136] @ 0x88
|
|
8010c92: 9109 str r1, [sp, #36] @ 0x24
|
|
8010c94: 4683 mov fp, r0
|
|
8010c96: 920e str r2, [sp, #56] @ 0x38
|
|
8010c98: 9313 str r3, [sp, #76] @ 0x4c
|
|
8010c9a: b97f cbnz r7, 8010cbc <_dtoa_r+0x3c>
|
|
8010c9c: 2010 movs r0, #16
|
|
8010c9e: f7fe ff4f bl 800fb40 <malloc>
|
|
8010ca2: 4602 mov r2, r0
|
|
8010ca4: f8cb 001c str.w r0, [fp, #28]
|
|
8010ca8: b920 cbnz r0, 8010cb4 <_dtoa_r+0x34>
|
|
8010caa: 4ba7 ldr r3, [pc, #668] @ (8010f48 <_dtoa_r+0x2c8>)
|
|
8010cac: 21ef movs r1, #239 @ 0xef
|
|
8010cae: 48a7 ldr r0, [pc, #668] @ (8010f4c <_dtoa_r+0x2cc>)
|
|
8010cb0: f001 fb94 bl 80123dc <__assert_func>
|
|
8010cb4: e9c0 7701 strd r7, r7, [r0, #4]
|
|
8010cb8: 6007 str r7, [r0, #0]
|
|
8010cba: 60c7 str r7, [r0, #12]
|
|
8010cbc: f8db 301c ldr.w r3, [fp, #28]
|
|
8010cc0: 6819 ldr r1, [r3, #0]
|
|
8010cc2: b159 cbz r1, 8010cdc <_dtoa_r+0x5c>
|
|
8010cc4: 685a ldr r2, [r3, #4]
|
|
8010cc6: 604a str r2, [r1, #4]
|
|
8010cc8: 2301 movs r3, #1
|
|
8010cca: 4093 lsls r3, r2
|
|
8010ccc: 608b str r3, [r1, #8]
|
|
8010cce: 4658 mov r0, fp
|
|
8010cd0: f000 fe24 bl 801191c <_Bfree>
|
|
8010cd4: f8db 301c ldr.w r3, [fp, #28]
|
|
8010cd8: 2200 movs r2, #0
|
|
8010cda: 601a str r2, [r3, #0]
|
|
8010cdc: 1e2b subs r3, r5, #0
|
|
8010cde: bfb9 ittee lt
|
|
8010ce0: f023 4300 biclt.w r3, r3, #2147483648 @ 0x80000000
|
|
8010ce4: 9303 strlt r3, [sp, #12]
|
|
8010ce6: 2300 movge r3, #0
|
|
8010ce8: 6033 strge r3, [r6, #0]
|
|
8010cea: 9f03 ldr r7, [sp, #12]
|
|
8010cec: 4b98 ldr r3, [pc, #608] @ (8010f50 <_dtoa_r+0x2d0>)
|
|
8010cee: bfbc itt lt
|
|
8010cf0: 2201 movlt r2, #1
|
|
8010cf2: 6032 strlt r2, [r6, #0]
|
|
8010cf4: 43bb bics r3, r7
|
|
8010cf6: d112 bne.n 8010d1e <_dtoa_r+0x9e>
|
|
8010cf8: 9a13 ldr r2, [sp, #76] @ 0x4c
|
|
8010cfa: f242 730f movw r3, #9999 @ 0x270f
|
|
8010cfe: 6013 str r3, [r2, #0]
|
|
8010d00: f3c7 0313 ubfx r3, r7, #0, #20
|
|
8010d04: 4323 orrs r3, r4
|
|
8010d06: f000 854d beq.w 80117a4 <_dtoa_r+0xb24>
|
|
8010d0a: 9b23 ldr r3, [sp, #140] @ 0x8c
|
|
8010d0c: f8df a254 ldr.w sl, [pc, #596] @ 8010f64 <_dtoa_r+0x2e4>
|
|
8010d10: 2b00 cmp r3, #0
|
|
8010d12: f000 854f beq.w 80117b4 <_dtoa_r+0xb34>
|
|
8010d16: f10a 0303 add.w r3, sl, #3
|
|
8010d1a: f000 bd49 b.w 80117b0 <_dtoa_r+0xb30>
|
|
8010d1e: ed9d 7b02 vldr d7, [sp, #8]
|
|
8010d22: 2200 movs r2, #0
|
|
8010d24: ec51 0b17 vmov r0, r1, d7
|
|
8010d28: 2300 movs r3, #0
|
|
8010d2a: ed8d 7b0c vstr d7, [sp, #48] @ 0x30
|
|
8010d2e: f7ef fedb bl 8000ae8 <__aeabi_dcmpeq>
|
|
8010d32: 4680 mov r8, r0
|
|
8010d34: b158 cbz r0, 8010d4e <_dtoa_r+0xce>
|
|
8010d36: 9a13 ldr r2, [sp, #76] @ 0x4c
|
|
8010d38: 2301 movs r3, #1
|
|
8010d3a: 6013 str r3, [r2, #0]
|
|
8010d3c: 9b23 ldr r3, [sp, #140] @ 0x8c
|
|
8010d3e: b113 cbz r3, 8010d46 <_dtoa_r+0xc6>
|
|
8010d40: 9a23 ldr r2, [sp, #140] @ 0x8c
|
|
8010d42: 4b84 ldr r3, [pc, #528] @ (8010f54 <_dtoa_r+0x2d4>)
|
|
8010d44: 6013 str r3, [r2, #0]
|
|
8010d46: f8df a220 ldr.w sl, [pc, #544] @ 8010f68 <_dtoa_r+0x2e8>
|
|
8010d4a: f000 bd33 b.w 80117b4 <_dtoa_r+0xb34>
|
|
8010d4e: ed9d 0b0c vldr d0, [sp, #48] @ 0x30
|
|
8010d52: aa16 add r2, sp, #88 @ 0x58
|
|
8010d54: a917 add r1, sp, #92 @ 0x5c
|
|
8010d56: 4658 mov r0, fp
|
|
8010d58: f001 f8ca bl 8011ef0 <__d2b>
|
|
8010d5c: f3c7 560a ubfx r6, r7, #20, #11
|
|
8010d60: 4681 mov r9, r0
|
|
8010d62: 2e00 cmp r6, #0
|
|
8010d64: d077 beq.n 8010e56 <_dtoa_r+0x1d6>
|
|
8010d66: 9b0d ldr r3, [sp, #52] @ 0x34
|
|
8010d68: f8cd 8050 str.w r8, [sp, #80] @ 0x50
|
|
8010d6c: f3c3 0313 ubfx r3, r3, #0, #20
|
|
8010d70: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30
|
|
8010d74: f043 537f orr.w r3, r3, #1069547520 @ 0x3fc00000
|
|
8010d78: f443 1340 orr.w r3, r3, #3145728 @ 0x300000
|
|
8010d7c: f2a6 36ff subw r6, r6, #1023 @ 0x3ff
|
|
8010d80: 4619 mov r1, r3
|
|
8010d82: 2200 movs r2, #0
|
|
8010d84: 4b74 ldr r3, [pc, #464] @ (8010f58 <_dtoa_r+0x2d8>)
|
|
8010d86: f7ef fa8f bl 80002a8 <__aeabi_dsub>
|
|
8010d8a: a369 add r3, pc, #420 @ (adr r3, 8010f30 <_dtoa_r+0x2b0>)
|
|
8010d8c: e9d3 2300 ldrd r2, r3, [r3]
|
|
8010d90: f7ef fc42 bl 8000618 <__aeabi_dmul>
|
|
8010d94: a368 add r3, pc, #416 @ (adr r3, 8010f38 <_dtoa_r+0x2b8>)
|
|
8010d96: e9d3 2300 ldrd r2, r3, [r3]
|
|
8010d9a: f7ef fa87 bl 80002ac <__adddf3>
|
|
8010d9e: 4604 mov r4, r0
|
|
8010da0: 4630 mov r0, r6
|
|
8010da2: 460d mov r5, r1
|
|
8010da4: f7ef fbce bl 8000544 <__aeabi_i2d>
|
|
8010da8: a365 add r3, pc, #404 @ (adr r3, 8010f40 <_dtoa_r+0x2c0>)
|
|
8010daa: e9d3 2300 ldrd r2, r3, [r3]
|
|
8010dae: f7ef fc33 bl 8000618 <__aeabi_dmul>
|
|
8010db2: 4602 mov r2, r0
|
|
8010db4: 460b mov r3, r1
|
|
8010db6: 4620 mov r0, r4
|
|
8010db8: 4629 mov r1, r5
|
|
8010dba: f7ef fa77 bl 80002ac <__adddf3>
|
|
8010dbe: 4604 mov r4, r0
|
|
8010dc0: 460d mov r5, r1
|
|
8010dc2: f7ef fed9 bl 8000b78 <__aeabi_d2iz>
|
|
8010dc6: 2200 movs r2, #0
|
|
8010dc8: 4607 mov r7, r0
|
|
8010dca: 2300 movs r3, #0
|
|
8010dcc: 4620 mov r0, r4
|
|
8010dce: 4629 mov r1, r5
|
|
8010dd0: f7ef fe94 bl 8000afc <__aeabi_dcmplt>
|
|
8010dd4: b140 cbz r0, 8010de8 <_dtoa_r+0x168>
|
|
8010dd6: 4638 mov r0, r7
|
|
8010dd8: f7ef fbb4 bl 8000544 <__aeabi_i2d>
|
|
8010ddc: 4622 mov r2, r4
|
|
8010dde: 462b mov r3, r5
|
|
8010de0: f7ef fe82 bl 8000ae8 <__aeabi_dcmpeq>
|
|
8010de4: b900 cbnz r0, 8010de8 <_dtoa_r+0x168>
|
|
8010de6: 3f01 subs r7, #1
|
|
8010de8: 2f16 cmp r7, #22
|
|
8010dea: d851 bhi.n 8010e90 <_dtoa_r+0x210>
|
|
8010dec: 4b5b ldr r3, [pc, #364] @ (8010f5c <_dtoa_r+0x2dc>)
|
|
8010dee: eb03 03c7 add.w r3, r3, r7, lsl #3
|
|
8010df2: e9d3 2300 ldrd r2, r3, [r3]
|
|
8010df6: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30
|
|
8010dfa: f7ef fe7f bl 8000afc <__aeabi_dcmplt>
|
|
8010dfe: 2800 cmp r0, #0
|
|
8010e00: d048 beq.n 8010e94 <_dtoa_r+0x214>
|
|
8010e02: 3f01 subs r7, #1
|
|
8010e04: 2300 movs r3, #0
|
|
8010e06: 9312 str r3, [sp, #72] @ 0x48
|
|
8010e08: 9b16 ldr r3, [sp, #88] @ 0x58
|
|
8010e0a: 1b9b subs r3, r3, r6
|
|
8010e0c: 1e5a subs r2, r3, #1
|
|
8010e0e: bf44 itt mi
|
|
8010e10: f1c3 0801 rsbmi r8, r3, #1
|
|
8010e14: 2300 movmi r3, #0
|
|
8010e16: 9208 str r2, [sp, #32]
|
|
8010e18: bf54 ite pl
|
|
8010e1a: f04f 0800 movpl.w r8, #0
|
|
8010e1e: 9308 strmi r3, [sp, #32]
|
|
8010e20: 2f00 cmp r7, #0
|
|
8010e22: db39 blt.n 8010e98 <_dtoa_r+0x218>
|
|
8010e24: 9b08 ldr r3, [sp, #32]
|
|
8010e26: 970f str r7, [sp, #60] @ 0x3c
|
|
8010e28: 443b add r3, r7
|
|
8010e2a: 9308 str r3, [sp, #32]
|
|
8010e2c: 2300 movs r3, #0
|
|
8010e2e: 930a str r3, [sp, #40] @ 0x28
|
|
8010e30: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010e32: 2b09 cmp r3, #9
|
|
8010e34: d864 bhi.n 8010f00 <_dtoa_r+0x280>
|
|
8010e36: 2b05 cmp r3, #5
|
|
8010e38: bfc4 itt gt
|
|
8010e3a: 3b04 subgt r3, #4
|
|
8010e3c: 9309 strgt r3, [sp, #36] @ 0x24
|
|
8010e3e: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8010e40: f1a3 0302 sub.w r3, r3, #2
|
|
8010e44: bfcc ite gt
|
|
8010e46: 2400 movgt r4, #0
|
|
8010e48: 2401 movle r4, #1
|
|
8010e4a: 2b03 cmp r3, #3
|
|
8010e4c: d863 bhi.n 8010f16 <_dtoa_r+0x296>
|
|
8010e4e: e8df f003 tbb [pc, r3]
|
|
8010e52: 372a .short 0x372a
|
|
8010e54: 5535 .short 0x5535
|
|
8010e56: e9dd 6316 ldrd r6, r3, [sp, #88] @ 0x58
|
|
8010e5a: 441e add r6, r3
|
|
8010e5c: f206 4332 addw r3, r6, #1074 @ 0x432
|
|
8010e60: 2b20 cmp r3, #32
|
|
8010e62: bfc1 itttt gt
|
|
8010e64: f1c3 0340 rsbgt r3, r3, #64 @ 0x40
|
|
8010e68: 409f lslgt r7, r3
|
|
8010e6a: f206 4312 addwgt r3, r6, #1042 @ 0x412
|
|
8010e6e: fa24 f303 lsrgt.w r3, r4, r3
|
|
8010e72: bfd6 itet le
|
|
8010e74: f1c3 0320 rsble r3, r3, #32
|
|
8010e78: ea47 0003 orrgt.w r0, r7, r3
|
|
8010e7c: fa04 f003 lslle.w r0, r4, r3
|
|
8010e80: f7ef fb50 bl 8000524 <__aeabi_ui2d>
|
|
8010e84: 2201 movs r2, #1
|
|
8010e86: f1a1 73f8 sub.w r3, r1, #32505856 @ 0x1f00000
|
|
8010e8a: 3e01 subs r6, #1
|
|
8010e8c: 9214 str r2, [sp, #80] @ 0x50
|
|
8010e8e: e777 b.n 8010d80 <_dtoa_r+0x100>
|
|
8010e90: 2301 movs r3, #1
|
|
8010e92: e7b8 b.n 8010e06 <_dtoa_r+0x186>
|
|
8010e94: 9012 str r0, [sp, #72] @ 0x48
|
|
8010e96: e7b7 b.n 8010e08 <_dtoa_r+0x188>
|
|
8010e98: 427b negs r3, r7
|
|
8010e9a: 930a str r3, [sp, #40] @ 0x28
|
|
8010e9c: 2300 movs r3, #0
|
|
8010e9e: eba8 0807 sub.w r8, r8, r7
|
|
8010ea2: 930f str r3, [sp, #60] @ 0x3c
|
|
8010ea4: e7c4 b.n 8010e30 <_dtoa_r+0x1b0>
|
|
8010ea6: 2300 movs r3, #0
|
|
8010ea8: 930b str r3, [sp, #44] @ 0x2c
|
|
8010eaa: 9b0e ldr r3, [sp, #56] @ 0x38
|
|
8010eac: 2b00 cmp r3, #0
|
|
8010eae: dc35 bgt.n 8010f1c <_dtoa_r+0x29c>
|
|
8010eb0: 2301 movs r3, #1
|
|
8010eb2: 9300 str r3, [sp, #0]
|
|
8010eb4: 9307 str r3, [sp, #28]
|
|
8010eb6: 461a mov r2, r3
|
|
8010eb8: 920e str r2, [sp, #56] @ 0x38
|
|
8010eba: e00b b.n 8010ed4 <_dtoa_r+0x254>
|
|
8010ebc: 2301 movs r3, #1
|
|
8010ebe: e7f3 b.n 8010ea8 <_dtoa_r+0x228>
|
|
8010ec0: 2300 movs r3, #0
|
|
8010ec2: 930b str r3, [sp, #44] @ 0x2c
|
|
8010ec4: 9b0e ldr r3, [sp, #56] @ 0x38
|
|
8010ec6: 18fb adds r3, r7, r3
|
|
8010ec8: 9300 str r3, [sp, #0]
|
|
8010eca: 3301 adds r3, #1
|
|
8010ecc: 2b01 cmp r3, #1
|
|
8010ece: 9307 str r3, [sp, #28]
|
|
8010ed0: bfb8 it lt
|
|
8010ed2: 2301 movlt r3, #1
|
|
8010ed4: f8db 001c ldr.w r0, [fp, #28]
|
|
8010ed8: 2100 movs r1, #0
|
|
8010eda: 2204 movs r2, #4
|
|
8010edc: f102 0514 add.w r5, r2, #20
|
|
8010ee0: 429d cmp r5, r3
|
|
8010ee2: d91f bls.n 8010f24 <_dtoa_r+0x2a4>
|
|
8010ee4: 6041 str r1, [r0, #4]
|
|
8010ee6: 4658 mov r0, fp
|
|
8010ee8: f000 fcd8 bl 801189c <_Balloc>
|
|
8010eec: 4682 mov sl, r0
|
|
8010eee: 2800 cmp r0, #0
|
|
8010ef0: d13c bne.n 8010f6c <_dtoa_r+0x2ec>
|
|
8010ef2: 4b1b ldr r3, [pc, #108] @ (8010f60 <_dtoa_r+0x2e0>)
|
|
8010ef4: 4602 mov r2, r0
|
|
8010ef6: f240 11af movw r1, #431 @ 0x1af
|
|
8010efa: e6d8 b.n 8010cae <_dtoa_r+0x2e>
|
|
8010efc: 2301 movs r3, #1
|
|
8010efe: e7e0 b.n 8010ec2 <_dtoa_r+0x242>
|
|
8010f00: 2401 movs r4, #1
|
|
8010f02: 2300 movs r3, #0
|
|
8010f04: 9309 str r3, [sp, #36] @ 0x24
|
|
8010f06: 940b str r4, [sp, #44] @ 0x2c
|
|
8010f08: f04f 33ff mov.w r3, #4294967295
|
|
8010f0c: 9300 str r3, [sp, #0]
|
|
8010f0e: 9307 str r3, [sp, #28]
|
|
8010f10: 2200 movs r2, #0
|
|
8010f12: 2312 movs r3, #18
|
|
8010f14: e7d0 b.n 8010eb8 <_dtoa_r+0x238>
|
|
8010f16: 2301 movs r3, #1
|
|
8010f18: 930b str r3, [sp, #44] @ 0x2c
|
|
8010f1a: e7f5 b.n 8010f08 <_dtoa_r+0x288>
|
|
8010f1c: 9b0e ldr r3, [sp, #56] @ 0x38
|
|
8010f1e: 9300 str r3, [sp, #0]
|
|
8010f20: 9307 str r3, [sp, #28]
|
|
8010f22: e7d7 b.n 8010ed4 <_dtoa_r+0x254>
|
|
8010f24: 3101 adds r1, #1
|
|
8010f26: 0052 lsls r2, r2, #1
|
|
8010f28: e7d8 b.n 8010edc <_dtoa_r+0x25c>
|
|
8010f2a: bf00 nop
|
|
8010f2c: f3af 8000 nop.w
|
|
8010f30: 636f4361 .word 0x636f4361
|
|
8010f34: 3fd287a7 .word 0x3fd287a7
|
|
8010f38: 8b60c8b3 .word 0x8b60c8b3
|
|
8010f3c: 3fc68a28 .word 0x3fc68a28
|
|
8010f40: 509f79fb .word 0x509f79fb
|
|
8010f44: 3fd34413 .word 0x3fd34413
|
|
8010f48: 08013409 .word 0x08013409
|
|
8010f4c: 08013420 .word 0x08013420
|
|
8010f50: 7ff00000 .word 0x7ff00000
|
|
8010f54: 080133d9 .word 0x080133d9
|
|
8010f58: 3ff80000 .word 0x3ff80000
|
|
8010f5c: 08013518 .word 0x08013518
|
|
8010f60: 08013478 .word 0x08013478
|
|
8010f64: 08013405 .word 0x08013405
|
|
8010f68: 080133d8 .word 0x080133d8
|
|
8010f6c: f8db 301c ldr.w r3, [fp, #28]
|
|
8010f70: 6018 str r0, [r3, #0]
|
|
8010f72: 9b07 ldr r3, [sp, #28]
|
|
8010f74: 2b0e cmp r3, #14
|
|
8010f76: f200 80a4 bhi.w 80110c2 <_dtoa_r+0x442>
|
|
8010f7a: 2c00 cmp r4, #0
|
|
8010f7c: f000 80a1 beq.w 80110c2 <_dtoa_r+0x442>
|
|
8010f80: 2f00 cmp r7, #0
|
|
8010f82: dd33 ble.n 8010fec <_dtoa_r+0x36c>
|
|
8010f84: 4bad ldr r3, [pc, #692] @ (801123c <_dtoa_r+0x5bc>)
|
|
8010f86: f007 020f and.w r2, r7, #15
|
|
8010f8a: eb03 03c2 add.w r3, r3, r2, lsl #3
|
|
8010f8e: ed93 7b00 vldr d7, [r3]
|
|
8010f92: 05f8 lsls r0, r7, #23
|
|
8010f94: ed8d 7b04 vstr d7, [sp, #16]
|
|
8010f98: ea4f 1427 mov.w r4, r7, asr #4
|
|
8010f9c: d516 bpl.n 8010fcc <_dtoa_r+0x34c>
|
|
8010f9e: 4ba8 ldr r3, [pc, #672] @ (8011240 <_dtoa_r+0x5c0>)
|
|
8010fa0: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30
|
|
8010fa4: e9d3 2308 ldrd r2, r3, [r3, #32]
|
|
8010fa8: f7ef fc60 bl 800086c <__aeabi_ddiv>
|
|
8010fac: e9cd 0102 strd r0, r1, [sp, #8]
|
|
8010fb0: f004 040f and.w r4, r4, #15
|
|
8010fb4: 2603 movs r6, #3
|
|
8010fb6: 4da2 ldr r5, [pc, #648] @ (8011240 <_dtoa_r+0x5c0>)
|
|
8010fb8: b954 cbnz r4, 8010fd0 <_dtoa_r+0x350>
|
|
8010fba: e9dd 2304 ldrd r2, r3, [sp, #16]
|
|
8010fbe: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
8010fc2: f7ef fc53 bl 800086c <__aeabi_ddiv>
|
|
8010fc6: e9cd 0102 strd r0, r1, [sp, #8]
|
|
8010fca: e028 b.n 801101e <_dtoa_r+0x39e>
|
|
8010fcc: 2602 movs r6, #2
|
|
8010fce: e7f2 b.n 8010fb6 <_dtoa_r+0x336>
|
|
8010fd0: 07e1 lsls r1, r4, #31
|
|
8010fd2: d508 bpl.n 8010fe6 <_dtoa_r+0x366>
|
|
8010fd4: e9dd 0104 ldrd r0, r1, [sp, #16]
|
|
8010fd8: e9d5 2300 ldrd r2, r3, [r5]
|
|
8010fdc: f7ef fb1c bl 8000618 <__aeabi_dmul>
|
|
8010fe0: e9cd 0104 strd r0, r1, [sp, #16]
|
|
8010fe4: 3601 adds r6, #1
|
|
8010fe6: 1064 asrs r4, r4, #1
|
|
8010fe8: 3508 adds r5, #8
|
|
8010fea: e7e5 b.n 8010fb8 <_dtoa_r+0x338>
|
|
8010fec: f000 80d2 beq.w 8011194 <_dtoa_r+0x514>
|
|
8010ff0: 427c negs r4, r7
|
|
8010ff2: 4b92 ldr r3, [pc, #584] @ (801123c <_dtoa_r+0x5bc>)
|
|
8010ff4: 4d92 ldr r5, [pc, #584] @ (8011240 <_dtoa_r+0x5c0>)
|
|
8010ff6: f004 020f and.w r2, r4, #15
|
|
8010ffa: eb03 03c2 add.w r3, r3, r2, lsl #3
|
|
8010ffe: e9d3 2300 ldrd r2, r3, [r3]
|
|
8011002: e9dd 010c ldrd r0, r1, [sp, #48] @ 0x30
|
|
8011006: f7ef fb07 bl 8000618 <__aeabi_dmul>
|
|
801100a: e9cd 0102 strd r0, r1, [sp, #8]
|
|
801100e: 1124 asrs r4, r4, #4
|
|
8011010: 2300 movs r3, #0
|
|
8011012: 2602 movs r6, #2
|
|
8011014: 2c00 cmp r4, #0
|
|
8011016: f040 80b2 bne.w 801117e <_dtoa_r+0x4fe>
|
|
801101a: 2b00 cmp r3, #0
|
|
801101c: d1d3 bne.n 8010fc6 <_dtoa_r+0x346>
|
|
801101e: 9b12 ldr r3, [sp, #72] @ 0x48
|
|
8011020: e9dd 4502 ldrd r4, r5, [sp, #8]
|
|
8011024: 2b00 cmp r3, #0
|
|
8011026: f000 80b7 beq.w 8011198 <_dtoa_r+0x518>
|
|
801102a: 4b86 ldr r3, [pc, #536] @ (8011244 <_dtoa_r+0x5c4>)
|
|
801102c: 2200 movs r2, #0
|
|
801102e: 4620 mov r0, r4
|
|
8011030: 4629 mov r1, r5
|
|
8011032: f7ef fd63 bl 8000afc <__aeabi_dcmplt>
|
|
8011036: 2800 cmp r0, #0
|
|
8011038: f000 80ae beq.w 8011198 <_dtoa_r+0x518>
|
|
801103c: 9b07 ldr r3, [sp, #28]
|
|
801103e: 2b00 cmp r3, #0
|
|
8011040: f000 80aa beq.w 8011198 <_dtoa_r+0x518>
|
|
8011044: 9b00 ldr r3, [sp, #0]
|
|
8011046: 2b00 cmp r3, #0
|
|
8011048: dd37 ble.n 80110ba <_dtoa_r+0x43a>
|
|
801104a: 1e7b subs r3, r7, #1
|
|
801104c: 9304 str r3, [sp, #16]
|
|
801104e: 4620 mov r0, r4
|
|
8011050: 4b7d ldr r3, [pc, #500] @ (8011248 <_dtoa_r+0x5c8>)
|
|
8011052: 2200 movs r2, #0
|
|
8011054: 4629 mov r1, r5
|
|
8011056: f7ef fadf bl 8000618 <__aeabi_dmul>
|
|
801105a: e9cd 0102 strd r0, r1, [sp, #8]
|
|
801105e: 9c00 ldr r4, [sp, #0]
|
|
8011060: 3601 adds r6, #1
|
|
8011062: 4630 mov r0, r6
|
|
8011064: f7ef fa6e bl 8000544 <__aeabi_i2d>
|
|
8011068: e9dd 2302 ldrd r2, r3, [sp, #8]
|
|
801106c: f7ef fad4 bl 8000618 <__aeabi_dmul>
|
|
8011070: 4b76 ldr r3, [pc, #472] @ (801124c <_dtoa_r+0x5cc>)
|
|
8011072: 2200 movs r2, #0
|
|
8011074: f7ef f91a bl 80002ac <__adddf3>
|
|
8011078: 4605 mov r5, r0
|
|
801107a: f1a1 7650 sub.w r6, r1, #54525952 @ 0x3400000
|
|
801107e: 2c00 cmp r4, #0
|
|
8011080: f040 808d bne.w 801119e <_dtoa_r+0x51e>
|
|
8011084: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
8011088: 4b71 ldr r3, [pc, #452] @ (8011250 <_dtoa_r+0x5d0>)
|
|
801108a: 2200 movs r2, #0
|
|
801108c: f7ef f90c bl 80002a8 <__aeabi_dsub>
|
|
8011090: 4602 mov r2, r0
|
|
8011092: 460b mov r3, r1
|
|
8011094: e9cd 2302 strd r2, r3, [sp, #8]
|
|
8011098: 462a mov r2, r5
|
|
801109a: 4633 mov r3, r6
|
|
801109c: f7ef fd4c bl 8000b38 <__aeabi_dcmpgt>
|
|
80110a0: 2800 cmp r0, #0
|
|
80110a2: f040 828b bne.w 80115bc <_dtoa_r+0x93c>
|
|
80110a6: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
80110aa: 462a mov r2, r5
|
|
80110ac: f106 4300 add.w r3, r6, #2147483648 @ 0x80000000
|
|
80110b0: f7ef fd24 bl 8000afc <__aeabi_dcmplt>
|
|
80110b4: 2800 cmp r0, #0
|
|
80110b6: f040 8128 bne.w 801130a <_dtoa_r+0x68a>
|
|
80110ba: e9dd 340c ldrd r3, r4, [sp, #48] @ 0x30
|
|
80110be: e9cd 3402 strd r3, r4, [sp, #8]
|
|
80110c2: 9b17 ldr r3, [sp, #92] @ 0x5c
|
|
80110c4: 2b00 cmp r3, #0
|
|
80110c6: f2c0 815a blt.w 801137e <_dtoa_r+0x6fe>
|
|
80110ca: 2f0e cmp r7, #14
|
|
80110cc: f300 8157 bgt.w 801137e <_dtoa_r+0x6fe>
|
|
80110d0: 4b5a ldr r3, [pc, #360] @ (801123c <_dtoa_r+0x5bc>)
|
|
80110d2: eb03 03c7 add.w r3, r3, r7, lsl #3
|
|
80110d6: ed93 7b00 vldr d7, [r3]
|
|
80110da: 9b0e ldr r3, [sp, #56] @ 0x38
|
|
80110dc: 2b00 cmp r3, #0
|
|
80110de: ed8d 7b00 vstr d7, [sp]
|
|
80110e2: da03 bge.n 80110ec <_dtoa_r+0x46c>
|
|
80110e4: 9b07 ldr r3, [sp, #28]
|
|
80110e6: 2b00 cmp r3, #0
|
|
80110e8: f340 8101 ble.w 80112ee <_dtoa_r+0x66e>
|
|
80110ec: e9dd 4502 ldrd r4, r5, [sp, #8]
|
|
80110f0: 4656 mov r6, sl
|
|
80110f2: e9dd 2300 ldrd r2, r3, [sp]
|
|
80110f6: 4620 mov r0, r4
|
|
80110f8: 4629 mov r1, r5
|
|
80110fa: f7ef fbb7 bl 800086c <__aeabi_ddiv>
|
|
80110fe: f7ef fd3b bl 8000b78 <__aeabi_d2iz>
|
|
8011102: 4680 mov r8, r0
|
|
8011104: f7ef fa1e bl 8000544 <__aeabi_i2d>
|
|
8011108: e9dd 2300 ldrd r2, r3, [sp]
|
|
801110c: f7ef fa84 bl 8000618 <__aeabi_dmul>
|
|
8011110: 4602 mov r2, r0
|
|
8011112: 460b mov r3, r1
|
|
8011114: 4620 mov r0, r4
|
|
8011116: 4629 mov r1, r5
|
|
8011118: f108 0430 add.w r4, r8, #48 @ 0x30
|
|
801111c: f7ef f8c4 bl 80002a8 <__aeabi_dsub>
|
|
8011120: f806 4b01 strb.w r4, [r6], #1
|
|
8011124: 9d07 ldr r5, [sp, #28]
|
|
8011126: eba6 040a sub.w r4, r6, sl
|
|
801112a: 42a5 cmp r5, r4
|
|
801112c: 4602 mov r2, r0
|
|
801112e: 460b mov r3, r1
|
|
8011130: f040 8117 bne.w 8011362 <_dtoa_r+0x6e2>
|
|
8011134: f7ef f8ba bl 80002ac <__adddf3>
|
|
8011138: e9dd 2300 ldrd r2, r3, [sp]
|
|
801113c: 4604 mov r4, r0
|
|
801113e: 460d mov r5, r1
|
|
8011140: f7ef fcfa bl 8000b38 <__aeabi_dcmpgt>
|
|
8011144: 2800 cmp r0, #0
|
|
8011146: f040 80f9 bne.w 801133c <_dtoa_r+0x6bc>
|
|
801114a: e9dd 2300 ldrd r2, r3, [sp]
|
|
801114e: 4620 mov r0, r4
|
|
8011150: 4629 mov r1, r5
|
|
8011152: f7ef fcc9 bl 8000ae8 <__aeabi_dcmpeq>
|
|
8011156: b118 cbz r0, 8011160 <_dtoa_r+0x4e0>
|
|
8011158: f018 0f01 tst.w r8, #1
|
|
801115c: f040 80ee bne.w 801133c <_dtoa_r+0x6bc>
|
|
8011160: 4649 mov r1, r9
|
|
8011162: 4658 mov r0, fp
|
|
8011164: f000 fbda bl 801191c <_Bfree>
|
|
8011168: 2300 movs r3, #0
|
|
801116a: 7033 strb r3, [r6, #0]
|
|
801116c: 9b13 ldr r3, [sp, #76] @ 0x4c
|
|
801116e: 3701 adds r7, #1
|
|
8011170: 601f str r7, [r3, #0]
|
|
8011172: 9b23 ldr r3, [sp, #140] @ 0x8c
|
|
8011174: 2b00 cmp r3, #0
|
|
8011176: f000 831d beq.w 80117b4 <_dtoa_r+0xb34>
|
|
801117a: 601e str r6, [r3, #0]
|
|
801117c: e31a b.n 80117b4 <_dtoa_r+0xb34>
|
|
801117e: 07e2 lsls r2, r4, #31
|
|
8011180: d505 bpl.n 801118e <_dtoa_r+0x50e>
|
|
8011182: e9d5 2300 ldrd r2, r3, [r5]
|
|
8011186: f7ef fa47 bl 8000618 <__aeabi_dmul>
|
|
801118a: 3601 adds r6, #1
|
|
801118c: 2301 movs r3, #1
|
|
801118e: 1064 asrs r4, r4, #1
|
|
8011190: 3508 adds r5, #8
|
|
8011192: e73f b.n 8011014 <_dtoa_r+0x394>
|
|
8011194: 2602 movs r6, #2
|
|
8011196: e742 b.n 801101e <_dtoa_r+0x39e>
|
|
8011198: 9c07 ldr r4, [sp, #28]
|
|
801119a: 9704 str r7, [sp, #16]
|
|
801119c: e761 b.n 8011062 <_dtoa_r+0x3e2>
|
|
801119e: 4b27 ldr r3, [pc, #156] @ (801123c <_dtoa_r+0x5bc>)
|
|
80111a0: 990b ldr r1, [sp, #44] @ 0x2c
|
|
80111a2: eb03 03c4 add.w r3, r3, r4, lsl #3
|
|
80111a6: e953 2302 ldrd r2, r3, [r3, #-8]
|
|
80111aa: 4454 add r4, sl
|
|
80111ac: 2900 cmp r1, #0
|
|
80111ae: d053 beq.n 8011258 <_dtoa_r+0x5d8>
|
|
80111b0: 4928 ldr r1, [pc, #160] @ (8011254 <_dtoa_r+0x5d4>)
|
|
80111b2: 2000 movs r0, #0
|
|
80111b4: f7ef fb5a bl 800086c <__aeabi_ddiv>
|
|
80111b8: 4633 mov r3, r6
|
|
80111ba: 462a mov r2, r5
|
|
80111bc: f7ef f874 bl 80002a8 <__aeabi_dsub>
|
|
80111c0: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40
|
|
80111c4: 4656 mov r6, sl
|
|
80111c6: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
80111ca: f7ef fcd5 bl 8000b78 <__aeabi_d2iz>
|
|
80111ce: 4605 mov r5, r0
|
|
80111d0: f7ef f9b8 bl 8000544 <__aeabi_i2d>
|
|
80111d4: 4602 mov r2, r0
|
|
80111d6: 460b mov r3, r1
|
|
80111d8: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
80111dc: f7ef f864 bl 80002a8 <__aeabi_dsub>
|
|
80111e0: 3530 adds r5, #48 @ 0x30
|
|
80111e2: 4602 mov r2, r0
|
|
80111e4: 460b mov r3, r1
|
|
80111e6: e9cd 2302 strd r2, r3, [sp, #8]
|
|
80111ea: f806 5b01 strb.w r5, [r6], #1
|
|
80111ee: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40
|
|
80111f2: f7ef fc83 bl 8000afc <__aeabi_dcmplt>
|
|
80111f6: 2800 cmp r0, #0
|
|
80111f8: d171 bne.n 80112de <_dtoa_r+0x65e>
|
|
80111fa: e9dd 2302 ldrd r2, r3, [sp, #8]
|
|
80111fe: 4911 ldr r1, [pc, #68] @ (8011244 <_dtoa_r+0x5c4>)
|
|
8011200: 2000 movs r0, #0
|
|
8011202: f7ef f851 bl 80002a8 <__aeabi_dsub>
|
|
8011206: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40
|
|
801120a: f7ef fc77 bl 8000afc <__aeabi_dcmplt>
|
|
801120e: 2800 cmp r0, #0
|
|
8011210: f040 8095 bne.w 801133e <_dtoa_r+0x6be>
|
|
8011214: 42a6 cmp r6, r4
|
|
8011216: f43f af50 beq.w 80110ba <_dtoa_r+0x43a>
|
|
801121a: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40
|
|
801121e: 4b0a ldr r3, [pc, #40] @ (8011248 <_dtoa_r+0x5c8>)
|
|
8011220: 2200 movs r2, #0
|
|
8011222: f7ef f9f9 bl 8000618 <__aeabi_dmul>
|
|
8011226: 4b08 ldr r3, [pc, #32] @ (8011248 <_dtoa_r+0x5c8>)
|
|
8011228: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40
|
|
801122c: 2200 movs r2, #0
|
|
801122e: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
8011232: f7ef f9f1 bl 8000618 <__aeabi_dmul>
|
|
8011236: e9cd 0102 strd r0, r1, [sp, #8]
|
|
801123a: e7c4 b.n 80111c6 <_dtoa_r+0x546>
|
|
801123c: 08013518 .word 0x08013518
|
|
8011240: 080134f0 .word 0x080134f0
|
|
8011244: 3ff00000 .word 0x3ff00000
|
|
8011248: 40240000 .word 0x40240000
|
|
801124c: 401c0000 .word 0x401c0000
|
|
8011250: 40140000 .word 0x40140000
|
|
8011254: 3fe00000 .word 0x3fe00000
|
|
8011258: 4631 mov r1, r6
|
|
801125a: 4628 mov r0, r5
|
|
801125c: f7ef f9dc bl 8000618 <__aeabi_dmul>
|
|
8011260: e9cd 0110 strd r0, r1, [sp, #64] @ 0x40
|
|
8011264: 9415 str r4, [sp, #84] @ 0x54
|
|
8011266: 4656 mov r6, sl
|
|
8011268: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
801126c: f7ef fc84 bl 8000b78 <__aeabi_d2iz>
|
|
8011270: 4605 mov r5, r0
|
|
8011272: f7ef f967 bl 8000544 <__aeabi_i2d>
|
|
8011276: 4602 mov r2, r0
|
|
8011278: 460b mov r3, r1
|
|
801127a: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
801127e: f7ef f813 bl 80002a8 <__aeabi_dsub>
|
|
8011282: 3530 adds r5, #48 @ 0x30
|
|
8011284: f806 5b01 strb.w r5, [r6], #1
|
|
8011288: 4602 mov r2, r0
|
|
801128a: 460b mov r3, r1
|
|
801128c: 42a6 cmp r6, r4
|
|
801128e: e9cd 2302 strd r2, r3, [sp, #8]
|
|
8011292: f04f 0200 mov.w r2, #0
|
|
8011296: d124 bne.n 80112e2 <_dtoa_r+0x662>
|
|
8011298: 4bac ldr r3, [pc, #688] @ (801154c <_dtoa_r+0x8cc>)
|
|
801129a: e9dd 0110 ldrd r0, r1, [sp, #64] @ 0x40
|
|
801129e: f7ef f805 bl 80002ac <__adddf3>
|
|
80112a2: 4602 mov r2, r0
|
|
80112a4: 460b mov r3, r1
|
|
80112a6: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
80112aa: f7ef fc45 bl 8000b38 <__aeabi_dcmpgt>
|
|
80112ae: 2800 cmp r0, #0
|
|
80112b0: d145 bne.n 801133e <_dtoa_r+0x6be>
|
|
80112b2: e9dd 2310 ldrd r2, r3, [sp, #64] @ 0x40
|
|
80112b6: 49a5 ldr r1, [pc, #660] @ (801154c <_dtoa_r+0x8cc>)
|
|
80112b8: 2000 movs r0, #0
|
|
80112ba: f7ee fff5 bl 80002a8 <__aeabi_dsub>
|
|
80112be: 4602 mov r2, r0
|
|
80112c0: 460b mov r3, r1
|
|
80112c2: e9dd 0102 ldrd r0, r1, [sp, #8]
|
|
80112c6: f7ef fc19 bl 8000afc <__aeabi_dcmplt>
|
|
80112ca: 2800 cmp r0, #0
|
|
80112cc: f43f aef5 beq.w 80110ba <_dtoa_r+0x43a>
|
|
80112d0: 9e15 ldr r6, [sp, #84] @ 0x54
|
|
80112d2: 1e73 subs r3, r6, #1
|
|
80112d4: 9315 str r3, [sp, #84] @ 0x54
|
|
80112d6: f816 3c01 ldrb.w r3, [r6, #-1]
|
|
80112da: 2b30 cmp r3, #48 @ 0x30
|
|
80112dc: d0f8 beq.n 80112d0 <_dtoa_r+0x650>
|
|
80112de: 9f04 ldr r7, [sp, #16]
|
|
80112e0: e73e b.n 8011160 <_dtoa_r+0x4e0>
|
|
80112e2: 4b9b ldr r3, [pc, #620] @ (8011550 <_dtoa_r+0x8d0>)
|
|
80112e4: f7ef f998 bl 8000618 <__aeabi_dmul>
|
|
80112e8: e9cd 0102 strd r0, r1, [sp, #8]
|
|
80112ec: e7bc b.n 8011268 <_dtoa_r+0x5e8>
|
|
80112ee: d10c bne.n 801130a <_dtoa_r+0x68a>
|
|
80112f0: 4b98 ldr r3, [pc, #608] @ (8011554 <_dtoa_r+0x8d4>)
|
|
80112f2: 2200 movs r2, #0
|
|
80112f4: e9dd 0100 ldrd r0, r1, [sp]
|
|
80112f8: f7ef f98e bl 8000618 <__aeabi_dmul>
|
|
80112fc: e9dd 2302 ldrd r2, r3, [sp, #8]
|
|
8011300: f7ef fc10 bl 8000b24 <__aeabi_dcmpge>
|
|
8011304: 2800 cmp r0, #0
|
|
8011306: f000 8157 beq.w 80115b8 <_dtoa_r+0x938>
|
|
801130a: 2400 movs r4, #0
|
|
801130c: 4625 mov r5, r4
|
|
801130e: 9b0e ldr r3, [sp, #56] @ 0x38
|
|
8011310: 43db mvns r3, r3
|
|
8011312: 9304 str r3, [sp, #16]
|
|
8011314: 4656 mov r6, sl
|
|
8011316: 2700 movs r7, #0
|
|
8011318: 4621 mov r1, r4
|
|
801131a: 4658 mov r0, fp
|
|
801131c: f000 fafe bl 801191c <_Bfree>
|
|
8011320: 2d00 cmp r5, #0
|
|
8011322: d0dc beq.n 80112de <_dtoa_r+0x65e>
|
|
8011324: b12f cbz r7, 8011332 <_dtoa_r+0x6b2>
|
|
8011326: 42af cmp r7, r5
|
|
8011328: d003 beq.n 8011332 <_dtoa_r+0x6b2>
|
|
801132a: 4639 mov r1, r7
|
|
801132c: 4658 mov r0, fp
|
|
801132e: f000 faf5 bl 801191c <_Bfree>
|
|
8011332: 4629 mov r1, r5
|
|
8011334: 4658 mov r0, fp
|
|
8011336: f000 faf1 bl 801191c <_Bfree>
|
|
801133a: e7d0 b.n 80112de <_dtoa_r+0x65e>
|
|
801133c: 9704 str r7, [sp, #16]
|
|
801133e: 4633 mov r3, r6
|
|
8011340: 461e mov r6, r3
|
|
8011342: f813 2d01 ldrb.w r2, [r3, #-1]!
|
|
8011346: 2a39 cmp r2, #57 @ 0x39
|
|
8011348: d107 bne.n 801135a <_dtoa_r+0x6da>
|
|
801134a: 459a cmp sl, r3
|
|
801134c: d1f8 bne.n 8011340 <_dtoa_r+0x6c0>
|
|
801134e: 9a04 ldr r2, [sp, #16]
|
|
8011350: 3201 adds r2, #1
|
|
8011352: 9204 str r2, [sp, #16]
|
|
8011354: 2230 movs r2, #48 @ 0x30
|
|
8011356: f88a 2000 strb.w r2, [sl]
|
|
801135a: 781a ldrb r2, [r3, #0]
|
|
801135c: 3201 adds r2, #1
|
|
801135e: 701a strb r2, [r3, #0]
|
|
8011360: e7bd b.n 80112de <_dtoa_r+0x65e>
|
|
8011362: 4b7b ldr r3, [pc, #492] @ (8011550 <_dtoa_r+0x8d0>)
|
|
8011364: 2200 movs r2, #0
|
|
8011366: f7ef f957 bl 8000618 <__aeabi_dmul>
|
|
801136a: 2200 movs r2, #0
|
|
801136c: 2300 movs r3, #0
|
|
801136e: 4604 mov r4, r0
|
|
8011370: 460d mov r5, r1
|
|
8011372: f7ef fbb9 bl 8000ae8 <__aeabi_dcmpeq>
|
|
8011376: 2800 cmp r0, #0
|
|
8011378: f43f aebb beq.w 80110f2 <_dtoa_r+0x472>
|
|
801137c: e6f0 b.n 8011160 <_dtoa_r+0x4e0>
|
|
801137e: 9a0b ldr r2, [sp, #44] @ 0x2c
|
|
8011380: 2a00 cmp r2, #0
|
|
8011382: f000 80db beq.w 801153c <_dtoa_r+0x8bc>
|
|
8011386: 9a09 ldr r2, [sp, #36] @ 0x24
|
|
8011388: 2a01 cmp r2, #1
|
|
801138a: f300 80bf bgt.w 801150c <_dtoa_r+0x88c>
|
|
801138e: 9a14 ldr r2, [sp, #80] @ 0x50
|
|
8011390: 2a00 cmp r2, #0
|
|
8011392: f000 80b7 beq.w 8011504 <_dtoa_r+0x884>
|
|
8011396: f203 4333 addw r3, r3, #1075 @ 0x433
|
|
801139a: 9c0a ldr r4, [sp, #40] @ 0x28
|
|
801139c: 4646 mov r6, r8
|
|
801139e: 9a08 ldr r2, [sp, #32]
|
|
80113a0: 2101 movs r1, #1
|
|
80113a2: 441a add r2, r3
|
|
80113a4: 4658 mov r0, fp
|
|
80113a6: 4498 add r8, r3
|
|
80113a8: 9208 str r2, [sp, #32]
|
|
80113aa: f000 fb6b bl 8011a84 <__i2b>
|
|
80113ae: 4605 mov r5, r0
|
|
80113b0: b15e cbz r6, 80113ca <_dtoa_r+0x74a>
|
|
80113b2: 9b08 ldr r3, [sp, #32]
|
|
80113b4: 2b00 cmp r3, #0
|
|
80113b6: dd08 ble.n 80113ca <_dtoa_r+0x74a>
|
|
80113b8: 42b3 cmp r3, r6
|
|
80113ba: 9a08 ldr r2, [sp, #32]
|
|
80113bc: bfa8 it ge
|
|
80113be: 4633 movge r3, r6
|
|
80113c0: eba8 0803 sub.w r8, r8, r3
|
|
80113c4: 1af6 subs r6, r6, r3
|
|
80113c6: 1ad3 subs r3, r2, r3
|
|
80113c8: 9308 str r3, [sp, #32]
|
|
80113ca: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
80113cc: b1f3 cbz r3, 801140c <_dtoa_r+0x78c>
|
|
80113ce: 9b0b ldr r3, [sp, #44] @ 0x2c
|
|
80113d0: 2b00 cmp r3, #0
|
|
80113d2: f000 80b7 beq.w 8011544 <_dtoa_r+0x8c4>
|
|
80113d6: b18c cbz r4, 80113fc <_dtoa_r+0x77c>
|
|
80113d8: 4629 mov r1, r5
|
|
80113da: 4622 mov r2, r4
|
|
80113dc: 4658 mov r0, fp
|
|
80113de: f000 fc11 bl 8011c04 <__pow5mult>
|
|
80113e2: 464a mov r2, r9
|
|
80113e4: 4601 mov r1, r0
|
|
80113e6: 4605 mov r5, r0
|
|
80113e8: 4658 mov r0, fp
|
|
80113ea: f000 fb61 bl 8011ab0 <__multiply>
|
|
80113ee: 4649 mov r1, r9
|
|
80113f0: 9004 str r0, [sp, #16]
|
|
80113f2: 4658 mov r0, fp
|
|
80113f4: f000 fa92 bl 801191c <_Bfree>
|
|
80113f8: 9b04 ldr r3, [sp, #16]
|
|
80113fa: 4699 mov r9, r3
|
|
80113fc: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
80113fe: 1b1a subs r2, r3, r4
|
|
8011400: d004 beq.n 801140c <_dtoa_r+0x78c>
|
|
8011402: 4649 mov r1, r9
|
|
8011404: 4658 mov r0, fp
|
|
8011406: f000 fbfd bl 8011c04 <__pow5mult>
|
|
801140a: 4681 mov r9, r0
|
|
801140c: 2101 movs r1, #1
|
|
801140e: 4658 mov r0, fp
|
|
8011410: f000 fb38 bl 8011a84 <__i2b>
|
|
8011414: 9b0f ldr r3, [sp, #60] @ 0x3c
|
|
8011416: 4604 mov r4, r0
|
|
8011418: 2b00 cmp r3, #0
|
|
801141a: f000 81cf beq.w 80117bc <_dtoa_r+0xb3c>
|
|
801141e: 461a mov r2, r3
|
|
8011420: 4601 mov r1, r0
|
|
8011422: 4658 mov r0, fp
|
|
8011424: f000 fbee bl 8011c04 <__pow5mult>
|
|
8011428: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
801142a: 2b01 cmp r3, #1
|
|
801142c: 4604 mov r4, r0
|
|
801142e: f300 8095 bgt.w 801155c <_dtoa_r+0x8dc>
|
|
8011432: 9b02 ldr r3, [sp, #8]
|
|
8011434: 2b00 cmp r3, #0
|
|
8011436: f040 8087 bne.w 8011548 <_dtoa_r+0x8c8>
|
|
801143a: 9b03 ldr r3, [sp, #12]
|
|
801143c: f3c3 0313 ubfx r3, r3, #0, #20
|
|
8011440: 2b00 cmp r3, #0
|
|
8011442: f040 8089 bne.w 8011558 <_dtoa_r+0x8d8>
|
|
8011446: 9b03 ldr r3, [sp, #12]
|
|
8011448: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000
|
|
801144c: 0d1b lsrs r3, r3, #20
|
|
801144e: 051b lsls r3, r3, #20
|
|
8011450: b12b cbz r3, 801145e <_dtoa_r+0x7de>
|
|
8011452: 9b08 ldr r3, [sp, #32]
|
|
8011454: 3301 adds r3, #1
|
|
8011456: 9308 str r3, [sp, #32]
|
|
8011458: f108 0801 add.w r8, r8, #1
|
|
801145c: 2301 movs r3, #1
|
|
801145e: 930a str r3, [sp, #40] @ 0x28
|
|
8011460: 9b0f ldr r3, [sp, #60] @ 0x3c
|
|
8011462: 2b00 cmp r3, #0
|
|
8011464: f000 81b0 beq.w 80117c8 <_dtoa_r+0xb48>
|
|
8011468: 6923 ldr r3, [r4, #16]
|
|
801146a: eb04 0383 add.w r3, r4, r3, lsl #2
|
|
801146e: 6918 ldr r0, [r3, #16]
|
|
8011470: f000 fabc bl 80119ec <__hi0bits>
|
|
8011474: f1c0 0020 rsb r0, r0, #32
|
|
8011478: 9b08 ldr r3, [sp, #32]
|
|
801147a: 4418 add r0, r3
|
|
801147c: f010 001f ands.w r0, r0, #31
|
|
8011480: d077 beq.n 8011572 <_dtoa_r+0x8f2>
|
|
8011482: f1c0 0320 rsb r3, r0, #32
|
|
8011486: 2b04 cmp r3, #4
|
|
8011488: dd6b ble.n 8011562 <_dtoa_r+0x8e2>
|
|
801148a: 9b08 ldr r3, [sp, #32]
|
|
801148c: f1c0 001c rsb r0, r0, #28
|
|
8011490: 4403 add r3, r0
|
|
8011492: 4480 add r8, r0
|
|
8011494: 4406 add r6, r0
|
|
8011496: 9308 str r3, [sp, #32]
|
|
8011498: f1b8 0f00 cmp.w r8, #0
|
|
801149c: dd05 ble.n 80114aa <_dtoa_r+0x82a>
|
|
801149e: 4649 mov r1, r9
|
|
80114a0: 4642 mov r2, r8
|
|
80114a2: 4658 mov r0, fp
|
|
80114a4: f000 fc08 bl 8011cb8 <__lshift>
|
|
80114a8: 4681 mov r9, r0
|
|
80114aa: 9b08 ldr r3, [sp, #32]
|
|
80114ac: 2b00 cmp r3, #0
|
|
80114ae: dd05 ble.n 80114bc <_dtoa_r+0x83c>
|
|
80114b0: 4621 mov r1, r4
|
|
80114b2: 461a mov r2, r3
|
|
80114b4: 4658 mov r0, fp
|
|
80114b6: f000 fbff bl 8011cb8 <__lshift>
|
|
80114ba: 4604 mov r4, r0
|
|
80114bc: 9b12 ldr r3, [sp, #72] @ 0x48
|
|
80114be: 2b00 cmp r3, #0
|
|
80114c0: d059 beq.n 8011576 <_dtoa_r+0x8f6>
|
|
80114c2: 4621 mov r1, r4
|
|
80114c4: 4648 mov r0, r9
|
|
80114c6: f000 fc63 bl 8011d90 <__mcmp>
|
|
80114ca: 2800 cmp r0, #0
|
|
80114cc: da53 bge.n 8011576 <_dtoa_r+0x8f6>
|
|
80114ce: 1e7b subs r3, r7, #1
|
|
80114d0: 9304 str r3, [sp, #16]
|
|
80114d2: 4649 mov r1, r9
|
|
80114d4: 2300 movs r3, #0
|
|
80114d6: 220a movs r2, #10
|
|
80114d8: 4658 mov r0, fp
|
|
80114da: f000 fa41 bl 8011960 <__multadd>
|
|
80114de: 9b0b ldr r3, [sp, #44] @ 0x2c
|
|
80114e0: 4681 mov r9, r0
|
|
80114e2: 2b00 cmp r3, #0
|
|
80114e4: f000 8172 beq.w 80117cc <_dtoa_r+0xb4c>
|
|
80114e8: 2300 movs r3, #0
|
|
80114ea: 4629 mov r1, r5
|
|
80114ec: 220a movs r2, #10
|
|
80114ee: 4658 mov r0, fp
|
|
80114f0: f000 fa36 bl 8011960 <__multadd>
|
|
80114f4: 9b00 ldr r3, [sp, #0]
|
|
80114f6: 2b00 cmp r3, #0
|
|
80114f8: 4605 mov r5, r0
|
|
80114fa: dc67 bgt.n 80115cc <_dtoa_r+0x94c>
|
|
80114fc: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
80114fe: 2b02 cmp r3, #2
|
|
8011500: dc41 bgt.n 8011586 <_dtoa_r+0x906>
|
|
8011502: e063 b.n 80115cc <_dtoa_r+0x94c>
|
|
8011504: 9b16 ldr r3, [sp, #88] @ 0x58
|
|
8011506: f1c3 0336 rsb r3, r3, #54 @ 0x36
|
|
801150a: e746 b.n 801139a <_dtoa_r+0x71a>
|
|
801150c: 9b07 ldr r3, [sp, #28]
|
|
801150e: 1e5c subs r4, r3, #1
|
|
8011510: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
8011512: 42a3 cmp r3, r4
|
|
8011514: bfbf itttt lt
|
|
8011516: 9b0a ldrlt r3, [sp, #40] @ 0x28
|
|
8011518: 9a0f ldrlt r2, [sp, #60] @ 0x3c
|
|
801151a: 940a strlt r4, [sp, #40] @ 0x28
|
|
801151c: 1ae3 sublt r3, r4, r3
|
|
801151e: bfb4 ite lt
|
|
8011520: 18d2 addlt r2, r2, r3
|
|
8011522: 1b1c subge r4, r3, r4
|
|
8011524: 9b07 ldr r3, [sp, #28]
|
|
8011526: bfbc itt lt
|
|
8011528: 920f strlt r2, [sp, #60] @ 0x3c
|
|
801152a: 2400 movlt r4, #0
|
|
801152c: 2b00 cmp r3, #0
|
|
801152e: bfb5 itete lt
|
|
8011530: eba8 0603 sublt.w r6, r8, r3
|
|
8011534: 9b07 ldrge r3, [sp, #28]
|
|
8011536: 2300 movlt r3, #0
|
|
8011538: 4646 movge r6, r8
|
|
801153a: e730 b.n 801139e <_dtoa_r+0x71e>
|
|
801153c: 9c0a ldr r4, [sp, #40] @ 0x28
|
|
801153e: 9d0b ldr r5, [sp, #44] @ 0x2c
|
|
8011540: 4646 mov r6, r8
|
|
8011542: e735 b.n 80113b0 <_dtoa_r+0x730>
|
|
8011544: 9a0a ldr r2, [sp, #40] @ 0x28
|
|
8011546: e75c b.n 8011402 <_dtoa_r+0x782>
|
|
8011548: 2300 movs r3, #0
|
|
801154a: e788 b.n 801145e <_dtoa_r+0x7de>
|
|
801154c: 3fe00000 .word 0x3fe00000
|
|
8011550: 40240000 .word 0x40240000
|
|
8011554: 40140000 .word 0x40140000
|
|
8011558: 9b02 ldr r3, [sp, #8]
|
|
801155a: e780 b.n 801145e <_dtoa_r+0x7de>
|
|
801155c: 2300 movs r3, #0
|
|
801155e: 930a str r3, [sp, #40] @ 0x28
|
|
8011560: e782 b.n 8011468 <_dtoa_r+0x7e8>
|
|
8011562: d099 beq.n 8011498 <_dtoa_r+0x818>
|
|
8011564: 9a08 ldr r2, [sp, #32]
|
|
8011566: 331c adds r3, #28
|
|
8011568: 441a add r2, r3
|
|
801156a: 4498 add r8, r3
|
|
801156c: 441e add r6, r3
|
|
801156e: 9208 str r2, [sp, #32]
|
|
8011570: e792 b.n 8011498 <_dtoa_r+0x818>
|
|
8011572: 4603 mov r3, r0
|
|
8011574: e7f6 b.n 8011564 <_dtoa_r+0x8e4>
|
|
8011576: 9b07 ldr r3, [sp, #28]
|
|
8011578: 9704 str r7, [sp, #16]
|
|
801157a: 2b00 cmp r3, #0
|
|
801157c: dc20 bgt.n 80115c0 <_dtoa_r+0x940>
|
|
801157e: 9300 str r3, [sp, #0]
|
|
8011580: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8011582: 2b02 cmp r3, #2
|
|
8011584: dd1e ble.n 80115c4 <_dtoa_r+0x944>
|
|
8011586: 9b00 ldr r3, [sp, #0]
|
|
8011588: 2b00 cmp r3, #0
|
|
801158a: f47f aec0 bne.w 801130e <_dtoa_r+0x68e>
|
|
801158e: 4621 mov r1, r4
|
|
8011590: 2205 movs r2, #5
|
|
8011592: 4658 mov r0, fp
|
|
8011594: f000 f9e4 bl 8011960 <__multadd>
|
|
8011598: 4601 mov r1, r0
|
|
801159a: 4604 mov r4, r0
|
|
801159c: 4648 mov r0, r9
|
|
801159e: f000 fbf7 bl 8011d90 <__mcmp>
|
|
80115a2: 2800 cmp r0, #0
|
|
80115a4: f77f aeb3 ble.w 801130e <_dtoa_r+0x68e>
|
|
80115a8: 4656 mov r6, sl
|
|
80115aa: 2331 movs r3, #49 @ 0x31
|
|
80115ac: f806 3b01 strb.w r3, [r6], #1
|
|
80115b0: 9b04 ldr r3, [sp, #16]
|
|
80115b2: 3301 adds r3, #1
|
|
80115b4: 9304 str r3, [sp, #16]
|
|
80115b6: e6ae b.n 8011316 <_dtoa_r+0x696>
|
|
80115b8: 9c07 ldr r4, [sp, #28]
|
|
80115ba: 9704 str r7, [sp, #16]
|
|
80115bc: 4625 mov r5, r4
|
|
80115be: e7f3 b.n 80115a8 <_dtoa_r+0x928>
|
|
80115c0: 9b07 ldr r3, [sp, #28]
|
|
80115c2: 9300 str r3, [sp, #0]
|
|
80115c4: 9b0b ldr r3, [sp, #44] @ 0x2c
|
|
80115c6: 2b00 cmp r3, #0
|
|
80115c8: f000 8104 beq.w 80117d4 <_dtoa_r+0xb54>
|
|
80115cc: 2e00 cmp r6, #0
|
|
80115ce: dd05 ble.n 80115dc <_dtoa_r+0x95c>
|
|
80115d0: 4629 mov r1, r5
|
|
80115d2: 4632 mov r2, r6
|
|
80115d4: 4658 mov r0, fp
|
|
80115d6: f000 fb6f bl 8011cb8 <__lshift>
|
|
80115da: 4605 mov r5, r0
|
|
80115dc: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
80115de: 2b00 cmp r3, #0
|
|
80115e0: d05a beq.n 8011698 <_dtoa_r+0xa18>
|
|
80115e2: 6869 ldr r1, [r5, #4]
|
|
80115e4: 4658 mov r0, fp
|
|
80115e6: f000 f959 bl 801189c <_Balloc>
|
|
80115ea: 4606 mov r6, r0
|
|
80115ec: b928 cbnz r0, 80115fa <_dtoa_r+0x97a>
|
|
80115ee: 4b84 ldr r3, [pc, #528] @ (8011800 <_dtoa_r+0xb80>)
|
|
80115f0: 4602 mov r2, r0
|
|
80115f2: f240 21ef movw r1, #751 @ 0x2ef
|
|
80115f6: f7ff bb5a b.w 8010cae <_dtoa_r+0x2e>
|
|
80115fa: 692a ldr r2, [r5, #16]
|
|
80115fc: 3202 adds r2, #2
|
|
80115fe: 0092 lsls r2, r2, #2
|
|
8011600: f105 010c add.w r1, r5, #12
|
|
8011604: 300c adds r0, #12
|
|
8011606: f7ff fa49 bl 8010a9c <memcpy>
|
|
801160a: 2201 movs r2, #1
|
|
801160c: 4631 mov r1, r6
|
|
801160e: 4658 mov r0, fp
|
|
8011610: f000 fb52 bl 8011cb8 <__lshift>
|
|
8011614: f10a 0301 add.w r3, sl, #1
|
|
8011618: 9307 str r3, [sp, #28]
|
|
801161a: 9b00 ldr r3, [sp, #0]
|
|
801161c: 4453 add r3, sl
|
|
801161e: 930b str r3, [sp, #44] @ 0x2c
|
|
8011620: 9b02 ldr r3, [sp, #8]
|
|
8011622: f003 0301 and.w r3, r3, #1
|
|
8011626: 462f mov r7, r5
|
|
8011628: 930a str r3, [sp, #40] @ 0x28
|
|
801162a: 4605 mov r5, r0
|
|
801162c: 9b07 ldr r3, [sp, #28]
|
|
801162e: 4621 mov r1, r4
|
|
8011630: 3b01 subs r3, #1
|
|
8011632: 4648 mov r0, r9
|
|
8011634: 9300 str r3, [sp, #0]
|
|
8011636: f7ff fa9b bl 8010b70 <quorem>
|
|
801163a: 4639 mov r1, r7
|
|
801163c: 9002 str r0, [sp, #8]
|
|
801163e: f100 0830 add.w r8, r0, #48 @ 0x30
|
|
8011642: 4648 mov r0, r9
|
|
8011644: f000 fba4 bl 8011d90 <__mcmp>
|
|
8011648: 462a mov r2, r5
|
|
801164a: 9008 str r0, [sp, #32]
|
|
801164c: 4621 mov r1, r4
|
|
801164e: 4658 mov r0, fp
|
|
8011650: f000 fbba bl 8011dc8 <__mdiff>
|
|
8011654: 68c2 ldr r2, [r0, #12]
|
|
8011656: 4606 mov r6, r0
|
|
8011658: bb02 cbnz r2, 801169c <_dtoa_r+0xa1c>
|
|
801165a: 4601 mov r1, r0
|
|
801165c: 4648 mov r0, r9
|
|
801165e: f000 fb97 bl 8011d90 <__mcmp>
|
|
8011662: 4602 mov r2, r0
|
|
8011664: 4631 mov r1, r6
|
|
8011666: 4658 mov r0, fp
|
|
8011668: 920e str r2, [sp, #56] @ 0x38
|
|
801166a: f000 f957 bl 801191c <_Bfree>
|
|
801166e: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8011670: 9a0e ldr r2, [sp, #56] @ 0x38
|
|
8011672: 9e07 ldr r6, [sp, #28]
|
|
8011674: ea43 0102 orr.w r1, r3, r2
|
|
8011678: 9b0a ldr r3, [sp, #40] @ 0x28
|
|
801167a: 4319 orrs r1, r3
|
|
801167c: d110 bne.n 80116a0 <_dtoa_r+0xa20>
|
|
801167e: f1b8 0f39 cmp.w r8, #57 @ 0x39
|
|
8011682: d029 beq.n 80116d8 <_dtoa_r+0xa58>
|
|
8011684: 9b08 ldr r3, [sp, #32]
|
|
8011686: 2b00 cmp r3, #0
|
|
8011688: dd02 ble.n 8011690 <_dtoa_r+0xa10>
|
|
801168a: 9b02 ldr r3, [sp, #8]
|
|
801168c: f103 0831 add.w r8, r3, #49 @ 0x31
|
|
8011690: 9b00 ldr r3, [sp, #0]
|
|
8011692: f883 8000 strb.w r8, [r3]
|
|
8011696: e63f b.n 8011318 <_dtoa_r+0x698>
|
|
8011698: 4628 mov r0, r5
|
|
801169a: e7bb b.n 8011614 <_dtoa_r+0x994>
|
|
801169c: 2201 movs r2, #1
|
|
801169e: e7e1 b.n 8011664 <_dtoa_r+0x9e4>
|
|
80116a0: 9b08 ldr r3, [sp, #32]
|
|
80116a2: 2b00 cmp r3, #0
|
|
80116a4: db04 blt.n 80116b0 <_dtoa_r+0xa30>
|
|
80116a6: 9909 ldr r1, [sp, #36] @ 0x24
|
|
80116a8: 430b orrs r3, r1
|
|
80116aa: 990a ldr r1, [sp, #40] @ 0x28
|
|
80116ac: 430b orrs r3, r1
|
|
80116ae: d120 bne.n 80116f2 <_dtoa_r+0xa72>
|
|
80116b0: 2a00 cmp r2, #0
|
|
80116b2: dded ble.n 8011690 <_dtoa_r+0xa10>
|
|
80116b4: 4649 mov r1, r9
|
|
80116b6: 2201 movs r2, #1
|
|
80116b8: 4658 mov r0, fp
|
|
80116ba: f000 fafd bl 8011cb8 <__lshift>
|
|
80116be: 4621 mov r1, r4
|
|
80116c0: 4681 mov r9, r0
|
|
80116c2: f000 fb65 bl 8011d90 <__mcmp>
|
|
80116c6: 2800 cmp r0, #0
|
|
80116c8: dc03 bgt.n 80116d2 <_dtoa_r+0xa52>
|
|
80116ca: d1e1 bne.n 8011690 <_dtoa_r+0xa10>
|
|
80116cc: f018 0f01 tst.w r8, #1
|
|
80116d0: d0de beq.n 8011690 <_dtoa_r+0xa10>
|
|
80116d2: f1b8 0f39 cmp.w r8, #57 @ 0x39
|
|
80116d6: d1d8 bne.n 801168a <_dtoa_r+0xa0a>
|
|
80116d8: 9a00 ldr r2, [sp, #0]
|
|
80116da: 2339 movs r3, #57 @ 0x39
|
|
80116dc: 7013 strb r3, [r2, #0]
|
|
80116de: 4633 mov r3, r6
|
|
80116e0: 461e mov r6, r3
|
|
80116e2: 3b01 subs r3, #1
|
|
80116e4: f816 2c01 ldrb.w r2, [r6, #-1]
|
|
80116e8: 2a39 cmp r2, #57 @ 0x39
|
|
80116ea: d052 beq.n 8011792 <_dtoa_r+0xb12>
|
|
80116ec: 3201 adds r2, #1
|
|
80116ee: 701a strb r2, [r3, #0]
|
|
80116f0: e612 b.n 8011318 <_dtoa_r+0x698>
|
|
80116f2: 2a00 cmp r2, #0
|
|
80116f4: dd07 ble.n 8011706 <_dtoa_r+0xa86>
|
|
80116f6: f1b8 0f39 cmp.w r8, #57 @ 0x39
|
|
80116fa: d0ed beq.n 80116d8 <_dtoa_r+0xa58>
|
|
80116fc: 9a00 ldr r2, [sp, #0]
|
|
80116fe: f108 0301 add.w r3, r8, #1
|
|
8011702: 7013 strb r3, [r2, #0]
|
|
8011704: e608 b.n 8011318 <_dtoa_r+0x698>
|
|
8011706: 9b07 ldr r3, [sp, #28]
|
|
8011708: 9a07 ldr r2, [sp, #28]
|
|
801170a: f803 8c01 strb.w r8, [r3, #-1]
|
|
801170e: 9b0b ldr r3, [sp, #44] @ 0x2c
|
|
8011710: 4293 cmp r3, r2
|
|
8011712: d028 beq.n 8011766 <_dtoa_r+0xae6>
|
|
8011714: 4649 mov r1, r9
|
|
8011716: 2300 movs r3, #0
|
|
8011718: 220a movs r2, #10
|
|
801171a: 4658 mov r0, fp
|
|
801171c: f000 f920 bl 8011960 <__multadd>
|
|
8011720: 42af cmp r7, r5
|
|
8011722: 4681 mov r9, r0
|
|
8011724: f04f 0300 mov.w r3, #0
|
|
8011728: f04f 020a mov.w r2, #10
|
|
801172c: 4639 mov r1, r7
|
|
801172e: 4658 mov r0, fp
|
|
8011730: d107 bne.n 8011742 <_dtoa_r+0xac2>
|
|
8011732: f000 f915 bl 8011960 <__multadd>
|
|
8011736: 4607 mov r7, r0
|
|
8011738: 4605 mov r5, r0
|
|
801173a: 9b07 ldr r3, [sp, #28]
|
|
801173c: 3301 adds r3, #1
|
|
801173e: 9307 str r3, [sp, #28]
|
|
8011740: e774 b.n 801162c <_dtoa_r+0x9ac>
|
|
8011742: f000 f90d bl 8011960 <__multadd>
|
|
8011746: 4629 mov r1, r5
|
|
8011748: 4607 mov r7, r0
|
|
801174a: 2300 movs r3, #0
|
|
801174c: 220a movs r2, #10
|
|
801174e: 4658 mov r0, fp
|
|
8011750: f000 f906 bl 8011960 <__multadd>
|
|
8011754: 4605 mov r5, r0
|
|
8011756: e7f0 b.n 801173a <_dtoa_r+0xaba>
|
|
8011758: 9b00 ldr r3, [sp, #0]
|
|
801175a: 2b00 cmp r3, #0
|
|
801175c: bfcc ite gt
|
|
801175e: 461e movgt r6, r3
|
|
8011760: 2601 movle r6, #1
|
|
8011762: 4456 add r6, sl
|
|
8011764: 2700 movs r7, #0
|
|
8011766: 4649 mov r1, r9
|
|
8011768: 2201 movs r2, #1
|
|
801176a: 4658 mov r0, fp
|
|
801176c: f000 faa4 bl 8011cb8 <__lshift>
|
|
8011770: 4621 mov r1, r4
|
|
8011772: 4681 mov r9, r0
|
|
8011774: f000 fb0c bl 8011d90 <__mcmp>
|
|
8011778: 2800 cmp r0, #0
|
|
801177a: dcb0 bgt.n 80116de <_dtoa_r+0xa5e>
|
|
801177c: d102 bne.n 8011784 <_dtoa_r+0xb04>
|
|
801177e: f018 0f01 tst.w r8, #1
|
|
8011782: d1ac bne.n 80116de <_dtoa_r+0xa5e>
|
|
8011784: 4633 mov r3, r6
|
|
8011786: 461e mov r6, r3
|
|
8011788: f813 2d01 ldrb.w r2, [r3, #-1]!
|
|
801178c: 2a30 cmp r2, #48 @ 0x30
|
|
801178e: d0fa beq.n 8011786 <_dtoa_r+0xb06>
|
|
8011790: e5c2 b.n 8011318 <_dtoa_r+0x698>
|
|
8011792: 459a cmp sl, r3
|
|
8011794: d1a4 bne.n 80116e0 <_dtoa_r+0xa60>
|
|
8011796: 9b04 ldr r3, [sp, #16]
|
|
8011798: 3301 adds r3, #1
|
|
801179a: 9304 str r3, [sp, #16]
|
|
801179c: 2331 movs r3, #49 @ 0x31
|
|
801179e: f88a 3000 strb.w r3, [sl]
|
|
80117a2: e5b9 b.n 8011318 <_dtoa_r+0x698>
|
|
80117a4: 9b23 ldr r3, [sp, #140] @ 0x8c
|
|
80117a6: f8df a05c ldr.w sl, [pc, #92] @ 8011804 <_dtoa_r+0xb84>
|
|
80117aa: b11b cbz r3, 80117b4 <_dtoa_r+0xb34>
|
|
80117ac: f10a 0308 add.w r3, sl, #8
|
|
80117b0: 9a23 ldr r2, [sp, #140] @ 0x8c
|
|
80117b2: 6013 str r3, [r2, #0]
|
|
80117b4: 4650 mov r0, sl
|
|
80117b6: b019 add sp, #100 @ 0x64
|
|
80117b8: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
80117bc: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
80117be: 2b01 cmp r3, #1
|
|
80117c0: f77f ae37 ble.w 8011432 <_dtoa_r+0x7b2>
|
|
80117c4: 9b0f ldr r3, [sp, #60] @ 0x3c
|
|
80117c6: 930a str r3, [sp, #40] @ 0x28
|
|
80117c8: 2001 movs r0, #1
|
|
80117ca: e655 b.n 8011478 <_dtoa_r+0x7f8>
|
|
80117cc: 9b00 ldr r3, [sp, #0]
|
|
80117ce: 2b00 cmp r3, #0
|
|
80117d0: f77f aed6 ble.w 8011580 <_dtoa_r+0x900>
|
|
80117d4: 4656 mov r6, sl
|
|
80117d6: 4621 mov r1, r4
|
|
80117d8: 4648 mov r0, r9
|
|
80117da: f7ff f9c9 bl 8010b70 <quorem>
|
|
80117de: f100 0830 add.w r8, r0, #48 @ 0x30
|
|
80117e2: f806 8b01 strb.w r8, [r6], #1
|
|
80117e6: 9b00 ldr r3, [sp, #0]
|
|
80117e8: eba6 020a sub.w r2, r6, sl
|
|
80117ec: 4293 cmp r3, r2
|
|
80117ee: ddb3 ble.n 8011758 <_dtoa_r+0xad8>
|
|
80117f0: 4649 mov r1, r9
|
|
80117f2: 2300 movs r3, #0
|
|
80117f4: 220a movs r2, #10
|
|
80117f6: 4658 mov r0, fp
|
|
80117f8: f000 f8b2 bl 8011960 <__multadd>
|
|
80117fc: 4681 mov r9, r0
|
|
80117fe: e7ea b.n 80117d6 <_dtoa_r+0xb56>
|
|
8011800: 08013478 .word 0x08013478
|
|
8011804: 080133fc .word 0x080133fc
|
|
|
|
08011808 <_free_r>:
|
|
8011808: b538 push {r3, r4, r5, lr}
|
|
801180a: 4605 mov r5, r0
|
|
801180c: 2900 cmp r1, #0
|
|
801180e: d041 beq.n 8011894 <_free_r+0x8c>
|
|
8011810: f851 3c04 ldr.w r3, [r1, #-4]
|
|
8011814: 1f0c subs r4, r1, #4
|
|
8011816: 2b00 cmp r3, #0
|
|
8011818: bfb8 it lt
|
|
801181a: 18e4 addlt r4, r4, r3
|
|
801181c: f7fe fa42 bl 800fca4 <__malloc_lock>
|
|
8011820: 4a1d ldr r2, [pc, #116] @ (8011898 <_free_r+0x90>)
|
|
8011822: 6813 ldr r3, [r2, #0]
|
|
8011824: b933 cbnz r3, 8011834 <_free_r+0x2c>
|
|
8011826: 6063 str r3, [r4, #4]
|
|
8011828: 6014 str r4, [r2, #0]
|
|
801182a: 4628 mov r0, r5
|
|
801182c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
|
|
8011830: f7fe ba3e b.w 800fcb0 <__malloc_unlock>
|
|
8011834: 42a3 cmp r3, r4
|
|
8011836: d908 bls.n 801184a <_free_r+0x42>
|
|
8011838: 6820 ldr r0, [r4, #0]
|
|
801183a: 1821 adds r1, r4, r0
|
|
801183c: 428b cmp r3, r1
|
|
801183e: bf01 itttt eq
|
|
8011840: 6819 ldreq r1, [r3, #0]
|
|
8011842: 685b ldreq r3, [r3, #4]
|
|
8011844: 1809 addeq r1, r1, r0
|
|
8011846: 6021 streq r1, [r4, #0]
|
|
8011848: e7ed b.n 8011826 <_free_r+0x1e>
|
|
801184a: 461a mov r2, r3
|
|
801184c: 685b ldr r3, [r3, #4]
|
|
801184e: b10b cbz r3, 8011854 <_free_r+0x4c>
|
|
8011850: 42a3 cmp r3, r4
|
|
8011852: d9fa bls.n 801184a <_free_r+0x42>
|
|
8011854: 6811 ldr r1, [r2, #0]
|
|
8011856: 1850 adds r0, r2, r1
|
|
8011858: 42a0 cmp r0, r4
|
|
801185a: d10b bne.n 8011874 <_free_r+0x6c>
|
|
801185c: 6820 ldr r0, [r4, #0]
|
|
801185e: 4401 add r1, r0
|
|
8011860: 1850 adds r0, r2, r1
|
|
8011862: 4283 cmp r3, r0
|
|
8011864: 6011 str r1, [r2, #0]
|
|
8011866: d1e0 bne.n 801182a <_free_r+0x22>
|
|
8011868: 6818 ldr r0, [r3, #0]
|
|
801186a: 685b ldr r3, [r3, #4]
|
|
801186c: 6053 str r3, [r2, #4]
|
|
801186e: 4408 add r0, r1
|
|
8011870: 6010 str r0, [r2, #0]
|
|
8011872: e7da b.n 801182a <_free_r+0x22>
|
|
8011874: d902 bls.n 801187c <_free_r+0x74>
|
|
8011876: 230c movs r3, #12
|
|
8011878: 602b str r3, [r5, #0]
|
|
801187a: e7d6 b.n 801182a <_free_r+0x22>
|
|
801187c: 6820 ldr r0, [r4, #0]
|
|
801187e: 1821 adds r1, r4, r0
|
|
8011880: 428b cmp r3, r1
|
|
8011882: bf04 itt eq
|
|
8011884: 6819 ldreq r1, [r3, #0]
|
|
8011886: 685b ldreq r3, [r3, #4]
|
|
8011888: 6063 str r3, [r4, #4]
|
|
801188a: bf04 itt eq
|
|
801188c: 1809 addeq r1, r1, r0
|
|
801188e: 6021 streq r1, [r4, #0]
|
|
8011890: 6054 str r4, [r2, #4]
|
|
8011892: e7ca b.n 801182a <_free_r+0x22>
|
|
8011894: bd38 pop {r3, r4, r5, pc}
|
|
8011896: bf00 nop
|
|
8011898: 20008844 .word 0x20008844
|
|
|
|
0801189c <_Balloc>:
|
|
801189c: b570 push {r4, r5, r6, lr}
|
|
801189e: 69c6 ldr r6, [r0, #28]
|
|
80118a0: 4604 mov r4, r0
|
|
80118a2: 460d mov r5, r1
|
|
80118a4: b976 cbnz r6, 80118c4 <_Balloc+0x28>
|
|
80118a6: 2010 movs r0, #16
|
|
80118a8: f7fe f94a bl 800fb40 <malloc>
|
|
80118ac: 4602 mov r2, r0
|
|
80118ae: 61e0 str r0, [r4, #28]
|
|
80118b0: b920 cbnz r0, 80118bc <_Balloc+0x20>
|
|
80118b2: 4b18 ldr r3, [pc, #96] @ (8011914 <_Balloc+0x78>)
|
|
80118b4: 4818 ldr r0, [pc, #96] @ (8011918 <_Balloc+0x7c>)
|
|
80118b6: 216b movs r1, #107 @ 0x6b
|
|
80118b8: f000 fd90 bl 80123dc <__assert_func>
|
|
80118bc: e9c0 6601 strd r6, r6, [r0, #4]
|
|
80118c0: 6006 str r6, [r0, #0]
|
|
80118c2: 60c6 str r6, [r0, #12]
|
|
80118c4: 69e6 ldr r6, [r4, #28]
|
|
80118c6: 68f3 ldr r3, [r6, #12]
|
|
80118c8: b183 cbz r3, 80118ec <_Balloc+0x50>
|
|
80118ca: 69e3 ldr r3, [r4, #28]
|
|
80118cc: 68db ldr r3, [r3, #12]
|
|
80118ce: f853 0025 ldr.w r0, [r3, r5, lsl #2]
|
|
80118d2: b9b8 cbnz r0, 8011904 <_Balloc+0x68>
|
|
80118d4: 2101 movs r1, #1
|
|
80118d6: fa01 f605 lsl.w r6, r1, r5
|
|
80118da: 1d72 adds r2, r6, #5
|
|
80118dc: 0092 lsls r2, r2, #2
|
|
80118de: 4620 mov r0, r4
|
|
80118e0: f000 fd9a bl 8012418 <_calloc_r>
|
|
80118e4: b160 cbz r0, 8011900 <_Balloc+0x64>
|
|
80118e6: e9c0 5601 strd r5, r6, [r0, #4]
|
|
80118ea: e00e b.n 801190a <_Balloc+0x6e>
|
|
80118ec: 2221 movs r2, #33 @ 0x21
|
|
80118ee: 2104 movs r1, #4
|
|
80118f0: 4620 mov r0, r4
|
|
80118f2: f000 fd91 bl 8012418 <_calloc_r>
|
|
80118f6: 69e3 ldr r3, [r4, #28]
|
|
80118f8: 60f0 str r0, [r6, #12]
|
|
80118fa: 68db ldr r3, [r3, #12]
|
|
80118fc: 2b00 cmp r3, #0
|
|
80118fe: d1e4 bne.n 80118ca <_Balloc+0x2e>
|
|
8011900: 2000 movs r0, #0
|
|
8011902: bd70 pop {r4, r5, r6, pc}
|
|
8011904: 6802 ldr r2, [r0, #0]
|
|
8011906: f843 2025 str.w r2, [r3, r5, lsl #2]
|
|
801190a: 2300 movs r3, #0
|
|
801190c: e9c0 3303 strd r3, r3, [r0, #12]
|
|
8011910: e7f7 b.n 8011902 <_Balloc+0x66>
|
|
8011912: bf00 nop
|
|
8011914: 08013409 .word 0x08013409
|
|
8011918: 08013489 .word 0x08013489
|
|
|
|
0801191c <_Bfree>:
|
|
801191c: b570 push {r4, r5, r6, lr}
|
|
801191e: 69c6 ldr r6, [r0, #28]
|
|
8011920: 4605 mov r5, r0
|
|
8011922: 460c mov r4, r1
|
|
8011924: b976 cbnz r6, 8011944 <_Bfree+0x28>
|
|
8011926: 2010 movs r0, #16
|
|
8011928: f7fe f90a bl 800fb40 <malloc>
|
|
801192c: 4602 mov r2, r0
|
|
801192e: 61e8 str r0, [r5, #28]
|
|
8011930: b920 cbnz r0, 801193c <_Bfree+0x20>
|
|
8011932: 4b09 ldr r3, [pc, #36] @ (8011958 <_Bfree+0x3c>)
|
|
8011934: 4809 ldr r0, [pc, #36] @ (801195c <_Bfree+0x40>)
|
|
8011936: 218f movs r1, #143 @ 0x8f
|
|
8011938: f000 fd50 bl 80123dc <__assert_func>
|
|
801193c: e9c0 6601 strd r6, r6, [r0, #4]
|
|
8011940: 6006 str r6, [r0, #0]
|
|
8011942: 60c6 str r6, [r0, #12]
|
|
8011944: b13c cbz r4, 8011956 <_Bfree+0x3a>
|
|
8011946: 69eb ldr r3, [r5, #28]
|
|
8011948: 6862 ldr r2, [r4, #4]
|
|
801194a: 68db ldr r3, [r3, #12]
|
|
801194c: f853 1022 ldr.w r1, [r3, r2, lsl #2]
|
|
8011950: 6021 str r1, [r4, #0]
|
|
8011952: f843 4022 str.w r4, [r3, r2, lsl #2]
|
|
8011956: bd70 pop {r4, r5, r6, pc}
|
|
8011958: 08013409 .word 0x08013409
|
|
801195c: 08013489 .word 0x08013489
|
|
|
|
08011960 <__multadd>:
|
|
8011960: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
8011964: 690d ldr r5, [r1, #16]
|
|
8011966: 4607 mov r7, r0
|
|
8011968: 460c mov r4, r1
|
|
801196a: 461e mov r6, r3
|
|
801196c: f101 0c14 add.w ip, r1, #20
|
|
8011970: 2000 movs r0, #0
|
|
8011972: f8dc 3000 ldr.w r3, [ip]
|
|
8011976: b299 uxth r1, r3
|
|
8011978: fb02 6101 mla r1, r2, r1, r6
|
|
801197c: 0c1e lsrs r6, r3, #16
|
|
801197e: 0c0b lsrs r3, r1, #16
|
|
8011980: fb02 3306 mla r3, r2, r6, r3
|
|
8011984: b289 uxth r1, r1
|
|
8011986: 3001 adds r0, #1
|
|
8011988: eb01 4103 add.w r1, r1, r3, lsl #16
|
|
801198c: 4285 cmp r5, r0
|
|
801198e: f84c 1b04 str.w r1, [ip], #4
|
|
8011992: ea4f 4613 mov.w r6, r3, lsr #16
|
|
8011996: dcec bgt.n 8011972 <__multadd+0x12>
|
|
8011998: b30e cbz r6, 80119de <__multadd+0x7e>
|
|
801199a: 68a3 ldr r3, [r4, #8]
|
|
801199c: 42ab cmp r3, r5
|
|
801199e: dc19 bgt.n 80119d4 <__multadd+0x74>
|
|
80119a0: 6861 ldr r1, [r4, #4]
|
|
80119a2: 4638 mov r0, r7
|
|
80119a4: 3101 adds r1, #1
|
|
80119a6: f7ff ff79 bl 801189c <_Balloc>
|
|
80119aa: 4680 mov r8, r0
|
|
80119ac: b928 cbnz r0, 80119ba <__multadd+0x5a>
|
|
80119ae: 4602 mov r2, r0
|
|
80119b0: 4b0c ldr r3, [pc, #48] @ (80119e4 <__multadd+0x84>)
|
|
80119b2: 480d ldr r0, [pc, #52] @ (80119e8 <__multadd+0x88>)
|
|
80119b4: 21ba movs r1, #186 @ 0xba
|
|
80119b6: f000 fd11 bl 80123dc <__assert_func>
|
|
80119ba: 6922 ldr r2, [r4, #16]
|
|
80119bc: 3202 adds r2, #2
|
|
80119be: f104 010c add.w r1, r4, #12
|
|
80119c2: 0092 lsls r2, r2, #2
|
|
80119c4: 300c adds r0, #12
|
|
80119c6: f7ff f869 bl 8010a9c <memcpy>
|
|
80119ca: 4621 mov r1, r4
|
|
80119cc: 4638 mov r0, r7
|
|
80119ce: f7ff ffa5 bl 801191c <_Bfree>
|
|
80119d2: 4644 mov r4, r8
|
|
80119d4: eb04 0385 add.w r3, r4, r5, lsl #2
|
|
80119d8: 3501 adds r5, #1
|
|
80119da: 615e str r6, [r3, #20]
|
|
80119dc: 6125 str r5, [r4, #16]
|
|
80119de: 4620 mov r0, r4
|
|
80119e0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
80119e4: 08013478 .word 0x08013478
|
|
80119e8: 08013489 .word 0x08013489
|
|
|
|
080119ec <__hi0bits>:
|
|
80119ec: f5b0 3f80 cmp.w r0, #65536 @ 0x10000
|
|
80119f0: 4603 mov r3, r0
|
|
80119f2: bf36 itet cc
|
|
80119f4: 0403 lslcc r3, r0, #16
|
|
80119f6: 2000 movcs r0, #0
|
|
80119f8: 2010 movcc r0, #16
|
|
80119fa: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
|
|
80119fe: bf3c itt cc
|
|
8011a00: 021b lslcc r3, r3, #8
|
|
8011a02: 3008 addcc r0, #8
|
|
8011a04: f1b3 5f80 cmp.w r3, #268435456 @ 0x10000000
|
|
8011a08: bf3c itt cc
|
|
8011a0a: 011b lslcc r3, r3, #4
|
|
8011a0c: 3004 addcc r0, #4
|
|
8011a0e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
|
|
8011a12: bf3c itt cc
|
|
8011a14: 009b lslcc r3, r3, #2
|
|
8011a16: 3002 addcc r0, #2
|
|
8011a18: 2b00 cmp r3, #0
|
|
8011a1a: db05 blt.n 8011a28 <__hi0bits+0x3c>
|
|
8011a1c: f013 4f80 tst.w r3, #1073741824 @ 0x40000000
|
|
8011a20: f100 0001 add.w r0, r0, #1
|
|
8011a24: bf08 it eq
|
|
8011a26: 2020 moveq r0, #32
|
|
8011a28: 4770 bx lr
|
|
|
|
08011a2a <__lo0bits>:
|
|
8011a2a: 6803 ldr r3, [r0, #0]
|
|
8011a2c: 4602 mov r2, r0
|
|
8011a2e: f013 0007 ands.w r0, r3, #7
|
|
8011a32: d00b beq.n 8011a4c <__lo0bits+0x22>
|
|
8011a34: 07d9 lsls r1, r3, #31
|
|
8011a36: d421 bmi.n 8011a7c <__lo0bits+0x52>
|
|
8011a38: 0798 lsls r0, r3, #30
|
|
8011a3a: bf49 itett mi
|
|
8011a3c: 085b lsrmi r3, r3, #1
|
|
8011a3e: 089b lsrpl r3, r3, #2
|
|
8011a40: 2001 movmi r0, #1
|
|
8011a42: 6013 strmi r3, [r2, #0]
|
|
8011a44: bf5c itt pl
|
|
8011a46: 6013 strpl r3, [r2, #0]
|
|
8011a48: 2002 movpl r0, #2
|
|
8011a4a: 4770 bx lr
|
|
8011a4c: b299 uxth r1, r3
|
|
8011a4e: b909 cbnz r1, 8011a54 <__lo0bits+0x2a>
|
|
8011a50: 0c1b lsrs r3, r3, #16
|
|
8011a52: 2010 movs r0, #16
|
|
8011a54: b2d9 uxtb r1, r3
|
|
8011a56: b909 cbnz r1, 8011a5c <__lo0bits+0x32>
|
|
8011a58: 3008 adds r0, #8
|
|
8011a5a: 0a1b lsrs r3, r3, #8
|
|
8011a5c: 0719 lsls r1, r3, #28
|
|
8011a5e: bf04 itt eq
|
|
8011a60: 091b lsreq r3, r3, #4
|
|
8011a62: 3004 addeq r0, #4
|
|
8011a64: 0799 lsls r1, r3, #30
|
|
8011a66: bf04 itt eq
|
|
8011a68: 089b lsreq r3, r3, #2
|
|
8011a6a: 3002 addeq r0, #2
|
|
8011a6c: 07d9 lsls r1, r3, #31
|
|
8011a6e: d403 bmi.n 8011a78 <__lo0bits+0x4e>
|
|
8011a70: 085b lsrs r3, r3, #1
|
|
8011a72: f100 0001 add.w r0, r0, #1
|
|
8011a76: d003 beq.n 8011a80 <__lo0bits+0x56>
|
|
8011a78: 6013 str r3, [r2, #0]
|
|
8011a7a: 4770 bx lr
|
|
8011a7c: 2000 movs r0, #0
|
|
8011a7e: 4770 bx lr
|
|
8011a80: 2020 movs r0, #32
|
|
8011a82: 4770 bx lr
|
|
|
|
08011a84 <__i2b>:
|
|
8011a84: b510 push {r4, lr}
|
|
8011a86: 460c mov r4, r1
|
|
8011a88: 2101 movs r1, #1
|
|
8011a8a: f7ff ff07 bl 801189c <_Balloc>
|
|
8011a8e: 4602 mov r2, r0
|
|
8011a90: b928 cbnz r0, 8011a9e <__i2b+0x1a>
|
|
8011a92: 4b05 ldr r3, [pc, #20] @ (8011aa8 <__i2b+0x24>)
|
|
8011a94: 4805 ldr r0, [pc, #20] @ (8011aac <__i2b+0x28>)
|
|
8011a96: f240 1145 movw r1, #325 @ 0x145
|
|
8011a9a: f000 fc9f bl 80123dc <__assert_func>
|
|
8011a9e: 2301 movs r3, #1
|
|
8011aa0: 6144 str r4, [r0, #20]
|
|
8011aa2: 6103 str r3, [r0, #16]
|
|
8011aa4: bd10 pop {r4, pc}
|
|
8011aa6: bf00 nop
|
|
8011aa8: 08013478 .word 0x08013478
|
|
8011aac: 08013489 .word 0x08013489
|
|
|
|
08011ab0 <__multiply>:
|
|
8011ab0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
8011ab4: 4614 mov r4, r2
|
|
8011ab6: 690a ldr r2, [r1, #16]
|
|
8011ab8: 6923 ldr r3, [r4, #16]
|
|
8011aba: 429a cmp r2, r3
|
|
8011abc: bfa8 it ge
|
|
8011abe: 4623 movge r3, r4
|
|
8011ac0: 460f mov r7, r1
|
|
8011ac2: bfa4 itt ge
|
|
8011ac4: 460c movge r4, r1
|
|
8011ac6: 461f movge r7, r3
|
|
8011ac8: f8d4 a010 ldr.w sl, [r4, #16]
|
|
8011acc: f8d7 9010 ldr.w r9, [r7, #16]
|
|
8011ad0: 68a3 ldr r3, [r4, #8]
|
|
8011ad2: 6861 ldr r1, [r4, #4]
|
|
8011ad4: eb0a 0609 add.w r6, sl, r9
|
|
8011ad8: 42b3 cmp r3, r6
|
|
8011ada: b085 sub sp, #20
|
|
8011adc: bfb8 it lt
|
|
8011ade: 3101 addlt r1, #1
|
|
8011ae0: f7ff fedc bl 801189c <_Balloc>
|
|
8011ae4: b930 cbnz r0, 8011af4 <__multiply+0x44>
|
|
8011ae6: 4602 mov r2, r0
|
|
8011ae8: 4b44 ldr r3, [pc, #272] @ (8011bfc <__multiply+0x14c>)
|
|
8011aea: 4845 ldr r0, [pc, #276] @ (8011c00 <__multiply+0x150>)
|
|
8011aec: f44f 71b1 mov.w r1, #354 @ 0x162
|
|
8011af0: f000 fc74 bl 80123dc <__assert_func>
|
|
8011af4: f100 0514 add.w r5, r0, #20
|
|
8011af8: eb05 0886 add.w r8, r5, r6, lsl #2
|
|
8011afc: 462b mov r3, r5
|
|
8011afe: 2200 movs r2, #0
|
|
8011b00: 4543 cmp r3, r8
|
|
8011b02: d321 bcc.n 8011b48 <__multiply+0x98>
|
|
8011b04: f107 0114 add.w r1, r7, #20
|
|
8011b08: f104 0214 add.w r2, r4, #20
|
|
8011b0c: eb02 028a add.w r2, r2, sl, lsl #2
|
|
8011b10: eb01 0389 add.w r3, r1, r9, lsl #2
|
|
8011b14: 9302 str r3, [sp, #8]
|
|
8011b16: 1b13 subs r3, r2, r4
|
|
8011b18: 3b15 subs r3, #21
|
|
8011b1a: f023 0303 bic.w r3, r3, #3
|
|
8011b1e: 3304 adds r3, #4
|
|
8011b20: f104 0715 add.w r7, r4, #21
|
|
8011b24: 42ba cmp r2, r7
|
|
8011b26: bf38 it cc
|
|
8011b28: 2304 movcc r3, #4
|
|
8011b2a: 9301 str r3, [sp, #4]
|
|
8011b2c: 9b02 ldr r3, [sp, #8]
|
|
8011b2e: 9103 str r1, [sp, #12]
|
|
8011b30: 428b cmp r3, r1
|
|
8011b32: d80c bhi.n 8011b4e <__multiply+0x9e>
|
|
8011b34: 2e00 cmp r6, #0
|
|
8011b36: dd03 ble.n 8011b40 <__multiply+0x90>
|
|
8011b38: f858 3d04 ldr.w r3, [r8, #-4]!
|
|
8011b3c: 2b00 cmp r3, #0
|
|
8011b3e: d05b beq.n 8011bf8 <__multiply+0x148>
|
|
8011b40: 6106 str r6, [r0, #16]
|
|
8011b42: b005 add sp, #20
|
|
8011b44: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
8011b48: f843 2b04 str.w r2, [r3], #4
|
|
8011b4c: e7d8 b.n 8011b00 <__multiply+0x50>
|
|
8011b4e: f8b1 a000 ldrh.w sl, [r1]
|
|
8011b52: f1ba 0f00 cmp.w sl, #0
|
|
8011b56: d024 beq.n 8011ba2 <__multiply+0xf2>
|
|
8011b58: f104 0e14 add.w lr, r4, #20
|
|
8011b5c: 46a9 mov r9, r5
|
|
8011b5e: f04f 0c00 mov.w ip, #0
|
|
8011b62: f85e 7b04 ldr.w r7, [lr], #4
|
|
8011b66: f8d9 3000 ldr.w r3, [r9]
|
|
8011b6a: fa1f fb87 uxth.w fp, r7
|
|
8011b6e: b29b uxth r3, r3
|
|
8011b70: fb0a 330b mla r3, sl, fp, r3
|
|
8011b74: ea4f 4b17 mov.w fp, r7, lsr #16
|
|
8011b78: f8d9 7000 ldr.w r7, [r9]
|
|
8011b7c: 4463 add r3, ip
|
|
8011b7e: ea4f 4c17 mov.w ip, r7, lsr #16
|
|
8011b82: fb0a c70b mla r7, sl, fp, ip
|
|
8011b86: eb07 4713 add.w r7, r7, r3, lsr #16
|
|
8011b8a: b29b uxth r3, r3
|
|
8011b8c: ea43 4307 orr.w r3, r3, r7, lsl #16
|
|
8011b90: 4572 cmp r2, lr
|
|
8011b92: f849 3b04 str.w r3, [r9], #4
|
|
8011b96: ea4f 4c17 mov.w ip, r7, lsr #16
|
|
8011b9a: d8e2 bhi.n 8011b62 <__multiply+0xb2>
|
|
8011b9c: 9b01 ldr r3, [sp, #4]
|
|
8011b9e: f845 c003 str.w ip, [r5, r3]
|
|
8011ba2: 9b03 ldr r3, [sp, #12]
|
|
8011ba4: f8b3 9002 ldrh.w r9, [r3, #2]
|
|
8011ba8: 3104 adds r1, #4
|
|
8011baa: f1b9 0f00 cmp.w r9, #0
|
|
8011bae: d021 beq.n 8011bf4 <__multiply+0x144>
|
|
8011bb0: 682b ldr r3, [r5, #0]
|
|
8011bb2: f104 0c14 add.w ip, r4, #20
|
|
8011bb6: 46ae mov lr, r5
|
|
8011bb8: f04f 0a00 mov.w sl, #0
|
|
8011bbc: f8bc b000 ldrh.w fp, [ip]
|
|
8011bc0: f8be 7002 ldrh.w r7, [lr, #2]
|
|
8011bc4: fb09 770b mla r7, r9, fp, r7
|
|
8011bc8: 4457 add r7, sl
|
|
8011bca: b29b uxth r3, r3
|
|
8011bcc: ea43 4307 orr.w r3, r3, r7, lsl #16
|
|
8011bd0: f84e 3b04 str.w r3, [lr], #4
|
|
8011bd4: f85c 3b04 ldr.w r3, [ip], #4
|
|
8011bd8: ea4f 4a13 mov.w sl, r3, lsr #16
|
|
8011bdc: f8be 3000 ldrh.w r3, [lr]
|
|
8011be0: fb09 330a mla r3, r9, sl, r3
|
|
8011be4: eb03 4317 add.w r3, r3, r7, lsr #16
|
|
8011be8: 4562 cmp r2, ip
|
|
8011bea: ea4f 4a13 mov.w sl, r3, lsr #16
|
|
8011bee: d8e5 bhi.n 8011bbc <__multiply+0x10c>
|
|
8011bf0: 9f01 ldr r7, [sp, #4]
|
|
8011bf2: 51eb str r3, [r5, r7]
|
|
8011bf4: 3504 adds r5, #4
|
|
8011bf6: e799 b.n 8011b2c <__multiply+0x7c>
|
|
8011bf8: 3e01 subs r6, #1
|
|
8011bfa: e79b b.n 8011b34 <__multiply+0x84>
|
|
8011bfc: 08013478 .word 0x08013478
|
|
8011c00: 08013489 .word 0x08013489
|
|
|
|
08011c04 <__pow5mult>:
|
|
8011c04: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
|
|
8011c08: 4615 mov r5, r2
|
|
8011c0a: f012 0203 ands.w r2, r2, #3
|
|
8011c0e: 4607 mov r7, r0
|
|
8011c10: 460e mov r6, r1
|
|
8011c12: d007 beq.n 8011c24 <__pow5mult+0x20>
|
|
8011c14: 4c25 ldr r4, [pc, #148] @ (8011cac <__pow5mult+0xa8>)
|
|
8011c16: 3a01 subs r2, #1
|
|
8011c18: 2300 movs r3, #0
|
|
8011c1a: f854 2022 ldr.w r2, [r4, r2, lsl #2]
|
|
8011c1e: f7ff fe9f bl 8011960 <__multadd>
|
|
8011c22: 4606 mov r6, r0
|
|
8011c24: 10ad asrs r5, r5, #2
|
|
8011c26: d03d beq.n 8011ca4 <__pow5mult+0xa0>
|
|
8011c28: 69fc ldr r4, [r7, #28]
|
|
8011c2a: b97c cbnz r4, 8011c4c <__pow5mult+0x48>
|
|
8011c2c: 2010 movs r0, #16
|
|
8011c2e: f7fd ff87 bl 800fb40 <malloc>
|
|
8011c32: 4602 mov r2, r0
|
|
8011c34: 61f8 str r0, [r7, #28]
|
|
8011c36: b928 cbnz r0, 8011c44 <__pow5mult+0x40>
|
|
8011c38: 4b1d ldr r3, [pc, #116] @ (8011cb0 <__pow5mult+0xac>)
|
|
8011c3a: 481e ldr r0, [pc, #120] @ (8011cb4 <__pow5mult+0xb0>)
|
|
8011c3c: f240 11b3 movw r1, #435 @ 0x1b3
|
|
8011c40: f000 fbcc bl 80123dc <__assert_func>
|
|
8011c44: e9c0 4401 strd r4, r4, [r0, #4]
|
|
8011c48: 6004 str r4, [r0, #0]
|
|
8011c4a: 60c4 str r4, [r0, #12]
|
|
8011c4c: f8d7 801c ldr.w r8, [r7, #28]
|
|
8011c50: f8d8 4008 ldr.w r4, [r8, #8]
|
|
8011c54: b94c cbnz r4, 8011c6a <__pow5mult+0x66>
|
|
8011c56: f240 2171 movw r1, #625 @ 0x271
|
|
8011c5a: 4638 mov r0, r7
|
|
8011c5c: f7ff ff12 bl 8011a84 <__i2b>
|
|
8011c60: 2300 movs r3, #0
|
|
8011c62: f8c8 0008 str.w r0, [r8, #8]
|
|
8011c66: 4604 mov r4, r0
|
|
8011c68: 6003 str r3, [r0, #0]
|
|
8011c6a: f04f 0900 mov.w r9, #0
|
|
8011c6e: 07eb lsls r3, r5, #31
|
|
8011c70: d50a bpl.n 8011c88 <__pow5mult+0x84>
|
|
8011c72: 4631 mov r1, r6
|
|
8011c74: 4622 mov r2, r4
|
|
8011c76: 4638 mov r0, r7
|
|
8011c78: f7ff ff1a bl 8011ab0 <__multiply>
|
|
8011c7c: 4631 mov r1, r6
|
|
8011c7e: 4680 mov r8, r0
|
|
8011c80: 4638 mov r0, r7
|
|
8011c82: f7ff fe4b bl 801191c <_Bfree>
|
|
8011c86: 4646 mov r6, r8
|
|
8011c88: 106d asrs r5, r5, #1
|
|
8011c8a: d00b beq.n 8011ca4 <__pow5mult+0xa0>
|
|
8011c8c: 6820 ldr r0, [r4, #0]
|
|
8011c8e: b938 cbnz r0, 8011ca0 <__pow5mult+0x9c>
|
|
8011c90: 4622 mov r2, r4
|
|
8011c92: 4621 mov r1, r4
|
|
8011c94: 4638 mov r0, r7
|
|
8011c96: f7ff ff0b bl 8011ab0 <__multiply>
|
|
8011c9a: 6020 str r0, [r4, #0]
|
|
8011c9c: f8c0 9000 str.w r9, [r0]
|
|
8011ca0: 4604 mov r4, r0
|
|
8011ca2: e7e4 b.n 8011c6e <__pow5mult+0x6a>
|
|
8011ca4: 4630 mov r0, r6
|
|
8011ca6: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
|
|
8011caa: bf00 nop
|
|
8011cac: 080134e4 .word 0x080134e4
|
|
8011cb0: 08013409 .word 0x08013409
|
|
8011cb4: 08013489 .word 0x08013489
|
|
|
|
08011cb8 <__lshift>:
|
|
8011cb8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
|
|
8011cbc: 460c mov r4, r1
|
|
8011cbe: 6849 ldr r1, [r1, #4]
|
|
8011cc0: 6923 ldr r3, [r4, #16]
|
|
8011cc2: eb03 1862 add.w r8, r3, r2, asr #5
|
|
8011cc6: 68a3 ldr r3, [r4, #8]
|
|
8011cc8: 4607 mov r7, r0
|
|
8011cca: 4691 mov r9, r2
|
|
8011ccc: ea4f 1a62 mov.w sl, r2, asr #5
|
|
8011cd0: f108 0601 add.w r6, r8, #1
|
|
8011cd4: 42b3 cmp r3, r6
|
|
8011cd6: db0b blt.n 8011cf0 <__lshift+0x38>
|
|
8011cd8: 4638 mov r0, r7
|
|
8011cda: f7ff fddf bl 801189c <_Balloc>
|
|
8011cde: 4605 mov r5, r0
|
|
8011ce0: b948 cbnz r0, 8011cf6 <__lshift+0x3e>
|
|
8011ce2: 4602 mov r2, r0
|
|
8011ce4: 4b28 ldr r3, [pc, #160] @ (8011d88 <__lshift+0xd0>)
|
|
8011ce6: 4829 ldr r0, [pc, #164] @ (8011d8c <__lshift+0xd4>)
|
|
8011ce8: f44f 71ef mov.w r1, #478 @ 0x1de
|
|
8011cec: f000 fb76 bl 80123dc <__assert_func>
|
|
8011cf0: 3101 adds r1, #1
|
|
8011cf2: 005b lsls r3, r3, #1
|
|
8011cf4: e7ee b.n 8011cd4 <__lshift+0x1c>
|
|
8011cf6: 2300 movs r3, #0
|
|
8011cf8: f100 0114 add.w r1, r0, #20
|
|
8011cfc: f100 0210 add.w r2, r0, #16
|
|
8011d00: 4618 mov r0, r3
|
|
8011d02: 4553 cmp r3, sl
|
|
8011d04: db33 blt.n 8011d6e <__lshift+0xb6>
|
|
8011d06: 6920 ldr r0, [r4, #16]
|
|
8011d08: ea2a 7aea bic.w sl, sl, sl, asr #31
|
|
8011d0c: f104 0314 add.w r3, r4, #20
|
|
8011d10: f019 091f ands.w r9, r9, #31
|
|
8011d14: eb01 018a add.w r1, r1, sl, lsl #2
|
|
8011d18: eb03 0c80 add.w ip, r3, r0, lsl #2
|
|
8011d1c: d02b beq.n 8011d76 <__lshift+0xbe>
|
|
8011d1e: f1c9 0e20 rsb lr, r9, #32
|
|
8011d22: 468a mov sl, r1
|
|
8011d24: 2200 movs r2, #0
|
|
8011d26: 6818 ldr r0, [r3, #0]
|
|
8011d28: fa00 f009 lsl.w r0, r0, r9
|
|
8011d2c: 4310 orrs r0, r2
|
|
8011d2e: f84a 0b04 str.w r0, [sl], #4
|
|
8011d32: f853 2b04 ldr.w r2, [r3], #4
|
|
8011d36: 459c cmp ip, r3
|
|
8011d38: fa22 f20e lsr.w r2, r2, lr
|
|
8011d3c: d8f3 bhi.n 8011d26 <__lshift+0x6e>
|
|
8011d3e: ebac 0304 sub.w r3, ip, r4
|
|
8011d42: 3b15 subs r3, #21
|
|
8011d44: f023 0303 bic.w r3, r3, #3
|
|
8011d48: 3304 adds r3, #4
|
|
8011d4a: f104 0015 add.w r0, r4, #21
|
|
8011d4e: 4584 cmp ip, r0
|
|
8011d50: bf38 it cc
|
|
8011d52: 2304 movcc r3, #4
|
|
8011d54: 50ca str r2, [r1, r3]
|
|
8011d56: b10a cbz r2, 8011d5c <__lshift+0xa4>
|
|
8011d58: f108 0602 add.w r6, r8, #2
|
|
8011d5c: 3e01 subs r6, #1
|
|
8011d5e: 4638 mov r0, r7
|
|
8011d60: 612e str r6, [r5, #16]
|
|
8011d62: 4621 mov r1, r4
|
|
8011d64: f7ff fdda bl 801191c <_Bfree>
|
|
8011d68: 4628 mov r0, r5
|
|
8011d6a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
8011d6e: f842 0f04 str.w r0, [r2, #4]!
|
|
8011d72: 3301 adds r3, #1
|
|
8011d74: e7c5 b.n 8011d02 <__lshift+0x4a>
|
|
8011d76: 3904 subs r1, #4
|
|
8011d78: f853 2b04 ldr.w r2, [r3], #4
|
|
8011d7c: f841 2f04 str.w r2, [r1, #4]!
|
|
8011d80: 459c cmp ip, r3
|
|
8011d82: d8f9 bhi.n 8011d78 <__lshift+0xc0>
|
|
8011d84: e7ea b.n 8011d5c <__lshift+0xa4>
|
|
8011d86: bf00 nop
|
|
8011d88: 08013478 .word 0x08013478
|
|
8011d8c: 08013489 .word 0x08013489
|
|
|
|
08011d90 <__mcmp>:
|
|
8011d90: 690a ldr r2, [r1, #16]
|
|
8011d92: 4603 mov r3, r0
|
|
8011d94: 6900 ldr r0, [r0, #16]
|
|
8011d96: 1a80 subs r0, r0, r2
|
|
8011d98: b530 push {r4, r5, lr}
|
|
8011d9a: d10e bne.n 8011dba <__mcmp+0x2a>
|
|
8011d9c: 3314 adds r3, #20
|
|
8011d9e: 3114 adds r1, #20
|
|
8011da0: eb03 0482 add.w r4, r3, r2, lsl #2
|
|
8011da4: eb01 0182 add.w r1, r1, r2, lsl #2
|
|
8011da8: f854 5d04 ldr.w r5, [r4, #-4]!
|
|
8011dac: f851 2d04 ldr.w r2, [r1, #-4]!
|
|
8011db0: 4295 cmp r5, r2
|
|
8011db2: d003 beq.n 8011dbc <__mcmp+0x2c>
|
|
8011db4: d205 bcs.n 8011dc2 <__mcmp+0x32>
|
|
8011db6: f04f 30ff mov.w r0, #4294967295
|
|
8011dba: bd30 pop {r4, r5, pc}
|
|
8011dbc: 42a3 cmp r3, r4
|
|
8011dbe: d3f3 bcc.n 8011da8 <__mcmp+0x18>
|
|
8011dc0: e7fb b.n 8011dba <__mcmp+0x2a>
|
|
8011dc2: 2001 movs r0, #1
|
|
8011dc4: e7f9 b.n 8011dba <__mcmp+0x2a>
|
|
...
|
|
|
|
08011dc8 <__mdiff>:
|
|
8011dc8: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
8011dcc: 4689 mov r9, r1
|
|
8011dce: 4606 mov r6, r0
|
|
8011dd0: 4611 mov r1, r2
|
|
8011dd2: 4648 mov r0, r9
|
|
8011dd4: 4614 mov r4, r2
|
|
8011dd6: f7ff ffdb bl 8011d90 <__mcmp>
|
|
8011dda: 1e05 subs r5, r0, #0
|
|
8011ddc: d112 bne.n 8011e04 <__mdiff+0x3c>
|
|
8011dde: 4629 mov r1, r5
|
|
8011de0: 4630 mov r0, r6
|
|
8011de2: f7ff fd5b bl 801189c <_Balloc>
|
|
8011de6: 4602 mov r2, r0
|
|
8011de8: b928 cbnz r0, 8011df6 <__mdiff+0x2e>
|
|
8011dea: 4b3f ldr r3, [pc, #252] @ (8011ee8 <__mdiff+0x120>)
|
|
8011dec: f240 2137 movw r1, #567 @ 0x237
|
|
8011df0: 483e ldr r0, [pc, #248] @ (8011eec <__mdiff+0x124>)
|
|
8011df2: f000 faf3 bl 80123dc <__assert_func>
|
|
8011df6: 2301 movs r3, #1
|
|
8011df8: e9c0 3504 strd r3, r5, [r0, #16]
|
|
8011dfc: 4610 mov r0, r2
|
|
8011dfe: b003 add sp, #12
|
|
8011e00: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
8011e04: bfbc itt lt
|
|
8011e06: 464b movlt r3, r9
|
|
8011e08: 46a1 movlt r9, r4
|
|
8011e0a: 4630 mov r0, r6
|
|
8011e0c: f8d9 1004 ldr.w r1, [r9, #4]
|
|
8011e10: bfba itte lt
|
|
8011e12: 461c movlt r4, r3
|
|
8011e14: 2501 movlt r5, #1
|
|
8011e16: 2500 movge r5, #0
|
|
8011e18: f7ff fd40 bl 801189c <_Balloc>
|
|
8011e1c: 4602 mov r2, r0
|
|
8011e1e: b918 cbnz r0, 8011e28 <__mdiff+0x60>
|
|
8011e20: 4b31 ldr r3, [pc, #196] @ (8011ee8 <__mdiff+0x120>)
|
|
8011e22: f240 2145 movw r1, #581 @ 0x245
|
|
8011e26: e7e3 b.n 8011df0 <__mdiff+0x28>
|
|
8011e28: f8d9 7010 ldr.w r7, [r9, #16]
|
|
8011e2c: 6926 ldr r6, [r4, #16]
|
|
8011e2e: 60c5 str r5, [r0, #12]
|
|
8011e30: f109 0310 add.w r3, r9, #16
|
|
8011e34: f109 0514 add.w r5, r9, #20
|
|
8011e38: f104 0e14 add.w lr, r4, #20
|
|
8011e3c: f100 0b14 add.w fp, r0, #20
|
|
8011e40: eb05 0887 add.w r8, r5, r7, lsl #2
|
|
8011e44: eb0e 0686 add.w r6, lr, r6, lsl #2
|
|
8011e48: 9301 str r3, [sp, #4]
|
|
8011e4a: 46d9 mov r9, fp
|
|
8011e4c: f04f 0c00 mov.w ip, #0
|
|
8011e50: 9b01 ldr r3, [sp, #4]
|
|
8011e52: f85e 0b04 ldr.w r0, [lr], #4
|
|
8011e56: f853 af04 ldr.w sl, [r3, #4]!
|
|
8011e5a: 9301 str r3, [sp, #4]
|
|
8011e5c: fa1f f38a uxth.w r3, sl
|
|
8011e60: 4619 mov r1, r3
|
|
8011e62: b283 uxth r3, r0
|
|
8011e64: 1acb subs r3, r1, r3
|
|
8011e66: 0c00 lsrs r0, r0, #16
|
|
8011e68: 4463 add r3, ip
|
|
8011e6a: ebc0 401a rsb r0, r0, sl, lsr #16
|
|
8011e6e: eb00 4023 add.w r0, r0, r3, asr #16
|
|
8011e72: b29b uxth r3, r3
|
|
8011e74: ea43 4300 orr.w r3, r3, r0, lsl #16
|
|
8011e78: 4576 cmp r6, lr
|
|
8011e7a: f849 3b04 str.w r3, [r9], #4
|
|
8011e7e: ea4f 4c20 mov.w ip, r0, asr #16
|
|
8011e82: d8e5 bhi.n 8011e50 <__mdiff+0x88>
|
|
8011e84: 1b33 subs r3, r6, r4
|
|
8011e86: 3b15 subs r3, #21
|
|
8011e88: f023 0303 bic.w r3, r3, #3
|
|
8011e8c: 3415 adds r4, #21
|
|
8011e8e: 3304 adds r3, #4
|
|
8011e90: 42a6 cmp r6, r4
|
|
8011e92: bf38 it cc
|
|
8011e94: 2304 movcc r3, #4
|
|
8011e96: 441d add r5, r3
|
|
8011e98: 445b add r3, fp
|
|
8011e9a: 461e mov r6, r3
|
|
8011e9c: 462c mov r4, r5
|
|
8011e9e: 4544 cmp r4, r8
|
|
8011ea0: d30e bcc.n 8011ec0 <__mdiff+0xf8>
|
|
8011ea2: f108 0103 add.w r1, r8, #3
|
|
8011ea6: 1b49 subs r1, r1, r5
|
|
8011ea8: f021 0103 bic.w r1, r1, #3
|
|
8011eac: 3d03 subs r5, #3
|
|
8011eae: 45a8 cmp r8, r5
|
|
8011eb0: bf38 it cc
|
|
8011eb2: 2100 movcc r1, #0
|
|
8011eb4: 440b add r3, r1
|
|
8011eb6: f853 1d04 ldr.w r1, [r3, #-4]!
|
|
8011eba: b191 cbz r1, 8011ee2 <__mdiff+0x11a>
|
|
8011ebc: 6117 str r7, [r2, #16]
|
|
8011ebe: e79d b.n 8011dfc <__mdiff+0x34>
|
|
8011ec0: f854 1b04 ldr.w r1, [r4], #4
|
|
8011ec4: 46e6 mov lr, ip
|
|
8011ec6: 0c08 lsrs r0, r1, #16
|
|
8011ec8: fa1c fc81 uxtah ip, ip, r1
|
|
8011ecc: 4471 add r1, lr
|
|
8011ece: eb00 402c add.w r0, r0, ip, asr #16
|
|
8011ed2: b289 uxth r1, r1
|
|
8011ed4: ea41 4100 orr.w r1, r1, r0, lsl #16
|
|
8011ed8: f846 1b04 str.w r1, [r6], #4
|
|
8011edc: ea4f 4c20 mov.w ip, r0, asr #16
|
|
8011ee0: e7dd b.n 8011e9e <__mdiff+0xd6>
|
|
8011ee2: 3f01 subs r7, #1
|
|
8011ee4: e7e7 b.n 8011eb6 <__mdiff+0xee>
|
|
8011ee6: bf00 nop
|
|
8011ee8: 08013478 .word 0x08013478
|
|
8011eec: 08013489 .word 0x08013489
|
|
|
|
08011ef0 <__d2b>:
|
|
8011ef0: e92d 43f7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, lr}
|
|
8011ef4: 460f mov r7, r1
|
|
8011ef6: 2101 movs r1, #1
|
|
8011ef8: ec59 8b10 vmov r8, r9, d0
|
|
8011efc: 4616 mov r6, r2
|
|
8011efe: f7ff fccd bl 801189c <_Balloc>
|
|
8011f02: 4604 mov r4, r0
|
|
8011f04: b930 cbnz r0, 8011f14 <__d2b+0x24>
|
|
8011f06: 4602 mov r2, r0
|
|
8011f08: 4b23 ldr r3, [pc, #140] @ (8011f98 <__d2b+0xa8>)
|
|
8011f0a: 4824 ldr r0, [pc, #144] @ (8011f9c <__d2b+0xac>)
|
|
8011f0c: f240 310f movw r1, #783 @ 0x30f
|
|
8011f10: f000 fa64 bl 80123dc <__assert_func>
|
|
8011f14: f3c9 550a ubfx r5, r9, #20, #11
|
|
8011f18: f3c9 0313 ubfx r3, r9, #0, #20
|
|
8011f1c: b10d cbz r5, 8011f22 <__d2b+0x32>
|
|
8011f1e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
|
|
8011f22: 9301 str r3, [sp, #4]
|
|
8011f24: f1b8 0300 subs.w r3, r8, #0
|
|
8011f28: d023 beq.n 8011f72 <__d2b+0x82>
|
|
8011f2a: 4668 mov r0, sp
|
|
8011f2c: 9300 str r3, [sp, #0]
|
|
8011f2e: f7ff fd7c bl 8011a2a <__lo0bits>
|
|
8011f32: e9dd 1200 ldrd r1, r2, [sp]
|
|
8011f36: b1d0 cbz r0, 8011f6e <__d2b+0x7e>
|
|
8011f38: f1c0 0320 rsb r3, r0, #32
|
|
8011f3c: fa02 f303 lsl.w r3, r2, r3
|
|
8011f40: 430b orrs r3, r1
|
|
8011f42: 40c2 lsrs r2, r0
|
|
8011f44: 6163 str r3, [r4, #20]
|
|
8011f46: 9201 str r2, [sp, #4]
|
|
8011f48: 9b01 ldr r3, [sp, #4]
|
|
8011f4a: 61a3 str r3, [r4, #24]
|
|
8011f4c: 2b00 cmp r3, #0
|
|
8011f4e: bf0c ite eq
|
|
8011f50: 2201 moveq r2, #1
|
|
8011f52: 2202 movne r2, #2
|
|
8011f54: 6122 str r2, [r4, #16]
|
|
8011f56: b1a5 cbz r5, 8011f82 <__d2b+0x92>
|
|
8011f58: f2a5 4533 subw r5, r5, #1075 @ 0x433
|
|
8011f5c: 4405 add r5, r0
|
|
8011f5e: 603d str r5, [r7, #0]
|
|
8011f60: f1c0 0035 rsb r0, r0, #53 @ 0x35
|
|
8011f64: 6030 str r0, [r6, #0]
|
|
8011f66: 4620 mov r0, r4
|
|
8011f68: b003 add sp, #12
|
|
8011f6a: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc}
|
|
8011f6e: 6161 str r1, [r4, #20]
|
|
8011f70: e7ea b.n 8011f48 <__d2b+0x58>
|
|
8011f72: a801 add r0, sp, #4
|
|
8011f74: f7ff fd59 bl 8011a2a <__lo0bits>
|
|
8011f78: 9b01 ldr r3, [sp, #4]
|
|
8011f7a: 6163 str r3, [r4, #20]
|
|
8011f7c: 3020 adds r0, #32
|
|
8011f7e: 2201 movs r2, #1
|
|
8011f80: e7e8 b.n 8011f54 <__d2b+0x64>
|
|
8011f82: eb04 0382 add.w r3, r4, r2, lsl #2
|
|
8011f86: f2a0 4032 subw r0, r0, #1074 @ 0x432
|
|
8011f8a: 6038 str r0, [r7, #0]
|
|
8011f8c: 6918 ldr r0, [r3, #16]
|
|
8011f8e: f7ff fd2d bl 80119ec <__hi0bits>
|
|
8011f92: ebc0 1042 rsb r0, r0, r2, lsl #5
|
|
8011f96: e7e5 b.n 8011f64 <__d2b+0x74>
|
|
8011f98: 08013478 .word 0x08013478
|
|
8011f9c: 08013489 .word 0x08013489
|
|
|
|
08011fa0 <__ssputs_r>:
|
|
8011fa0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
|
|
8011fa4: 688e ldr r6, [r1, #8]
|
|
8011fa6: 461f mov r7, r3
|
|
8011fa8: 42be cmp r6, r7
|
|
8011faa: 680b ldr r3, [r1, #0]
|
|
8011fac: 4682 mov sl, r0
|
|
8011fae: 460c mov r4, r1
|
|
8011fb0: 4690 mov r8, r2
|
|
8011fb2: d82d bhi.n 8012010 <__ssputs_r+0x70>
|
|
8011fb4: f9b1 200c ldrsh.w r2, [r1, #12]
|
|
8011fb8: f412 6f90 tst.w r2, #1152 @ 0x480
|
|
8011fbc: d026 beq.n 801200c <__ssputs_r+0x6c>
|
|
8011fbe: 6965 ldr r5, [r4, #20]
|
|
8011fc0: 6909 ldr r1, [r1, #16]
|
|
8011fc2: eb05 0545 add.w r5, r5, r5, lsl #1
|
|
8011fc6: eba3 0901 sub.w r9, r3, r1
|
|
8011fca: eb05 75d5 add.w r5, r5, r5, lsr #31
|
|
8011fce: 1c7b adds r3, r7, #1
|
|
8011fd0: 444b add r3, r9
|
|
8011fd2: 106d asrs r5, r5, #1
|
|
8011fd4: 429d cmp r5, r3
|
|
8011fd6: bf38 it cc
|
|
8011fd8: 461d movcc r5, r3
|
|
8011fda: 0553 lsls r3, r2, #21
|
|
8011fdc: d527 bpl.n 801202e <__ssputs_r+0x8e>
|
|
8011fde: 4629 mov r1, r5
|
|
8011fe0: f7fd fde0 bl 800fba4 <_malloc_r>
|
|
8011fe4: 4606 mov r6, r0
|
|
8011fe6: b360 cbz r0, 8012042 <__ssputs_r+0xa2>
|
|
8011fe8: 6921 ldr r1, [r4, #16]
|
|
8011fea: 464a mov r2, r9
|
|
8011fec: f7fe fd56 bl 8010a9c <memcpy>
|
|
8011ff0: 89a3 ldrh r3, [r4, #12]
|
|
8011ff2: f423 6390 bic.w r3, r3, #1152 @ 0x480
|
|
8011ff6: f043 0380 orr.w r3, r3, #128 @ 0x80
|
|
8011ffa: 81a3 strh r3, [r4, #12]
|
|
8011ffc: 6126 str r6, [r4, #16]
|
|
8011ffe: 6165 str r5, [r4, #20]
|
|
8012000: 444e add r6, r9
|
|
8012002: eba5 0509 sub.w r5, r5, r9
|
|
8012006: 6026 str r6, [r4, #0]
|
|
8012008: 60a5 str r5, [r4, #8]
|
|
801200a: 463e mov r6, r7
|
|
801200c: 42be cmp r6, r7
|
|
801200e: d900 bls.n 8012012 <__ssputs_r+0x72>
|
|
8012010: 463e mov r6, r7
|
|
8012012: 6820 ldr r0, [r4, #0]
|
|
8012014: 4632 mov r2, r6
|
|
8012016: 4641 mov r1, r8
|
|
8012018: f000 f9c6 bl 80123a8 <memmove>
|
|
801201c: 68a3 ldr r3, [r4, #8]
|
|
801201e: 1b9b subs r3, r3, r6
|
|
8012020: 60a3 str r3, [r4, #8]
|
|
8012022: 6823 ldr r3, [r4, #0]
|
|
8012024: 4433 add r3, r6
|
|
8012026: 6023 str r3, [r4, #0]
|
|
8012028: 2000 movs r0, #0
|
|
801202a: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
|
|
801202e: 462a mov r2, r5
|
|
8012030: f000 fa18 bl 8012464 <_realloc_r>
|
|
8012034: 4606 mov r6, r0
|
|
8012036: 2800 cmp r0, #0
|
|
8012038: d1e0 bne.n 8011ffc <__ssputs_r+0x5c>
|
|
801203a: 6921 ldr r1, [r4, #16]
|
|
801203c: 4650 mov r0, sl
|
|
801203e: f7ff fbe3 bl 8011808 <_free_r>
|
|
8012042: 230c movs r3, #12
|
|
8012044: f8ca 3000 str.w r3, [sl]
|
|
8012048: 89a3 ldrh r3, [r4, #12]
|
|
801204a: f043 0340 orr.w r3, r3, #64 @ 0x40
|
|
801204e: 81a3 strh r3, [r4, #12]
|
|
8012050: f04f 30ff mov.w r0, #4294967295
|
|
8012054: e7e9 b.n 801202a <__ssputs_r+0x8a>
|
|
...
|
|
|
|
08012058 <_svfiprintf_r>:
|
|
8012058: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
801205c: 4698 mov r8, r3
|
|
801205e: 898b ldrh r3, [r1, #12]
|
|
8012060: 061b lsls r3, r3, #24
|
|
8012062: b09d sub sp, #116 @ 0x74
|
|
8012064: 4607 mov r7, r0
|
|
8012066: 460d mov r5, r1
|
|
8012068: 4614 mov r4, r2
|
|
801206a: d510 bpl.n 801208e <_svfiprintf_r+0x36>
|
|
801206c: 690b ldr r3, [r1, #16]
|
|
801206e: b973 cbnz r3, 801208e <_svfiprintf_r+0x36>
|
|
8012070: 2140 movs r1, #64 @ 0x40
|
|
8012072: f7fd fd97 bl 800fba4 <_malloc_r>
|
|
8012076: 6028 str r0, [r5, #0]
|
|
8012078: 6128 str r0, [r5, #16]
|
|
801207a: b930 cbnz r0, 801208a <_svfiprintf_r+0x32>
|
|
801207c: 230c movs r3, #12
|
|
801207e: 603b str r3, [r7, #0]
|
|
8012080: f04f 30ff mov.w r0, #4294967295
|
|
8012084: b01d add sp, #116 @ 0x74
|
|
8012086: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
801208a: 2340 movs r3, #64 @ 0x40
|
|
801208c: 616b str r3, [r5, #20]
|
|
801208e: 2300 movs r3, #0
|
|
8012090: 9309 str r3, [sp, #36] @ 0x24
|
|
8012092: 2320 movs r3, #32
|
|
8012094: f88d 3029 strb.w r3, [sp, #41] @ 0x29
|
|
8012098: f8cd 800c str.w r8, [sp, #12]
|
|
801209c: 2330 movs r3, #48 @ 0x30
|
|
801209e: f8df 819c ldr.w r8, [pc, #412] @ 801223c <_svfiprintf_r+0x1e4>
|
|
80120a2: f88d 302a strb.w r3, [sp, #42] @ 0x2a
|
|
80120a6: f04f 0901 mov.w r9, #1
|
|
80120aa: 4623 mov r3, r4
|
|
80120ac: 469a mov sl, r3
|
|
80120ae: f813 2b01 ldrb.w r2, [r3], #1
|
|
80120b2: b10a cbz r2, 80120b8 <_svfiprintf_r+0x60>
|
|
80120b4: 2a25 cmp r2, #37 @ 0x25
|
|
80120b6: d1f9 bne.n 80120ac <_svfiprintf_r+0x54>
|
|
80120b8: ebba 0b04 subs.w fp, sl, r4
|
|
80120bc: d00b beq.n 80120d6 <_svfiprintf_r+0x7e>
|
|
80120be: 465b mov r3, fp
|
|
80120c0: 4622 mov r2, r4
|
|
80120c2: 4629 mov r1, r5
|
|
80120c4: 4638 mov r0, r7
|
|
80120c6: f7ff ff6b bl 8011fa0 <__ssputs_r>
|
|
80120ca: 3001 adds r0, #1
|
|
80120cc: f000 80a7 beq.w 801221e <_svfiprintf_r+0x1c6>
|
|
80120d0: 9a09 ldr r2, [sp, #36] @ 0x24
|
|
80120d2: 445a add r2, fp
|
|
80120d4: 9209 str r2, [sp, #36] @ 0x24
|
|
80120d6: f89a 3000 ldrb.w r3, [sl]
|
|
80120da: 2b00 cmp r3, #0
|
|
80120dc: f000 809f beq.w 801221e <_svfiprintf_r+0x1c6>
|
|
80120e0: 2300 movs r3, #0
|
|
80120e2: f04f 32ff mov.w r2, #4294967295
|
|
80120e6: e9cd 2305 strd r2, r3, [sp, #20]
|
|
80120ea: f10a 0a01 add.w sl, sl, #1
|
|
80120ee: 9304 str r3, [sp, #16]
|
|
80120f0: 9307 str r3, [sp, #28]
|
|
80120f2: f88d 3053 strb.w r3, [sp, #83] @ 0x53
|
|
80120f6: 931a str r3, [sp, #104] @ 0x68
|
|
80120f8: 4654 mov r4, sl
|
|
80120fa: 2205 movs r2, #5
|
|
80120fc: f814 1b01 ldrb.w r1, [r4], #1
|
|
8012100: 484e ldr r0, [pc, #312] @ (801223c <_svfiprintf_r+0x1e4>)
|
|
8012102: f7ee f875 bl 80001f0 <memchr>
|
|
8012106: 9a04 ldr r2, [sp, #16]
|
|
8012108: b9d8 cbnz r0, 8012142 <_svfiprintf_r+0xea>
|
|
801210a: 06d0 lsls r0, r2, #27
|
|
801210c: bf44 itt mi
|
|
801210e: 2320 movmi r3, #32
|
|
8012110: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
|
|
8012114: 0711 lsls r1, r2, #28
|
|
8012116: bf44 itt mi
|
|
8012118: 232b movmi r3, #43 @ 0x2b
|
|
801211a: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
|
|
801211e: f89a 3000 ldrb.w r3, [sl]
|
|
8012122: 2b2a cmp r3, #42 @ 0x2a
|
|
8012124: d015 beq.n 8012152 <_svfiprintf_r+0xfa>
|
|
8012126: 9a07 ldr r2, [sp, #28]
|
|
8012128: 4654 mov r4, sl
|
|
801212a: 2000 movs r0, #0
|
|
801212c: f04f 0c0a mov.w ip, #10
|
|
8012130: 4621 mov r1, r4
|
|
8012132: f811 3b01 ldrb.w r3, [r1], #1
|
|
8012136: 3b30 subs r3, #48 @ 0x30
|
|
8012138: 2b09 cmp r3, #9
|
|
801213a: d94b bls.n 80121d4 <_svfiprintf_r+0x17c>
|
|
801213c: b1b0 cbz r0, 801216c <_svfiprintf_r+0x114>
|
|
801213e: 9207 str r2, [sp, #28]
|
|
8012140: e014 b.n 801216c <_svfiprintf_r+0x114>
|
|
8012142: eba0 0308 sub.w r3, r0, r8
|
|
8012146: fa09 f303 lsl.w r3, r9, r3
|
|
801214a: 4313 orrs r3, r2
|
|
801214c: 9304 str r3, [sp, #16]
|
|
801214e: 46a2 mov sl, r4
|
|
8012150: e7d2 b.n 80120f8 <_svfiprintf_r+0xa0>
|
|
8012152: 9b03 ldr r3, [sp, #12]
|
|
8012154: 1d19 adds r1, r3, #4
|
|
8012156: 681b ldr r3, [r3, #0]
|
|
8012158: 9103 str r1, [sp, #12]
|
|
801215a: 2b00 cmp r3, #0
|
|
801215c: bfbb ittet lt
|
|
801215e: 425b neglt r3, r3
|
|
8012160: f042 0202 orrlt.w r2, r2, #2
|
|
8012164: 9307 strge r3, [sp, #28]
|
|
8012166: 9307 strlt r3, [sp, #28]
|
|
8012168: bfb8 it lt
|
|
801216a: 9204 strlt r2, [sp, #16]
|
|
801216c: 7823 ldrb r3, [r4, #0]
|
|
801216e: 2b2e cmp r3, #46 @ 0x2e
|
|
8012170: d10a bne.n 8012188 <_svfiprintf_r+0x130>
|
|
8012172: 7863 ldrb r3, [r4, #1]
|
|
8012174: 2b2a cmp r3, #42 @ 0x2a
|
|
8012176: d132 bne.n 80121de <_svfiprintf_r+0x186>
|
|
8012178: 9b03 ldr r3, [sp, #12]
|
|
801217a: 1d1a adds r2, r3, #4
|
|
801217c: 681b ldr r3, [r3, #0]
|
|
801217e: 9203 str r2, [sp, #12]
|
|
8012180: ea43 73e3 orr.w r3, r3, r3, asr #31
|
|
8012184: 3402 adds r4, #2
|
|
8012186: 9305 str r3, [sp, #20]
|
|
8012188: f8df a0c0 ldr.w sl, [pc, #192] @ 801224c <_svfiprintf_r+0x1f4>
|
|
801218c: 7821 ldrb r1, [r4, #0]
|
|
801218e: 2203 movs r2, #3
|
|
8012190: 4650 mov r0, sl
|
|
8012192: f7ee f82d bl 80001f0 <memchr>
|
|
8012196: b138 cbz r0, 80121a8 <_svfiprintf_r+0x150>
|
|
8012198: 9b04 ldr r3, [sp, #16]
|
|
801219a: eba0 000a sub.w r0, r0, sl
|
|
801219e: 2240 movs r2, #64 @ 0x40
|
|
80121a0: 4082 lsls r2, r0
|
|
80121a2: 4313 orrs r3, r2
|
|
80121a4: 3401 adds r4, #1
|
|
80121a6: 9304 str r3, [sp, #16]
|
|
80121a8: f814 1b01 ldrb.w r1, [r4], #1
|
|
80121ac: 4824 ldr r0, [pc, #144] @ (8012240 <_svfiprintf_r+0x1e8>)
|
|
80121ae: f88d 1028 strb.w r1, [sp, #40] @ 0x28
|
|
80121b2: 2206 movs r2, #6
|
|
80121b4: f7ee f81c bl 80001f0 <memchr>
|
|
80121b8: 2800 cmp r0, #0
|
|
80121ba: d036 beq.n 801222a <_svfiprintf_r+0x1d2>
|
|
80121bc: 4b21 ldr r3, [pc, #132] @ (8012244 <_svfiprintf_r+0x1ec>)
|
|
80121be: bb1b cbnz r3, 8012208 <_svfiprintf_r+0x1b0>
|
|
80121c0: 9b03 ldr r3, [sp, #12]
|
|
80121c2: 3307 adds r3, #7
|
|
80121c4: f023 0307 bic.w r3, r3, #7
|
|
80121c8: 3308 adds r3, #8
|
|
80121ca: 9303 str r3, [sp, #12]
|
|
80121cc: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
80121ce: 4433 add r3, r6
|
|
80121d0: 9309 str r3, [sp, #36] @ 0x24
|
|
80121d2: e76a b.n 80120aa <_svfiprintf_r+0x52>
|
|
80121d4: fb0c 3202 mla r2, ip, r2, r3
|
|
80121d8: 460c mov r4, r1
|
|
80121da: 2001 movs r0, #1
|
|
80121dc: e7a8 b.n 8012130 <_svfiprintf_r+0xd8>
|
|
80121de: 2300 movs r3, #0
|
|
80121e0: 3401 adds r4, #1
|
|
80121e2: 9305 str r3, [sp, #20]
|
|
80121e4: 4619 mov r1, r3
|
|
80121e6: f04f 0c0a mov.w ip, #10
|
|
80121ea: 4620 mov r0, r4
|
|
80121ec: f810 2b01 ldrb.w r2, [r0], #1
|
|
80121f0: 3a30 subs r2, #48 @ 0x30
|
|
80121f2: 2a09 cmp r2, #9
|
|
80121f4: d903 bls.n 80121fe <_svfiprintf_r+0x1a6>
|
|
80121f6: 2b00 cmp r3, #0
|
|
80121f8: d0c6 beq.n 8012188 <_svfiprintf_r+0x130>
|
|
80121fa: 9105 str r1, [sp, #20]
|
|
80121fc: e7c4 b.n 8012188 <_svfiprintf_r+0x130>
|
|
80121fe: fb0c 2101 mla r1, ip, r1, r2
|
|
8012202: 4604 mov r4, r0
|
|
8012204: 2301 movs r3, #1
|
|
8012206: e7f0 b.n 80121ea <_svfiprintf_r+0x192>
|
|
8012208: ab03 add r3, sp, #12
|
|
801220a: 9300 str r3, [sp, #0]
|
|
801220c: 462a mov r2, r5
|
|
801220e: 4b0e ldr r3, [pc, #56] @ (8012248 <_svfiprintf_r+0x1f0>)
|
|
8012210: a904 add r1, sp, #16
|
|
8012212: 4638 mov r0, r7
|
|
8012214: f7fd fdf2 bl 800fdfc <_printf_float>
|
|
8012218: 1c42 adds r2, r0, #1
|
|
801221a: 4606 mov r6, r0
|
|
801221c: d1d6 bne.n 80121cc <_svfiprintf_r+0x174>
|
|
801221e: 89ab ldrh r3, [r5, #12]
|
|
8012220: 065b lsls r3, r3, #25
|
|
8012222: f53f af2d bmi.w 8012080 <_svfiprintf_r+0x28>
|
|
8012226: 9809 ldr r0, [sp, #36] @ 0x24
|
|
8012228: e72c b.n 8012084 <_svfiprintf_r+0x2c>
|
|
801222a: ab03 add r3, sp, #12
|
|
801222c: 9300 str r3, [sp, #0]
|
|
801222e: 462a mov r2, r5
|
|
8012230: 4b05 ldr r3, [pc, #20] @ (8012248 <_svfiprintf_r+0x1f0>)
|
|
8012232: a904 add r1, sp, #16
|
|
8012234: 4638 mov r0, r7
|
|
8012236: f7fe f879 bl 801032c <_printf_i>
|
|
801223a: e7ed b.n 8012218 <_svfiprintf_r+0x1c0>
|
|
801223c: 080135e0 .word 0x080135e0
|
|
8012240: 080135ea .word 0x080135ea
|
|
8012244: 0800fdfd .word 0x0800fdfd
|
|
8012248: 08011fa1 .word 0x08011fa1
|
|
801224c: 080135e6 .word 0x080135e6
|
|
|
|
08012250 <__sflush_r>:
|
|
8012250: f9b1 200c ldrsh.w r2, [r1, #12]
|
|
8012254: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
8012258: 0716 lsls r6, r2, #28
|
|
801225a: 4605 mov r5, r0
|
|
801225c: 460c mov r4, r1
|
|
801225e: d454 bmi.n 801230a <__sflush_r+0xba>
|
|
8012260: 684b ldr r3, [r1, #4]
|
|
8012262: 2b00 cmp r3, #0
|
|
8012264: dc02 bgt.n 801226c <__sflush_r+0x1c>
|
|
8012266: 6c0b ldr r3, [r1, #64] @ 0x40
|
|
8012268: 2b00 cmp r3, #0
|
|
801226a: dd48 ble.n 80122fe <__sflush_r+0xae>
|
|
801226c: 6ae6 ldr r6, [r4, #44] @ 0x2c
|
|
801226e: 2e00 cmp r6, #0
|
|
8012270: d045 beq.n 80122fe <__sflush_r+0xae>
|
|
8012272: 2300 movs r3, #0
|
|
8012274: f412 5280 ands.w r2, r2, #4096 @ 0x1000
|
|
8012278: 682f ldr r7, [r5, #0]
|
|
801227a: 6a21 ldr r1, [r4, #32]
|
|
801227c: 602b str r3, [r5, #0]
|
|
801227e: d030 beq.n 80122e2 <__sflush_r+0x92>
|
|
8012280: 6d62 ldr r2, [r4, #84] @ 0x54
|
|
8012282: 89a3 ldrh r3, [r4, #12]
|
|
8012284: 0759 lsls r1, r3, #29
|
|
8012286: d505 bpl.n 8012294 <__sflush_r+0x44>
|
|
8012288: 6863 ldr r3, [r4, #4]
|
|
801228a: 1ad2 subs r2, r2, r3
|
|
801228c: 6b63 ldr r3, [r4, #52] @ 0x34
|
|
801228e: b10b cbz r3, 8012294 <__sflush_r+0x44>
|
|
8012290: 6c23 ldr r3, [r4, #64] @ 0x40
|
|
8012292: 1ad2 subs r2, r2, r3
|
|
8012294: 2300 movs r3, #0
|
|
8012296: 6ae6 ldr r6, [r4, #44] @ 0x2c
|
|
8012298: 6a21 ldr r1, [r4, #32]
|
|
801229a: 4628 mov r0, r5
|
|
801229c: 47b0 blx r6
|
|
801229e: 1c43 adds r3, r0, #1
|
|
80122a0: 89a3 ldrh r3, [r4, #12]
|
|
80122a2: d106 bne.n 80122b2 <__sflush_r+0x62>
|
|
80122a4: 6829 ldr r1, [r5, #0]
|
|
80122a6: 291d cmp r1, #29
|
|
80122a8: d82b bhi.n 8012302 <__sflush_r+0xb2>
|
|
80122aa: 4a2a ldr r2, [pc, #168] @ (8012354 <__sflush_r+0x104>)
|
|
80122ac: 410a asrs r2, r1
|
|
80122ae: 07d6 lsls r6, r2, #31
|
|
80122b0: d427 bmi.n 8012302 <__sflush_r+0xb2>
|
|
80122b2: 2200 movs r2, #0
|
|
80122b4: 6062 str r2, [r4, #4]
|
|
80122b6: 04d9 lsls r1, r3, #19
|
|
80122b8: 6922 ldr r2, [r4, #16]
|
|
80122ba: 6022 str r2, [r4, #0]
|
|
80122bc: d504 bpl.n 80122c8 <__sflush_r+0x78>
|
|
80122be: 1c42 adds r2, r0, #1
|
|
80122c0: d101 bne.n 80122c6 <__sflush_r+0x76>
|
|
80122c2: 682b ldr r3, [r5, #0]
|
|
80122c4: b903 cbnz r3, 80122c8 <__sflush_r+0x78>
|
|
80122c6: 6560 str r0, [r4, #84] @ 0x54
|
|
80122c8: 6b61 ldr r1, [r4, #52] @ 0x34
|
|
80122ca: 602f str r7, [r5, #0]
|
|
80122cc: b1b9 cbz r1, 80122fe <__sflush_r+0xae>
|
|
80122ce: f104 0344 add.w r3, r4, #68 @ 0x44
|
|
80122d2: 4299 cmp r1, r3
|
|
80122d4: d002 beq.n 80122dc <__sflush_r+0x8c>
|
|
80122d6: 4628 mov r0, r5
|
|
80122d8: f7ff fa96 bl 8011808 <_free_r>
|
|
80122dc: 2300 movs r3, #0
|
|
80122de: 6363 str r3, [r4, #52] @ 0x34
|
|
80122e0: e00d b.n 80122fe <__sflush_r+0xae>
|
|
80122e2: 2301 movs r3, #1
|
|
80122e4: 4628 mov r0, r5
|
|
80122e6: 47b0 blx r6
|
|
80122e8: 4602 mov r2, r0
|
|
80122ea: 1c50 adds r0, r2, #1
|
|
80122ec: d1c9 bne.n 8012282 <__sflush_r+0x32>
|
|
80122ee: 682b ldr r3, [r5, #0]
|
|
80122f0: 2b00 cmp r3, #0
|
|
80122f2: d0c6 beq.n 8012282 <__sflush_r+0x32>
|
|
80122f4: 2b1d cmp r3, #29
|
|
80122f6: d001 beq.n 80122fc <__sflush_r+0xac>
|
|
80122f8: 2b16 cmp r3, #22
|
|
80122fa: d11e bne.n 801233a <__sflush_r+0xea>
|
|
80122fc: 602f str r7, [r5, #0]
|
|
80122fe: 2000 movs r0, #0
|
|
8012300: e022 b.n 8012348 <__sflush_r+0xf8>
|
|
8012302: f043 0340 orr.w r3, r3, #64 @ 0x40
|
|
8012306: b21b sxth r3, r3
|
|
8012308: e01b b.n 8012342 <__sflush_r+0xf2>
|
|
801230a: 690f ldr r7, [r1, #16]
|
|
801230c: 2f00 cmp r7, #0
|
|
801230e: d0f6 beq.n 80122fe <__sflush_r+0xae>
|
|
8012310: 0793 lsls r3, r2, #30
|
|
8012312: 680e ldr r6, [r1, #0]
|
|
8012314: bf08 it eq
|
|
8012316: 694b ldreq r3, [r1, #20]
|
|
8012318: 600f str r7, [r1, #0]
|
|
801231a: bf18 it ne
|
|
801231c: 2300 movne r3, #0
|
|
801231e: eba6 0807 sub.w r8, r6, r7
|
|
8012322: 608b str r3, [r1, #8]
|
|
8012324: f1b8 0f00 cmp.w r8, #0
|
|
8012328: dde9 ble.n 80122fe <__sflush_r+0xae>
|
|
801232a: 6a21 ldr r1, [r4, #32]
|
|
801232c: 6aa6 ldr r6, [r4, #40] @ 0x28
|
|
801232e: 4643 mov r3, r8
|
|
8012330: 463a mov r2, r7
|
|
8012332: 4628 mov r0, r5
|
|
8012334: 47b0 blx r6
|
|
8012336: 2800 cmp r0, #0
|
|
8012338: dc08 bgt.n 801234c <__sflush_r+0xfc>
|
|
801233a: f9b4 300c ldrsh.w r3, [r4, #12]
|
|
801233e: f043 0340 orr.w r3, r3, #64 @ 0x40
|
|
8012342: 81a3 strh r3, [r4, #12]
|
|
8012344: f04f 30ff mov.w r0, #4294967295
|
|
8012348: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
801234c: 4407 add r7, r0
|
|
801234e: eba8 0800 sub.w r8, r8, r0
|
|
8012352: e7e7 b.n 8012324 <__sflush_r+0xd4>
|
|
8012354: dfbffffe .word 0xdfbffffe
|
|
|
|
08012358 <_fflush_r>:
|
|
8012358: b538 push {r3, r4, r5, lr}
|
|
801235a: 690b ldr r3, [r1, #16]
|
|
801235c: 4605 mov r5, r0
|
|
801235e: 460c mov r4, r1
|
|
8012360: b913 cbnz r3, 8012368 <_fflush_r+0x10>
|
|
8012362: 2500 movs r5, #0
|
|
8012364: 4628 mov r0, r5
|
|
8012366: bd38 pop {r3, r4, r5, pc}
|
|
8012368: b118 cbz r0, 8012372 <_fflush_r+0x1a>
|
|
801236a: 6a03 ldr r3, [r0, #32]
|
|
801236c: b90b cbnz r3, 8012372 <_fflush_r+0x1a>
|
|
801236e: f7fe f989 bl 8010684 <__sinit>
|
|
8012372: f9b4 300c ldrsh.w r3, [r4, #12]
|
|
8012376: 2b00 cmp r3, #0
|
|
8012378: d0f3 beq.n 8012362 <_fflush_r+0xa>
|
|
801237a: 6e62 ldr r2, [r4, #100] @ 0x64
|
|
801237c: 07d0 lsls r0, r2, #31
|
|
801237e: d404 bmi.n 801238a <_fflush_r+0x32>
|
|
8012380: 0599 lsls r1, r3, #22
|
|
8012382: d402 bmi.n 801238a <_fflush_r+0x32>
|
|
8012384: 6da0 ldr r0, [r4, #88] @ 0x58
|
|
8012386: f7f1 fbef bl 8003b68 <__retarget_lock_acquire_recursive>
|
|
801238a: 4628 mov r0, r5
|
|
801238c: 4621 mov r1, r4
|
|
801238e: f7ff ff5f bl 8012250 <__sflush_r>
|
|
8012392: 6e63 ldr r3, [r4, #100] @ 0x64
|
|
8012394: 07da lsls r2, r3, #31
|
|
8012396: 4605 mov r5, r0
|
|
8012398: d4e4 bmi.n 8012364 <_fflush_r+0xc>
|
|
801239a: 89a3 ldrh r3, [r4, #12]
|
|
801239c: 059b lsls r3, r3, #22
|
|
801239e: d4e1 bmi.n 8012364 <_fflush_r+0xc>
|
|
80123a0: 6da0 ldr r0, [r4, #88] @ 0x58
|
|
80123a2: f7f1 fbf6 bl 8003b92 <__retarget_lock_release_recursive>
|
|
80123a6: e7dd b.n 8012364 <_fflush_r+0xc>
|
|
|
|
080123a8 <memmove>:
|
|
80123a8: 4288 cmp r0, r1
|
|
80123aa: b510 push {r4, lr}
|
|
80123ac: eb01 0402 add.w r4, r1, r2
|
|
80123b0: d902 bls.n 80123b8 <memmove+0x10>
|
|
80123b2: 4284 cmp r4, r0
|
|
80123b4: 4623 mov r3, r4
|
|
80123b6: d807 bhi.n 80123c8 <memmove+0x20>
|
|
80123b8: 1e43 subs r3, r0, #1
|
|
80123ba: 42a1 cmp r1, r4
|
|
80123bc: d008 beq.n 80123d0 <memmove+0x28>
|
|
80123be: f811 2b01 ldrb.w r2, [r1], #1
|
|
80123c2: f803 2f01 strb.w r2, [r3, #1]!
|
|
80123c6: e7f8 b.n 80123ba <memmove+0x12>
|
|
80123c8: 4402 add r2, r0
|
|
80123ca: 4601 mov r1, r0
|
|
80123cc: 428a cmp r2, r1
|
|
80123ce: d100 bne.n 80123d2 <memmove+0x2a>
|
|
80123d0: bd10 pop {r4, pc}
|
|
80123d2: f813 4d01 ldrb.w r4, [r3, #-1]!
|
|
80123d6: f802 4d01 strb.w r4, [r2, #-1]!
|
|
80123da: e7f7 b.n 80123cc <memmove+0x24>
|
|
|
|
080123dc <__assert_func>:
|
|
80123dc: b51f push {r0, r1, r2, r3, r4, lr}
|
|
80123de: 4614 mov r4, r2
|
|
80123e0: 461a mov r2, r3
|
|
80123e2: 4b09 ldr r3, [pc, #36] @ (8012408 <__assert_func+0x2c>)
|
|
80123e4: 681b ldr r3, [r3, #0]
|
|
80123e6: 4605 mov r5, r0
|
|
80123e8: 68d8 ldr r0, [r3, #12]
|
|
80123ea: b954 cbnz r4, 8012402 <__assert_func+0x26>
|
|
80123ec: 4b07 ldr r3, [pc, #28] @ (801240c <__assert_func+0x30>)
|
|
80123ee: 461c mov r4, r3
|
|
80123f0: e9cd 3401 strd r3, r4, [sp, #4]
|
|
80123f4: 9100 str r1, [sp, #0]
|
|
80123f6: 462b mov r3, r5
|
|
80123f8: 4905 ldr r1, [pc, #20] @ (8012410 <__assert_func+0x34>)
|
|
80123fa: f000 f86f bl 80124dc <fiprintf>
|
|
80123fe: f7fd fb91 bl 800fb24 <abort>
|
|
8012402: 4b04 ldr r3, [pc, #16] @ (8012414 <__assert_func+0x38>)
|
|
8012404: e7f4 b.n 80123f0 <__assert_func+0x14>
|
|
8012406: bf00 nop
|
|
8012408: 2000001c .word 0x2000001c
|
|
801240c: 08013636 .word 0x08013636
|
|
8012410: 08013608 .word 0x08013608
|
|
8012414: 080135fb .word 0x080135fb
|
|
|
|
08012418 <_calloc_r>:
|
|
8012418: b570 push {r4, r5, r6, lr}
|
|
801241a: fba1 5402 umull r5, r4, r1, r2
|
|
801241e: b93c cbnz r4, 8012430 <_calloc_r+0x18>
|
|
8012420: 4629 mov r1, r5
|
|
8012422: f7fd fbbf bl 800fba4 <_malloc_r>
|
|
8012426: 4606 mov r6, r0
|
|
8012428: b928 cbnz r0, 8012436 <_calloc_r+0x1e>
|
|
801242a: 2600 movs r6, #0
|
|
801242c: 4630 mov r0, r6
|
|
801242e: bd70 pop {r4, r5, r6, pc}
|
|
8012430: 220c movs r2, #12
|
|
8012432: 6002 str r2, [r0, #0]
|
|
8012434: e7f9 b.n 801242a <_calloc_r+0x12>
|
|
8012436: 462a mov r2, r5
|
|
8012438: 4621 mov r1, r4
|
|
801243a: f7fe fa09 bl 8010850 <memset>
|
|
801243e: e7f5 b.n 801242c <_calloc_r+0x14>
|
|
|
|
08012440 <__ascii_mbtowc>:
|
|
8012440: b082 sub sp, #8
|
|
8012442: b901 cbnz r1, 8012446 <__ascii_mbtowc+0x6>
|
|
8012444: a901 add r1, sp, #4
|
|
8012446: b142 cbz r2, 801245a <__ascii_mbtowc+0x1a>
|
|
8012448: b14b cbz r3, 801245e <__ascii_mbtowc+0x1e>
|
|
801244a: 7813 ldrb r3, [r2, #0]
|
|
801244c: 600b str r3, [r1, #0]
|
|
801244e: 7812 ldrb r2, [r2, #0]
|
|
8012450: 1e10 subs r0, r2, #0
|
|
8012452: bf18 it ne
|
|
8012454: 2001 movne r0, #1
|
|
8012456: b002 add sp, #8
|
|
8012458: 4770 bx lr
|
|
801245a: 4610 mov r0, r2
|
|
801245c: e7fb b.n 8012456 <__ascii_mbtowc+0x16>
|
|
801245e: f06f 0001 mvn.w r0, #1
|
|
8012462: e7f8 b.n 8012456 <__ascii_mbtowc+0x16>
|
|
|
|
08012464 <_realloc_r>:
|
|
8012464: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
|
|
8012468: 4680 mov r8, r0
|
|
801246a: 4615 mov r5, r2
|
|
801246c: 460c mov r4, r1
|
|
801246e: b921 cbnz r1, 801247a <_realloc_r+0x16>
|
|
8012470: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
|
|
8012474: 4611 mov r1, r2
|
|
8012476: f7fd bb95 b.w 800fba4 <_malloc_r>
|
|
801247a: b92a cbnz r2, 8012488 <_realloc_r+0x24>
|
|
801247c: f7ff f9c4 bl 8011808 <_free_r>
|
|
8012480: 2400 movs r4, #0
|
|
8012482: 4620 mov r0, r4
|
|
8012484: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
|
|
8012488: f000 f83a bl 8012500 <_malloc_usable_size_r>
|
|
801248c: 4285 cmp r5, r0
|
|
801248e: 4606 mov r6, r0
|
|
8012490: d802 bhi.n 8012498 <_realloc_r+0x34>
|
|
8012492: ebb5 0f50 cmp.w r5, r0, lsr #1
|
|
8012496: d8f4 bhi.n 8012482 <_realloc_r+0x1e>
|
|
8012498: 4629 mov r1, r5
|
|
801249a: 4640 mov r0, r8
|
|
801249c: f7fd fb82 bl 800fba4 <_malloc_r>
|
|
80124a0: 4607 mov r7, r0
|
|
80124a2: 2800 cmp r0, #0
|
|
80124a4: d0ec beq.n 8012480 <_realloc_r+0x1c>
|
|
80124a6: 42b5 cmp r5, r6
|
|
80124a8: 462a mov r2, r5
|
|
80124aa: 4621 mov r1, r4
|
|
80124ac: bf28 it cs
|
|
80124ae: 4632 movcs r2, r6
|
|
80124b0: f7fe faf4 bl 8010a9c <memcpy>
|
|
80124b4: 4621 mov r1, r4
|
|
80124b6: 4640 mov r0, r8
|
|
80124b8: f7ff f9a6 bl 8011808 <_free_r>
|
|
80124bc: 463c mov r4, r7
|
|
80124be: e7e0 b.n 8012482 <_realloc_r+0x1e>
|
|
|
|
080124c0 <__ascii_wctomb>:
|
|
80124c0: 4603 mov r3, r0
|
|
80124c2: 4608 mov r0, r1
|
|
80124c4: b141 cbz r1, 80124d8 <__ascii_wctomb+0x18>
|
|
80124c6: 2aff cmp r2, #255 @ 0xff
|
|
80124c8: d904 bls.n 80124d4 <__ascii_wctomb+0x14>
|
|
80124ca: 228a movs r2, #138 @ 0x8a
|
|
80124cc: 601a str r2, [r3, #0]
|
|
80124ce: f04f 30ff mov.w r0, #4294967295
|
|
80124d2: 4770 bx lr
|
|
80124d4: 700a strb r2, [r1, #0]
|
|
80124d6: 2001 movs r0, #1
|
|
80124d8: 4770 bx lr
|
|
...
|
|
|
|
080124dc <fiprintf>:
|
|
80124dc: b40e push {r1, r2, r3}
|
|
80124de: b503 push {r0, r1, lr}
|
|
80124e0: 4601 mov r1, r0
|
|
80124e2: ab03 add r3, sp, #12
|
|
80124e4: 4805 ldr r0, [pc, #20] @ (80124fc <fiprintf+0x20>)
|
|
80124e6: f853 2b04 ldr.w r2, [r3], #4
|
|
80124ea: 6800 ldr r0, [r0, #0]
|
|
80124ec: 9301 str r3, [sp, #4]
|
|
80124ee: f000 f839 bl 8012564 <_vfiprintf_r>
|
|
80124f2: b002 add sp, #8
|
|
80124f4: f85d eb04 ldr.w lr, [sp], #4
|
|
80124f8: b003 add sp, #12
|
|
80124fa: 4770 bx lr
|
|
80124fc: 2000001c .word 0x2000001c
|
|
|
|
08012500 <_malloc_usable_size_r>:
|
|
8012500: f851 3c04 ldr.w r3, [r1, #-4]
|
|
8012504: 1f18 subs r0, r3, #4
|
|
8012506: 2b00 cmp r3, #0
|
|
8012508: bfbc itt lt
|
|
801250a: 580b ldrlt r3, [r1, r0]
|
|
801250c: 18c0 addlt r0, r0, r3
|
|
801250e: 4770 bx lr
|
|
|
|
08012510 <__sfputc_r>:
|
|
8012510: 6893 ldr r3, [r2, #8]
|
|
8012512: 3b01 subs r3, #1
|
|
8012514: 2b00 cmp r3, #0
|
|
8012516: b410 push {r4}
|
|
8012518: 6093 str r3, [r2, #8]
|
|
801251a: da08 bge.n 801252e <__sfputc_r+0x1e>
|
|
801251c: 6994 ldr r4, [r2, #24]
|
|
801251e: 42a3 cmp r3, r4
|
|
8012520: db01 blt.n 8012526 <__sfputc_r+0x16>
|
|
8012522: 290a cmp r1, #10
|
|
8012524: d103 bne.n 801252e <__sfputc_r+0x1e>
|
|
8012526: f85d 4b04 ldr.w r4, [sp], #4
|
|
801252a: f000 b933 b.w 8012794 <__swbuf_r>
|
|
801252e: 6813 ldr r3, [r2, #0]
|
|
8012530: 1c58 adds r0, r3, #1
|
|
8012532: 6010 str r0, [r2, #0]
|
|
8012534: 7019 strb r1, [r3, #0]
|
|
8012536: 4608 mov r0, r1
|
|
8012538: f85d 4b04 ldr.w r4, [sp], #4
|
|
801253c: 4770 bx lr
|
|
|
|
0801253e <__sfputs_r>:
|
|
801253e: b5f8 push {r3, r4, r5, r6, r7, lr}
|
|
8012540: 4606 mov r6, r0
|
|
8012542: 460f mov r7, r1
|
|
8012544: 4614 mov r4, r2
|
|
8012546: 18d5 adds r5, r2, r3
|
|
8012548: 42ac cmp r4, r5
|
|
801254a: d101 bne.n 8012550 <__sfputs_r+0x12>
|
|
801254c: 2000 movs r0, #0
|
|
801254e: e007 b.n 8012560 <__sfputs_r+0x22>
|
|
8012550: f814 1b01 ldrb.w r1, [r4], #1
|
|
8012554: 463a mov r2, r7
|
|
8012556: 4630 mov r0, r6
|
|
8012558: f7ff ffda bl 8012510 <__sfputc_r>
|
|
801255c: 1c43 adds r3, r0, #1
|
|
801255e: d1f3 bne.n 8012548 <__sfputs_r+0xa>
|
|
8012560: bdf8 pop {r3, r4, r5, r6, r7, pc}
|
|
...
|
|
|
|
08012564 <_vfiprintf_r>:
|
|
8012564: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
|
|
8012568: 460d mov r5, r1
|
|
801256a: b09d sub sp, #116 @ 0x74
|
|
801256c: 4614 mov r4, r2
|
|
801256e: 4698 mov r8, r3
|
|
8012570: 4606 mov r6, r0
|
|
8012572: b118 cbz r0, 801257c <_vfiprintf_r+0x18>
|
|
8012574: 6a03 ldr r3, [r0, #32]
|
|
8012576: b90b cbnz r3, 801257c <_vfiprintf_r+0x18>
|
|
8012578: f7fe f884 bl 8010684 <__sinit>
|
|
801257c: 6e6b ldr r3, [r5, #100] @ 0x64
|
|
801257e: 07d9 lsls r1, r3, #31
|
|
8012580: d405 bmi.n 801258e <_vfiprintf_r+0x2a>
|
|
8012582: 89ab ldrh r3, [r5, #12]
|
|
8012584: 059a lsls r2, r3, #22
|
|
8012586: d402 bmi.n 801258e <_vfiprintf_r+0x2a>
|
|
8012588: 6da8 ldr r0, [r5, #88] @ 0x58
|
|
801258a: f7f1 faed bl 8003b68 <__retarget_lock_acquire_recursive>
|
|
801258e: 89ab ldrh r3, [r5, #12]
|
|
8012590: 071b lsls r3, r3, #28
|
|
8012592: d501 bpl.n 8012598 <_vfiprintf_r+0x34>
|
|
8012594: 692b ldr r3, [r5, #16]
|
|
8012596: b99b cbnz r3, 80125c0 <_vfiprintf_r+0x5c>
|
|
8012598: 4629 mov r1, r5
|
|
801259a: 4630 mov r0, r6
|
|
801259c: f000 f938 bl 8012810 <__swsetup_r>
|
|
80125a0: b170 cbz r0, 80125c0 <_vfiprintf_r+0x5c>
|
|
80125a2: 6e6b ldr r3, [r5, #100] @ 0x64
|
|
80125a4: 07dc lsls r4, r3, #31
|
|
80125a6: d504 bpl.n 80125b2 <_vfiprintf_r+0x4e>
|
|
80125a8: f04f 30ff mov.w r0, #4294967295
|
|
80125ac: b01d add sp, #116 @ 0x74
|
|
80125ae: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
|
|
80125b2: 89ab ldrh r3, [r5, #12]
|
|
80125b4: 0598 lsls r0, r3, #22
|
|
80125b6: d4f7 bmi.n 80125a8 <_vfiprintf_r+0x44>
|
|
80125b8: 6da8 ldr r0, [r5, #88] @ 0x58
|
|
80125ba: f7f1 faea bl 8003b92 <__retarget_lock_release_recursive>
|
|
80125be: e7f3 b.n 80125a8 <_vfiprintf_r+0x44>
|
|
80125c0: 2300 movs r3, #0
|
|
80125c2: 9309 str r3, [sp, #36] @ 0x24
|
|
80125c4: 2320 movs r3, #32
|
|
80125c6: f88d 3029 strb.w r3, [sp, #41] @ 0x29
|
|
80125ca: f8cd 800c str.w r8, [sp, #12]
|
|
80125ce: 2330 movs r3, #48 @ 0x30
|
|
80125d0: f8df 81ac ldr.w r8, [pc, #428] @ 8012780 <_vfiprintf_r+0x21c>
|
|
80125d4: f88d 302a strb.w r3, [sp, #42] @ 0x2a
|
|
80125d8: f04f 0901 mov.w r9, #1
|
|
80125dc: 4623 mov r3, r4
|
|
80125de: 469a mov sl, r3
|
|
80125e0: f813 2b01 ldrb.w r2, [r3], #1
|
|
80125e4: b10a cbz r2, 80125ea <_vfiprintf_r+0x86>
|
|
80125e6: 2a25 cmp r2, #37 @ 0x25
|
|
80125e8: d1f9 bne.n 80125de <_vfiprintf_r+0x7a>
|
|
80125ea: ebba 0b04 subs.w fp, sl, r4
|
|
80125ee: d00b beq.n 8012608 <_vfiprintf_r+0xa4>
|
|
80125f0: 465b mov r3, fp
|
|
80125f2: 4622 mov r2, r4
|
|
80125f4: 4629 mov r1, r5
|
|
80125f6: 4630 mov r0, r6
|
|
80125f8: f7ff ffa1 bl 801253e <__sfputs_r>
|
|
80125fc: 3001 adds r0, #1
|
|
80125fe: f000 80a7 beq.w 8012750 <_vfiprintf_r+0x1ec>
|
|
8012602: 9a09 ldr r2, [sp, #36] @ 0x24
|
|
8012604: 445a add r2, fp
|
|
8012606: 9209 str r2, [sp, #36] @ 0x24
|
|
8012608: f89a 3000 ldrb.w r3, [sl]
|
|
801260c: 2b00 cmp r3, #0
|
|
801260e: f000 809f beq.w 8012750 <_vfiprintf_r+0x1ec>
|
|
8012612: 2300 movs r3, #0
|
|
8012614: f04f 32ff mov.w r2, #4294967295
|
|
8012618: e9cd 2305 strd r2, r3, [sp, #20]
|
|
801261c: f10a 0a01 add.w sl, sl, #1
|
|
8012620: 9304 str r3, [sp, #16]
|
|
8012622: 9307 str r3, [sp, #28]
|
|
8012624: f88d 3053 strb.w r3, [sp, #83] @ 0x53
|
|
8012628: 931a str r3, [sp, #104] @ 0x68
|
|
801262a: 4654 mov r4, sl
|
|
801262c: 2205 movs r2, #5
|
|
801262e: f814 1b01 ldrb.w r1, [r4], #1
|
|
8012632: 4853 ldr r0, [pc, #332] @ (8012780 <_vfiprintf_r+0x21c>)
|
|
8012634: f7ed fddc bl 80001f0 <memchr>
|
|
8012638: 9a04 ldr r2, [sp, #16]
|
|
801263a: b9d8 cbnz r0, 8012674 <_vfiprintf_r+0x110>
|
|
801263c: 06d1 lsls r1, r2, #27
|
|
801263e: bf44 itt mi
|
|
8012640: 2320 movmi r3, #32
|
|
8012642: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
|
|
8012646: 0713 lsls r3, r2, #28
|
|
8012648: bf44 itt mi
|
|
801264a: 232b movmi r3, #43 @ 0x2b
|
|
801264c: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
|
|
8012650: f89a 3000 ldrb.w r3, [sl]
|
|
8012654: 2b2a cmp r3, #42 @ 0x2a
|
|
8012656: d015 beq.n 8012684 <_vfiprintf_r+0x120>
|
|
8012658: 9a07 ldr r2, [sp, #28]
|
|
801265a: 4654 mov r4, sl
|
|
801265c: 2000 movs r0, #0
|
|
801265e: f04f 0c0a mov.w ip, #10
|
|
8012662: 4621 mov r1, r4
|
|
8012664: f811 3b01 ldrb.w r3, [r1], #1
|
|
8012668: 3b30 subs r3, #48 @ 0x30
|
|
801266a: 2b09 cmp r3, #9
|
|
801266c: d94b bls.n 8012706 <_vfiprintf_r+0x1a2>
|
|
801266e: b1b0 cbz r0, 801269e <_vfiprintf_r+0x13a>
|
|
8012670: 9207 str r2, [sp, #28]
|
|
8012672: e014 b.n 801269e <_vfiprintf_r+0x13a>
|
|
8012674: eba0 0308 sub.w r3, r0, r8
|
|
8012678: fa09 f303 lsl.w r3, r9, r3
|
|
801267c: 4313 orrs r3, r2
|
|
801267e: 9304 str r3, [sp, #16]
|
|
8012680: 46a2 mov sl, r4
|
|
8012682: e7d2 b.n 801262a <_vfiprintf_r+0xc6>
|
|
8012684: 9b03 ldr r3, [sp, #12]
|
|
8012686: 1d19 adds r1, r3, #4
|
|
8012688: 681b ldr r3, [r3, #0]
|
|
801268a: 9103 str r1, [sp, #12]
|
|
801268c: 2b00 cmp r3, #0
|
|
801268e: bfbb ittet lt
|
|
8012690: 425b neglt r3, r3
|
|
8012692: f042 0202 orrlt.w r2, r2, #2
|
|
8012696: 9307 strge r3, [sp, #28]
|
|
8012698: 9307 strlt r3, [sp, #28]
|
|
801269a: bfb8 it lt
|
|
801269c: 9204 strlt r2, [sp, #16]
|
|
801269e: 7823 ldrb r3, [r4, #0]
|
|
80126a0: 2b2e cmp r3, #46 @ 0x2e
|
|
80126a2: d10a bne.n 80126ba <_vfiprintf_r+0x156>
|
|
80126a4: 7863 ldrb r3, [r4, #1]
|
|
80126a6: 2b2a cmp r3, #42 @ 0x2a
|
|
80126a8: d132 bne.n 8012710 <_vfiprintf_r+0x1ac>
|
|
80126aa: 9b03 ldr r3, [sp, #12]
|
|
80126ac: 1d1a adds r2, r3, #4
|
|
80126ae: 681b ldr r3, [r3, #0]
|
|
80126b0: 9203 str r2, [sp, #12]
|
|
80126b2: ea43 73e3 orr.w r3, r3, r3, asr #31
|
|
80126b6: 3402 adds r4, #2
|
|
80126b8: 9305 str r3, [sp, #20]
|
|
80126ba: f8df a0d4 ldr.w sl, [pc, #212] @ 8012790 <_vfiprintf_r+0x22c>
|
|
80126be: 7821 ldrb r1, [r4, #0]
|
|
80126c0: 2203 movs r2, #3
|
|
80126c2: 4650 mov r0, sl
|
|
80126c4: f7ed fd94 bl 80001f0 <memchr>
|
|
80126c8: b138 cbz r0, 80126da <_vfiprintf_r+0x176>
|
|
80126ca: 9b04 ldr r3, [sp, #16]
|
|
80126cc: eba0 000a sub.w r0, r0, sl
|
|
80126d0: 2240 movs r2, #64 @ 0x40
|
|
80126d2: 4082 lsls r2, r0
|
|
80126d4: 4313 orrs r3, r2
|
|
80126d6: 3401 adds r4, #1
|
|
80126d8: 9304 str r3, [sp, #16]
|
|
80126da: f814 1b01 ldrb.w r1, [r4], #1
|
|
80126de: 4829 ldr r0, [pc, #164] @ (8012784 <_vfiprintf_r+0x220>)
|
|
80126e0: f88d 1028 strb.w r1, [sp, #40] @ 0x28
|
|
80126e4: 2206 movs r2, #6
|
|
80126e6: f7ed fd83 bl 80001f0 <memchr>
|
|
80126ea: 2800 cmp r0, #0
|
|
80126ec: d03f beq.n 801276e <_vfiprintf_r+0x20a>
|
|
80126ee: 4b26 ldr r3, [pc, #152] @ (8012788 <_vfiprintf_r+0x224>)
|
|
80126f0: bb1b cbnz r3, 801273a <_vfiprintf_r+0x1d6>
|
|
80126f2: 9b03 ldr r3, [sp, #12]
|
|
80126f4: 3307 adds r3, #7
|
|
80126f6: f023 0307 bic.w r3, r3, #7
|
|
80126fa: 3308 adds r3, #8
|
|
80126fc: 9303 str r3, [sp, #12]
|
|
80126fe: 9b09 ldr r3, [sp, #36] @ 0x24
|
|
8012700: 443b add r3, r7
|
|
8012702: 9309 str r3, [sp, #36] @ 0x24
|
|
8012704: e76a b.n 80125dc <_vfiprintf_r+0x78>
|
|
8012706: fb0c 3202 mla r2, ip, r2, r3
|
|
801270a: 460c mov r4, r1
|
|
801270c: 2001 movs r0, #1
|
|
801270e: e7a8 b.n 8012662 <_vfiprintf_r+0xfe>
|
|
8012710: 2300 movs r3, #0
|
|
8012712: 3401 adds r4, #1
|
|
8012714: 9305 str r3, [sp, #20]
|
|
8012716: 4619 mov r1, r3
|
|
8012718: f04f 0c0a mov.w ip, #10
|
|
801271c: 4620 mov r0, r4
|
|
801271e: f810 2b01 ldrb.w r2, [r0], #1
|
|
8012722: 3a30 subs r2, #48 @ 0x30
|
|
8012724: 2a09 cmp r2, #9
|
|
8012726: d903 bls.n 8012730 <_vfiprintf_r+0x1cc>
|
|
8012728: 2b00 cmp r3, #0
|
|
801272a: d0c6 beq.n 80126ba <_vfiprintf_r+0x156>
|
|
801272c: 9105 str r1, [sp, #20]
|
|
801272e: e7c4 b.n 80126ba <_vfiprintf_r+0x156>
|
|
8012730: fb0c 2101 mla r1, ip, r1, r2
|
|
8012734: 4604 mov r4, r0
|
|
8012736: 2301 movs r3, #1
|
|
8012738: e7f0 b.n 801271c <_vfiprintf_r+0x1b8>
|
|
801273a: ab03 add r3, sp, #12
|
|
801273c: 9300 str r3, [sp, #0]
|
|
801273e: 462a mov r2, r5
|
|
8012740: 4b12 ldr r3, [pc, #72] @ (801278c <_vfiprintf_r+0x228>)
|
|
8012742: a904 add r1, sp, #16
|
|
8012744: 4630 mov r0, r6
|
|
8012746: f7fd fb59 bl 800fdfc <_printf_float>
|
|
801274a: 4607 mov r7, r0
|
|
801274c: 1c78 adds r0, r7, #1
|
|
801274e: d1d6 bne.n 80126fe <_vfiprintf_r+0x19a>
|
|
8012750: 6e6b ldr r3, [r5, #100] @ 0x64
|
|
8012752: 07d9 lsls r1, r3, #31
|
|
8012754: d405 bmi.n 8012762 <_vfiprintf_r+0x1fe>
|
|
8012756: 89ab ldrh r3, [r5, #12]
|
|
8012758: 059a lsls r2, r3, #22
|
|
801275a: d402 bmi.n 8012762 <_vfiprintf_r+0x1fe>
|
|
801275c: 6da8 ldr r0, [r5, #88] @ 0x58
|
|
801275e: f7f1 fa18 bl 8003b92 <__retarget_lock_release_recursive>
|
|
8012762: 89ab ldrh r3, [r5, #12]
|
|
8012764: 065b lsls r3, r3, #25
|
|
8012766: f53f af1f bmi.w 80125a8 <_vfiprintf_r+0x44>
|
|
801276a: 9809 ldr r0, [sp, #36] @ 0x24
|
|
801276c: e71e b.n 80125ac <_vfiprintf_r+0x48>
|
|
801276e: ab03 add r3, sp, #12
|
|
8012770: 9300 str r3, [sp, #0]
|
|
8012772: 462a mov r2, r5
|
|
8012774: 4b05 ldr r3, [pc, #20] @ (801278c <_vfiprintf_r+0x228>)
|
|
8012776: a904 add r1, sp, #16
|
|
8012778: 4630 mov r0, r6
|
|
801277a: f7fd fdd7 bl 801032c <_printf_i>
|
|
801277e: e7e4 b.n 801274a <_vfiprintf_r+0x1e6>
|
|
8012780: 080135e0 .word 0x080135e0
|
|
8012784: 080135ea .word 0x080135ea
|
|
8012788: 0800fdfd .word 0x0800fdfd
|
|
801278c: 0801253f .word 0x0801253f
|
|
8012790: 080135e6 .word 0x080135e6
|
|
|
|
08012794 <__swbuf_r>:
|
|
8012794: b5f8 push {r3, r4, r5, r6, r7, lr}
|
|
8012796: 460e mov r6, r1
|
|
8012798: 4614 mov r4, r2
|
|
801279a: 4605 mov r5, r0
|
|
801279c: b118 cbz r0, 80127a6 <__swbuf_r+0x12>
|
|
801279e: 6a03 ldr r3, [r0, #32]
|
|
80127a0: b90b cbnz r3, 80127a6 <__swbuf_r+0x12>
|
|
80127a2: f7fd ff6f bl 8010684 <__sinit>
|
|
80127a6: 69a3 ldr r3, [r4, #24]
|
|
80127a8: 60a3 str r3, [r4, #8]
|
|
80127aa: 89a3 ldrh r3, [r4, #12]
|
|
80127ac: 071a lsls r2, r3, #28
|
|
80127ae: d501 bpl.n 80127b4 <__swbuf_r+0x20>
|
|
80127b0: 6923 ldr r3, [r4, #16]
|
|
80127b2: b943 cbnz r3, 80127c6 <__swbuf_r+0x32>
|
|
80127b4: 4621 mov r1, r4
|
|
80127b6: 4628 mov r0, r5
|
|
80127b8: f000 f82a bl 8012810 <__swsetup_r>
|
|
80127bc: b118 cbz r0, 80127c6 <__swbuf_r+0x32>
|
|
80127be: f04f 37ff mov.w r7, #4294967295
|
|
80127c2: 4638 mov r0, r7
|
|
80127c4: bdf8 pop {r3, r4, r5, r6, r7, pc}
|
|
80127c6: 6823 ldr r3, [r4, #0]
|
|
80127c8: 6922 ldr r2, [r4, #16]
|
|
80127ca: 1a98 subs r0, r3, r2
|
|
80127cc: 6963 ldr r3, [r4, #20]
|
|
80127ce: b2f6 uxtb r6, r6
|
|
80127d0: 4283 cmp r3, r0
|
|
80127d2: 4637 mov r7, r6
|
|
80127d4: dc05 bgt.n 80127e2 <__swbuf_r+0x4e>
|
|
80127d6: 4621 mov r1, r4
|
|
80127d8: 4628 mov r0, r5
|
|
80127da: f7ff fdbd bl 8012358 <_fflush_r>
|
|
80127de: 2800 cmp r0, #0
|
|
80127e0: d1ed bne.n 80127be <__swbuf_r+0x2a>
|
|
80127e2: 68a3 ldr r3, [r4, #8]
|
|
80127e4: 3b01 subs r3, #1
|
|
80127e6: 60a3 str r3, [r4, #8]
|
|
80127e8: 6823 ldr r3, [r4, #0]
|
|
80127ea: 1c5a adds r2, r3, #1
|
|
80127ec: 6022 str r2, [r4, #0]
|
|
80127ee: 701e strb r6, [r3, #0]
|
|
80127f0: 6962 ldr r2, [r4, #20]
|
|
80127f2: 1c43 adds r3, r0, #1
|
|
80127f4: 429a cmp r2, r3
|
|
80127f6: d004 beq.n 8012802 <__swbuf_r+0x6e>
|
|
80127f8: 89a3 ldrh r3, [r4, #12]
|
|
80127fa: 07db lsls r3, r3, #31
|
|
80127fc: d5e1 bpl.n 80127c2 <__swbuf_r+0x2e>
|
|
80127fe: 2e0a cmp r6, #10
|
|
8012800: d1df bne.n 80127c2 <__swbuf_r+0x2e>
|
|
8012802: 4621 mov r1, r4
|
|
8012804: 4628 mov r0, r5
|
|
8012806: f7ff fda7 bl 8012358 <_fflush_r>
|
|
801280a: 2800 cmp r0, #0
|
|
801280c: d0d9 beq.n 80127c2 <__swbuf_r+0x2e>
|
|
801280e: e7d6 b.n 80127be <__swbuf_r+0x2a>
|
|
|
|
08012810 <__swsetup_r>:
|
|
8012810: b538 push {r3, r4, r5, lr}
|
|
8012812: 4b29 ldr r3, [pc, #164] @ (80128b8 <__swsetup_r+0xa8>)
|
|
8012814: 4605 mov r5, r0
|
|
8012816: 6818 ldr r0, [r3, #0]
|
|
8012818: 460c mov r4, r1
|
|
801281a: b118 cbz r0, 8012824 <__swsetup_r+0x14>
|
|
801281c: 6a03 ldr r3, [r0, #32]
|
|
801281e: b90b cbnz r3, 8012824 <__swsetup_r+0x14>
|
|
8012820: f7fd ff30 bl 8010684 <__sinit>
|
|
8012824: f9b4 300c ldrsh.w r3, [r4, #12]
|
|
8012828: 0719 lsls r1, r3, #28
|
|
801282a: d422 bmi.n 8012872 <__swsetup_r+0x62>
|
|
801282c: 06da lsls r2, r3, #27
|
|
801282e: d407 bmi.n 8012840 <__swsetup_r+0x30>
|
|
8012830: 2209 movs r2, #9
|
|
8012832: 602a str r2, [r5, #0]
|
|
8012834: f043 0340 orr.w r3, r3, #64 @ 0x40
|
|
8012838: 81a3 strh r3, [r4, #12]
|
|
801283a: f04f 30ff mov.w r0, #4294967295
|
|
801283e: e033 b.n 80128a8 <__swsetup_r+0x98>
|
|
8012840: 0758 lsls r0, r3, #29
|
|
8012842: d512 bpl.n 801286a <__swsetup_r+0x5a>
|
|
8012844: 6b61 ldr r1, [r4, #52] @ 0x34
|
|
8012846: b141 cbz r1, 801285a <__swsetup_r+0x4a>
|
|
8012848: f104 0344 add.w r3, r4, #68 @ 0x44
|
|
801284c: 4299 cmp r1, r3
|
|
801284e: d002 beq.n 8012856 <__swsetup_r+0x46>
|
|
8012850: 4628 mov r0, r5
|
|
8012852: f7fe ffd9 bl 8011808 <_free_r>
|
|
8012856: 2300 movs r3, #0
|
|
8012858: 6363 str r3, [r4, #52] @ 0x34
|
|
801285a: 89a3 ldrh r3, [r4, #12]
|
|
801285c: f023 0324 bic.w r3, r3, #36 @ 0x24
|
|
8012860: 81a3 strh r3, [r4, #12]
|
|
8012862: 2300 movs r3, #0
|
|
8012864: 6063 str r3, [r4, #4]
|
|
8012866: 6923 ldr r3, [r4, #16]
|
|
8012868: 6023 str r3, [r4, #0]
|
|
801286a: 89a3 ldrh r3, [r4, #12]
|
|
801286c: f043 0308 orr.w r3, r3, #8
|
|
8012870: 81a3 strh r3, [r4, #12]
|
|
8012872: 6923 ldr r3, [r4, #16]
|
|
8012874: b94b cbnz r3, 801288a <__swsetup_r+0x7a>
|
|
8012876: 89a3 ldrh r3, [r4, #12]
|
|
8012878: f403 7320 and.w r3, r3, #640 @ 0x280
|
|
801287c: f5b3 7f00 cmp.w r3, #512 @ 0x200
|
|
8012880: d003 beq.n 801288a <__swsetup_r+0x7a>
|
|
8012882: 4621 mov r1, r4
|
|
8012884: 4628 mov r0, r5
|
|
8012886: f000 f83f bl 8012908 <__smakebuf_r>
|
|
801288a: f9b4 300c ldrsh.w r3, [r4, #12]
|
|
801288e: f013 0201 ands.w r2, r3, #1
|
|
8012892: d00a beq.n 80128aa <__swsetup_r+0x9a>
|
|
8012894: 2200 movs r2, #0
|
|
8012896: 60a2 str r2, [r4, #8]
|
|
8012898: 6962 ldr r2, [r4, #20]
|
|
801289a: 4252 negs r2, r2
|
|
801289c: 61a2 str r2, [r4, #24]
|
|
801289e: 6922 ldr r2, [r4, #16]
|
|
80128a0: b942 cbnz r2, 80128b4 <__swsetup_r+0xa4>
|
|
80128a2: f013 0080 ands.w r0, r3, #128 @ 0x80
|
|
80128a6: d1c5 bne.n 8012834 <__swsetup_r+0x24>
|
|
80128a8: bd38 pop {r3, r4, r5, pc}
|
|
80128aa: 0799 lsls r1, r3, #30
|
|
80128ac: bf58 it pl
|
|
80128ae: 6962 ldrpl r2, [r4, #20]
|
|
80128b0: 60a2 str r2, [r4, #8]
|
|
80128b2: e7f4 b.n 801289e <__swsetup_r+0x8e>
|
|
80128b4: 2000 movs r0, #0
|
|
80128b6: e7f7 b.n 80128a8 <__swsetup_r+0x98>
|
|
80128b8: 2000001c .word 0x2000001c
|
|
|
|
080128bc <__swhatbuf_r>:
|
|
80128bc: b570 push {r4, r5, r6, lr}
|
|
80128be: 460c mov r4, r1
|
|
80128c0: f9b1 100e ldrsh.w r1, [r1, #14]
|
|
80128c4: 2900 cmp r1, #0
|
|
80128c6: b096 sub sp, #88 @ 0x58
|
|
80128c8: 4615 mov r5, r2
|
|
80128ca: 461e mov r6, r3
|
|
80128cc: da0d bge.n 80128ea <__swhatbuf_r+0x2e>
|
|
80128ce: 89a3 ldrh r3, [r4, #12]
|
|
80128d0: f013 0f80 tst.w r3, #128 @ 0x80
|
|
80128d4: f04f 0100 mov.w r1, #0
|
|
80128d8: bf14 ite ne
|
|
80128da: 2340 movne r3, #64 @ 0x40
|
|
80128dc: f44f 6380 moveq.w r3, #1024 @ 0x400
|
|
80128e0: 2000 movs r0, #0
|
|
80128e2: 6031 str r1, [r6, #0]
|
|
80128e4: 602b str r3, [r5, #0]
|
|
80128e6: b016 add sp, #88 @ 0x58
|
|
80128e8: bd70 pop {r4, r5, r6, pc}
|
|
80128ea: 466a mov r2, sp
|
|
80128ec: f000 f848 bl 8012980 <_fstat_r>
|
|
80128f0: 2800 cmp r0, #0
|
|
80128f2: dbec blt.n 80128ce <__swhatbuf_r+0x12>
|
|
80128f4: 9901 ldr r1, [sp, #4]
|
|
80128f6: f401 4170 and.w r1, r1, #61440 @ 0xf000
|
|
80128fa: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
|
|
80128fe: 4259 negs r1, r3
|
|
8012900: 4159 adcs r1, r3
|
|
8012902: f44f 6380 mov.w r3, #1024 @ 0x400
|
|
8012906: e7eb b.n 80128e0 <__swhatbuf_r+0x24>
|
|
|
|
08012908 <__smakebuf_r>:
|
|
8012908: 898b ldrh r3, [r1, #12]
|
|
801290a: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
|
|
801290c: 079d lsls r5, r3, #30
|
|
801290e: 4606 mov r6, r0
|
|
8012910: 460c mov r4, r1
|
|
8012912: d507 bpl.n 8012924 <__smakebuf_r+0x1c>
|
|
8012914: f104 0347 add.w r3, r4, #71 @ 0x47
|
|
8012918: 6023 str r3, [r4, #0]
|
|
801291a: 6123 str r3, [r4, #16]
|
|
801291c: 2301 movs r3, #1
|
|
801291e: 6163 str r3, [r4, #20]
|
|
8012920: b003 add sp, #12
|
|
8012922: bdf0 pop {r4, r5, r6, r7, pc}
|
|
8012924: ab01 add r3, sp, #4
|
|
8012926: 466a mov r2, sp
|
|
8012928: f7ff ffc8 bl 80128bc <__swhatbuf_r>
|
|
801292c: 9f00 ldr r7, [sp, #0]
|
|
801292e: 4605 mov r5, r0
|
|
8012930: 4639 mov r1, r7
|
|
8012932: 4630 mov r0, r6
|
|
8012934: f7fd f936 bl 800fba4 <_malloc_r>
|
|
8012938: b948 cbnz r0, 801294e <__smakebuf_r+0x46>
|
|
801293a: f9b4 300c ldrsh.w r3, [r4, #12]
|
|
801293e: 059a lsls r2, r3, #22
|
|
8012940: d4ee bmi.n 8012920 <__smakebuf_r+0x18>
|
|
8012942: f023 0303 bic.w r3, r3, #3
|
|
8012946: f043 0302 orr.w r3, r3, #2
|
|
801294a: 81a3 strh r3, [r4, #12]
|
|
801294c: e7e2 b.n 8012914 <__smakebuf_r+0xc>
|
|
801294e: 89a3 ldrh r3, [r4, #12]
|
|
8012950: 6020 str r0, [r4, #0]
|
|
8012952: f043 0380 orr.w r3, r3, #128 @ 0x80
|
|
8012956: 81a3 strh r3, [r4, #12]
|
|
8012958: 9b01 ldr r3, [sp, #4]
|
|
801295a: e9c4 0704 strd r0, r7, [r4, #16]
|
|
801295e: b15b cbz r3, 8012978 <__smakebuf_r+0x70>
|
|
8012960: f9b4 100e ldrsh.w r1, [r4, #14]
|
|
8012964: 4630 mov r0, r6
|
|
8012966: f000 f81d bl 80129a4 <_isatty_r>
|
|
801296a: b128 cbz r0, 8012978 <__smakebuf_r+0x70>
|
|
801296c: 89a3 ldrh r3, [r4, #12]
|
|
801296e: f023 0303 bic.w r3, r3, #3
|
|
8012972: f043 0301 orr.w r3, r3, #1
|
|
8012976: 81a3 strh r3, [r4, #12]
|
|
8012978: 89a3 ldrh r3, [r4, #12]
|
|
801297a: 431d orrs r5, r3
|
|
801297c: 81a5 strh r5, [r4, #12]
|
|
801297e: e7cf b.n 8012920 <__smakebuf_r+0x18>
|
|
|
|
08012980 <_fstat_r>:
|
|
8012980: b538 push {r3, r4, r5, lr}
|
|
8012982: 4d07 ldr r5, [pc, #28] @ (80129a0 <_fstat_r+0x20>)
|
|
8012984: 2300 movs r3, #0
|
|
8012986: 4604 mov r4, r0
|
|
8012988: 4608 mov r0, r1
|
|
801298a: 4611 mov r1, r2
|
|
801298c: 602b str r3, [r5, #0]
|
|
801298e: f7f0 ff39 bl 8003804 <_fstat>
|
|
8012992: 1c43 adds r3, r0, #1
|
|
8012994: d102 bne.n 801299c <_fstat_r+0x1c>
|
|
8012996: 682b ldr r3, [r5, #0]
|
|
8012998: b103 cbz r3, 801299c <_fstat_r+0x1c>
|
|
801299a: 6023 str r3, [r4, #0]
|
|
801299c: bd38 pop {r3, r4, r5, pc}
|
|
801299e: bf00 nop
|
|
80129a0: 20008984 .word 0x20008984
|
|
|
|
080129a4 <_isatty_r>:
|
|
80129a4: b538 push {r3, r4, r5, lr}
|
|
80129a6: 4d06 ldr r5, [pc, #24] @ (80129c0 <_isatty_r+0x1c>)
|
|
80129a8: 2300 movs r3, #0
|
|
80129aa: 4604 mov r4, r0
|
|
80129ac: 4608 mov r0, r1
|
|
80129ae: 602b str r3, [r5, #0]
|
|
80129b0: f7f0 ff38 bl 8003824 <_isatty>
|
|
80129b4: 1c43 adds r3, r0, #1
|
|
80129b6: d102 bne.n 80129be <_isatty_r+0x1a>
|
|
80129b8: 682b ldr r3, [r5, #0]
|
|
80129ba: b103 cbz r3, 80129be <_isatty_r+0x1a>
|
|
80129bc: 6023 str r3, [r4, #0]
|
|
80129be: bd38 pop {r3, r4, r5, pc}
|
|
80129c0: 20008984 .word 0x20008984
|
|
|
|
080129c4 <_init>:
|
|
80129c4: b5f8 push {r3, r4, r5, r6, r7, lr}
|
|
80129c6: bf00 nop
|
|
80129c8: bcf8 pop {r3, r4, r5, r6, r7}
|
|
80129ca: bc08 pop {r3}
|
|
80129cc: 469e mov lr, r3
|
|
80129ce: 4770 bx lr
|
|
|
|
080129d0 <_fini>:
|
|
80129d0: b5f8 push {r3, r4, r5, r6, r7, lr}
|
|
80129d2: bf00 nop
|
|
80129d4: bcf8 pop {r3, r4, r5, r6, r7}
|
|
80129d6: bc08 pop {r3}
|
|
80129d8: 469e mov lr, r3
|
|
80129da: 4770 bx lr
|