CHDK_DE Vorschauversion  Trunk Rev. 5249
 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 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

Definiert in Zeile 37 der Datei boot.c.

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

Definiert in Zeile 19 der Datei boot.c.

20 {
21  _CreateTask("SpyTask", 0x19, 0x2000, core_spytask, 0);
22 }

Variablen-Dokumentation

short* jog_position

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

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