All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] sticon/sercon patch for new bootfloppies...
Date: Wed, 13 Jun 2001 02:24:49 +0200	[thread overview]
Message-ID: <20010613002536.AB3E8482A@dsl2.external.hp.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hi,

the attached patch enables only those consoles, which are given on the linux 
kernel command line.
Examples: "console=tty0" activates STIcon only, "console=ttyS0" activates 
serial console only and if you use both on the commandline you will get the 
system messages on both consoles.

Known bugs: 
- STIcon will not show any messages which happened before the STI
	initialisation

Please test and comment
Greetings,
Helge

[-- Attachment #2: patch --]
[-- Type: text/x-c, Size: 2069 bytes --]

Index: arch/parisc/kernel/pdc_cons.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/pdc_cons.c,v
retrieving revision 1.25
diff -u -r1.25 pdc_cons.c
--- pdc_cons.c	2001/04/06 05:10:54	1.25
+++ pdc_cons.c	2001/06/13 06:08:26
@@ -11,6 +11,10 @@
 #include <asm/system.h>
 #include <asm/pdc.h>	/* for iodc_call() proto and friends */
 
+
+/* Enable to use this simple PDC console (for debugging purposes only!): */
+#undef EARLY_BOOTUP_DEBUG
+
 static void pdc_console_write(struct console *co, const char *s, unsigned count)
 {
 	while(count--)
@@ -46,15 +50,18 @@
 	if (PAGE0->mem_cons.cl_class == CL_DUPLEX)
 		memcpy(&PAGE0->mem_kbd, &PAGE0->mem_cons, sizeof(PAGE0->mem_cons));
 
+#ifdef EARLY_BOOTUP_DEBUG
 	pdc_console_write(0, "PDC Console Initialized\n", 24);
 	/* register the pdc console */
 	register_console(&pdc_cons);
+#endif /* EARLY_BOOTUP_DEBUG */
 }
 
 
 /* Unregister the pdc console with the printk console layer */
 void pdc_console_die(void)
 {
+#ifdef EARLY_BOOTUP_DEBUG
 	extern unsigned long log_size; /* kernel/printk.c */
 
 	printk("Switching from PDC console\n");
@@ -74,6 +81,7 @@
 #endif
 
 	unregister_console(&pdc_cons);
+#endif /* EARLY_BOOTUP_DEBUG */
 }
 
 
Index: arch/parisc/kernel/setup.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/setup.c,v
retrieving revision 1.81
diff -u -r1.81 setup.c
--- setup.c	2001/04/06 05:10:54	1.81
+++ setup.c	2001/06/13 06:08:27
@@ -425,14 +425,10 @@
 			boot_cpu_data.cpu_hz / 1000000,
 			boot_cpu_data.cpu_hz % 1000000	);
 
-#ifdef CONFIG_SERIAL_CONSOLE
-	/* nothing */
-#elif CONFIG_VT
-#if   defined(CONFIG_STI_CONSOLE)
-	conswitchp = &dummy_con;	/* we use take_over_console() later ! */
-#elif defined(CONFIG_DUMMY_CONSOLE)
-	conswitchp = &dummy_con;
-#endif
+#ifdef CONFIG_VT
+# if defined(CONFIG_STI_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
+        conswitchp = &dummy_con;        /* we use take_over_console() later ! */
+# endif
 #endif
 
 }


             reply	other threads:[~2001-06-13  0:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13  0:24 Helge Deller [this message]
2001-06-13 12:40 ` [parisc-linux] sticon/sercon patch for new bootfloppies Richard Hirst

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=20010613002536.AB3E8482A@dsl2.external.hp.com \
    --to=deller@gmx.de \
    --cc=parisc-linux@lists.parisc-linux.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.