Bodge the simplelocks in a way which works UP.

This commit is contained in:
dfr 2000-09-29 16:51:33 +00:00
parent ee266293b6
commit fb0b532d5b
2 changed files with 12 additions and 9 deletions

View File

@ -136,7 +136,13 @@ s_lock(struct simplelock *lkp)
int
s_lock_try(struct simplelock *lkp)
{
return 0; /* XXX needed? */
return 1; /* XXX needed? */
}
void
s_unlock(struct simplelock *lkp)
{
ia64_st_rel_32(&lkp->lock_data, 0);
}
/* Other stuff */

View File

@ -42,15 +42,12 @@ struct simplelock {
void s_lock_init __P((struct simplelock *));
void s_lock __P((struct simplelock *));
int s_lock_try __P((struct simplelock *));
void s_unlock __P((struct simplelock *));
/* inline simplelock functions */
static __inline void
s_unlock(struct simplelock *lkp)
{
#if 0 /* XXX */
ia64_st_rel_32(&lkp->lock_data, 0);
#endif
}
#define simple_lock_init(alp) s_lock_init(alp)
#define simple_lock(alp) s_lock(alp)
#define simple_lock_try(alp) s_lock_try(alp)
#define simple_unlock(alp) s_unlock(alp)
#define COM_LOCK()
#define COM_UNLOCK()