[parisc-linux] sticon/sercon patch for new bootfloppies...

Helge Deller deller@gmx.de
Wed, 13 Jun 2001 02:24:49 +0200


--------------Boundary-00=_DHEUAPEMAJDVGWCE8KM5
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Subject: 

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

--------------Boundary-00=_DHEUAPEMAJDVGWCE8KM5
Content-Type: text/x-c;
  charset="iso-8859-1";
  name="PDC_CONSOLE_short.patch"
Content-Transfer-Encoding: base64
Content-Description: patch
Content-Disposition: attachment; filename="PDC_CONSOLE_short.patch"

SW5kZXg6IGFyY2gvcGFyaXNjL2tlcm5lbC9wZGNfY29ucy5jCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6
IC9ob21lL2N2cy9wYXJpc2MvbGludXgvYXJjaC9wYXJpc2Mva2VybmVsL3BkY19jb25zLmMsdgpy
ZXRyaWV2aW5nIHJldmlzaW9uIDEuMjUKZGlmZiAtdSAtcjEuMjUgcGRjX2NvbnMuYwotLS0gcGRj
X2NvbnMuYwkyMDAxLzA0LzA2IDA1OjEwOjU0CTEuMjUKKysrIHBkY19jb25zLmMJMjAwMS8wNi8x
MyAwNjowODoyNgpAQCAtMTEsNiArMTEsMTAgQEAKICNpbmNsdWRlIDxhc20vc3lzdGVtLmg+CiAj
aW5jbHVkZSA8YXNtL3BkYy5oPgkvKiBmb3IgaW9kY19jYWxsKCkgcHJvdG8gYW5kIGZyaWVuZHMg
Ki8KIAorCisvKiBFbmFibGUgdG8gdXNlIHRoaXMgc2ltcGxlIFBEQyBjb25zb2xlIChmb3IgZGVi
dWdnaW5nIHB1cnBvc2VzIG9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