summaryrefslogtreecommitdiff
path: root/sys/lockdoc/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lockdoc/log.c')
-rw-r--r--sys/lockdoc/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/lockdoc/log.c b/sys/lockdoc/log.c
index 4fbe3d4a7fd..84aba0893f5 100644
--- a/sys/lockdoc/log.c
+++ b/sys/lockdoc/log.c
@@ -25,7 +25,8 @@ void lockdoc_send_current_task_addr(void) {
memset(&la_buffer,0,sizeof(la_buffer));
la_buffer.action = LOCKDOC_CURRENT_TASK;
- //la_buffer.ptr = (uint32_t)PCPU_PTR(curlwp); TODO Implement
+ la_buffer.ptr = (uint32_t)((uint32_t)curcpu()->ci_self + offsetof(struct cpu_info, ci_curlwp));
+
outb_(PING_CHAR,IO_PORT_LOG);
lockdoc_x86_restore_intr(flags);