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.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/lockdoc/log.c b/sys/lockdoc/log.c
index e2d49c76090..91d2a8d02cb 100644
--- a/sys/lockdoc/log.c
+++ b/sys/lockdoc/log.c
@@ -1,3 +1,22 @@
+#include <arch/x86/include/cpufunc.h>
#include <sys/lockdoc.h>
+#include "opt_lockdebug.h"
+
+#ifdef LOCKDEBUG
+
struct log_action la_buffer;
+
+void __x86_disable_intr(const char *file, int line, const char *func){
+ // TODO Actually log things
+ lockdoc_x86_disable_intr();
+ __asm __volatile("cli" : : : "memory");
+}
+
+void __x86_enable_intr(const char *file, int line, const char *func){
+ // TODO Actually log things
+ lockdoc_x86_enable_intr();
+ __asm __volatile ("sti" ::: "memory");
+}
+
+#endif /* LOCKDEBUG */ \ No newline at end of file