Don't lock when the debugger is running.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32072 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
885b7b4a85
commit
16357dea6b
@ -344,13 +344,18 @@ _arch_debug_serial_putchar(const char c)
|
|||||||
void
|
void
|
||||||
arch_debug_serial_putchar(const char c)
|
arch_debug_serial_putchar(const char c)
|
||||||
{
|
{
|
||||||
cpu_status state = disable_interrupts();
|
cpu_status state = 0;
|
||||||
acquire_spinlock(&sSerialOutputSpinlock);
|
if (!debug_debugger_running()) {
|
||||||
|
state = disable_interrupts();
|
||||||
|
acquire_spinlock(&sSerialOutputSpinlock);
|
||||||
|
}
|
||||||
|
|
||||||
_arch_debug_serial_putchar(c);
|
_arch_debug_serial_putchar(c);
|
||||||
|
|
||||||
release_spinlock(&sSerialOutputSpinlock);
|
if (!debug_debugger_running()) {
|
||||||
restore_interrupts(state);
|
release_spinlock(&sSerialOutputSpinlock);
|
||||||
|
restore_interrupts(state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user