summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-31 11:53:28 -0700
committerPatrick Georgi <pgeorgi@google.com>2016-08-01 21:40:23 +0200
commit049b46270d63c47db75b27246555c904e42fe9e2 (patch)
tree4b960b65f2309d8f979682d00e3b40ca1da1cc87 /src/include
parentf67e2cf9cf7a20e645ab2452c4b40e512bd21f50 (diff)
arch/x86: Enable postcar console
Add a Kconfig value to enable the console during postcar. Add a call to console_init at the beginning of the postcar stage in exit_car.S. TEST=Build and run on Galileo Gen2 Change-Id: I66e2ec83344129ede2c7d6e5627c8062e28f50ad Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/16001 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/console/console.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index ddb5c0524b..dcd5fe9cc2 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -18,6 +18,7 @@
#include <stdint.h>
#include <rules.h>
+#include <arch/cpu.h>
#include <console/post_codes.h>
#include <commonlib/loglevel.h>
@@ -51,7 +52,7 @@ void __attribute__ ((noreturn)) die(const char *msg);
(ENV_SMM && CONFIG_DEBUG_SMI))
#if __CONSOLE_ENABLE__
-void console_init(void);
+asmlinkage void console_init(void);
int console_log_level(int msg_level);
int do_printk(int msg_level, const char *fmt, ...) __attribute__((format(printf, 2, 3)));
void do_putchar(unsigned char byte);