4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief NFS Module Initialize |
---|
5 | * @ingroup libfs |
---|
6 | */ |
---|
7 | |
---|
8 | #if HAVE_CONFIG_H |
---|
9 | #include "config.h" |
---|
10 | #endif |
---|
11 | |
---|
12 | #include "librtemsNfs.h" |
---|
13 | |
---|
14 | /* CEXP dynamic loader support */ |
---|
15 | |
---|
16 | void |
---|
17 | _cexpModuleInitialize(void *mod) |
---|
18 | { |
---|
19 | #if defined(DEBUG) |
---|
20 | /* print load address (in case we crash while initializing) */ |
---|
21 | unsigned lr; |
---|
22 | __asm__ __volatile__( |
---|
23 | " bl thisis_loaded_at \n" |
---|
24 | "thisis_loaded_at: \n" |
---|
25 | " mflr %0 \n" |
---|
26 | : "=r"(lr) ::"lr"); |
---|
27 | printf("thisis_loaded_at: 0x%08x\n",lr); |
---|
28 | #endif |
---|
29 | nfsInit(0,0); |
---|
30 | } |
---|
31 | |
---|
32 | int |
---|
33 | _cexpModuleFinalize(void *mod) |
---|
34 | { |
---|
35 | return nfsCleanup(); |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
Note: See
TracBrowser
for help on using the repository browser.