CHDK_DE Vorschauversion  Trunk Rev. 5294
 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 CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 
void init_required_fw_features (void)
 

Variablen

const char *const new_sa = &_end
 

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

31  {
32 asm volatile (
33 " LDR R1, =0xC0410000 \n"
34 " MOV R0, #0 \n"
35 " STR R0, [R1] \n"
36 " MOV R1, #0x78 \n"
37 " MCR p15, 0, R1, c1, c0 \n"
38 " MOV R1, #0 \n"
39 " MCR p15, 0, R1, c7, c10, 4 \n"
40 " MCR p15, 0, R1, c7, c5 \n"
41 " MCR p15, 0, R1, c7, c6 \n"
42 " MOV R0, #0x3D \n"
43 " MCR p15, 0, R0, c6, c0 \n"
44 " MOV R0, #0xC000002F \n"
45 " MCR p15, 0, R0, c6, c1 \n"
46 " MOV R0, #0x37 \n"
47 " MCR p15, 0, R0, c6, c2 \n"
48 " MOV R0, #0x40000037 \n"
49 " MCR p15, 0, R0, c6, c3 \n"
50 " MOV R0, #0x80000017 \n"
51 " MCR p15, 0, R0, c6, c4 \n"
52 " LDR R0, =0xFF00002F \n"
53 " MCR p15, 0, R0, c6, c5 \n"
54 " MOV R0, #0x34 \n"
55 " MCR p15, 0, R0, c2, c0 \n"
56 " MOV R0, #0x34 \n"
57 " MCR p15, 0, R0, c2, c0, 1 \n"
58 " MOV R0, #0x34 \n"
59 " MCR p15, 0, R0, c3, c0 \n"
60 " LDR R0, =0x3333330 \n"
61 " MCR p15, 0, R0, c5, c0, 2 \n"
62 " LDR R0, =0x3333330 \n"
63 " MCR p15, 0, R0, c5, c0, 3 \n"
64 " MRC p15, 0, R0, c1, c0 \n"
65 " ORR R0, R0, #0x1000 \n"
66 " ORR R0, R0, #4 \n"
67 " ORR R0, R0, #1 \n"
68 " MCR p15, 0, R0, c1, c0 \n"
69 " MOV R1, #0x80000006 \n"
70 " MCR p15, 0, R1, c9, c1 \n"
71 " MOV R1, #6 \n"
72 " MCR p15, 0, R1, c9, c1, 1 \n"
73 " MRC p15, 0, R1, c1, c0 \n"
74 " ORR R1, R1, #0x50000 \n"
75 " MCR p15, 0, R1, c1, c0 \n"
76 " LDR R2, =0xC0200000 \n"
77 " MOV R1, #1 \n"
78 " STR R1, [R2, #0x10C] \n"
79 " MVN R1, #0 \n"
80 " STR R1, [R2, #0xC] \n"
81 " STR R1, [R2, #0x1C] \n"
82 " STR R1, [R2, #0x2C] \n"
83 " STR R1, [R2, #0x3C] \n"
84 " STR R1, [R2, #0x4C] \n"
85 " STR R1, [R2, #0x5C] \n"
86 " STR R1, [R2, #0x6C] \n"
87 " STR R1, [R2, #0x7C] \n"
88 " STR R1, [R2, #0x8C] \n"
89 " STR R1, [R2, #0x9C] \n"
90 " STR R1, [R2, #0xAC] \n"
91 " STR R1, [R2, #0xBC] \n"
92 " STR R1, [R2, #0xCC] \n"
93 " STR R1, [R2, #0xDC] \n"
94 " STR R1, [R2, #0xEC] \n"
95 " STR R1, [R2, #0xFC] \n"
96 " LDR R1, =0xC0400008 \n"
97 " LDR R2, =0x430005 \n"
98 " STR R2, [R1] \n"
99 " MOV R1, #1 \n"
100 " LDR R2, =0xC0243100 \n"
101 " STR R2, [R1] \n"
102 " LDR R2, =0xC0242010 \n"
103 " LDR R1, [R2] \n"
104 " ORR R1, R1, #1 \n"
105 " STR R1, [R2] \n"
106 " LDR R0, =0xFF7CF0A8 \n"
107 " LDR R1, =0x6B1000 \n"
108 " LDR R3, =0x6E01C6 \n"
109 
110 "loc_FF02013C:\n"
111 " CMP R1, R3 \n"
112 " LDRCC R2, [R0], #4 \n"
113 " STRCC R2, [R1], #4 \n"
114 " BCC loc_FF02013C \n"
115 " LDR R0, =0xFF7BBA78 \n"
116 " LDR R1, =0x1900 \n"
117 " LDR R3, =0x14F30 \n"
118 
119 "loc_FF020158:\n"
120 " CMP R1, R3 \n"
121 " LDRCC R2, [R0], #4 \n"
122 " STRCC R2, [R1], #4 \n"
123 " BCC loc_FF020158 \n"
124 " LDR R1, =0x2B9464 \n"
125 " MOV R2, #0 \n"
126 
127 "loc_FF020170:\n"
128 " CMP R3, R1 \n"
129 " STRCC R2, [R3], #4 \n"
130 " BCC loc_FF020170 \n"
131 /* CreateTask is located in ROM, patching the lower level CreateTask_low function instead
132  * Note: task function is the first argument
133 */
134 // Install CreateTask_low patch
135 " LDR R0, =patch_CreateTask_low\n" // Patch data
136 " LDM R0, {R1,R2}\n" // Get two patch instructions
137 " LDR R0, =hook_CreateTask_low\n" // Address to patch
138 " STM R0, {R1,R2}\n" // Store patch instructions
139 
140 " B sub_FF0203C4_my \n" // --> Patched. Old value = 0xFF0203C4.
141 
142 "patch_CreateTask_low:\n"
143 " LDR PC, [PC,#-0x4]\n" // Do jump to absolute address CreateTask_my
144 " .long CreateTask_low_my\n"
145 );
146 }
void CreateTask_spytask ( )

Definiert in Zeile 16 der Datei boot.c.

17 {
18  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
19 }
void init_required_fw_features ( void  )

Definiert in Zeile 540 der Datei boot.c.

540  {
541  extern void _init_focus_eventflag();
542  //extern void _init_nd_eventflag();
543  //extern void _init_nd_semaphore();
544  //extern void _init_zoom_semaphore(); // for MoveZoomLensWithPoint
545 
546  _init_focus_eventflag();
547  //_init_nd_eventflag();
548  //_init_nd_semaphore();
549 
550  // for MoveIrisWithAv
551  extern int av_override_semaphore;
552  extern int _CreateBinarySemaphoreStrictly(int x, int y);
553  av_override_semaphore = _CreateBinarySemaphoreStrictly(0,0);
554 }

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.