mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Treat the lock value as volatile.
This commit is contained in:
parent
f1daac6f22
commit
9839f9695a
3 changed files with 6 additions and 6 deletions
|
|
@ -29,7 +29,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
* assumes that the lock will be available very soon.
|
||||
*/
|
||||
void
|
||||
_spinlock(long *lck)
|
||||
_spinlock(volatile long *lck)
|
||||
{
|
||||
do {
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
* assumes that the lock will be available very soon.
|
||||
*/
|
||||
void
|
||||
_spinlock(long *lck)
|
||||
_spinlock(volatile long *lck)
|
||||
{
|
||||
do {
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
* assumes that the lock will be available very soon.
|
||||
*/
|
||||
void
|
||||
_spinlock(long *lck)
|
||||
_spinlock(volatile long *lck)
|
||||
{
|
||||
do {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue