From: Chad Talbott <chadt@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] early_printk for SGI SN2
Date: Wed, 18 Jun 2003 22:30:52 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105597551609147@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105597176305635@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 401 bytes --]
David Mosberger <davidm@napali.hpl.hp.com> writes:
> >>>>> On 18 Jun 2003 15:04:02 -0700, Chad Talbott <chadt@sgi.com> said:
>
> Chad> The name may not be the best. The routines are called sal_*
> Chad> as they use an SGI specific SAL call to actually output the
> Chad> text. Perhaps sn_sal_console_out?
>
> Sure, that'd work for me.
Agreed. :)
Here's the changed patch for reference.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: early_printk.diff --]
[-- Type: text/x-patch, Size: 991 bytes --]
diff -Nru a/kernel/printk.c b/kernel/printk.c
--- a/kernel/printk.c Tue Jun 17 14:47:33 2003
+++ b/kernel/printk.c Tue Jun 17 14:47:33 2003
@@ -784,6 +784,10 @@
# endif /* CONFIG_IA64_EARLY_PRINTK_UART */
+#ifdef CONFIG_IA64_EARLY_PRINTK_SGI_SN
+extern int sn_sal_console_out(const char *str, int len);
+#endif
+
void early_printk(const char *str, size_t len)
{
#ifdef CONFIG_IA64_EARLY_PRINTK_UART
@@ -791,6 +795,9 @@
#endif
#ifdef CONFIG_IA64_EARLY_PRINTK_VGA
early_printk_vga(str, len);
+#endif
+#ifdef CONFIG_IA64_EARLY_PRINTK_SGI_SN
+ sn_sal_console_out(str, len);
#endif
}
diff -Nru a/arch/ia64/Kconfig b/arch/ia64/Kconfig
--- a/arch/ia64/Kconfig Tue Jun 17 14:45:16 2003
+++ b/arch/ia64/Kconfig Tue Jun 17 14:45:16 2003
@@ -863,6 +831,10 @@
config IA64_EARLY_PRINTK_VGA
bool "Early printk on VGA"
+ depends on IA64_EARLY_PRINTK
+
+config IA64_EARLY_PRINTK_SGI_SN
+ bool "Early printk on SGI SN serial console"
depends on IA64_EARLY_PRINTK
config DEBUG_SLAB
next prev parent reply other threads:[~2003-06-18 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-18 21:29 [PATCH] early_printk for SGI SN2 Chad Talbott
2003-06-18 21:56 ` David Mosberger
2003-06-18 22:04 ` Chad Talbott
2003-06-18 22:13 ` David Mosberger
2003-06-18 22:30 ` Chad Talbott [this message]
2003-06-19 0:31 ` David Mosberger
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=marc-linux-ia64-105597551609147@msgid-missing \
--to=chadt@sgi.com \
--cc=linux-ia64@vger.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