Project

General

Profile

Submit #2449 » 0001-Fix-INVARIANT-build-issue.patch

New patch. - adamsaka, 11/07/2012 09:21 PM

View differences:

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;
}
(2-2/2)