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

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)  )

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

!!

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

Definiert in Zeile 49 der Datei boot.c.

49  {
50 asm volatile (
51 " LDR R1, =0xC0410000 \n"
52 " MOV R0, #0 \n"
53 " STR R0, [R1] \n"
54 " MOV R1, #0x78 \n"
55 " MCR p15, 0, R1, c1, c0 \n"
56 " MOV R1, #0 \n"
57 " MCR p15, 0, R1, c7, c10, 4 \n"
58 " MCR p15, 0, R1, c7, c5 \n"
59 " MCR p15, 0, R1, c7, c6 \n"
60 " MOV R0, #0x3D \n"
61 " MCR p15, 0, R0, c6, c0 \n"
62 " MOV R0, #0xC000002F \n"
63 " MCR p15, 0, R0, c6, c1 \n"
64 " MOV R0, #0x33 \n"
65 " MCR p15, 0, R0, c6, c2 \n"
66 " MOV R0, #0x40000033 \n"
67 " MCR p15, 0, R0, c6, c3 \n"
68 " MOV R0, #0x80000017 \n"
69 " MCR p15, 0, R0, c6, c4 \n"
70 " LDR R0, =0xFF80002D \n"
71 " MCR p15, 0, R0, c6, c5 \n"
72 " MOV R0, #0x34 \n"
73 " MCR p15, 0, R0, c2, c0 \n"
74 " MOV R0, #0x34 \n"
75 " MCR p15, 0, R0, c2, c0, 1 \n"
76 " MOV R0, #0x34 \n"
77 " MCR p15, 0, R0, c3, c0 \n"
78 " LDR R0, =0x3333330 \n"
79 " MCR p15, 0, R0, c5, c0, 2 \n"
80 " LDR R0, =0x3333330 \n"
81 " MCR p15, 0, R0, c5, c0, 3 \n"
82 " MRC p15, 0, R0, c1, c0 \n"
83 " ORR R0, R0, #0x1000 \n"
84 " ORR R0, R0, #4 \n"
85 " ORR R0, R0, #1 \n"
86 " MCR p15, 0, R0, c1, c0 \n"
87 " MOV R1, #0x80000006 \n"
88 " MCR p15, 0, R1, c9, c1 \n"
89 " MOV R1, #6 \n"
90 " MCR p15, 0, R1, c9, c1, 1 \n"
91 " MRC p15, 0, R1, c1, c0 \n"
92 " ORR R1, R1, #0x50000 \n"
93 " MCR p15, 0, R1, c1, c0 \n"
94 " LDR R2, =0xC0200000 \n"
95 " MOV R1, #1 \n"
96 " STR R1, [R2, #0x10C] \n"
97 " MOV R1, #0xFF \n"
98 " STR R1, [R2, #0xC] \n"
99 " STR R1, [R2, #0x1C] \n"
100 " STR R1, [R2, #0x2C] \n"
101 " STR R1, [R2, #0x3C] \n"
102 " STR R1, [R2, #0x4C] \n"
103 " STR R1, [R2, #0x5C] \n"
104 " STR R1, [R2, #0x6C] \n"
105 " STR R1, [R2, #0x7C] \n"
106 " STR R1, [R2, #0x8C] \n"
107 " STR R1, [R2, #0x9C] \n"
108 " STR R1, [R2, #0xAC] \n"
109 " STR R1, [R2, #0xBC] \n"
110 " STR R1, [R2, #0xCC] \n"
111 " STR R1, [R2, #0xDC] \n"
112 " STR R1, [R2, #0xEC] \n"
113 " STR R1, [R2, #0xFC] \n"
114 " LDR R1, =0xC0400008 \n"
115 " LDR R2, =0x430005 \n"
116 " STR R2, [R1] \n"
117 " MOV R1, #1 \n"
118 " LDR R2, =0xC0243100 \n"
119 " STR R2, [R1] \n"
120 " LDR R2, =0xC0242010 \n"
121 " LDR R1, [R2] \n"
122 " ORR R1, R1, #1 \n"
123 " STR R1, [R2] \n"
124 " LDR R0, =0xFFB9B27C \n"
125 " LDR R1, =0x1900 \n"
126 " LDR R3, =0x10A50 \n"
127 
128 "loc_FF81013C:\n"
129 " CMP R1, R3 \n"
130 " LDRCC R2, [R0], #4 \n"
131 " STRCC R2, [R1], #4 \n"
132 " BCC loc_FF81013C \n"
133 " LDR R1, =0xACB74 \n"
134 " MOV R2, #0 \n"
135 
136 "loc_FF810154:\n"
137 " CMP R3, R1 \n"
138 " STRCC R2, [R3], #4 \n"
139 " BCC loc_FF810154 \n"
140 " B sub_FF8101A0_my \n" // --> Patched. Old value = 0xFF8101A0.
141 );
142 }
void CreateTask_spytask ( )

Definiert in Zeile 37 der Datei boot.c.

37  {
38  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
39 };
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 21 der Datei boot.c.

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

Variablen-Dokumentation

const char* const new_sa = &_end

Definiert in Zeile 11 der Datei boot.c.