Problem serial.c on module

David A. Gatwood dgatwood at apple.com
Sat Sep 29 03:41:23 EST 2001


On Friday, September 28, 2001, at 08:15 AM, Tom Rini wrote:

> On Fri, Sep 28, 2001 at 02:33:01PM +0900, KOBAYASHI R. Taizo wrote:
>
>> I examined this problem and had a question.
>> Dose it need following branch?
>> ================L5375==
>> #ifdef CONFIG_ALL_PPC
>>         /* early PowerMacs would machine check */
>>         if (_machine == _MACH_Pmac) {
>>                 printk(KERN_INFO "serial.c: nothing to do on
>> PowerMacs.\n");
>>                 return 0;
>>         }
>> #endif
>> =======================
>
> Some older machines apparently do.  The current 'workaround' in 2_4 is
> #if defined(CONFIG_ALL_PPC) && !defined(MODULE).

That's disgusting.  This should be doing the Linux equivalent of setjmp
and trapping the machine check and returning 0.  Hardware probes
shouldn't need hacks like this.  Just my $0.02.


David


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list