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 spytask (long ua, long ub, long uc, long ud, long ue, long uf)
 
void CreateTask_spytask ()
 
void __attribute__ ((naked, noinline))
 *-------------------------------------------------------------------— Mehr ...
 

Variablen

const char *const new_sa = &_end
 
volatile int jogdial_stopped
 

Makro-Dokumentation

#define offsetof (   TYPE,
  MEMBER 
)    ((int) &((TYPE *)0)->MEMBER)

Definiert in Zeile 7 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 49 der Datei boot.c.

49  {
50  asm volatile ( // 0xfc02000c
51 " ldr.w sp, =0x80010000\n" // top of data tcm?
52 " BL sub_fc020064\n" // ITCM setup (vectors?)
53 " ldr r2, =0xc0242010\n"
54 " ldr r1, [r2, #0]\n"
55 " orr.w r1, r1, #1\n"
56 " str r1, [r2, #0]\n" // interrupt related?
57 " ldr r0, =0xfc953974\n"
58 " ldr r1, =0x010c1000\n"
59 " ldr r3, =0x010e03c4\n"
60 " loc_fc020024:\n"
61 " cmp r1, r3\n"
62 " itt cc\n"
63 " ldrcc.w r2, [r0], #4\n"
64 " strcc.w r2, [r1], #4\n"
65 " bcc.n loc_fc020024\n" // copy dryos kernel to RAM
66 
67 // Install CreateTask patch
68 // use half words in case source or destination not word aligned
69  "adr r0, patch_CreateTask\n" // src: Patch data
70  "ldr r1, =hook_CreateTask\n" // dest: Address to patch (hook_ has thumb bit off)
71  "add r2, r0, #8\n" // two words
72 "task_hook_loop:\n"
73  "ldrh r3, [r0],#2\n"
74  "strh r3, [r1],#2\n"
75  "cmp r0,r2\n"
76  "blo task_hook_loop\n"
77 
78 " ldr r0, =0x010c1000\n"
79 " ldr r1, =0x0001f3c4\n"
80 " BL sub_fc12dd3a\n" // clean data cache (on the kernel area)
81 " ldr r0, =0xfc932514\n"
82 " ldr r1, =0x00008000\n" // end of ITCM
83 " ldr r3, =0x00029460\n"
84 " loc_fc020040:\n"
85 " cmp r1, r3\n"
86 " itt cc\n"
87 " ldrcc.w r2, [r0], #4\n"
88 " strcc.w r2, [r1], #4\n"
89 " bcc.n loc_fc020040\n" // copy pre-initialized data
90 " ldr r3, =0x00029460\n"
91 " ldr r1, =0x002bd558\n"
92 " mov.w r2, #0\n"
93 " loc_fc020056:\n"
94 " cmp r3, r1\n"
95 " it cc\n"
96 " strcc.w r2, [r3], #4\n"
97 " bcc.n loc_fc020056\n" // zero-fill the above area
98 " b.w sub_fc04f194_my\n" // continue
99 
100  "patch_CreateTask:\n"
101  "ldr.w pc, [pc,#0]\n" // Do jump to absolute address CreateTask_my
102  ".long CreateTask_my + 1\n" // has to be a thumb address
103 );
104 }
void CreateTask_spytask ( )

Definiert in Zeile 32 der Datei boot.c.

33 {
34  _CreateTask("SpyTask", 0x19, 0x2000, spytask, 0);
35 }
void JogDial_task_my ( void  )
void spytask ( long  ua,
long  ub,
long  uc,
long  ud,
long  ue,
long  uf 
)

Definiert in Zeile 24 der Datei boot.c.

25 {
26  core_spytask();
27 }
void task_CaptSeq ( )
void task_ExpDrv ( )
void task_InitFileModules ( )
void task_MovieRecord ( )
void task_RotaryEncoder ( )

Variablen-Dokumentation

volatile int jogdial_stopped

Definiert in Zeile 81 der Datei kbd.c.

const char* const new_sa = &_end

Definiert in Zeile 9 der Datei boot.c.