From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
Alexander Kuleshov <kuleshovmail@gmail.com>
Subject: [PATCH v2] x86/boot: Add ability to call printf in video modes initialization
Date: Wed, 7 Jan 2015 19:54:54 +0600 [thread overview]
Message-ID: <1420638894-14286-1-git-send-email-kuleshovmail@gmail.com> (raw)
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 <kuleshovmail@gmail.com>
---
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
diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile
index 7c0d7be..7354820 100644
--- a/arch/x86/realmode/rm/Makefile
+++ b/arch/x86/realmode/rm/Makefile
@@ -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
diff --git a/arch/x86/realmode/rm/printf.c b/arch/x86/realmode/rm/printf.c
new file mode 100644
index 0000000..bae7729
--- /dev/null
+++ b/arch/x86/realmode/rm/printf.c
@@ -0,0 +1 @@
+#include "../../boot/printf.c"
diff --git a/arch/x86/realmode/rm/string.c b/arch/x86/realmode/rm/string.c
new file mode 100644
index 0000000..cbd5413
--- /dev/null
+++ b/arch/x86/realmode/rm/string.c
@@ -0,0 +1 @@
+#include "../../boot/string.c"
diff --git a/arch/x86/realmode/rm/tty.c b/arch/x86/realmode/rm/tty.c
new file mode 100644
index 0000000..d915398
--- /dev/null
+++ b/arch/x86/realmode/rm/tty.c
@@ -0,0 +1 @@
+#include "../../boot/tty.c"
--
2.2.1.212.gc5b9256
next reply other threads:[~2015-01-07 13:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-07 13:54 Alexander Kuleshov [this message]
2015-01-13 11:22 ` [PATCH v2] x86/boot: Add ability to call printf in video modes initialization Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420638894-14286-1-git-send-email-kuleshovmail@gmail.com \
--to=kuleshovmail@gmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).