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