Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 19:02:22 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r207876 - stable/7/sys/sparc64/sparc64
Message-ID:  <201005101902.o4AJ2MaI040082@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon May 10 19:02:22 2010
New Revision: 207876
URL: http://svn.freebsd.org/changeset/base/207876

Log:
  MFC: r207500
  
  Add a hack for SPARC64 V CPUs, which set some undocumented bits in the
  first data word.

Modified:
  stable/7/sys/sparc64/sparc64/interrupt.S
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/sparc64/sparc64/interrupt.S
==============================================================================
--- stable/7/sys/sparc64/sparc64/interrupt.S	Mon May 10 19:02:21 2010	(r207875)
+++ stable/7/sys/sparc64/sparc64/interrupt.S	Mon May 10 19:02:22 2010	(r207876)
@@ -83,8 +83,11 @@ ENTRY(intr_vector)
 	 * The 2nd word points to code to execute and the 3rd is an argument
 	 * to pass.  Jump to it.
 	 */
-	brnz,a,pt %g3, 1f
-	 nop
+	brnz,pt %g3, 1f
+	/*
+	 * NB: Zeus CPUs set some undocumented bits in the first data word.
+	 */
+	 and	%g3, IV_MAX - 1, %g3
 	jmpl	%g4, %g0
 	 nop
 	/* NOTREACHED */



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