diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-07-11 11:06:57 +0300 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-12 14:46:00 -0700 |
commit | fa97bdf92709adaaf8b9a5164a895e262a4fcf60 (patch) | |
tree | e34f1b6232c302e39065f3dd7ef8bbf4c8ac3d3d /arch/x86/boot/main.c | |
parent | 589643be6693c46fbc54bae77745f336c8ed4bcc (diff) | |
download | linux-fa97bdf92709adaaf8b9a5164a895e262a4fcf60.tar.bz2 |
x86, setup: Early-boot serial I/O support
This patch adds serial I/O support to the real-mode setup (very early
boot) printf(). It's useful for debugging boot code when running Linux
under KVM, for example. The actual code was lifted from early printk.
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1278835617-11368-1-git-send-email-penberg@cs.helsinki.fi>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/boot/main.c')
-rw-r--r-- | arch/x86/boot/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/boot/main.c b/arch/x86/boot/main.c index 140172b895bd..4ef1a33e8572 100644 --- a/arch/x86/boot/main.c +++ b/arch/x86/boot/main.c @@ -130,6 +130,9 @@ void main(void) /* First, copy the boot header into the "zeropage" */ copy_boot_params(); + /* Initialize the early-boot console */ + console_init(); + /* End of heap check */ init_heap(); |