Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2010 12:08:15 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207500 - head/sys/sparc64/sparc64
Message-ID:  <201005021208.o42C8FC2052685@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun May  2 12:08:15 2010
New Revision: 207500
URL: http://svn.freebsd.org/changeset/base/207500

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

Modified:
  head/sys/sparc64/sparc64/interrupt.S

Modified: head/sys/sparc64/sparc64/interrupt.S
==============================================================================
--- head/sys/sparc64/sparc64/interrupt.S	Sun May  2 12:07:47 2010	(r207499)
+++ head/sys/sparc64/sparc64/interrupt.S	Sun May  2 12:08:15 2010	(r207500)
@@ -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?201005021208.o42C8FC2052685>