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

Definiert in Zeile 52 der Datei boot.c.

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

Definiert in Zeile 34 der Datei boot.c.

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

Definiert in Zeile 26 der Datei boot.c.

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

Variablen-Dokumentation

short* jog_position

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

Definiert in Zeile 42 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.