Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2009 19:42:23 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r192664 - projects/mips/sys/mips/mips
Message-ID:  <200905231942.n4NJgNca065394@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Sat May 23 19:42:23 2009
New Revision: 192664
URL: http://svn.freebsd.org/changeset/base/192664

Log:
  - cpu_establish_hardintr modifies INT_MASK of Status
      register, so we should use disableintr/restoreintr that
      modifies only IE bit.

Modified:
  projects/mips/sys/mips/mips/nexus.c

Modified: projects/mips/sys/mips/mips/nexus.c
==============================================================================
--- projects/mips/sys/mips/mips/nexus.c	Sat May 23 19:17:27 2009	(r192663)
+++ projects/mips/sys/mips/mips/nexus.c	Sat May 23 19:42:23 2009	(r192664)
@@ -169,14 +169,14 @@ nexus_setup_intr(device_t dev, device_t 
 {
 	int irq;
 
-	register_t sr = intr_disable();
+	intrmask_t s = disableintr();
 	irq = rman_get_start(res);
 	if (irq >= NUM_MIPS_IRQS)
 		return (0);
 
 	cpu_establish_hardintr(device_get_nameunit(child), filt, intr, arg,
 	    irq, flags, cookiep);
-	intr_restore(sr);
+	restoreintr(s);
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905231942.n4NJgNca065394>