ip stack mutual exclusion

Fermi at aol.com Fermi at aol.com
Wed Jan 19 19:11:25 UTC 2000


I am adding a security association database to the
RTEMS IP-stack to support IPSEC. 

I would like to run RTEMS with a 
thread time slice, but a thread that is acessing the database when its time quantum expires might leave 
it in an unstable state.

In unix to suport mutual exclusion a programmer raises and then replaces the interupt levels with calls to spl***() and splx(). 

RTEMS has #defined spl***() and splx() to do nothing. 

How can I support a mutual exclusion in the RTEMS IP stack? Will a semaphore work?



More information about the users mailing list