x86, setup: reorganize the early console setup
commitf4ed2877b16e8146427306aea8819adac5c88374
authorYinghai Lu <yinghai@kernel.org>
Mon, 2 Aug 2010 09:17:31 +0000 (2 02:17 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 2 Aug 2010 22:51:56 +0000 (2 15:51 -0700)
tree9451d9e5bb300634b00c25bd0ab155a1854e4223
parent22a57f5896df218356bae6203dfaf04bcfd6c88c
x86, setup: reorganize the early console setup

Separate early_serial_console from tty.c

This allows for reuse of
early_serial_console.c/string.c/printf.c/cmdline.c in boot/compressed/.

-v2: according to hpa, don't include string.c etc
-v3: compressed/misc.c must have early_serial_base as static, so move it back to tty.c
     for setup code

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <4C568D2B.205@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/boot/Makefile
arch/x86/boot/boot.h
arch/x86/boot/cmdline.c
arch/x86/boot/early_serial_console.c [copied from arch/x86/boot/tty.c with 57% similarity]
arch/x86/boot/isdigit.h [new file with mode: 0644]
arch/x86/boot/printf.c
arch/x86/boot/tty.c