CHDK_DE Vorschauversion  Trunk Rev. 5637
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
filewrite.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "../../../generic/filewrite.c"
+ Include-Abhängigkeitsdiagramm für filewrite.c:

gehe zum Quellcode dieser Datei

Datenstrukturen

struct  cam_ptp_data_chunk
 
struct  fwt_data_struct
 

Makrodefinitionen

#define MAX_CHUNKS_FOR_FWT   7
 

Funktionen

void __attribute__ ((naked, noinline))
 

Makro-Dokumentation

#define MAX_CHUNKS_FOR_FWT   7

Definiert in Zeile 12 der Datei filewrite.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

!!

Definiert in Zeile 32 der Datei filewrite.c.

32  {
33 asm volatile (
34 " STMFD SP!, {R1-R5,LR} \n"
35 " LDR R4, =0xBDC0 \n"
36 
37 "loc_FFAB70E0:\n"
38 " LDR R0, [R4, #0x10] \n"
39 " MOV R2, #0 \n"
40 " ADD R1, SP, #8 \n"
41 " BL sub_FF83AE20 /*_ReceiveMessageQueue*/ \n"
42 " CMP R0, #0 \n"
43 " LDRNE R1, =0x33F \n"
44 " LDRNE R0, =0xFFAB71C8 /*'dwFWrite.c'*/ \n"
45 " BLNE _DebugAssert \n"
46 " LDR R0, [SP, #8] \n"
47 " LDR R1, [R0] \n"
48 " CMP R1, #9 \n"
49 " ADDLS PC, PC, R1, LSL#2 \n"
50 " B loc_FFAB70E0 \n"
51 " B loc_FFAB71A8 \n"
52 " B loc_FFAB71A8 \n"
53 " B loc_FFAB71A8 \n"
54 " B loc_FFAB71A8 \n"
55 " B loc_FFAB71A8 \n"
56 " B loc_FFAB71A8 \n"
57 " B loc_FFAB71A8 \n"
58 " B loc_FFAB71B0 \n"
59 " B loc_FFAB713C \n"
60 " B loc_FFAB71A0 \n"
61 
62 "loc_FFAB713C:\n"
63 " MOV R0, #0 \n"
64 " STR R0, [SP] \n"
65 
66 "loc_FFAB7144:\n"
67 " LDR R0, [R4, #0x10] \n"
68 " MOV R1, SP \n"
69 " BL sub_FF83B064 /*_GetNumberOfPostedMessages*/ \n"
70 " LDR R0, [SP] \n"
71 " CMP R0, #0 \n"
72 " BEQ loc_FFAB7170 \n"
73 " LDR R0, [R4, #0x10] \n"
74 " MOV R2, #0 \n"
75 " ADD R1, SP, #4 \n"
76 " BL sub_FF83AE20 /*_ReceiveMessageQueue*/ \n"
77 " B loc_FFAB7144 \n"
78 
79 "loc_FFAB7170:\n"
80 " LDR R0, [R4, #4] \n"
81 " CMN R0, #1 \n"
82 " BEQ loc_FFAB7194 \n"
83 " BL fwt_close \n" // --> Patched. Old value = _Close.
84 " MVN R0, #0 \n"
85 " STR R0, [R4, #4] \n"
86 " LDR R0, =0x1000E0 \n"
87 " BL sub_FF8759D4 \n"
88 " BL sub_FF873C30 \n"
89 
90 "loc_FFAB7194:\n"
91 " LDR R0, [R4, #0xC] \n"
92 " BL _GiveSemaphore \n"
93 " B loc_FFAB70E0 \n"
94 
95 "loc_FFAB71A0:\n"
96 " BL sub_FFAB73B0_my \n" // --> Patched. Old value = 0xFFAB73B0.
97 " B loc_FFAB70E0 \n"
98 
99 "loc_FFAB71A8:\n"
100 " BL sub_FFAB74F0_my \n" // --> Patched. Old value = 0xFFAB74F0.
101 " B loc_FFAB70E0 \n"
102 
103 "loc_FFAB71B0:\n"
104 " BL sub_FFAB6F64_my \n" // --> Patched. Old value = 0xFFAB6F64.
105 " B loc_FFAB70E0 \n"
106 );
107 }