CHDK_DE Vorschauversion  Trunk Rev. 5405
 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 JogDial_task_my (void)
 
void task_CaptSeq ()
 
void task_InitFileModules ()
 
void task_RotaryEncoder ()
 
void task_MovieRecord ()
 
void task_ExpDrv ()
 
void task_FileWrite ()
 
void spytask (long ua, long ub, long uc, long ud, long ue, long uf)
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 
volatile int jogdial_stopped
 
short * jog_position
 *-------------------------------------------------------------------— Mehr ...
 

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)  )

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

!!

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

ASM1989 -> In sx200:FF857190 //"Mounter.c"

ASM1989 -> In sx200:FF81B284 // DebugAssert

Definiert in Zeile 53 der Datei boot.c.

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

Definiert in Zeile 35 der Datei boot.c.

36 {
37  _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0);
38 }
void JogDial_task_my ( void  )
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 27 der Datei boot.c.

28 {
29  core_spytask();
30 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )

Variablen-Dokumentation

short* jog_position

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

Definiert in Zeile 43 der Datei boot.c.

volatile int jogdial_stopped

Definiert in Zeile 81 der Datei kbd.c.

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.