CHDK_DE Vorschauversion  Trunk Rev. 5632
 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 taskHook (context_t **context)
 
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 58 der Datei boot.c.

58  {
59 asm volatile (
60 " LDR R1, =0xC0410000 \n"
61 " MOV R0, #0 \n"
62 " STR R0, [R1] \n"
63 " MOV R1, #0x78 \n"
64 " MCR p15, 0, R1, c1, c0 \n"
65 " MOV R1, #0 \n"
66 " MCR p15, 0, R1, c7, c10, 4 \n"
67 " MCR p15, 0, R1, c7, c5 \n"
68 " MCR p15, 0, R1, c7, c6 \n"
69 " MOV R0, #0x3D \n"
70 " MCR p15, 0, R0, c6, c0 \n"
71 " MOV R0, #0xC000002F \n"
72 " MCR p15, 0, R0, c6, c1 \n"
73 " MOV R0, #0x37 \n"
74 " MCR p15, 0, R0, c6, c2 \n"
75 " MOV R0, #0x40000037 \n"
76 " MCR p15, 0, R0, c6, c3 \n"
77 " MOV R0, #0x80000017 \n"
78 " MCR p15, 0, R0, c6, c4 \n"
79 " LDR R0, =0xFF00002F \n"
80 " MCR p15, 0, R0, c6, c5 \n"
81 " LDR R0, =0xD000002B \n"
82 " MCR p15, 0, R0, c6, c7 \n"
83 " MOV R0, #0x34 \n"
84 " MCR p15, 0, R0, c2, c0 \n"
85 " MOV R0, #0x34 \n"
86 " MCR p15, 0, R0, c2, c0, 1 \n"
87 " MOV R0, #0x34 \n"
88 " MCR p15, 0, R0, c3, c0 \n"
89 " LDR R0, =0x33333330 \n"
90 " MCR p15, 0, R0, c5, c0, 2 \n"
91 " LDR R0, =0x33333330 \n"
92 " MCR p15, 0, R0, c5, c0, 3 \n"
93 " MRC p15, 0, R0, c1, c0 \n"
94 " ORR R0, R0, #0x1000 \n"
95 " ORR R0, R0, #4 \n"
96 " ORR R0, R0, #1 \n"
97 " MCR p15, 0, R0, c1, c0 \n"
98 " MOV R1, #0x80000006 \n"
99 " MCR p15, 0, R1, c9, c1 \n"
100 " MOV R1, #6 \n"
101 " MCR p15, 0, R1, c9, c1, 1 \n"
102 " MRC p15, 0, R1, c1, c0 \n"
103 " ORR R1, R1, #0x50000 \n"
104 " MCR p15, 0, R1, c1, c0 \n"
105 " LDR R2, =0xC0200000 \n"
106 " MOV R1, #1 \n"
107 " STR R1, [R2, #0x10C] \n"
108 " MOV R1, #0xFF \n"
109 " STR R1, [R2, #0xC] \n"
110 " STR R1, [R2, #0x1C] \n"
111 " STR R1, [R2, #0x2C] \n"
112 " STR R1, [R2, #0x3C] \n"
113 " STR R1, [R2, #0x4C] \n"
114 " STR R1, [R2, #0x5C] \n"
115 " STR R1, [R2, #0x6C] \n"
116 " STR R1, [R2, #0x7C] \n"
117 " STR R1, [R2, #0x8C] \n"
118 " STR R1, [R2, #0x9C] \n"
119 " STR R1, [R2, #0xAC] \n"
120 " STR R1, [R2, #0xBC] \n"
121 " STR R1, [R2, #0xCC] \n"
122 " STR R1, [R2, #0xDC] \n"
123 " STR R1, [R2, #0xEC] \n"
124 " STR R1, [R2, #0xFC] \n"
125 " LDR R1, =0xC0400008 \n"
126 " LDR R2, =0x430005 \n"
127 " STR R2, [R1] \n"
128 " MOV R1, #1 \n"
129 " LDR R2, =0xC0243100 \n"
130 " STR R2, [R1] \n"
131 " LDR R2, =0xC0242010 \n"
132 " LDR R1, [R2] \n"
133 " ORR R1, R1, #1 \n"
134 " STR R1, [R2] \n"
135 " LDR R0, =0xFF680A14 \n"
136 " LDR R1, =0x685000 \n"
137 " LDR R3, =0x69544C \n"
138 
139 "loc_FF000144:\n"
140 " CMP R1, R3 \n"
141 " LDRCC R2, [R0], #4 \n"
142 " STRCC R2, [R1], #4 \n"
143 " BCC loc_FF000144 \n"
144 " LDR R0, =0xFF66DB9C \n"
145 " LDR R1, =0x1900 \n"
146 " LDR R3, =0x14778 \n"
147 
148 "loc_FF000160:\n"
149 " CMP R1, R3 \n"
150 " LDRCC R2, [R0], #4 \n"
151 " STRCC R2, [R1], #4 \n"
152 " BCC loc_FF000160 \n"
153 " LDR R1, =0x193A24 \n"
154 " MOV R2, #0 \n"
155 
156 "loc_FF000178:\n"
157 " CMP R3, R1 \n"
158 " STRCC R2, [R3], #4 \n"
159 " BCC loc_FF000178 \n"
160 " B sub_FF00038C_my \n" // --> Patched. Old value = 0xFF00038C.
161 );
162 }
void CreateTask_spytask ( )

Definiert in Zeile 40 der Datei boot.c.

40  {
41  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
42 }
void JogDial_task_my ( void  )
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )
void taskHook ( context_t **  context)

Definiert in Zeile 24 der Datei boot.c.

25 {
26  task_t *tcb=(task_t*)((char*)context-offsetof(task_t, context));
27 
28  // Replace firmware task addresses with ours
29  if(tcb->entry == (void*)task_CaptSeq) tcb->entry = (void*)capt_seq_task;
30  if(tcb->entry == (void*)task_InitFileModules) tcb->entry = (void*)init_file_modules_task;
31  if(tcb->entry == (void*)task_RotaryEncoder) tcb->entry = (void*)JogDial_task_my;
32  if(tcb->entry == (void*)task_MovieRecord) tcb->entry = (void*)movie_record_task;
33  if(tcb->entry == (void*)task_ExpDrv) tcb->entry = (void*)exp_drv_task;
34  if(tcb->entry == (void*)task_FileWrite) tcb->entry = (void*)filewritetask;
35 }

Variablen-Dokumentation

short* jog_position

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

Definiert in Zeile 48 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.