CHDK_DE Vorschauversion  Trunk Rev. 5214
 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, #0x35 \n"
74 " MCR p15, 0, R0, c6, c2 \n"
75 " MOV R0, #0x40000035 \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, =0xFF80002D \n"
80 " MCR p15, 0, R0, c6, c5 \n"
81 " MOV R0, #0x34 \n"
82 " MCR p15, 0, R0, c2, c0 \n"
83 " MOV R0, #0x34 \n"
84 " MCR p15, 0, R0, c2, c0, 1 \n"
85 " MOV R0, #0x34 \n"
86 " MCR p15, 0, R0, c3, c0 \n"
87 " LDR R0, =0x3333330 \n"
88 " MCR p15, 0, R0, c5, c0, 2 \n"
89 " LDR R0, =0x3333330 \n"
90 " MCR p15, 0, R0, c5, c0, 3 \n"
91 " MRC p15, 0, R0, c1, c0 \n"
92 " ORR R0, R0, #0x1000 \n"
93 " ORR R0, R0, #4 \n"
94 " ORR R0, R0, #1 \n"
95 " MCR p15, 0, R0, c1, c0 \n"
96 " MOV R1, #0x80000006 \n"
97 " MCR p15, 0, R1, c9, c1 \n"
98 " MOV R1, #6 \n"
99 " MCR p15, 0, R1, c9, c1, 1 \n"
100 " MRC p15, 0, R1, c1, c0 \n"
101 " ORR R1, R1, #0x50000 \n"
102 " MCR p15, 0, R1, c1, c0 \n"
103 " LDR R2, =0xC0200000 \n"
104 " MOV R1, #1 \n"
105 " STR R1, [R2, #0x10C] \n"
106 " MOV R1, #0xFF \n"
107 " STR R1, [R2, #0xC] \n"
108 " STR R1, [R2, #0x1C] \n"
109 " STR R1, [R2, #0x2C] \n"
110 " STR R1, [R2, #0x3C] \n"
111 " STR R1, [R2, #0x4C] \n"
112 " STR R1, [R2, #0x5C] \n"
113 " STR R1, [R2, #0x6C] \n"
114 " STR R1, [R2, #0x7C] \n"
115 " STR R1, [R2, #0x8C] \n"
116 " STR R1, [R2, #0x9C] \n"
117 " STR R1, [R2, #0xAC] \n"
118 " STR R1, [R2, #0xBC] \n"
119 " STR R1, [R2, #0xCC] \n"
120 " STR R1, [R2, #0xDC] \n"
121 " STR R1, [R2, #0xEC] \n"
122 " STR R1, [R2, #0xFC] \n"
123 " LDR R1, =0xC0400008 \n"
124 " LDR R2, =0x430005 \n"
125 " STR R2, [R1] \n"
126 " MOV R1, #1 \n"
127 " LDR R2, =0xC0243100 \n"
128 " STR R2, [R1] \n"
129 " LDR R2, =0xC0242010 \n"
130 " LDR R1, [R2] \n"
131 " ORR R1, R1, #1 \n"
132 " STR R1, [R2] \n"
133 " LDR R0, =0xFFC909A0 \n"
134 " LDR R1, =0x1900 \n"
135 " LDR R3, =0x108B8 \n"
136 
137 "loc_FF81013C:\n"
138 " CMP R1, R3 \n"
139 " LDRCC R2, [R0], #4 \n"
140 " STRCC R2, [R1], #4 \n"
141 " BCC loc_FF81013C \n"
142 " LDR R1, =0x18124C \n"
143 " MOV R2, #0 \n"
144 
145 "loc_FF810154:\n"
146 " CMP R3, R1 \n"
147 " STRCC R2, [R3], #4 \n"
148 " BCC loc_FF810154 \n"
149 " B sub_FF810354_my \n" // --> Patched. Old value = 0xFF810354.
150 );
151 }
void CreateTask_spytask ( )

Definiert in Zeile 40 der Datei boot.c.

41 {
42  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
43 }
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.