This source file includes following definitions.
- my_restart
1 #include "../generic/check_compat.c"
2
3 extern long *blob_chdk_core;
4 extern long blob_chdk_core_size;
5
6 void __attribute__((noreturn)) my_restart()
7 {
8 check_compat();
9
10 long *dst = (long*)MEMISOSTART;
11 const long *src = blob_chdk_core;
12 long length = (blob_chdk_core_size + 3) >> 2;
13
14 core_copy(src, dst, length);
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 asm volatile (
41 "mov r1, %1\n"
42 "mov r0, %0\n"
43 "ldr r2, =0xfc11f607\n"
44 "blx r2\n"
45
46
47 "mov r0, %0\n"
48 "add r0, r0, #1\n"
49 "bx r0\n"
50 : : "r"(MEMISOSTART), "r"(((blob_chdk_core_size+3)>>2)<<2) : "memory","r0","r1","r2","r3","r4"
51 );
52 while(1);
53 }
54