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

gehe zum Quellcode dieser Datei

Funktionen

void JogDial_task_my (void)
 
void taskCreateHook (int *p)
 
void taskCreateHook2 (int *p)
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

*-------------------------------------------------------------------—

!!

IS_ERROR( hSoundHandle )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

IS_ERROR( RetCode )

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

"MOV R3, #0\n" "STR R3, [R9]\n"

TODO! below is from sd400

Definiert in Zeile 42 der Datei boot.c.

42  {
43 
44  // from start of firmware dump (0xFF81000C)
45  asm volatile (
46  "LDR R1, =0xC0410000\n"
47  "MOV R0, #0\n"
48  "STR R0, [R1]\n"
49  "MOV R1, #0x78\n"
50  "MCR p15, 0, R1,c1,c0\n"
51  "MOV R1, #0\n"
52  "MCR p15, 0, R1,c7,c10, 4\n"
53  "MCR p15, 0, R1,c7,c5\n"
54  "MCR p15, 0, R1,c7,c6\n"
55  "MOV R0, #0x3D\n"
56  "MCR p15, 0, R0,c6,c0\n"
57  "MOV R0, #0xC000002F\n"
58  "MCR p15, 0, R0,c6,c1\n"
59  "MOV R0, #0x33\n"
60  "MCR p15, 0, R0,c6,c2\n"
61  "MOV R0, #0x40000033\n"
62  "MCR p15, 0, R0,c6,c3\n"
63  "MOV R0, #0x80000017\n"
64  "MCR p15, 0, R0,c6,c4\n"
65  "LDR R0, =0xFF80002D\n"
66  "MCR p15, 0, R0,c6,c5\n"
67  "MOV R0, #0x34\n"
68  "MCR p15, 0, R0,c2,c0\n"
69  "MOV R0, #0x34\n"
70  "MCR p15, 0, R0,c2,c0, 1\n"
71  "MOV R0, #0x34\n"
72  "MCR p15, 0, R0,c3,c0\n"
73  "LDR R0, =0x3333330\n"
74  "MCR p15, 0, R0,c5,c0, 2\n"
75  "LDR R0, =0x3333330\n"
76  "MCR p15, 0, R0,c5,c0, 3\n"
77  "MRC p15, 0, R0,c1,c0\n"
78  "ORR R0, R0, #0x1000\n"
79  "ORR R0, R0, #4\n"
80  "ORR R0, R0, #1\n"
81  "MCR p15, 0, R0,c1,c0\n"
82  "MOV R1, #0x80000006\n"
83  "MCR p15, 0, R1,c9,c1\n"
84  "MOV R1, #6\n"
85  "MCR p15, 0, R1,c9,c1, 1\n"
86  "MRC p15, 0, R1,c1,c0\n"
87  "ORR R1, R1, #0x50000\n"
88  "MCR p15, 0, R1,c1,c0\n"
89  "LDR R2, =0xC0200000\n"
90  "MOV R1, #1\n"
91  "STR R1, [R2,#0x10C]\n"
92  "MOV R1, #0xFF\n"
93  "STR R1, [R2,#0xC]\n"
94  "STR R1, [R2,#0x1C]\n"
95  "STR R1, [R2,#0x2C]\n"
96  "STR R1, [R2,#0x3C]\n"
97  "STR R1, [R2,#0x4C]\n"
98  "STR R1, [R2,#0x5C]\n"
99  "STR R1, [R2,#0x6C]\n"
100  "STR R1, [R2,#0x7C]\n"
101  "STR R1, [R2,#0x8C]\n"
102  "STR R1, [R2,#0x9C]\n"
103  "STR R1, [R2,#0xAC]\n"
104  "STR R1, [R2,#0xBC]\n"
105  "STR R1, [R2,#0xCC]\n"
106  "STR R1, [R2,#0xDC]\n"
107  "STR R1, [R2,#0xEC]\n"
108  "STR R1, [R2,#0xFC]\n"
109  "LDR R1, =0xC0400008\n"
110  "LDR R2, =0x430005\n"
111  "STR R2, [R1]\n"
112  "MOV R1, #1\n"
113  "LDR R2, =0xC0243100\n"
114  "STR R2, [R1]\n"
115  "LDR R2, =0xC0242010\n"
116  "LDR R1, [R2]\n"
117  "ORR R1, R1, #1\n"
118  "STR R1, [R2]\n"
119  "LDR R0, =0xFFB53388\n"
120  "LDR R1, =0x1900\n"
121  "LDR R3, =0xFBE8\n"
122  "loc_FF81013C:\n"
123  "CMP R1, R3\n"
124  "LDRCC R2, [R0],#4\n"
125  "STRCC R2, [R1],#4\n"
126  "BCC loc_FF81013C\n"
127  "LDR R1, =0xDE578\n"
128  "MOV R2, #0\n"
129  "loc_FF810154:\n"
130  "CMP R3, R1\n"
131  "STRCC R2, [R3],#4\n"
132  "BCC loc_FF810154\n"
133  "B sub_FF8101A0_my\n" //---------->
134  );
135 };
void CreateTask_spytask ( )

Definiert in Zeile 37 der Datei boot.c.

37  {
38  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
39 };
void JogDial_task_my ( void  )
void taskCreateHook ( int *  p)

Definiert in Zeile 9 der Datei boot.c.

9  {
10  p-=17;
11  // taskcreate_CaptSeqTask -> SsShootTask
12  if (p[0]==0xFF861CFC) p[0]=(int)capt_seq_task;
13  // task_PhySw
14  if (p[0]==0xFF821814) p[0]=(int)mykbd_task;
15  // task_InitFileModules
16  if (p[0]==0xFF87C980) p[0]=(int)init_file_modules_task;
17  // via JogDail.c ref (function calls sub_FF..__JogDial.c__14)
18  if (p[0]==0xFF846338) p[0]=(int)JogDial_task_my;
19  // found @0xFF85E03C (above call to taskcreate_AviWrite)
20  if (p[0]==0xFF85E03C) p[0]=(int)movie_record_task;
21  // task_ExpDrvTask
22  if (p[0]==0xFF8A4608) p[0]=(int)exp_drv_task;
23  // task_FileWriteTask
24  if (p[0]==0xFFA1E5C0) p[0]=(int)filewritetask;
25 }
void taskCreateHook2 ( int *  p)

Definiert in Zeile 27 der Datei boot.c.

27  {
28  p-=17;
29  // task_InitFileModules
30  if (p[0]==0xFF87C980) p[0]=(int)init_file_modules_task;
31  // task_ExpDrvTask
32  if (p[0]==0xFF8A4608) p[0]=(int)exp_drv_task;
33  // task_FileWriteTask
34  if (p[0]==0xFFA1E5C0) p[0]=(int)filewritetask;
35 }

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 5 der Datei boot.c.