Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:000002D0
- .text:000002D0 ; =============== S U B R O U T I N E =======================================
- .text:000002D0
- .text:000002D0 ; Attributes: bp-based frame
- .text:000002D0
- .text:000002D0 s3cbutton_timer_handler ; DATA XREF: s3c_button_probe+190o
- .text:000002D0 ; .text:off_2C4o
- .text:000002D0
- .text:000002D0 oldR3 = -0x1C
- .text:000002D0 oldR4 = -0x18
- .text:000002D0 oldR5 = -0x14
- .text:000002D0 oldR6 = -0x10
- .text:000002D0 oldR11 = -0xC
- .text:000002D0 oldSP = -8
- .text:000002D0 oldLR = -4
- .text:000002D0
- .text:000002D0 MOV R12, SP
- .text:000002D4 STMFD SP!, {R3-R6,R11,R12,LR,PC}
- .text:000002D8 SUB R11, R12, #4
- .text:000002DC MOV R0, #0x84 ; 'ä'
- .text:000002E0 BL __gpio_get_value
- .text:000002E4 LDR R2, =input
- .text:000002E8 LDR R3, [R2,#0x20]
- .text:000002EC CMP R0, R3
- .text:000002F0 MOV R4, R0
- .text:000002F4 BEQ loc_32C
- .text:000002F8 CMP R0, #0
- .text:000002FC LDR R3, =s3c_button_device_driver
- .text:00000300 MOVEQ R1, #1
- .text:00000304 LDRNE R0, [R2]
- .text:00000308 LDREQ R0, [R2]
- .text:0000030C MOVNE R1, #1
- .text:00000310 LDRNE R2, [R3,#0x158]
- .text:00000314 MOVNE R3, #0
- .text:00000318 LDREQ R2, [R3,#0x158]
- .text:0000031C MOVEQ R3, R1
- .text:00000320 BL input_event
- .text:00000324 LDR R3, =input
- .text:00000328 STR R4, [R3,#0x20]
- .text:0000032C
- .text:0000032C loc_32C ; CODE XREF: s3cbutton_timer_handler+24j
- .text:0000032C MOV R0, #0x81 ; 'ü'
- .text:00000330 LDR R5, =input
- .text:00000334 BL __gpio_get_value
- .text:00000338 LDR R3, [R5,#0x24]
- .text:0000033C CMP R0, R3
- .text:00000340 MOV R4, R0
- .text:00000344 BEQ loc_3B4
- .text:00000348 CMP R0, #0
- .text:0000034C MOVNE R1, #1
- .text:00000350 LDRNE R0, [R5]
- .text:00000354 MOVNE R3, #0
- .text:00000358 BNE loc_394
- .text:0000035C LDR R2, =jiffies
- .text:00000360 MOV R0, #0x7D0
- .text:00000364 LDR R3, [R5,#0x3C]
- .text:00000368 LDR R6, [R2]
- .text:0000036C RSB R6, R3, R6
- .text:00000370 BL msecs_to_jiffies
- .text:00000374 CMP R6, R0
- .text:00000378 MOVCS R1, #1
- .text:0000037C LDRCS R0, [R5]
- .text:00000380 MOVCS R3, R1
- .text:00000384 BCS loc_394
- .text:00000388 LDR R0, =aDropRepeatKeyP ; "drop repeat key POWER\n"
- .text:0000038C BL printk
- .text:00000390 B loc_3B4
- .text:00000394 ; ---------------------------------------------------------------------------
- .text:00000394
- .text:00000394 loc_394 ; CODE XREF: s3cbutton_timer_handler+88j
- .text:00000394 ; s3cbutton_timer_handler+B4j
- .text:00000394 LDR R2, =s3c_button_device_driver
- .text:00000398 LDR R2, [R2,#0x15C]
- .text:0000039C BL input_event
- .text:000003A0 LDR R2, =jiffies
- .text:000003A4 LDR R3, =input
- .text:000003A8 LDR R2, [R2]
- .text:000003AC STR R4, [R3,#0x24]
- .text:000003B0 STR R2, [R3,#0x3C]
- .text:000003B4
- .text:000003B4 loc_3B4 ; CODE XREF: s3cbutton_timer_handler+74j
- .text:000003B4 ; s3cbutton_timer_handler+C0j
- .text:000003B4 MOV R0, #0x9F ; 'č'
- .text:000003B8 BL __gpio_get_value
- .text:000003BC LDR R2, =input
- .text:000003C0 LDR R3, [R2,#0x28]
- .text:000003C4 CMP R0, R3
- .text:000003C8 MOV R4, R0
- .text:000003CC BEQ loc_404
- .text:000003D0 CMP R0, #0
- .text:000003D4 LDR R3, =s3c_button_device_driver
- .text:000003D8 MOVEQ R1, #1
- .text:000003DC LDRNE R0, [R2]
- .text:000003E0 LDREQ R0, [R2]
- .text:000003E4 MOVNE R1, #1
- .text:000003E8 LDRNE R2, [R3,#0x160]
- .text:000003EC MOVNE R3, #0
- .text:000003F0 LDREQ R2, [R3,#0x160]
- .text:000003F4 MOVEQ R3, R1
- .text:000003F8 BL input_event
- .text:000003FC LDR R3, =input
- .text:00000400 STR R4, [R3,#0x28]
- .text:00000404
- .text:00000404 loc_404 ; CODE XREF: s3cbutton_timer_handler+FCj
- .text:00000404 MOV R0, #0xA0 ; 'á'
- .text:00000408 BL __gpio_get_value
- .text:0000040C LDR R2, =input
- .text:00000410 LDR R3, [R2,#0x2C]
- .text:00000414 CMP R0, R3
- .text:00000418 MOV R4, R0
- .text:0000041C BEQ loc_454
- .text:00000420 CMP R0, #0
- .text:00000424 LDR R3, =s3c_button_device_driver
- .text:00000428 MOVEQ R1, #1
- .text:0000042C LDRNE R0, [R2]
- .text:00000430 LDREQ R0, [R2]
- .text:00000434 MOVNE R1, #1
- .text:00000438 LDRNE R2, [R3,#0x164]
- .text:0000043C MOVNE R3, #0
- .text:00000440 LDREQ R2, [R3,#0x164]
- .text:00000444 MOVEQ R3, R1
- .text:00000448 BL input_event
- .text:0000044C LDR R3, =input
- .text:00000450 STR R4, [R3,#0x2C]
- .text:00000454
- .text:00000454 loc_454 ; CODE XREF: s3cbutton_timer_handler+14Cj
- .text:00000454 MOV R0, #0x8C ; 'î'
- .text:00000458 BL __gpio_get_value
- .text:0000045C LDR R2, =input
- .text:00000460 LDR R3, [R2,#0x30]
- .text:00000464 CMP R0, R3
- .text:00000468 MOV R4, R0
- .text:0000046C BEQ loc_4A4
- .text:00000470 CMP R0, #0
- .text:00000474 LDR R3, =s3c_button_device_driver
- .text:00000478 MOVEQ R1, #1
- .text:0000047C LDRNE R0, [R2]
- .text:00000480 LDREQ R0, [R2]
- .text:00000484 MOVNE R1, #1
- .text:00000488 LDRNE R2, [R3,#0x168]
- .text:0000048C MOVNE R3, #0
- .text:00000490 LDREQ R2, [R3,#0x168]
- .text:00000494 MOVEQ R3, R1
- .text:00000498 BL input_event
- .text:0000049C LDR R3, =input
- .text:000004A0 STR R4, [R3,#0x30]
- .text:000004A4
- .text:000004A4 loc_4A4 ; CODE XREF: s3cbutton_timer_handler+19Cj
- .text:000004A4 MOV R0, #0x8D ; 'Ź'
- .text:000004A8 BL __gpio_get_value
- .text:000004AC LDR R2, =input
- .text:000004B0 LDR R3, [R2,#0x34]
- .text:000004B4 CMP R0, R3
- .text:000004B8 MOV R4, R0
- .text:000004BC BEQ loc_4F4
- .text:000004C0 CMP R0, #0
- .text:000004C4 LDR R3, =s3c_button_device_driver
- .text:000004C8 MOVEQ R1, #1
- .text:000004CC LDRNE R0, [R2]
- .text:000004D0 LDREQ R0, [R2]
- .text:000004D4 MOVNE R1, #1
- .text:000004D8 LDRNE R2, [R3,#0x16C]
- .text:000004DC MOVNE R3, #0
- .text:000004E0 LDREQ R2, [R3,#0x16C]
- .text:000004E4 MOVEQ R3, R1
- .text:000004E8 BL input_event
- .text:000004EC LDR R3, =input
- .text:000004F0 STR R4, [R3,#0x34]
- .text:000004F4
- .text:000004F4 loc_4F4 ; CODE XREF: s3cbutton_timer_handler+1ECj
- .text:000004F4 LDR R3, =jiffies
- .text:000004F8 MOV R0, #0x50 ; 'P'
- .text:000004FC LDR R4, [R3]
- .text:00000500 BL msecs_to_jiffies
- .text:00000504 ADD R1, R0, R4
- .text:00000508 LDR R0, =timer
- .text:0000050C BL mod_timer
- .text:00000510 LDMFD SP, {R3-R6,R11,SP,PC}
- .text:00000510 ; End of function s3cbutton_timer_handler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement