diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-08-03 14:21:13 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-08-03 14:21:13 -0500 |
commit | 8f59c0aea7467a0dcfcf46138c3d1a422cb339fd (patch) | |
tree | 779a3e1b57c502fad517f839148aad4dde849bf2 /services/nfsclient/nfs.modini.c | |
parent | librpc: Initial addition (diff) | |
download | rtems-libbsd-8f59c0aea7467a0dcfcf46138c3d1a422cb339fd.tar.bz2 |
nfsclient: Initial addition
Will not compile until librpc is available.
Diffstat (limited to 'services/nfsclient/nfs.modini.c')
-rw-r--r-- | services/nfsclient/nfs.modini.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/services/nfsclient/nfs.modini.c b/services/nfsclient/nfs.modini.c new file mode 100644 index 00000000..22095cf5 --- /dev/null +++ b/services/nfsclient/nfs.modini.c @@ -0,0 +1,31 @@ +#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(); +} + + |