linux-mips
[Top] [All Lists]

When code and comments disagree...

To: linux-mips@linux-mips.org
Subject: When code and comments disagree...
From: Ulrich Eckhardt <eckhardt@satorlaser.com>
Date: Wed, 6 Apr 2005 17:00:53 +0200
Organization: Sator Laser GmbH
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.7.2
... both are probably wrong, as the saying goes. I stumbled across this line 
in arch/mips/au1000/common/reset.c:

   au_writel(0x00, 0xb1900100); /* sys_pininputen */

However, 0xb1900100 is SYS_TRIOUTCLR, while SYS_PININPUTEN is 0xb1900110... 
Which one is right now?

Also, does the switch statement in that file make sense at all? I mean is it 
possible to compile a kernel that runs on several Alchemy systems?

Uli


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