Hi Mike,
On 11/24/2014 11:59 AM, Mike Westfall wrote:
We have a reflective memory card (VMI5588) where we call the vxWorks
function rebootHookAdd() to hook a routine to disable interrupts for the
card in the event of a soft reboot.
We are converting to RTEMS, and I am wondering if there is an equivalent
call in the OSI layer, or if we will have to resort to the
RTEMS-specific atexit() to hook the routine?
See epicsExit.h, the epicsAtExit() routine is designed to do what you're
looking for.
http://www.aps.anl.gov/epics/base/R3-14/12-docs/AppDevGuide/node20.html#SECTION002040000000000000000
You might find this document useful when converting VxWorks-specific
code to use the OSI layer:
https://wiki-ext.aps.anl.gov/epics/index.php/How_to_make_your_EPICS_driver_operating_system_independent
HTH,
- Andrew