CHDK_DE Vorschauversion  Trunk Rev. 5279
 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 JogDial_task_my (void)
 
void task_CaptSeq ()
 
void task_InitFileModules ()
 
void task_RotaryEncoder ()
 
void task_MovieRecord ()
 
void task_ExpDrv ()
 
void task_FileWrite ()
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 
volatile int jogdial_stopped
 
short * jog_position
 *-------------------------------------------------------------------— Mehr ...
 

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

45  {
46 asm volatile (
47 " LDR R1, =0xC0410000 \n"
48 " MOV R0, #0 \n"
49 " STR R0, [R1] \n"
50 " MOV R1, #0x78 \n"
51 " MCR p15, 0, R1, c1, c0 \n"
52 " MOV R1, #0 \n"
53 " MCR p15, 0, R1, c7, c10, 4 \n"
54 " MCR p15, 0, R1, c7, c5 \n"
55 " MCR p15, 0, R1, c7, c6 \n"
56 " MOV R0, #0x3D \n"
57 " MCR p15, 0, R0, c6, c0 \n"
58 " MOV R0, #0xC000002F \n"
59 " MCR p15, 0, R0, c6, c1 \n"
60 " MOV R0, #0x33 \n"
61 " MCR p15, 0, R0, c6, c2 \n"
62 " MOV R0, #0x40000033 \n"
63 " MCR p15, 0, R0, c6, c3 \n"
64 " MOV R0, #0x80000017 \n"
65 " MCR p15, 0, R0, c6, c4 \n"
66 " LDR R0, =0xFF00002F \n"
67 " MCR p15, 0, R0, c6, c5 \n"
68 " MOV R0, #0x34 \n"
69 " MCR p15, 0, R0, c2, c0 \n"
70 " MOV R0, #0x34 \n"
71 " MCR p15, 0, R0, c2, c0, 1 \n"
72 " MOV R0, #0x34 \n"
73 " MCR p15, 0, R0, c3, c0 \n"
74 " LDR R0, =0x3333330 \n"
75 " MCR p15, 0, R0, c5, c0, 2 \n"
76 " LDR R0, =0x3333330 \n"
77 " MCR p15, 0, R0, c5, c0, 3 \n"
78 " MRC p15, 0, R0, c1, c0 \n"
79 " ORR R0, R0, #0x1000 \n"
80 " ORR R0, R0, #4 \n"
81 " ORR R0, R0, #1 \n"
82 " MCR p15, 0, R0, c1, c0 \n"
83 " MOV R1, #0x80000006 \n"
84 " MCR p15, 0, R1, c9, c1 \n"
85 " MOV R1, #6 \n"
86 " MCR p15, 0, R1, c9, c1, 1 \n"
87 " MRC p15, 0, R1, c1, c0 \n"
88 " ORR R1, R1, #0x50000 \n"
89 " MCR p15, 0, R1, c1, c0 \n"
90 " LDR R2, =0xC0200000 \n"
91 " MOV R1, #1 \n"
92 " STR R1, [R2, #0x10C] \n"
93 " MOV R1, #0xFF \n"
94 " STR R1, [R2, #0xC] \n"
95 " STR R1, [R2, #0x1C] \n"
96 " STR R1, [R2, #0x2C] \n"
97 " STR R1, [R2, #0x3C] \n"
98 " STR R1, [R2, #0x4C] \n"
99 " STR R1, [R2, #0x5C] \n"
100 " STR R1, [R2, #0x6C] \n"
101 " STR R1, [R2, #0x7C] \n"
102 " STR R1, [R2, #0x8C] \n"
103 " STR R1, [R2, #0x9C] \n"
104 " STR R1, [R2, #0xAC] \n"
105 " STR R1, [R2, #0xBC] \n"
106 " STR R1, [R2, #0xCC] \n"
107 " STR R1, [R2, #0xDC] \n"
108 " STR R1, [R2, #0xEC] \n"
109 " STR R1, [R2, #0xFC] \n"
110 " LDR R1, =0xC0400008 \n"
111 " LDR R2, =0x430005 \n"
112 " STR R2, [R1] \n"
113 " MOV R1, #1 \n"
114 " LDR R2, =0xC0243100 \n"
115 " STR R2, [R1] \n"
116 " LDR R2, =0xC0242010 \n"
117 " LDR R1, [R2] \n"
118 " ORR R1, R1, #1 \n"
119 " STR R1, [R2] \n"
120 " LDR R0, =0xFF4E1414 \n"
121 " LDR R1, =0x431000 \n"
122 " LDR R3, =0x44059C \n"
123 
124 "loc_FF00013C:\n"
125 " CMP R1, R3 \n"
126 " LDRCC R2, [R0], #4 \n"
127 " STRCC R2, [R1], #4 \n"
128 " BCC loc_FF00013C \n"
129 " LDR R0, =0xFF4D317C \n"
130 " LDR R1, =0x1900 \n"
131 " LDR R3, =0xFB98 \n"
132 
133 "loc_FF000158:\n"
134 " CMP R1, R3 \n"
135 " LDRCC R2, [R0], #4 \n"
136 " STRCC R2, [R1], #4 \n"
137 " BCC loc_FF000158 \n"
138 " LDR R1, =0x1791C0 \n"
139 " MOV R2, #0 \n"
140 
141 "loc_FF000170:\n"
142 " CMP R3, R1 \n"
143 " STRCC R2, [R3], #4 \n"
144 " BCC loc_FF000170 \n"
145 /* Install task hooks via 0x193x is not possible with this new dryos version
146  So the below code patches the CreateTask function in RAM to install our
147  hook -- ERR99
148 */
149 // Install CreateTask patch
150 " LDR R0, =patch_CreateTask\n" // Patch data
151 " LDM R0, {R1,R2}\n" // Get two patch instructions
152 " LDR R0, =hook_CreateTask\n" // Address to patch
153 " STM R0, {R1,R2}\n" // Store patch instructions
154 
155 " B sub_FF000380_my \n" // --> Patched. Old value = 0xFF000380.
156 
157 "patch_CreateTask:\n"
158 " LDR PC, [PC,#-0x4]\n" // Do jump to absolute address CreateTask_my
159 " .long CreateTask_my\n"
160 );
161 }
void CreateTask_spytask ( )

Definiert in Zeile 27 der Datei boot.c.

28 {
29  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
30 }
void JogDial_task_my ( void  )
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )

Variablen-Dokumentation

short* jog_position

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

Definiert in Zeile 35 der Datei boot.c.

volatile int jogdial_stopped

Definiert in Zeile 81 der Datei kbd.c.

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.