Submit #2449 » 0001-Fix-INVARIANT-build-issue.patch
sys/kern/kern_spinlock.c | ||
---|---|---|
for (j = spinlocks_add_latency; j > 0; --j)
|
||
cpu_ccfence();
|
||
#endif
|
||
#if defined(INVARIANTS)
|
||
if (spin_lock_test_mode > 10 &&
|
||
spin->countb > spin_lock_test_mode &&
|
||
(spin_lock_test_mode & 0xFF) == mycpu->gd_cpuid) {
|
||
spin->countb = 0;
|
||
print_backtrace(-1);
|
||
}
|
||
i = 0;
|
||
++spin->countb;
|
||
#endif
|
||
i = 0;
|
||
/*logspin(beg, spin, 'w');*/
|
||
for (;;) {
|
||
... | ... | |
break;
|
||
}
|
||
if ((++i & 0x7F) == 0x7F) {
|
||
#if defined(INVARIANTS)
|
||
++spin->countb;
|
||
#endif
|
||
if (spin_indefinite_check(spin, &info))
|
||
break;
|
||
}
|
||
... | ... | |
for (j = spinlocks_add_latency; j > 0; --j)
|
||
cpu_ccfence();
|
||
#endif
|
||
#if defined(INVARIANTS)
|
||
if (spin_lock_test_mode > 10 &&
|
||
spin->countb > spin_lock_test_mode &&
|
||
(spin_lock_test_mode & 0xFF) == mycpu->gd_cpuid) {
|
||
spin->countb = 0;
|
||
print_backtrace(-1);
|
||
}
|
||
i = 0;
|
||
++spin->countb;
|
||
#endif
|
||
i = 0;
|
||
/*logspin(beg, spin, 'w');*/
|
||
for (;;) {
|
||
... | ... | |
break;
|
||
}
|
||
if ((++i & 0x7F) == 0x7F) {
|
||
#if defined(INVARIANTS)
|
||
++spin->countb;
|
||
#endif
|
||
if (spin_indefinite_check(spin, &info))
|
||
break;
|
||
}
|
- « Previous
- 1
- 2
- Next »