CHDK_DE Vorschauversion  Trunk Rev. 5429
 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-Abhängigkeitsdiagramm für boot.c:

gehe zum Quellcode dieser Datei

Funktionen

void CreateTask_PhySw ()
 
void CreateTask_spytask ()
 
void JogDial_task_my (void)
 
void taskCreateHook (int *p)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 
void spytask (long ua, long ub, long uc, long ud, long ue, long uf)
 

Variablen

const char *const new_sa = &_end
 
volatile int jogdial_stopped
 

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 66 der Datei boot.c.

67 {
68  asm volatile (
69 " LDR R1, =0xC0410000 \n"
70 " MOV R0, #0 \n"
71 " STR R0, [R1] \n"
72 " MOV R1, #0x78 \n"
73 " MCR p15, 0, R1, c1, c0 \n"
74 " MOV R1, #0 \n"
75 " MCR p15, 0, R1, c7, c10, 4 \n"
76 " MCR p15, 0, R1, c7, c5 \n"
77 " MCR p15, 0, R1, c7, c6 \n"
78 " MOV R0, #0x3D \n"
79 " MCR p15, 0, R0, c6, c0 \n"
80 " MOV R0, #0xC000002F \n"
81 " MCR p15, 0, R0, c6, c1 \n"
82 " MOV R0, #0x35 \n"
83 " MCR p15, 0, R0, c6, c2 \n"
84 " MOV R0, #0x40000035 \n"
85 " MCR p15, 0, R0, c6, c3 \n"
86 " MOV R0, #0x80000017 \n"
87 " MCR p15, 0, R0, c6, c4 \n"
88 " LDR R0, =0xFF80002D \n"
89 " MCR p15, 0, R0, c6, c5 \n"
90 " MOV R0, #0x34 \n"
91 " MCR p15, 0, R0, c2, c0 \n"
92 " MOV R0, #0x34 \n"
93 " MCR p15, 0, R0, c2, c0, 1 \n"
94 " MOV R0, #0x34 \n"
95 " MCR p15, 0, R0, c3, c0 \n"
96 " LDR R0, =0x3333330 \n"
97 " MCR p15, 0, R0, c5, c0, 2 \n"
98 " LDR R0, =0x3333330 \n"
99 " MCR p15, 0, R0, c5, c0, 3 \n"
100 " MRC p15, 0, R0, c1, c0 \n"
101 " ORR R0, R0, #0x1000 \n"
102 " ORR R0, R0, #4 \n"
103 " ORR R0, R0, #1 \n"
104 " MCR p15, 0, R0, c1, c0 \n"
105 " MOV R1, #0x80000006 \n"
106 " MCR p15, 0, R1, c9, c1 \n"
107 " MOV R1, #6 \n"
108 " MCR p15, 0, R1, c9, c1, 1 \n"
109 " MRC p15, 0, R1, c1, c0 \n"
110 " ORR R1, R1, #0x50000 \n"
111 " MCR p15, 0, R1, c1, c0 \n"
112 " LDR R2, =0xC0200000 \n"
113 " MOV R1, #1 \n"
114 " STR R1, [R2, #0x10C] \n"
115 " MOV R1, #0xFF \n"
116 " STR R1, [R2, #0xC] \n"
117 " STR R1, [R2, #0x1C] \n"
118 " STR R1, [R2, #0x2C] \n"
119 " STR R1, [R2, #0x3C] \n"
120 " STR R1, [R2, #0x4C] \n"
121 " STR R1, [R2, #0x5C] \n"
122 " STR R1, [R2, #0x6C] \n"
123 " STR R1, [R2, #0x7C] \n"
124 " STR R1, [R2, #0x8C] \n"
125 " STR R1, [R2, #0x9C] \n"
126 " STR R1, [R2, #0xAC] \n"
127 " STR R1, [R2, #0xBC] \n"
128 " STR R1, [R2, #0xCC] \n"
129 " STR R1, [R2, #0xDC] \n"
130 " STR R1, [R2, #0xEC] \n"
131 " STR R1, [R2, #0xFC] \n"
132 " LDR R1, =0xC0400008 \n"
133 " LDR R2, =0x430005 \n"
134 " STR R2, [R1] \n"
135 " MOV R1, #1 \n"
136 " LDR R2, =0xC0243100 \n"
137 " STR R2, [R1] \n"
138 " LDR R2, =0xC0242010 \n"
139 " LDR R1, [R2] \n"
140 " ORR R1, R1, #1 \n"
141 " STR R1, [R2] \n"
142 " LDR R0, =0xFFC9A22C \n"
143 " LDR R1, =0x1900 \n"
144 " LDR R3, =0x10FE4 \n"
145 "loc_FF81013C:\n"
146 " CMP R1, R3 \n"
147 " LDRCC R2, [R0], #4 \n"
148 " STRCC R2, [R1], #4 \n"
149 " BCC loc_FF81013C \n"
150 " LDR R1, =0x16EE30 \n"
151 " MOV R2, #0 \n"
152 "loc_FF810154:\n"
153 " CMP R3, R1 \n"
154 " STRCC R2, [R3], #4 \n"
155 " BCC loc_FF810154 \n"
156 //" B sub_FF810354 \n"
157 " B sub_FF810354_my \n"
158  );
159 };
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 JogDial_task_my ( void  )
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 410 der Datei boot.c.

411 {
412  core_spytask();
413 }
void taskCreateHook ( int *  p)

Definiert in Zeile 40 der Datei boot.c.

41 {
42  p-=17;
43 
44  if (p[0] == 0xFF88322C)
45  p[0] = (int) capt_seq_task;
46 
47  if (p[0] == 0xFF98642C)
48  p[0] = (int) movie_record_task;
49 
50  if (p[0] == 0xFF8A0AA0)
51  p[0] = (int) init_file_modules_task;
52 
53  if (p[0] == 0xFF8CF1A8)
54  p[0] = (int) exp_drv_task;
55 
56  if (p[0] == 0xFF865894)
57  p[0] = (int) JogDial_task_my;
58 }

Variablen-Dokumentation

volatile int jogdial_stopped

Definiert in Zeile 81 der Datei kbd.c.

const char* const new_sa = &_end

Definiert in Zeile 6 der Datei boot.c.