Doh. Fix a 64-bit-ism by using uintptr_t for a temporary lock variable

instead of int.
This commit is contained in:
jhb 2000-10-20 20:24:40 +00:00
parent e6801485e2
commit 1b2b9bc04a
3 changed files with 3 additions and 3 deletions

View File

@ -232,7 +232,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
m, m->mtx_lock, RETIP(m));
while (!_obtain_lock(m, p)) {
int v;
uintptr_t v;
struct proc *p1;
mtx_enter(&sched_lock, MTX_SPIN | MTX_RLIKELY);

View File

@ -232,7 +232,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
m, m->mtx_lock, RETIP(m));
while (!_obtain_lock(m, p)) {
int v;
uintptr_t v;
struct proc *p1;
mtx_enter(&sched_lock, MTX_SPIN | MTX_RLIKELY);

View File

@ -232,7 +232,7 @@ mtx_enter_hard(struct mtx *m, int type, int saveintr)
CTR3(KTR_LOCK, "mtx_enter: 0x%p contested (lock=%p) [0x%p]",
m, m->mtx_lock, RETIP(m));
while (!_obtain_lock(m, p)) {
int v;
uintptr_t v;
struct proc *p1;
mtx_enter(&sched_lock, MTX_SPIN | MTX_RLIKELY);