diff options
| author | Merlin Scholz <merlin@scholz.ruhr> | 2023-07-19 19:37:43 +0200 |
|---|---|---|
| committer | Merlin Scholz <merlin@scholz.ruhr> | 2023-07-19 19:37:43 +0200 |
| commit | 509f0498e749fa43af638c2719442656bc3295da (patch) | |
| tree | 1ddbf2aca1e01bdb57cc723811035bde22357d82 /sys/lockdoc/init_data.c | |
| parent | c7d78f5ebdbe93048e09731ce76417ea5a78cd05 (diff) | |
Code cleanuplockdoc-10.99.5
Diffstat (limited to 'sys/lockdoc/init_data.c')
| -rw-r--r-- | sys/lockdoc/init_data.c | 20 |
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); } |
