source: rtems/cpukit/libfs/src/nfsclient/src/nfs.modini.c @ 4e59276

4.115
Last change on this file since 4e59276 was 4e59276, checked in by Mathew Kallada <matkallada@…>, on 12/28/12 at 14:05:20

libfs: Doxygen Enhancement Task #5

  • Property mode set to 100644
File size: 605 bytes
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
16void
17_cexpModuleInitialize(void *mod)
18{
19#if defined(DEBUG)
20        /* print load address (in case we crash while initializing) */
21unsigned 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
32int
33_cexpModuleFinalize(void *mod)
34{
35        return nfsCleanup();
36}
37
38
Note: See TracBrowser for help on using the repository browser.