summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/cpu/x86/post_code.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/cpu/x86/post_code.h b/src/include/cpu/x86/post_code.h
index 20b87c6ca4..7465f62332 100644
--- a/src/include/cpu/x86/post_code.h
+++ b/src/include/cpu/x86/post_code.h
@@ -1,7 +1,12 @@
#include <console/post_codes.h>
+
+#if CONFIG_IO_POST
#define post_code(value) \
movb $value, %al; \
- outb %al, $0x80
+ outb %al, $CONFIG_IO_POST_PORT
+#else
+#define post_code(value)
+#endif