x86/boot: Add ability to call printf in video modes initialization
PATCH v2 1/1 x86/boot: Add ability to call printf in video modes initialization
Added ability to call printf in video-mode.c, video-bios.c, video-vesa.c and video-vga.c for debugging purposes.
Signed-off-by Alexander Kuleshov <[email protected]>
--- arch/x86/realmode/rm/Makefile | 3 +++ arch/x86/realmode/rm/printf.c | 1 + arch/x86/realmode/rm/string.c | 1 + arch/x86/realmode/rm/tty.c | 1 + 4 files changed, 6 insertions(+) create mode 100644 arch/x86/realmode/rm/printf.c create mode 100644 arch/x86/realmode/rm/string.c create mode 100644 arch/x86/realmode/rm/tty.c
arch/x86/realmode/rm/Makefile +3 -0
@@ -19,6 +19,9 @@ wakeup-objs += video-vga.o wakeup-objs += video-vesa.o wakeup-objs += video-bios.o +realmode-y += string.o +realmode-y += tty.o +realmode-y += printf.o realmode-y += header.o realmode-y += trampoline_$(BITS).o realmode-y += stack.o
arch/x86/realmode/rm/printf.c new file +1 -0
@@ -0,0 +1 @@ +#include "../../boot/printf.c"
arch/x86/realmode/rm/string.c new file +1 -0
@@ -0,0 +1 @@ +#include "../../boot/string.c"
arch/x86/realmode/rm/tty.c new file +1 -0
@@ -0,0 +1 @@ +#include "../../boot/tty.c"
Signature · 1 line
2.2.1.212.gc5b9256
Quoted 2 lines · Alexander Kuleshov
Added ability to call printf in
video-mode.c,video-bios.c,video-vesa.candvideo-vga.cfor debugging purposes.
And what's the exact purpose of this change? Increase binary size for nothing?
Thanks,
tglx