comparison pirelli/fw-disasm @ 243:83715e0c65de

pirelli/fw-disasm: first round of ABB functions
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 23 Dec 2017 08:27:26 +0000
parents 5eca9fccd706
children f40f069b0d06
comparison
equal deleted inserted replaced
242:5eca9fccd706 243:83715e0c65de
478 406c4: e4d13001 ldrb r3, [r1], #1 478 406c4: e4d13001 ldrb r3, [r1], #1
479 406c8: e4c03001 strb r3, [r0], #1 479 406c8: e4c03001 strb r3, [r0], #1
480 406cc: e2522001 subs r2, r2, #1 480 406cc: e2522001 subs r2, r2, #1
481 406d0: 1afffffb bne 0x406c4 481 406d0: 1afffffb bne 0x406c4
482 406d4: e8bd8001 ldmia sp!, {r0, pc} 482 406d4: e8bd8001 ldmia sp!, {r0, pc}
483
484 $ABB_Sem_Create:
485 3491ee: b500 push {lr}
486 3491f0: 48f2 ldr r0, =0x17741e0 ; via 0x3495bc
487 3491f2: a1f0 add r1, pc, #960 ; 0x3c0
488 3491f4: 2201 mov r2, #1
489 3491f6: 2306 mov r3, #6
490 3491f8: f0b0 fb88 bl 0x3f990c ; $SMCE_Create_Semaphore
491 3491fc: bd00 pop {pc}
492
493 $ABB_Wait_IBIC_Access:
494 3491fe: b500 push {lr}
495 349200: 48ef ldr r0, =0x33450 ; via 0x3495c0
496 349202: f099 fe6c bl 0x3e2ede ; $convert_nanosec_to_cycles
497 349206: f099 fee4 bl 0x3e2fd2 ; $wait_ARM_cycles
498 34920a: bd00 pop {pc}
499
500 $ABB_Write_Register_on_page:
501 34920c: b500 push {lr}
502 34920e: b082 sub sp, #8
503 349210: 466b mov r3, sp
504 349212: 809a strh r2, [r3, #4]
505 349214: 466a mov r2, sp
506 349216: 8051 strh r1, [r2, #2]
507 349218: 4669 mov r1, sp
508 34921a: 8008 strh r0, [r1, #0]
509 34921c: 48e7 ldr r0, =0x17741e0 ; via 0x3495bc
510 34921e: 2100 mov r1, #0
511 349220: 43c9 mvn r1, r1
512 349222: f0b0 fb63 bl 0x3f98ec ; $SMCE_Obtain_Semaphore
513 349226: 49f9 ldr r1, =0xfffe3000 ; via 0x34960c
514 349228: 2011 mov r0, #17 ; 0x11
515 34922a: 880a ldrh r2, [r1, #0]
516 34922c: 4310 orr r0, r2
517 34922e: 8008 strh r0, [r1, #0]
518 349230: 4668 mov r0, sp
519 349232: 4995 ldr r1, =0xfffe3006 ; via 0x349488
520 349234: 8809 ldrh r1, [r1, #0]
521 349236: 80c1 strh r1, [r0, #6]
522 349238: 8800 ldrh r0, [r0, #0]
523 34923a: f7ff ff4c bl 0x3490d6
524 34923e: 4668 mov r0, sp
525 349240: 8840 ldrh r0, [r0, #2]
526 349242: 4669 mov r1, sp
527 349244: 8889 ldrh r1, [r1, #4]
528 349246: f7ff ff6a bl 0x34911e
529 34924a: 2001 mov r0, #1
530 34924c: f7ff ff43 bl 0x3490d6
531 349250: 48da ldr r0, =0x17741e0 ; via 0x3495bc
532 349252: f0b0 fb43 bl 0x3f98dc ; $SMCE_Release_Semaphore
533 349256: b002 add sp, #8
534 349258: bd00 pop {pc}
535
536 $ABB_Read_Register_on_page:
537 34925a: b500 push {lr}
538 34925c: b082 sub sp, #8
539 34925e: 466a mov r2, sp
540 349260: 8051 strh r1, [r2, #2]
541 349262: 4669 mov r1, sp
542 349264: 8008 strh r0, [r1, #0]
543 349266: 48d5 ldr r0, =0x17741e0 ; via 0x3495bc
544 349268: 2100 mov r1, #0
545 34926a: 43c9 mvn r1, r1
546 34926c: f0b0 fb3e bl 0x3f98ec
547 349270: 49e6 ldr r1, =0xfffe3000 ; via 0x34960c
548 349272: 2031 mov r0, #49 ; 0x31
549 349274: 880a ldrh r2, [r1, #0]
550 349276: 4310 orr r0, r2
551 349278: 8008 strh r0, [r1, #0]
552 34927a: 4668 mov r0, sp
553 34927c: 4982 ldr r1, =0xfffe3006 ; via 0x349488
554 34927e: 8809 ldrh r1, [r1, #0]
555 349280: 8081 strh r1, [r0, #4]
556 349282: 8800 ldrh r0, [r0, #0]
557 349284: f7ff ff27 bl 0x3490d6
558 349288: 4668 mov r0, sp
559 34928a: 8840 ldrh r0, [r0, #2]
560 34928c: f7ff ff6d bl 0x34916a
561 349290: 4669 mov r1, sp
562 349292: 80c8 strh r0, [r1, #6]
563 349294: 2001 mov r0, #1
564 349296: f7ff ff1e bl 0x3490d6
565 34929a: 48c8 ldr r0, =0x17741e0 ; via 0x3495bc
566 34929c: f0b0 fb1e bl 0x3f98dc
567 3492a0: 4668 mov r0, sp
568 3492a2: 88c0 ldrh r0, [r0, #6]
569 3492a4: b002 add sp, #8
570 3492a6: bd00 pop {pc}
571
572 $ABB_free_13M:
573 3492a8: b500 push {lr}
574 3492aa: b081 sub sp, #4
575 3492ac: 49d7 ldr r1, =0xfffe3000 ; via 0x34960c
576 3492ae: 2011 mov r0, #17 ; 0x11
577 3492b0: 880a ldrh r2, [r1, #0]
578 3492b2: 4310 orr r0, r2
579 3492b4: 8008 strh r0, [r1, #0]
580 3492b6: 4669 mov r1, sp
581 3492b8: 4873 ldr r0, =0xfffe3006 ; via 0x349488
582 3492ba: 8800 ldrh r0, [r0, #0]
583 3492bc: 8008 strh r0, [r1, #0]
584 3492be: 2001 mov r0, #1
585 3492c0: f7ff ff09 bl 0x3490d6
586 3492c4: 200a mov r0, #10 ; 0xa
587 3492c6: 2108 mov r1, #8
588 3492c8: f7ff ff29 bl 0x34911e
589 3492cc: f7ff ff97 bl 0x3491fe
590 3492d0: 200a mov r0, #10 ; 0xa
591 3492d2: 2108 mov r1, #8
592 3492d4: f7ff ff23 bl 0x34911e
593 3492d8: f7ff ff91 bl 0x3491fe
594 3492dc: b001 add sp, #4
595 3492de: bd00 pop {pc}
596
597 $ABB_stop_13M:
598 3492e0: b500 push {lr}
599 3492e2: b081 sub sp, #4
600 3492e4: 49c9 ldr r1, =0xfffe3000 ; via 0x34960c
601 3492e6: 2011 mov r0, #17 ; 0x11
602 3492e8: 880a ldrh r2, [r1, #0]
603 3492ea: 4310 orr r0, r2
604 3492ec: 8008 strh r0, [r1, #0]
605 3492ee: 4669 mov r1, sp
606 3492f0: 4865 ldr r0, =0xfffe3006 ; via 0x349488
607 3492f2: 8800 ldrh r0, [r0, #0]
608 3492f4: 8008 strh r0, [r1, #0]
609 3492f6: 2001 mov r0, #1
610 3492f8: f7ff feed bl 0x3490d6
611 3492fc: 200a mov r0, #10 ; 0xa
612 3492fe: 2104 mov r1, #4
613 349300: f7ff ff0d bl 0x34911e
614 349304: f7ff ff7b bl 0x3491fe
615 349308: b001 add sp, #4
616 34930a: bd00 pop {pc}
617
618 $ABB_Read_Status:
619 34930c: b500 push {lr}
620 34930e: b081 sub sp, #4
621 349310: 48aa ldr r0, =0x17741e0 ; via 0x3495bc
622 349312: 2100 mov r1, #0
623 349314: 43c9 mvn r1, r1
624 349316: f0b0 fae9 bl 0x3f98ec ; $SMCE_Obtain_Semaphore
625 34931a: 49bc ldr r1, =0xfffe3000 ; via 0x34960c
626 34931c: 2011 mov r0, #17 ; 0x11
627 34931e: 880a ldrh r2, [r1, #0]
628 349320: 4310 orr r0, r2
629 349322: 8008 strh r0, [r1, #0]
630 349324: 4669 mov r1, sp
631 349326: 4858 ldr r0, =0xfffe3006 ; via 0x349488
632 349328: 8800 ldrh r0, [r0, #0]
633 34932a: 8008 strh r0, [r1, #0]
634 34932c: 2001 mov r0, #1
635 34932e: f7ff fed2 bl 0x3490d6
636 349332: 2001 mov r0, #1
637 349334: f7ff fecf bl 0x3490d6
638 349338: 203e mov r0, #62 ; 0x3e
639 34933a: f7ff ff16 bl 0x34916a
640 34933e: 4669 mov r1, sp
641 349340: 8048 strh r0, [r1, #2]
642 349342: 489e ldr r0, =0x17741e0 ; via 0x3495bc
643 349344: f0b0 faca bl 0x3f98dc ; $SMCE_Release_Semaphore
644 349348: 4668 mov r0, sp
645 34934a: 8840 ldrh r0, [r0, #2]
646 34934c: b001 add sp, #4
647 34934e: bd00 pop {pc}
648
649 $ABB_on:
650 349350: b500 push {lr}
651 349352: b083 sub sp, #12 ; 0xc
652 349354: 466a mov r2, sp
653 349356: 7091 strb r1, [r2, #2]
654 349358: 4669 mov r1, sp
655 34935a: 8008 strh r0, [r1, #0]
656 34935c: 4897 ldr r0, =0x17741e0 ; via 0x3495bc
657 34935e: 2100 mov r1, #0
658 349360: 43c9 mvn r1, r1
659 349362: f0b0 fac3 bl 0x3f98ec
660 349366: 4668 mov r0, sp
661 349368: 7880 ldrb r0, [r0, #2]
662 34936a: 2800 cmp r0, #0
663 34936c: d003 beq 0x349376
664 34936e: f7ff ff9b bl 0x3492a8
665 349372: f7ff ff99 bl 0x3492a8
666 349376: 49a5 ldr r1, =0xfffe3000 ; via 0x34960c
667 349378: 2031 mov r0, #49 ; 0x31
668 34937a: 880a ldrh r2, [r1, #0]
669 34937c: 4310 orr r0, r2
670 34937e: 8008 strh r0, [r1, #0]
671 349380: 4669 mov r1, sp
672 349382: 4841 ldr r0, =0xfffe3006 ; via 0x349488
673 349384: 8800 ldrh r0, [r0, #0]
674 349386: 8088 strh r0, [r1, #4]
675 349388: 2001 mov r0, #1
676 34938a: f7ff fea4 bl 0x3490d6
677 34938e: 2008 mov r0, #8
678 349390: 21ff mov r1, #255 ; 0xff
679 349392: 3156 add r1, #86 ; 0x56
680 349394: f7ff fec3 bl 0x34911e
681 349398: 2002 mov r0, #2
682 34939a: f7ff fe9c bl 0x3490d6
683 34939e: 202a mov r0, #42 ; 0x2a
684 3493a0: 2101 mov r1, #1
685 3493a2: f7ff febc bl 0x34911e
686 3493a6: 2026 mov r0, #38 ; 0x26
687 3493a8: 2101 mov r1, #1
688 3493aa: f7ff feb8 bl 0x34911e
689 3493ae: 2028 mov r0, #40 ; 0x28
690 3493b0: 211b mov r1, #27 ; 0x1b
691 3493b2: f7ff feb4 bl 0x34911e
692 3493b6: 2010 mov r0, #16 ; 0x10
693 3493b8: f7ff fe8d bl 0x3490d6
694 3493bc: 203c mov r0, #60 ; 0x3c
695 3493be: 2107 mov r1, #7
696 3493c0: f7ff fead bl 0x34911e
697 3493c4: 2002 mov r0, #2
698 3493c6: f7ff fe86 bl 0x3490d6
699 3493ca: 2028 mov r0, #40 ; 0x28
700 3493cc: 2101 mov r1, #1
701 3493ce: f7ff fea6 bl 0x34911e
702 3493d2: 2026 mov r0, #38 ; 0x26
703 3493d4: 2100 mov r1, #0
704 3493d6: f7ff fea2 bl 0x34911e
705 3493da: 201a mov r0, #26 ; 0x1a
706 3493dc: 2160 mov r1, #96 ; 0x60
707 3493de: f7ff fe9e bl 0x34911e
708 3493e2: 2026 mov r0, #38 ; 0x26
709 3493e4: 2101 mov r1, #1
710 3493e6: f7ff fe9a bl 0x34911e
711 3493ea: 2028 mov r0, #40 ; 0x28
712 3493ec: 211a mov r1, #26 ; 0x1a
713 3493ee: f7ff fe96 bl 0x34911e
714 3493f2: 2001 mov r0, #1
715 3493f4: f7ff fe6f bl 0x3490d6
716 3493f8: 4668 mov r0, sp
717 3493fa: 8800 ldrh r0, [r0, #0]
718 3493fc: 0980 lsr r0, r0, #6
719 3493fe: 0400 lsl r0, r0, #16
720 349400: 0c01 lsr r1, r0, #16
721 349402: 2008 mov r0, #8
722 349404: f7ff fe8b bl 0x34911e
723 349408: 4668 mov r0, sp
724 34940a: 8800 ldrh r0, [r0, #0]
725 34940c: 0c00 lsr r0, r0, #16
726 34940e: d303 bcc 0x349418
727 349410: 2038 mov r0, #56 ; 0x38
728 349412: 2101 mov r1, #1
729 349414: f7ff fe83 bl 0x34911e
730 349418: 2002 mov r0, #2
731 34941a: f7ff fe5c bl 0x3490d6
732 34941e: 203c mov r0, #60 ; 0x3c
733 349420: f7ff fea3 bl 0x34916a
734 349424: 05c0 lsl r0, r0, #23
735 349426: 0f00 lsr r0, r0, #28
736 349428: 0140 lsl r0, r0, #5
737 34942a: 9002 str r0, [sp, #8]
738 34942c: 201f mov r0, #31 ; 0x1f
739 34942e: 9902 ldr r1, [sp, #8]
740 349430: 4308 orr r0, r1
741 349432: 0400 lsl r0, r0, #16
742 349434: 0c01 lsr r1, r0, #16
743 349436: 203c mov r0, #60 ; 0x3c
744 349438: f7ff fe71 bl 0x34911e
745 34943c: 203e mov r0, #62 ; 0x3e
746 34943e: f7ff fe94 bl 0x34916a
747 349442: 05c0 lsl r0, r0, #23
748 349444: 0f00 lsr r0, r0, #28
749 349446: 0140 lsl r0, r0, #5
750 349448: 9002 str r0, [sp, #8]
751 34944a: 4668 mov r0, sp
752 34944c: 8901 ldrh r1, [r0, #8]
753 34944e: 203e mov r0, #62 ; 0x3e
754 349450: f7ff fe65 bl 0x34911e
755 349454: 2001 mov r0, #1
756 349456: f7ff fe3e bl 0x3490d6
757 34945a: 2008 mov r0, #8
758 34945c: 210a mov r1, #10 ; 0xa
759 34945e: f7ff fe5e bl 0x34911e
760 349462: 48e5 ldr r0, =0xf4240 ; via 0x3497f8
761 349464: f099 fd3b bl 0x3e2ede
762 349468: f099 fdb3 bl 0x3e2fd2
763 34946c: 2008 mov r0, #8
764 34946e: 2105 mov r1, #5
765 349470: f7ff fe55 bl 0x34911e
766 349474: 4851 ldr r0, =0x17741e0 ; via 0x3495bc
767 349476: f0b0 fa31 bl 0x3f98dc
768 34947a: b003 add sp, #12 ; 0xc
769 34947c: bd00 pop {pc}
770 34947e: 46c0 nop (mov r8, r8)
483 771
484 $Init_Target: 772 $Init_Target:
485 3bb7d4: b570 push {r4, r5, r6, lr} 773 3bb7d4: b570 push {r4, r5, r6, lr}
486 3bb7d6: b081 sub sp, #4 774 3bb7d6: b081 sub sp, #4
487 3bb7d8: 4c96 ldr r4, =0xfffef008 ; via 0x3bba34 775 3bb7d8: 4c96 ldr r4, =0xfffef008 ; via 0x3bba34
722 3bb9c4: f027 fb3e bl 0x3e3044 1010 3bb9c4: f027 fb3e bl 0x3e3044
723 3bb9c8: bd70 pop {r4, r5, r6, pc} 1011 3bb9c8: bd70 pop {r4, r5, r6, pc}
724 1012
725 $Init_Drivers: 1013 $Init_Drivers:
726 3bb9ca: b500 push {lr} 1014 3bb9ca: b500 push {lr}
727 3bb9cc: f78d fc0f bl 0x3491ee 1015 3bb9cc: f78d fc0f bl 0x3491ee ; $ABB_Sem_Create
728 3bb9d0: f5a6 fa25 bl 0x161e1e 1016 3bb9d0: f5a6 fa25 bl 0x161e1e
729 3bb9d4: f7ad fda3 bl 0x36951e 1017 3bb9d4: f7ad fda3 bl 0x36951e
730 3bb9d8: f039 fb95 bl 0x3f5106 1018 3bb9d8: f039 fb95 bl 0x3f5106
731 3bb9dc: f6f5 f927 bl 0x2b0c2e 1019 3bb9dc: f6f5 f927 bl 0x2b0c2e
732 3bb9e0: f720 fb16 bl 0x2dc010 1020 3bb9e0: f720 fb16 bl 0x2dc010
1639 83cb94: 4770 bx lr 1927 83cb94: 4770 bx lr
1640 83cb96: 46c0 nop (mov r8, r8) 1928 83cb96: 46c0 nop (mov r8, r8)
1641 1929
1642 XRAM data: 1930 XRAM data:
1643 1931
1932 0x17741e0: abb_sem
1933
1644 0x1774e38: SPI_GBL_INFO_PTR 1934 0x1774e38: SPI_GBL_INFO_PTR
1645 0x1774e3c: spi_error_ft 1935 0x1774e3c: spi_error_ft
1646 1936
1647 0x1774e70: pwr_env_ctrl_blk 1937 0x1774e70: pwr_env_ctrl_blk
1648 0x1774e74: pwr_error_ft 1938 0x1774e74: pwr_error_ft