aboutsummaryrefslogtreecommitdiff
path: root/vboxlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'vboxlog.h')
-rw-r--r--vboxlog.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/vboxlog.h b/vboxlog.h
new file mode 100644
index 0000000..11ecf68
--- /dev/null
+++ b/vboxlog.h
@@ -0,0 +1,12 @@
+#ifndef VBOXDLOG_H
+#define VBOXDLOG_H
+
+/** Logs a single character to the VBox debug message port. */
+static void vbox_log_putc(char c);
+#pragma aux vbox_log_putc = \
+ "mov dx, 0x504" \
+ "out dx, al" \
+ __parm [al] \
+ __modify [dx]
+
+#endif // VBOXDLOG_H