CHDK_DE Vorschauversion  Trunk Rev. 5274
 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 30 der Datei boot.c.

30  {
31 asm volatile (
32 " LDR R1, =0xC0410000 \n"
33 " MOV R0, #0 \n"
34 " STR R0, [R1] \n"
35 " MOV R1, #0x78 \n"
36 " MCR p15, 0, R1, c1, c0 \n"
37 " MOV R1, #0 \n"
38 " MCR p15, 0, R1, c7, c10, 4 \n"
39 " MCR p15, 0, R1, c7, c5 \n"
40 " MCR p15, 0, R1, c7, c6 \n"
41 " MOV R0, #0x3D \n"
42 " MCR p15, 0, R0, c6, c0 \n"
43 " MOV R0, #0xC000002F \n"
44 " MCR p15, 0, R0, c6, c1 \n"
45 " MOV R0, #0x37 \n"
46 " MCR p15, 0, R0, c6, c2 \n"
47 " MOV R0, #0x40000037 \n"
48 " MCR p15, 0, R0, c6, c3 \n"
49 " MOV R0, #0x80000017 \n"
50 " MCR p15, 0, R0, c6, c4 \n"
51 " LDR R0, =0xFF00002F \n"
52 " MCR p15, 0, R0, c6, c5 \n"
53 " MOV R0, #0x34 \n"
54 " MCR p15, 0, R0, c2, c0 \n"
55 " MOV R0, #0x34 \n"
56 " MCR p15, 0, R0, c2, c0, 1 \n"
57 " MOV R0, #0x34 \n"
58 " MCR p15, 0, R0, c3, c0 \n"
59 " LDR R0, =0x3333330 \n"
60 " MCR p15, 0, R0, c5, c0, 2 \n"
61 " LDR R0, =0x3333330 \n"
62 " MCR p15, 0, R0, c5, c0, 3 \n"
63 " MRC p15, 0, R0, c1, c0 \n"
64 " ORR R0, R0, #0x1000 \n"
65 " ORR R0, R0, #4 \n"
66 " ORR R0, R0, #1 \n"
67 " MCR p15, 0, R0, c1, c0 \n"
68 " MOV R1, #0x80000006 \n"
69 " MCR p15, 0, R1, c9, c1 \n"
70 " MOV R1, #6 \n"
71 " MCR p15, 0, R1, c9, c1, 1 \n"
72 " MRC p15, 0, R1, c1, c0 \n"
73 " ORR R1, R1, #0x50000 \n"
74 " MCR p15, 0, R1, c1, c0 \n"
75 " LDR R2, =0xC0200000 \n"
76 " MOV R1, #1 \n"
77 " STR R1, [R2, #0x10C] \n"
78 " MVN R1, #0 \n"
79 " STR R1, [R2, #0xC] \n"
80 " STR R1, [R2, #0x1C] \n"
81 " STR R1, [R2, #0x2C] \n"
82 " STR R1, [R2, #0x3C] \n"
83 " STR R1, [R2, #0x4C] \n"
84 " STR R1, [R2, #0x5C] \n"
85 " STR R1, [R2, #0x6C] \n"
86 " STR R1, [R2, #0x7C] \n"
87 " STR R1, [R2, #0x8C] \n"
88 " STR R1, [R2, #0x9C] \n"
89 " STR R1, [R2, #0xAC] \n"
90 " STR R1, [R2, #0xBC] \n"
91 " STR R1, [R2, #0xCC] \n"
92 " STR R1, [R2, #0xDC] \n"
93 " STR R1, [R2, #0xEC] \n"
94 " STR R1, [R2, #0xFC] \n"
95 " LDR R1, =0xC0400008 \n"
96 " LDR R2, =0x430005 \n"
97 " STR R2, [R1] \n"
98 " MOV R1, #1 \n"
99 " LDR R2, =0xC0243100 \n"
100 " STR R2, [R1] \n"
101 " LDR R2, =0xC0242010 \n"
102 " LDR R1, [R2] \n"
103 " ORR R1, R1, #1 \n"
104 " STR R1, [R2] \n"
105 " LDR R0, =0xFF7BAD88 \n"
106 " LDR R1, =0x6B1000 \n"
107 " LDR R3, =0x6E2D8A \n"
108 
109 "loc_FF02013C:\n"
110 " CMP R1, R3 \n"
111 " LDRCC R2, [R0], #4 \n"
112 " STRCC R2, [R1], #4 \n"
113 " BCC loc_FF02013C \n"
114 " LDR R0, =0xFF7A757C \n"
115 " LDR R1, =0x1900 \n"
116 " LDR R3, =0x1510C \n"
117 
118 "loc_FF020158:\n"
119 " CMP R1, R3 \n"
120 " LDRCC R2, [R0], #4 \n"
121 " STRCC R2, [R1], #4 \n"
122 " BCC loc_FF020158 \n"
123 " LDR R1, =0x2B8C4C \n"
124 " MOV R2, #0 \n"
125 
126 "loc_FF020170:\n"
127 " CMP R3, R1 \n"
128 " STRCC R2, [R3], #4 \n"
129 " BCC loc_FF020170 \n"
130 /* Install task hooks via 0x193x is not possible with this new dryos version
131  So the below code patches the CreateTask function in RAM to install our
132  hook -- ERR99
133 */
134 // Install CreateTask patch
135 " LDR R0, =patch_CreateTask\n" // Patch data
136 " LDM R0, {R1,R2}\n" // Get two patch instructions
137 " LDR R0, =hook_CreateTask\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:\n"
143 " LDR PC, [PC,#-0x4]\n" // Do jump to absolute address CreateTask_my
144 " .long CreateTask_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 528 der Datei boot.c.

528  {
529  extern void _init_focus_eventflag();
530  //extern void _init_nd_eventflag();
531  //extern void _init_nd_semaphore();
532  //extern void _init_zoom_semaphore(); // for MoveZoomLensWithPoint
533 
534  _init_focus_eventflag();
535  //_init_nd_eventflag();
536  //_init_nd_semaphore();
537 }

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.