Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .text:000002D0
  2. .text:000002D0 ; =============== S U B R O U T I N E =======================================
  3. .text:000002D0
  4. .text:000002D0 ; Attributes: bp-based frame
  5. .text:000002D0
  6. .text:000002D0 s3cbutton_timer_handler                 ; DATA XREF: s3c_button_probe+190o
  7. .text:000002D0                                         ; .text:off_2C4o
  8. .text:000002D0
  9. .text:000002D0 oldR3           = -0x1C
  10. .text:000002D0 oldR4           = -0x18
  11. .text:000002D0 oldR5           = -0x14
  12. .text:000002D0 oldR6           = -0x10
  13. .text:000002D0 oldR11          = -0xC
  14. .text:000002D0 oldSP           = -8
  15. .text:000002D0 oldLR           = -4
  16. .text:000002D0
  17. .text:000002D0                 MOV     R12, SP
  18. .text:000002D4                 STMFD   SP!, {R3-R6,R11,R12,LR,PC}
  19. .text:000002D8                 SUB     R11, R12, #4
  20. .text:000002DC                 MOV     R0, #0x84 ; 'ä'
  21. .text:000002E0                 BL      __gpio_get_value
  22. .text:000002E4                 LDR     R2, =input
  23. .text:000002E8                 LDR     R3, [R2,#0x20]
  24. .text:000002EC                 CMP     R0, R3
  25. .text:000002F0                 MOV     R4, R0
  26. .text:000002F4                 BEQ     loc_32C
  27. .text:000002F8                 CMP     R0, #0
  28. .text:000002FC                 LDR     R3, =s3c_button_device_driver
  29. .text:00000300                 MOVEQ   R1, #1
  30. .text:00000304                 LDRNE   R0, [R2]
  31. .text:00000308                 LDREQ   R0, [R2]
  32. .text:0000030C                 MOVNE   R1, #1
  33. .text:00000310                 LDRNE   R2, [R3,#0x158]
  34. .text:00000314                 MOVNE   R3, #0
  35. .text:00000318                 LDREQ   R2, [R3,#0x158]
  36. .text:0000031C                 MOVEQ   R3, R1
  37. .text:00000320                 BL      input_event
  38. .text:00000324                 LDR     R3, =input
  39. .text:00000328                 STR     R4, [R3,#0x20]
  40. .text:0000032C
  41. .text:0000032C loc_32C                                 ; CODE XREF: s3cbutton_timer_handler+24j
  42. .text:0000032C                 MOV     R0, #0x81 ; 'ü'
  43. .text:00000330                 LDR     R5, =input
  44. .text:00000334                 BL      __gpio_get_value
  45. .text:00000338                 LDR     R3, [R5,#0x24]
  46. .text:0000033C                 CMP     R0, R3
  47. .text:00000340                 MOV     R4, R0
  48. .text:00000344                 BEQ     loc_3B4
  49. .text:00000348                 CMP     R0, #0
  50. .text:0000034C                 MOVNE   R1, #1
  51. .text:00000350                 LDRNE   R0, [R5]
  52. .text:00000354                 MOVNE   R3, #0
  53. .text:00000358                 BNE     loc_394
  54. .text:0000035C                 LDR     R2, =jiffies
  55. .text:00000360                 MOV     R0, #0x7D0
  56. .text:00000364                 LDR     R3, [R5,#0x3C]
  57. .text:00000368                 LDR     R6, [R2]
  58. .text:0000036C                 RSB     R6, R3, R6
  59. .text:00000370                 BL      msecs_to_jiffies
  60. .text:00000374                 CMP     R6, R0
  61. .text:00000378                 MOVCS   R1, #1
  62. .text:0000037C                 LDRCS   R0, [R5]
  63. .text:00000380                 MOVCS   R3, R1
  64. .text:00000384                 BCS     loc_394
  65. .text:00000388                 LDR     R0, =aDropRepeatKeyP ; "drop repeat key POWER\n"
  66. .text:0000038C                 BL      printk
  67. .text:00000390                 B       loc_3B4
  68. .text:00000394 ; ---------------------------------------------------------------------------
  69. .text:00000394
  70. .text:00000394 loc_394                                 ; CODE XREF: s3cbutton_timer_handler+88j
  71. .text:00000394                                         ; s3cbutton_timer_handler+B4j
  72. .text:00000394                 LDR     R2, =s3c_button_device_driver
  73. .text:00000398                 LDR     R2, [R2,#0x15C]
  74. .text:0000039C                 BL      input_event
  75. .text:000003A0                 LDR     R2, =jiffies
  76. .text:000003A4                 LDR     R3, =input
  77. .text:000003A8                 LDR     R2, [R2]
  78. .text:000003AC                 STR     R4, [R3,#0x24]
  79. .text:000003B0                 STR     R2, [R3,#0x3C]
  80. .text:000003B4
  81. .text:000003B4 loc_3B4                                 ; CODE XREF: s3cbutton_timer_handler+74j
  82. .text:000003B4                                         ; s3cbutton_timer_handler+C0j
  83. .text:000003B4                 MOV     R0, #0x9F ; 'č'
  84. .text:000003B8                 BL      __gpio_get_value
  85. .text:000003BC                 LDR     R2, =input
  86. .text:000003C0                 LDR     R3, [R2,#0x28]
  87. .text:000003C4                 CMP     R0, R3
  88. .text:000003C8                 MOV     R4, R0
  89. .text:000003CC                 BEQ     loc_404
  90. .text:000003D0                 CMP     R0, #0
  91. .text:000003D4                 LDR     R3, =s3c_button_device_driver
  92. .text:000003D8                 MOVEQ   R1, #1
  93. .text:000003DC                 LDRNE   R0, [R2]
  94. .text:000003E0                 LDREQ   R0, [R2]
  95. .text:000003E4                 MOVNE   R1, #1
  96. .text:000003E8                 LDRNE   R2, [R3,#0x160]
  97. .text:000003EC                 MOVNE   R3, #0
  98. .text:000003F0                 LDREQ   R2, [R3,#0x160]
  99. .text:000003F4                 MOVEQ   R3, R1
  100. .text:000003F8                 BL      input_event
  101. .text:000003FC                 LDR     R3, =input
  102. .text:00000400                 STR     R4, [R3,#0x28]
  103. .text:00000404
  104. .text:00000404 loc_404                                 ; CODE XREF: s3cbutton_timer_handler+FCj
  105. .text:00000404                 MOV     R0, #0xA0 ; 'á'
  106. .text:00000408                 BL      __gpio_get_value
  107. .text:0000040C                 LDR     R2, =input
  108. .text:00000410                 LDR     R3, [R2,#0x2C]
  109. .text:00000414                 CMP     R0, R3
  110. .text:00000418                 MOV     R4, R0
  111. .text:0000041C                 BEQ     loc_454
  112. .text:00000420                 CMP     R0, #0
  113. .text:00000424                 LDR     R3, =s3c_button_device_driver
  114. .text:00000428                 MOVEQ   R1, #1
  115. .text:0000042C                 LDRNE   R0, [R2]
  116. .text:00000430                 LDREQ   R0, [R2]
  117. .text:00000434                 MOVNE   R1, #1
  118. .text:00000438                 LDRNE   R2, [R3,#0x164]
  119. .text:0000043C                 MOVNE   R3, #0
  120. .text:00000440                 LDREQ   R2, [R3,#0x164]
  121. .text:00000444                 MOVEQ   R3, R1
  122. .text:00000448                 BL      input_event
  123. .text:0000044C                 LDR     R3, =input
  124. .text:00000450                 STR     R4, [R3,#0x2C]
  125. .text:00000454
  126. .text:00000454 loc_454                                 ; CODE XREF: s3cbutton_timer_handler+14Cj
  127. .text:00000454                 MOV     R0, #0x8C ; 'î'
  128. .text:00000458                 BL      __gpio_get_value
  129. .text:0000045C                 LDR     R2, =input
  130. .text:00000460                 LDR     R3, [R2,#0x30]
  131. .text:00000464                 CMP     R0, R3
  132. .text:00000468                 MOV     R4, R0
  133. .text:0000046C                 BEQ     loc_4A4
  134. .text:00000470                 CMP     R0, #0
  135. .text:00000474                 LDR     R3, =s3c_button_device_driver
  136. .text:00000478                 MOVEQ   R1, #1
  137. .text:0000047C                 LDRNE   R0, [R2]
  138. .text:00000480                 LDREQ   R0, [R2]
  139. .text:00000484                 MOVNE   R1, #1
  140. .text:00000488                 LDRNE   R2, [R3,#0x168]
  141. .text:0000048C                 MOVNE   R3, #0
  142. .text:00000490                 LDREQ   R2, [R3,#0x168]
  143. .text:00000494                 MOVEQ   R3, R1
  144. .text:00000498                 BL      input_event
  145. .text:0000049C                 LDR     R3, =input
  146. .text:000004A0                 STR     R4, [R3,#0x30]
  147. .text:000004A4
  148. .text:000004A4 loc_4A4                                 ; CODE XREF: s3cbutton_timer_handler+19Cj
  149. .text:000004A4                 MOV     R0, #0x8D ; 'Ź'
  150. .text:000004A8                 BL      __gpio_get_value
  151. .text:000004AC                 LDR     R2, =input
  152. .text:000004B0                 LDR     R3, [R2,#0x34]
  153. .text:000004B4                 CMP     R0, R3
  154. .text:000004B8                 MOV     R4, R0
  155. .text:000004BC                 BEQ     loc_4F4
  156. .text:000004C0                 CMP     R0, #0
  157. .text:000004C4                 LDR     R3, =s3c_button_device_driver
  158. .text:000004C8                 MOVEQ   R1, #1
  159. .text:000004CC                 LDRNE   R0, [R2]
  160. .text:000004D0                 LDREQ   R0, [R2]
  161. .text:000004D4                 MOVNE   R1, #1
  162. .text:000004D8                 LDRNE   R2, [R3,#0x16C]
  163. .text:000004DC                 MOVNE   R3, #0
  164. .text:000004E0                 LDREQ   R2, [R3,#0x16C]
  165. .text:000004E4                 MOVEQ   R3, R1
  166. .text:000004E8                 BL      input_event
  167. .text:000004EC                 LDR     R3, =input
  168. .text:000004F0                 STR     R4, [R3,#0x34]
  169. .text:000004F4
  170. .text:000004F4 loc_4F4                                 ; CODE XREF: s3cbutton_timer_handler+1ECj
  171. .text:000004F4                 LDR     R3, =jiffies
  172. .text:000004F8                 MOV     R0, #0x50 ; 'P'
  173. .text:000004FC                 LDR     R4, [R3]
  174. .text:00000500                 BL      msecs_to_jiffies
  175. .text:00000504                 ADD     R1, R0, R4
  176. .text:00000508                 LDR     R0, =timer
  177. .text:0000050C                 BL      mod_timer
  178. .text:00000510                 LDMFD   SP, {R3-R6,R11,SP,PC}
  179. .text:00000510 ; End of function s3cbutton_timer_handler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement