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

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define offsetof(TYPE, MEMBER)   ((int) &((TYPE *)0)->MEMBER)
 

Funktionen

void CreateTask_PhySw ()
 
void CreateTask_spytask ()
 
void task_CaptSeqTask_my ()
 
void taskCreateHook (int *p)
 
void taskCreateHook2 (int *p)
 
void __attribute__ ((naked, noinline))
 
void spytask (long ua, long ub, long uc, long ud, long ue, long uf)
 

Variablen

const char *const new_sa = &_end
 

Makro-Dokumentation

#define offsetof (   TYPE,
  MEMBER 
)    ((int) &((TYPE *)0)->MEMBER)

Definiert in Zeile 6 der Datei boot.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 29 der Datei boot.c.

29  {
30 
31  asm volatile (
32  "LDR R1, =0xC0410000\n"
33  "MOV R0, #0\n"
34  "STR R0, [R1]\n"
35  "MOV R1, #0x78\n"
36 "loc_FFC0001C:\n"
37  "MCR p15, 0, R1,c1,c0\n"
38  "MOV R1, #0\n"
39  "MCR p15, 0, R1,c7,c10, 4\n"
40 "loc_FFC00028:\n"
41  "MCR p15, 0, R1,c7,c5\n"
42  "MCR p15, 0, R1,c7,c6\n"
43  "MOV R0, #0x3D\n"
44  "MCR p15, 0, R0,c6,c0\n"
45  "MOV R0, #0xC000002F\n"
46  "MCR p15, 0, R0,c6,c1\n"
47  "MOV R0, #0x31\n"
48  "MCR p15, 0, R0,c6,c2\n"
49  "LDR R0, =0x10000031\n"
50  "MCR p15, 0, R0,c6,c3\n"
51  "MOV R0, #0x40000017\n"
52  "MCR p15, 0, R0,c6,c4\n"
53  "LDR R0, =0xFFC0002B\n"
54  "MCR p15, 0, R0,c6,c5\n"
55  "MOV R0, #0x34\n"
56  "MCR p15, 0, R0,c2,c0\n"
57  "MOV R0, #0x34\n"
58  "MCR p15, 0, R0,c2,c0, 1\n"
59  "MOV R0, #0x34\n"
60  "MCR p15, 0, R0,c3,c0\n"
61  "LDR R0, =0x3333330\n"
62  "MCR p15, 0, R0,c5,c0, 2\n"
63  "LDR R0, =0x3333330\n"
64  "MCR p15, 0, R0,c5,c0, 3\n"
65  "MRC p15, 0, R0,c1,c0\n"
66  "ORR R0, R0, #0x1000\n"
67  "ORR R0, R0, #4\n"
68  "ORR R0, R0, #1\n"
69  "MCR p15, 0, R0,c1,c0\n"
70  "MOV R1, #0x40000006\n"
71  "MCR p15, 0, R1,c9,c1\n"
72  "MOV R1, #6\n"
73  "MCR p15, 0, R1,c9,c1, 1\n"
74  "MRC p15, 0, R1,c1,c0\n"
75  "ORR R1, R1, #0x50000\n"
76  "MCR p15, 0, R1,c1,c0\n"
77  "LDR R2, =0xC0200000\n"
78  "MOV R1, #1\n"
79  "STR R1, [R2,#0x10C]\n"
80  "MOV R1, #0xFF\n"
81  "STR R1, [R2,#0xC]\n"
82  "STR R1, [R2,#0x1C]\n"
83  "STR R1, [R2,#0x2C]\n"
84  "STR R1, [R2,#0x3C]\n"
85  "STR R1, [R2,#0x4C]\n"
86  "STR R1, [R2,#0x5C]\n"
87  "STR R1, [R2,#0x6C]\n"
88  "STR R1, [R2,#0x7C]\n"
89  "STR R1, [R2,#0x8C]\n"
90  "STR R1, [R2,#0x9C]\n"
91  "STR R1, [R2,#0xAC]\n"
92  "STR R1, [R2,#0xBC]\n"
93  "STR R1, [R2,#0xCC]\n"
94  "STR R1, [R2,#0xDC]\n"
95  "STR R1, [R2,#0xEC]\n"
96  "STR R1, [R2,#0xFC]\n"
97  "LDR R1, =0xC0400008\n"
98  "LDR R2, =0x430005\n"
99  "STR R2, [R1]\n"
100  "MOV R1, #1\n"
101  "LDR R2, =0xC0243100\n"
102  "STR R2, [R1]\n"
103  "LDR R2, =0xC0242010\n"
104  "LDR R1, [R2]\n"
105  "ORR R1, R1, #1\n"
106  "STR R1, [R2]\n"
107  "LDR R0, =0xFFF036C8\n"
108  "LDR R1, =0x1900\n"
109  "LDR R3, =0xB294\n"
110 "loc_FFC0013C:\n"
111  "CMP R1, R3\n"
112  "LDRCC R2, [R0],#4\n"
113  "STRCC R2, [R1],#4\n"
114  "BCC loc_FFC0013C\n"
115  "LDR R1, =0x133D38\n"
116  "MOV R2, #0\n"
117 "loc_FFC00154:\n"
118  "CMP R3, R1\n"
119  "STRCC R2, [R3],#4\n"
120  "BCC loc_FFC00154\n"
121 // "B loc_FFC00358\n"
122  "B sub_FFC00358_my\n" // ---------------->
123  );
124 };
void CreateTask_PhySw ( )
void CreateTask_spytask ( )

Definiert in Zeile 34 der Datei boot.c.

34  {
35  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
36 };
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 348 der Datei boot.c.

349 {
350  core_spytask();
351 }
void task_CaptSeqTask_my ( )
void taskCreateHook ( int *  p)

Definiert in Zeile 14 der Datei boot.c.

14  {
15 p-=17;
16 if (p[0]==0xFFC736C4) p[0]=(int)init_file_modules_task; // 1.00c *
17 if (p[0]==0xFFC5C1E8) p[0]=(int)task_CaptSeqTask_my; // 1.00c *
18 if (p[0]==0xFFC95048) p[0]=(int)exp_drv_task; // 1.00c *
19 if (p[0]==0xFFD138CC) p[0]=(int)movie_record_task; // 1.00c *
20 }
void taskCreateHook2 ( int *  p)

Definiert in Zeile 22 der Datei boot.c.

22  {
23 p-=17;
24 if (p[0]==0xFFC736C4) p[0]=(int)init_file_modules_task;
25 if (p[0]==0xFFC95048) p[0]=(int)exp_drv_task;
26 }

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 7 der Datei boot.c.