linux-mips
[Top] [All Lists]

Extraneous line in interrupt.h in 2.6.16.60 kernel?

To: linux-mips@linux-mips.org
Subject: Extraneous line in interrupt.h in 2.6.16.60 kernel?
From: Larry Stefani <lstefani@yahoo.com>
Date: Fri, 21 Mar 2008 09:00:52 -0700 (PDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ry3zeCwfTyvu1WL+CLM07sOhFdfQrvcR6SF34NSP27XCHaiDYSKANCd+V9HALSZLT/HOmD6v3VRh3hRb55luSvPbkQTVu6shEaJQPKNPdZNvEr636/DQ+rujXh+5pfzC2r3QyW0RoN4e8KYjJxuRHONt/wPlFmgW/tuPMZhqcTM=;
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi,

Back in 2.6.16.29, there were a lot changes made to
support MT_SMTC.  Among them were changes to the
include/asm-mips/interrupt.h:

__asm__ (
  " .macro  local_irq_enable        \n"
  " .set  push            \n"
  " .set  reorder           \n"
  " .set  noat            \n"
#ifdef CONFIG_CPU_MIPSR2
  " .set  mips32r2          \n"
#ifdef CONFIG_MIPS_MT_SMTC
  "mfc0 $1, $2, 1 # SMTC - clear TCStatus.IXMT    \n"
  "ori  $1, 0x400           \n"
  "xori $1, 0x400           \n"
  "mtc0 $1, $2, 1           \n"
#else
  " .set  mips32r2          \n"
  " ei              \n"
  " .set  mips0           \n"
#endif
#else
  " mfc0  $1,$12            \n"
  " ori $1,0x1f           \n"
  " xori  $1,0x1e           \n"
  " mtc0  $1,$12            \n"
#endif
  " irq_enable_hazard         \n"
  " .set  pop           \n"
  " .endm");


Am I missing something, or is the second ".set 
mips32r2  \n" (line 51) redundant?

Thanks,
Larry Stefani
lstefani@yahoo.com


      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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