[Top] [All Lists]

Re: [PATCH] kill prom_printf

To: "Maciej W. Rozycki" <>
Subject: Re: [PATCH] kill prom_printf
From: Juan Quintela <>
Date: Tue, 17 Jun 2003 01:31:02 +0200
Cc: Ladislav Michl <>,
In-reply-to: <> (Maciej W. Rozycki's message of "Mon, 16 Jun 2003 17:19:45 +0200 (MET DST)")
Original-recipient: rfc822;
References: <>
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
>>>>> "maciej" == Maciej W Rozycki <> writes:

maciej> On Mon, 16 Jun 2003, Ladislav Michl wrote:
>> I was told by many people that prom_printf and friends should die and
>> early_printk should be used instead. this patch (against 2.5) does first
>> part of job. compiles and works on IP22 (SNI RM200 and IP32 don't
>> compile anyway). Feedback appreciated, as always.

maciej> Hmm, strange idea -- I guess that originates from systems that have no
maciej> suitable firmware to perform such an operation at the console.  
maciej> only x86_64 implements early_printk() -- if we have an implementation 
maciej> MIPS, we may consider removing the alternative.  Also prom_printf() 
maciej> almost for free and works very early and as I see in the x86_64 version
maciej> early_printk() requires initialization of a console driver, which may be
maciej> unfortunate if debugging a problem within the driver. 

There is at least one implementation for x86 that uses the VGA
directly (as the BIOS left it), getting it very soon.

But you are right, PC's speciality is not to have a nice console.
Anyways, you can use early_printk() in MIPS.  You only need to put the
setup of the early console sooner, as for you the setup is basically a NOP.

Later, Juan.

In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>