summaryrefslogtreecommitdiff
path: root/kern/lock_mon.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-12-21 23:00:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-12-21 23:00:13 +0100
commit7b9d0458105831a79d211f1ca98a184adedf82f5 (patch)
tree4d4bd7a0b764b1bd36c919d0fc528cc625de6f5a /kern/lock_mon.c
parenteec36e70c95490b5ffd73e1b3c90289e38fa3127 (diff)
Add a SoftDebugger function
* kern/debug.h (SoftDebugger): Add prototype. * kern/debug.c (Debugger): Move code invoking debugging trap to... (SoftDebugger): ... new function. Print the passed message. * kern/lock_mon.c (decl_simple_lock_data, retry_bit_lock): Call SoftDebugger instead of Debugger. * device/ds_routines.c (ds_device_open, device_read, device_read_inband): Call SoftDebugger instead of Debugger. * i386/i386at/model_dep.c (c_boot_entry): Call SoftDebugger instead of Debugger. * kern/syscall_sw.c (null_port, kern_invalid): Call SoftDebugger instead of Debugger. * vm/vm_object.c (vm_object_collapse): Call SoftDebugger instead of Debugger.
Diffstat (limited to 'kern/lock_mon.c')
-rw-r--r--kern/lock_mon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/lock_mon.c b/kern/lock_mon.c
index 7ffaeb6..1450428 100644
--- a/kern/lock_mon.c
+++ b/kern/lock_mon.c
@@ -348,7 +348,7 @@ decl_simple_lock_data(, *lock)
return;
db_printf("cpu %d looping on simple_lock(%x) called by %x\n",
cpu_number(), lock, *(((int *)&lock) -1));
- Debugger("simple_lock timeout");
+ SoftDebugger("simple_lock timeout");
count = 0;
}
}
@@ -362,7 +362,7 @@ retry_bit_lock(index, addr)
if (count++ > 1000000) {
db_printf("cpu %d looping on bit_lock(%x, %x) called by %x\n",
cpu_number(), index, addr, *(((int *)&index) -1));
- Debugger("bit_lock timeout");
+ SoftDebugger("bit_lock timeout");
count = 0;
}
}