CHDK_DE Vorschauversion  Trunk Rev. 5248
 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

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 init_required_fw_features (void)
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 
volatile int jogdial_stopped
 

Makro-Dokumentation

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

Definiert in Zeile 6 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 70 der Datei boot.c.

70  {
71 // *(int*)0xd20b0884 = 0x4d0002;
72  asm volatile ( // 0xfc02000c -s=0xfc02000d -c=30 -f=chdk
73 " ldr.w sp, =0x80010000\n"
74 " bl sub_fc020064\n"
75 " ldr r2, =0xc0242010\n"
76 " ldr r1, [r2]\n"
77 " orr r1, r1, #1\n"
78 " str r1, [r2]\n"
79 " ldr r0, =0xfcd16b64\n"
80 " ldr r1, =0x010e1000\n"
81 " ldr r3, =0x0110daa4\n"
82 "loc_fc020024:\n"
83 " cmp r1, r3\n"
84 " itt lo\n"
85 " ldrlo r2, [r0], #4\n"
86 " strlo r2, [r1], #4\n"
87 " blo loc_fc020024\n"
88 // Install CreateTask patch
89 // use half words in case source or destination not word aligned
90  "adr r0, patch_CreateTask\n" // src: Patch data
91  "ldr r1, =hook_CreateTask\n" // dest: Address to patch (hook_ has thumb bit off)
92  "add r2, r0, #8\n" // two words
93 "task_hook_loop:\n"
94  "ldrh r3, [r0],#2\n"
95  "strh r3, [r1],#2\n"
96  "cmp r0,r2\n"
97  "blo task_hook_loop\n"
98 " ldr r0, =0x010e1000\n"
99 " ldr r1, =0x0002caa4\n"
100 " bl sub_fc1361ce\n"
101 " ldr r0, =0xfccec558\n"
102 " ldr r1, =0x00008000\n"
103 " ldr r3, =0x0003260c\n"
104 "loc_fc020040:\n"
105 " cmp r1, r3\n"
106 " itt lo\n"
107 " ldrlo r2, [r0], #4\n"
108 " strlo r2, [r1], #4\n"
109 " blo loc_fc020040\n"
110 " ldr r3, =0x0003260c\n"
111 " ldr r1, =0x003a8bb0\n"
112 " mov.w r2, #0\n"
113 "loc_fc020056:\n"
114 " cmp r3, r1\n"
115 " it lo\n"
116 " strlo r2, [r3], #4\n"
117 " blo loc_fc020056\n"
118 //" b.w loc_fc05eec0\n"
119 " b.w sub_fc05eec0_my\n" // continue
120 
121  "patch_CreateTask:\n"
122  "ldr.w pc, [pc,#0]\n" // Do jump to absolute address CreateTask_my
123  ".long CreateTask_my + 1\n" // has to be a thumb address
124 
125 
126 );
127 }
void CreateTask_spytask ( )

Definiert in Zeile 31 der Datei boot.c.

32 {
33 // *(int*)0xd20b0884 = 0x4d0002;
34 
35  _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0);
36 }
void init_required_fw_features ( void  )

Definiert in Zeile 44 der Datei boot.c.

44  {
45  extern void _init_focus_eventflag();
46  extern void _init_nd_eventflag();
47 // extern void _init_nd_semaphore();
48  //extern void _init_zoom_semaphore(); // for MoveZoomLensWithPoint
49 
50  _init_focus_eventflag();
51  _init_nd_eventflag();
52  // for MoveIrisWithAv, based on fc3d1a74 (but without registers eventprocs)
53  extern int av_override_semaphore;
54  extern int _CreateBinarySemaphoreStrictly(int x, int y);
55  av_override_semaphore = _CreateBinarySemaphoreStrictly(0,0);
56 // _init_nd_semaphore();
57 }
void JogDial_task_my ( void  )
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 23 der Datei boot.c.

24 {
25  core_spytask();
26 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )

Variablen-Dokumentation

volatile int jogdial_stopped

Definiert in Zeile 81 der Datei kbd.c.

const char* const new_sa = &_end

Definiert in Zeile 8 der Datei boot.c.