Doh. Fix a 64-bit-ism by using uintptr_t for a temporary lock variable
instead of int.
This commit is contained in:
parent
e6801485e2
commit
1b2b9bc04a
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user