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

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

!!

Definiert in Zeile 29 der Datei boot.c.

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