summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-02 18:07:21 -0600
committerSimon Glass <sjg@chromium.org>2015-08-06 07:44:30 -0600
commitbbbe55f6f25e686ad799c2a70aa941eeb276adb6 (patch)
tree7051f4e1c1b12a348722b1ad945a140c0e178720 /arch/x86
parent74356d7fb1715db41dcf5530108cc0db82f278d7 (diff)
downloadtalos-obmc-uboot-bbbe55f6f25e686ad799c2a70aa941eeb276adb6.tar.gz
talos-obmc-uboot-bbbe55f6f25e686ad799c2a70aa941eeb276adb6.zip
x86: Enable debug UART for Minnowmax
Enable the debug UART and emit a single 'a' early in the init sequence to show that it is working. Unfortunately the debug UART implementation needs a stack to work. I cannot seem to remove this limitation as the absolute 'jmp %eax' instruction goes off into the weeds. So this means that the character output cannot be any earlier than car_init_ret, where memory is available for a stack. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/start.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
index e5c1733e59..313fa3ff96 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -128,6 +128,15 @@ car_init_ret:
andl $0xfffffff0, %esp
post_code(POST_START_STACK)
+ /*
+ * Debug UART is available here although it may not be plumbed out
+ * to pins depending on the board. To use it:
+ *
+ * call debug_uart_init
+ * mov $'a', %eax
+ * call printch
+ */
+
/* Zero the global data since it won't happen later */
xorl %eax, %eax
movl $GENERATED_GBL_DATA_SIZE, %ecx
OpenPOWER on IntegriCloud