CHDK_DE Vorschauversion  Trunk Rev. 5327
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
main.c-Dateireferenz
+ Include-Abhängigkeitsdiagramm für main.c:

gehe zum Quellcode dieser Datei

Funktionen

void __attribute__ ((noreturn))
 

Variablen

long * blob_chdk_core
 
long blob_chdk_core_size
 

Dokumentation der Funktionen

void __attribute__ ( (noreturn)  )

Definiert in Zeile 6 der Datei main.c.

7 {
8  long *dst = (long*)MEMISOSTART;
9  const long *src = blob_chdk_core;
10  long length = (blob_chdk_core_size + 3) >> 2;
11 
12  core_copy(src, dst, length);
13 
14 
15  //Ixus Wireless 100f found @ 0xff8252cc
16  asm volatile(
17 " MRS R1, CPSR \n"
18 " BIC R1, R1, #0x3F \n"
19 " ORR R1, R1, #0xD3 \n"
20 " MSR CPSR_cxsf, R1 \n"
21 " LDR R2, =0xC0200000 \n"
22 " MVN R1, #0 \n"
23 " STR R1, [R2, #0x10C] \n"
24 " STR R1, [R2, #0xC] \n"
25 " STR R1, [R2, #0x1C] \n"
26 " STR R1, [R2, #0x2C] \n"
27 " STR R1, [R2, #0x3C] \n"
28 " STR R1, [R2, #0x4C] \n"
29 " STR R1, [R2, #0x5C] \n"
30 " STR R1, [R2, #0x6C] \n"
31 " STR R1, [R2, #0x7C] \n"
32 " STR R1, [R2, #0x8C] \n"
33 " STR R1, [R2, #0x9C] \n"
34 " STR R1, [R2, #0xAC] \n"
35 " STR R1, [R2, #0xBC] \n"
36 " STR R1, [R2, #0xCC] \n"
37 " STR R1, [R2, #0xDC] \n"
38 " STR R1, [R2, #0xEC] \n"
39 " STR R1, [R2, #0xFC] \n"
40 
41 //" CMP R4, #7 \n"
42 //" LDMEQFD SP!, {R4,PC} \n"
43 
44 " MOV R1, #0x78 \n"
45 " MCR p15, 0, R1, c1, c0 \n"
46 " MOV R1, #0 \n"
47 " MCR p15, 0, R1, c7, c10, 4 \n"
48 " MCR p15, 0, R1, c7, c5 \n"
49 " MCR p15, 0, R1, c7, c6 \n"
50 " MOV R2, #0x40000000 \n"
51 " ORR R1, R2, #6 \n"
52 " MCR p15, 0, R1, c9, c1 \n"
53 " ORR R1, R1, #6 \n"
54 " MCR p15, 0, R1, c9, c1, 1 \n"
55 " MRC p15, 0, R1, c1, c0 \n"
56 " ORR R1, R1, #0x50000 \n"
57 " MCR p15, 0, R1, c1, c0 \n"
58 " MOV R3, #0xFF0 \n"
59 " LDR R1, =0x12345678 \n"
60 " MOV R2, #0x81000000 \n"
61 " ADD R3, R3, #0x4000000C \n"
62 " STR R1, [R3] \n"
63 " MOV R2, R2, ASR#8 \n"
64 
65 // " MOV SP, #0x2000000 \n"
66 " MOV SP, #0x1900\n"
67 " MOV LR, PC \n"
68 " MOV PC, %0\n" //+
69 
70 //" MOV PC, R2 \n"
71 //" LDMFD SP!, {R4,PC} \n"
72 
73  : : "r"(MEMISOSTART) : "memory","r1","r2","r3");
74  while(1);
75 }

Variablen-Dokumentation

long* blob_chdk_core

Definiert in Zeile 1 der Datei blobs.S.

long blob_chdk_core_size