summaryrefslogtreecommitdiff
path: root/sys/lockdoc/init_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lockdoc/init_data.c')
-rw-r--r--sys/lockdoc/init_data.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/lockdoc/init_data.c b/sys/lockdoc/init_data.c
index 12d7b752547..afef6122f2a 100644
--- a/sys/lockdoc/init_data.c
+++ b/sys/lockdoc/init_data.c
@@ -10,14 +10,13 @@ void lockdoc_send_current_task_addr(void) {
u_long flags;
flags = x86_read_flags();
- _x86_disable_intr();
+ _x86_disable_intr();
memset(&la_buffer,0,sizeof(la_buffer));
la_buffer.action = LOCKDOC_CURRENT_TASK;
la_buffer.ptr = (uint32_t)((uint32_t)curcpu()->ci_self + offsetof(struct cpu_info, ci_curlwp));
-
- lockdoc_outb(PING_CHAR,IO_PORT_LOG);
+ LOCKDOC_PING();
x86_write_flags(flags);
}
@@ -26,13 +25,13 @@ void lockdoc_send_lwp_flag_offset(void) {
u_long flags;
flags = x86_read_flags();
- _x86_disable_intr();
+ _x86_disable_intr();
memset(&la_buffer,0,sizeof(la_buffer));
la_buffer.action = LOCKDOC_LWP_FLAG_OFFSET;
la_buffer.ptr = offsetof(struct lwp, l_pflag);
- lockdoc_outb(PING_CHAR,IO_PORT_LOG);
+ LOCKDOC_PING();
x86_write_flags(flags);
}
@@ -41,13 +40,13 @@ void lockdoc_send_pid_offset(void) {
u_long flags;
flags = x86_read_flags();
- _x86_disable_intr();
+ _x86_disable_intr();
memset(&la_buffer,0,sizeof(la_buffer));
la_buffer.action = LOCKDOC_PID_OFFSET;
la_buffer.ptr = offsetof(struct lwp, l_lid);
- lockdoc_outb(PING_CHAR,IO_PORT_LOG);
+ LOCKDOC_PING();
x86_write_flags(flags);
}
@@ -56,13 +55,14 @@ void lockdoc_send_kernel_version(void) {
u_long flags;
flags = x86_read_flags();
- _x86_disable_intr();
+ _x86_disable_intr();
memset(&la_buffer,0,sizeof(la_buffer));
- snprintf((char*)&la_buffer.type, LOG_CHAR_BUFFER_LEN, "%s", "notimplemented"); // TODO Implement
+ snprintf((char*)&la_buffer.type, LOCKDOC_LOG_CHAR_BUFFER_LEN,
+ "%d-lockdoc-%s", __NetBSD_Version__, LOCKDOC_VERSION);
la_buffer.action = LOCKDOC_KERNEL_VERSION;
- lockdoc_outb(PING_CHAR,IO_PORT_LOG);
+ LOCKDOC_PING();
x86_write_flags(flags);
}