CHDK_DE Vorschauversion  Trunk Rev. 5272
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
boot.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.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 task_CaptSeq ()
 
void task_InitFileModules ()
 
void task_MovieRecord ()
 
void task_ExpDrv ()
 
void task_FileWrite ()
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 

Variablen

const char *const new_sa = &_end
 

Makro-Dokumentation

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

Definiert in Zeile 9 der Datei boot.c.

Dokumentation der Funktionen

void __attribute__ ( (naked, noinline)  )

Definiert in Zeile 36 der Datei boot.c.

36  {
37 asm volatile (
38 " LDR R1, =0xC0410000 \n"
39 " MOV R0, #0 \n"
40 " STR R0, [R1] \n"
41 " MOV R1, #0x78 \n"
42 " MCR p15, 0, R1, c1, c0 \n"
43 " MOV R1, #0 \n"
44 " MCR p15, 0, R1, c7, c10, 4 \n"
45 " MCR p15, 0, R1, c7, c5 \n"
46 " MCR p15, 0, R1, c7, c6 \n"
47 " MOV R0, #0x3D \n"
48 " MCR p15, 0, R0, c6, c0 \n"
49 " MOV R0, #0xC000002F \n"
50 " MCR p15, 0, R0, c6, c1 \n"
51 " MOV R0, #0x33 \n"
52 " MCR p15, 0, R0, c6, c2 \n"
53 " MOV R0, #0x40000033 \n"
54 " MCR p15, 0, R0, c6, c3 \n"
55 " MOV R0, #0x80000017 \n"
56 " MCR p15, 0, R0, c6, c4 \n"
57 " LDR R0, =0xFF80002D \n"
58 " MCR p15, 0, R0, c6, c5 \n"
59 " MOV R0, #0x34 \n"
60 " MCR p15, 0, R0, c2, c0 \n"
61 " MOV R0, #0x34 \n"
62 " MCR p15, 0, R0, c2, c0, 1 \n"
63 " MOV R0, #0x34 \n"
64 " MCR p15, 0, R0, c3, c0 \n"
65 " LDR R0, =0x3333330 \n"
66 " MCR p15, 0, R0, c5, c0, 2 \n"
67 " LDR R0, =0x3333330 \n"
68 " MCR p15, 0, R0, c5, c0, 3 \n"
69 " MRC p15, 0, R0, c1, c0 \n"
70 " ORR R0, R0, #0x1000 \n"
71 " ORR R0, R0, #4 \n"
72 " ORR R0, R0, #1 \n"
73 " MCR p15, 0, R0, c1, c0 \n"
74 " MOV R1, #0x80000006 \n"
75 " MCR p15, 0, R1, c9, c1 \n"
76 " MOV R1, #6 \n"
77 " MCR p15, 0, R1, c9, c1, 1 \n"
78 " MRC p15, 0, R1, c1, c0 \n"
79 " ORR R1, R1, #0x50000 \n"
80 " MCR p15, 0, R1, c1, c0 \n"
81 " LDR R2, =0xC0200000 \n"
82 " MOV R1, #1 \n"
83 " STR R1, [R2, #0x10C] \n"
84 " MOV R1, #0xFF \n"
85 " STR R1, [R2, #0xC] \n"
86 " STR R1, [R2, #0x1C] \n"
87 " STR R1, [R2, #0x2C] \n"
88 " STR R1, [R2, #0x3C] \n"
89 " STR R1, [R2, #0x4C] \n"
90 " STR R1, [R2, #0x5C] \n"
91 " STR R1, [R2, #0x6C] \n"
92 " STR R1, [R2, #0x7C] \n"
93 " STR R1, [R2, #0x8C] \n"
94 " STR R1, [R2, #0x9C] \n"
95 " STR R1, [R2, #0xAC] \n"
96 " STR R1, [R2, #0xBC] \n"
97 " STR R1, [R2, #0xCC] \n"
98 " STR R1, [R2, #0xDC] \n"
99 " STR R1, [R2, #0xEC] \n"
100 " STR R1, [R2, #0xFC] \n"
101 " LDR R1, =0xC0400008 \n"
102 " LDR R2, =0x430005 \n"
103 " STR R2, [R1] \n"
104 " LDR R2, =0xC0242010 \n"
105 " LDR R1, [R2] \n"
106 " ORR R1, R1, #1 \n"
107 " STR R1, [R2] \n"
108 " LDR R0, =0xFFC53A20 \n"
109 " LDR R1, =0x3F1000 \n"
110 " LDR R3, =0x40099C \n"
111 
112 "loc_FF810130:\n"
113 " CMP R1, R3 \n"
114 " LDRCC R2, [R0], #4 \n"
115 " STRCC R2, [R1], #4 \n"
116 " BCC loc_FF810130 \n"
117 " LDR R0, =0xFFC46DC0 \n"
118 " LDR R1, =0x1900 \n"
119 " LDR R3, =0xE560 \n"
120 
121 "loc_FF81014C:\n"
122 " CMP R1, R3 \n"
123 " LDRCC R2, [R0], #4 \n"
124 " STRCC R2, [R1], #4 \n"
125 " BCC loc_FF81014C \n"
126 " LDR R1, =0x15A048 \n"
127 " MOV R2, #0 \n"
128 
129 "loc_FF810164:\n"
130 " CMP R3, R1 \n"
131 " STRCC R2, [R3], #4 \n"
132 " BCC loc_FF810164 \n"
133 /* Install task hooks via 0x193x is not possible with this new dryos version
134  So the below code patches the CreateTask function in RAM to install our
135  hook -- ERR99
136 */
137 // Install CreateTask patch
138 " LDR R0, =patch_CreateTask\n" // Patch data
139 " LDM R0, {R1,R2}\n" // Get two patch instructions
140 " LDR R0, =hook_CreateTask\n" // Address to patch
141 " STM R0, {R1,R2}\n" // Store patch instructions
142 
143 " B sub_FF810380_my \n" // --> Patched. Old value = 0xFF810380.
144 
145 "patch_CreateTask:\n"
146 " LDR PC, [PC,#-0x4]\n" // Do jump to absolute address CreateTask_my
147 " .long CreateTask_my\n"
148 );
149 }
void CreateTask_spytask ( )

Definiert in Zeile 22 der Datei boot.c.

23 {
24  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
25 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.