summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/console/Kconfig4
-rw-r--r--src/console/post.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 02244d7ded..83826954b5 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -333,6 +333,10 @@ config NO_POST
bool "Don't show any POST codes"
default n
+config POST_PORT
+ int
+ default 0x80
+
config CONSOLE_POST
bool "Show POST codes on the debug console"
depends on !NO_POST
diff --git a/src/console/post.c b/src/console/post.c
index 3872c2d4fe..7fc9d6fc6e 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -32,6 +32,6 @@ void post_code(uint8_t value)
print_emerg_hex8(value);
print_emerg("\n");
#endif
- outb(value, 0x80);
+ outb(value, CONFIG_POST_PORT);
#endif
}