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 "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 task_TouchPanel ()
 
void pause ()
 
void led_on ()
 
void led_off ()
 
void blink ()
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 

Makro-Dokumentation

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

Definiert in Zeile 10 der Datei boot.c.

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

__MovieRecorder_c__100

__MovieRecorder_c__100

Definiert in Zeile 63 der Datei boot.c.

63  {
64 asm volatile (
65 " LDR R1, =0xC0410000 \n"
66 " MOV R0, #0 \n"
67 " STR R0, [R1] \n"
68 " MOV R1, #0x78 \n"
69 " MCR p15, 0, R1, c1, c0 \n"
70 " MOV R1, #0 \n"
71 " MCR p15, 0, R1, c7, c10, 4 \n"
72 " MCR p15, 0, R1, c7, c5 \n"
73 " MCR p15, 0, R1, c7, c6 \n"
74 " MOV R0, #0x3D \n"
75 " MCR p15, 0, R0, c6, c0 \n"
76 " MOV R0, #0xC000002F \n"
77 " MCR p15, 0, R0, c6, c1 \n"
78 " MOV R0, #0x37 \n"
79 " MCR p15, 0, R0, c6, c2 \n"
80 " MOV R0, #0x40000037 \n"
81 " MCR p15, 0, R0, c6, c3 \n"
82 " MOV R0, #0x80000017 \n"
83 " MCR p15, 0, R0, c6, c4 \n"
84 " LDR R0, =0xFF00002F \n"
85 " MCR p15, 0, R0, c6, c5 \n"
86 " LDR R0, =0xD000002B \n"
87 " MCR p15, 0, R0, c6, c7 \n"
88 " MOV R0, #0x34 \n"
89 " MCR p15, 0, R0, c2, c0 \n"
90 " MOV R0, #0x34 \n"
91 " MCR p15, 0, R0, c2, c0, 1 \n"
92 " MOV R0, #0x34 \n"
93 " MCR p15, 0, R0, c3, c0 \n"
94 " LDR R0, =0x33333330 \n"
95 " MCR p15, 0, R0, c5, c0, 2 \n"
96 " LDR R0, =0x33333330 \n"
97 " MCR p15, 0, R0, c5, c0, 3 \n"
98 " MRC p15, 0, R0, c1, c0 \n"
99 " ORR R0, R0, #0x1000 \n"
100 " ORR R0, R0, #4 \n"
101 " ORR R0, R0, #1 \n"
102 " MCR p15, 0, R0, c1, c0 \n"
103 " MOV R1, #0x80000006 \n"
104 " MCR p15, 0, R1, c9, c1 \n"
105 " MOV R1, #6 \n"
106 " MCR p15, 0, R1, c9, c1, 1 \n"
107 " MRC p15, 0, R1, c1, c0 \n"
108 " ORR R1, R1, #0x50000 \n"
109 " MCR p15, 0, R1, c1, c0 \n"
110 " LDR R2, =0xC0200000 \n"
111 " MOV R1, #1 \n"
112 " STR R1, [R2, #0x10C] \n"
113 " MOV R1, #0xFF \n"
114 " STR R1, [R2, #0xC] \n"
115 " STR R1, [R2, #0x1C] \n"
116 " STR R1, [R2, #0x2C] \n"
117 " STR R1, [R2, #0x3C] \n"
118 " STR R1, [R2, #0x4C] \n"
119 " STR R1, [R2, #0x5C] \n"
120 " STR R1, [R2, #0x6C] \n"
121 " STR R1, [R2, #0x7C] \n"
122 " STR R1, [R2, #0x8C] \n"
123 " STR R1, [R2, #0x9C] \n"
124 " STR R1, [R2, #0xAC] \n"
125 " STR R1, [R2, #0xBC] \n"
126 " STR R1, [R2, #0xCC] \n"
127 " STR R1, [R2, #0xDC] \n"
128 " STR R1, [R2, #0xEC] \n"
129 " STR R1, [R2, #0xFC] \n"
130 " LDR R1, =0xC0400008 \n"
131 " LDR R2, =0x430005 \n"
132 " STR R2, [R1] \n"
133 " LDR R2, =0xC0242010 \n"
134 " LDR R1, [R2] \n"
135 " ORR R1, R1, #1 \n"
136 " STR R1, [R2] \n"
137 " LDR R0, =0xFF8E8F64 \n"
138 " LDR R1, =0x685000 \n"
139 " LDR R3, =0x6B081C \n"
140 
141 "loc_FF000138:\n"
142 " CMP R1, R3 \n"
143 " LDRCC R2, [R0], #4 \n"
144 " STRCC R2, [R1], #4 \n"
145 " BCC loc_FF000138 \n"
146 " LDR R0, =0xFF8CF224 \n"
147 " LDR R1, =0x1900 \n"
148 " LDR R3, =0x1B640 \n"
149 
150 "loc_FF000154:\n"
151 " CMP R1, R3 \n"
152 " LDRCC R2, [R0], #4 \n"
153 " STRCC R2, [R1], #4 \n"
154 " BCC loc_FF000154 \n"
155 " LDR R1, =0x2F8AEC \n"
156 " MOV R2, #0 \n"
157 
158 "loc_FF00016C:\n"
159 " CMP R3, R1 \n"
160 " STRCC R2, [R3], #4 \n"
161 " BCC loc_FF00016C \n"
162 " BL blink \n"
163 
164 /* Install task hooks via 0x193x is not possible with this new dryos version
165  So the below code patches the CreateTask function in RAM to install our
166  hook -- ERR99
167 */
168 // Install CreateTask patch
169 " LDR R0, =patch_CreateTask\n" // Patch data
170 " LDM R0, {R1,R2}\n" // Get two patch instructions
171 " LDR R0, =hook_CreateTask\n" // Address to patch
172 " STM R0, {R1,R2}\n" // Store patch instructions
173 
174 " B sub_FF00038C_my \n" // --> Patched. Old value = 0xFF00038C.
175 
176 "patch_CreateTask:\n"
177 " LDR PC, [PC,#-0x4]\n" // Do jump to absolute address CreateTask_my
178 " .long CreateTask_my\n"
179 );
180 }
void blink ( )

Definiert in Zeile 34 der Datei boot.c.

34  {
35  int i ;
36  for (i=1 ; i < 6 ; i++)
37  {
38  led_on() ;
39  pause() ;
40  led_off() ;
41  pause() ;
42  }
43 }
void CreateTask_spytask ( )

Definiert in Zeile 48 der Datei boot.c.

49 {
50  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
51 }
void led_off ( )

Definiert in Zeile 32 der Datei boot.c.

32 { *(int*)0xc022c30c = (*(int*)0xc022c30c) & 0xffffffcf; }
void led_on ( )

Definiert in Zeile 30 der Datei boot.c.

30 { *(int*)0xc022c30c = ( (*(int*)0xc022c30c) & 0xffffffcf ) | 0x20; }
void pause ( )

Definiert in Zeile 24 der Datei boot.c.

25 {
26  int i ;
27  for (i=0; i<1000000; i++) { asm volatile ("nop\n"); }
28 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_TouchPanel ( )

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 12 der Datei boot.c.