CHDK_DE Vorschauversion  Trunk Rev. 5298
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
boot.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.h"
+ Include-Abhängigkeitsdiagramm für boot.c:

gehe zum Quellcode dieser Datei

Funktionen

void task_CaptSeq ()
 
void task_InitFileModules ()
 
void task_RotaryEncoder ()
 
void task_MovieRecord ()
 
void task_ExpDrv ()
 
void handle_jogdial ()
 
void spytask (long ua, long ub, long uc, long ud, long ue, long uf)
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 
void init_required_fw_features (void)
 

Variablen

const char *const new_sa = &_end
 

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

104  {
105  asm volatile ( // 0xfc02000c
106 " movw r0, #0x4000\n"
107 " movt r0, #0\n"
108 " mov sp, r0\n"
109 " bl sub_fc02007e\n"
110 " ldr r2, =0xc0242010\n"
111 " ldr r1, [r2]\n"
112 " orr r1, r1, #1\n"
113 " str r1, [r2]\n"
114 " ldr r0, =0xfcd4742c\n" // code copied from ROM
115 " ldr r1, =0x010e1000\n" // to RAM
116 " ldr r3, =0x01107bd0\n"
117 "loc_fc02002a:\n"
118 " cmp r1, r3\n"
119 " itt lo\n"
120 " ldrlo r2, [r0], #4\n"
121 " strlo r2, [r1], #4\n"
122 " blo loc_fc02002a\n"
123 " ldr r0, =0x010e1000\n"
124 " ldr r1, =0x00026bd0\n"
125 " bl sub_fc11f606\n" // cache stuff for RAM code
126 " ldr r0, =0xfcd6dffc\n" // code copied from ROM
127 " ldr r1, =0xbfe10800\n" // to TCM
128 " ldr r3, =0xbfe17419\n"
129 "loc_fc020046:\n"
130 " cmp r1, r3\n"
131 " itt lo\n"
132 " ldrlo r2, [r0], #4\n"
133 " strlo r2, [r1], #4\n"
134 " blo loc_fc020046\n"
135 // Install CreateTask patch
136 // use half words in case source or destination not word aligned
137  "adr r0, patch_CreateTask\n" // src: Patch data
138  "ldr r1, =hook_CreateTask\n" // dest: Address to patch (hook_ has thumb bit off)
139  "add r2, r0, #8\n" // two words
140 "task_hook_loop:\n"
141  "ldrh r3, [r0],#2\n"
142  "strh r3, [r1],#2\n"
143  "cmp r0,r2\n"
144  "blo task_hook_loop\n"
145 " ldr r0, =0xfcd1e5d4\n"
146 " ldr r1, =0x00008000\n" // DATA copied
147 " ldr r3, =0x00030e58\n" // to RAM
148 "loc_fc02005a:\n"
149 " cmp r1, r3\n"
150 " itt lo\n"
151 " ldrlo r2, [r0], #4\n"
152 " strlo r2, [r1], #4\n"
153 " blo loc_fc02005a\n"
154 " ldr r3, =0x00030e58\n" // BSS
155 " ldr r1, =0x003c3998\n"
156 " mov.w r2, #0\n"
157 "loc_fc020070:\n"
158 " cmp r3, r1\n"
159 " it lo\n"
160 " strlo r2, [r3], #4\n"
161 " blo loc_fc020070\n"
162 " b.w sub_fc055894_my\n"
163 
164  "patch_CreateTask:\n"
165  "ldr.w pc, [pc,#0]\n" // Do jump to absolute address CreateTask_my
166  ".long CreateTask_my + 1\n" // has to be a thumb address
167 );
168 }
void CreateTask_spytask ( )

Definiert in Zeile 28 der Datei boot.c.

29 {
30  _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0);
31 }
void handle_jogdial ( )

Definiert in Zeile 115 der Datei kbd.c.

116 {
117  if (jogdial_stopped) {
118  // update positions in RAM
121  return 0; // return 0 to disable fw's dial handler
122  }
123  return 1;
124 }
void init_required_fw_features ( void  )

Definiert in Zeile 567 der Datei boot.c.

567  {
568  extern void _init_focus_eventflag();
569  extern void _init_nd_eventflag();
570 // extern void _init_nd_semaphore();
571  //extern void _init_zoom_semaphore(); // for MoveZoomLensWithPoint
572 
573  _init_focus_eventflag();
574  _init_nd_eventflag();
575  // for MoveIrisWithAv, based on fc54057c from Mecha.Create (but without registering eventprocs)
576  extern int av_override_semaphore;
577  extern int _CreateBinarySemaphoreStrictly(int x, int y);
578  av_override_semaphore = _CreateBinarySemaphoreStrictly(0,0);
579 // _init_nd_semaphore();
580 }
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 20 der Datei boot.c.

21 {
22  core_spytask();
23 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 5 der Datei boot.c.