Skip to contentSkip to conversation

x86/boot: Add ability to call printf in video modes initialization

PATCH Superseded Alexander Kuleshov 1 participant 1 message Jan 6, 2015 x86

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 arch/x86/realmode/rm/Makefile | 4 ++--
 arch/x86/realmode/rm/printf.c | 1 +
 arch/x86/realmode/rm/string.c | 1 +
 arch/x86/realmode/rm/tty.c    | 1 +
 4 files changed, 5 insertions(+), 2 deletions(-)
 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 +2 -2
index 7c0d7be..e0f78f5 100644
@@ -9,8 +9,8 @@
 
 always := realmode.bin realmode.relocs
 
-wakeup-objs	:= wakeup_asm.o wakemain.o video-mode.o
-wakeup-objs	+= copy.o bioscall.o regs.o
+wakeup-objs	:= wakeup_asm.o wakemain.o string.o tty.o printf.o
+wakeup-objs	+= video-mode.o copy.o bioscall.o regs.o
 # The link order of the video-*.o modules can matter.  In particular,
 # video-vga.o *must* be listed first, followed by video-vesa.o.
 # Hardware-specific drivers should follow in the order they should be
arch/x86/realmode/rm/printf.c new file +1 -0
new file mode 100644
index 0000000..bae7729
@@ -0,0 +1 @@
+#include "../../boot/printf.c"
arch/x86/realmode/rm/string.c new file +1 -0
new file mode 100644
index 0000000..cbd5413
@@ -0,0 +1 @@
+#include "../../boot/string.c"
arch/x86/realmode/rm/tty.c new file +1 -0
new file mode 100644
index 0000000..d915398
@@ -0,0 +1 @@
+#include "../../boot/tty.c"
Signature · 1 line
2.2.1.212.gc5b9256