URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [librpc/] [README_RTEMS] - Rev 502
Go to most recent revision | Compare with Previous | Blame | View Log
USING RPC/XDR ON RTEMS======================For the most part, programmers using RPC/XDR routines on RTEMScan proceed as if they were to be using a POSIX/UNIX system.The only significant changes are those to start the portmapperand to allow use of RPC/XDR by multiple threads.Starting the portmapper=======================The SUN portmapper program has been modified to run as an RTEMStask. Applications which need the portmapper can start thistask by calling:int rtems_rpc_start_portmapper (int priority);The return value is an RTEMS status code.Multi-threaded operation========================The RPC/XDR package has been modified to allow for multiple RTEMStasks to use RPC/XDR routines. If more than one task is to callan RPC/XDR routine, the additional tasks must call:int rtems_rpc_task_init(void);before calling any RPC/XDR routines. For example, the portmappercalls this routine since the portmapper uses RPC/XDR routines ina separate thread.The return value is an RTEMS status code.Porting Notes=============Most of the FreeBSD rpc library ports to RTEMS with littleor no modification beyond that required to provide for operationin a multitasking environment. Multitasking operation wasprovided by moving all `static persistence' variables intoa single structure and using an RTEMS task variable to pointto that structure.Some of the library, however, has not made it into the RTEMSimplementation. FreeBSD source files which have been left out include:- Files which provide RPC to the AF_UNIX address family:clnt_unix.csvc_unix.cAn `ifndef __rtems__' was added to clnt_generic.c because clnt_unix.cwas omitted.- Files which need NIS:auth_time.c- Files which provide DES authentication:auth_des.cauthdes_prot.ccrypt_client.cdes_crypt.cdes_soft.cgetpublickey.ckey_call.ckey_prot_xdr.csvc_auth_des.cThe FreeBSD xdr source compiles and runs on RTEMS without modification.The original source was obtained from:ftp://ftp.FreeBSD.org/pub/FreeBSD/branches/4.0-stable/src/lib/libc/rpcbranches/4.0-stable/src/lib/libc/xdrbranches/4.0-stable/src/include/rpcbranches/4.0-stable/src/include/rpcsvc
Go to most recent revision | Compare with Previous | Blame | View Log
