diff --git a/src/sys/include/ubixos/spinlock.h b/src/sys/include/ubixos/spinlock.h index 896b8e4..5d6b0e2 100644 --- a/src/sys/include/ubixos/spinlock.h +++ b/src/sys/include/ubixos/spinlock.h @@ -36,16 +36,19 @@ typedef volatile int spinLock_t; -extern inline void spinLockInit(spinLock_t *); +void spinLockInit(spinLock_t *); void spinUnlock(spinLock_t *); int spinTryLock(spinLock_t *); void spinLock(spinLock_t *); -extern inline int spinLockLocked(spinLock_t *); +int spinLockLocked(spinLock_t *); #endif /*** $Log$ + Revision 1.4 2004/07/20 20:20:19 reddawg + spinlock: made them non inline functions I think this actually fixed the problem + Revision 1.3 2004/05/21 12:42:32 reddawg Cleaned Up diff --git a/src/sys/kernel/spinlock.c b/src/sys/kernel/spinlock.c index 11e4823..25368b1 100644 --- a/src/sys/kernel/spinlock.c +++ b/src/sys/kernel/spinlock.c @@ -31,7 +31,7 @@ #include #include -inline void spinLockInit(spinLock_t *lock) { +void spinLockInit(spinLock_t *lock) { *lock = SPIN_LOCK_INITIALIZER; } @@ -59,7 +59,7 @@ while (*lock == 1); } -inline int spinLockLocked(spinLock_t *lock) { +int spinLockLocked(spinLock_t *lock) { assert(lock); return(*lock != 0); } @@ -67,6 +67,9 @@ /*** $Log$ + Revision 1.8 2004/07/20 20:20:19 reddawg + spinlock: made them non inline functions I think this actually fixed the problem + Revision 1.7 2004/07/18 05:24:15 reddawg Fixens