CHDK_DE Vorschauversion  Trunk Rev. 5293
 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_DvlpSeqTask ()
 
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 60 der Datei boot.c.

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

Definiert in Zeile 42 der Datei boot.c.

43 {
44  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
45 }
void JogDial_task_my ( void  )
void task_CaptSeq ( )
void task_DvlpSeqTask ( )
void task_ExpDrv ( )
void task_FileWrite ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )
void taskHook ( context_t **  context)

Definiert in Zeile 25 der Datei boot.c.

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

Variablen-Dokumentation

short* jog_position

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

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