Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 05:38:04 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232765 - head/sys/mips/mips
Message-ID:  <201203100538.q2A5c4XF041836@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Sat Mar 10 05:38:04 2012
New Revision: 232765
URL: http://svn.freebsd.org/changeset/base/232765

Log:
  o) Bump INTRCOUNT_COUNT to 256, since Octeon already has >128.
     XXX It would be good to use a better way to size intrcnt.
  o) Fix literal 4s that are supposed to be sizeof (u_long).
     XXX Why the * 2 here?  Is this an artifact of a different system that this
         code came from?  We seem to allocate twice as much space for intrcnt
         as we admit to in sintrcnt.

Modified:
  head/sys/mips/mips/exception.S

Modified: head/sys/mips/mips/exception.S
==============================================================================
--- head/sys/mips/mips/exception.S	Sat Mar 10 04:14:04 2012	(r232764)
+++ head/sys/mips/mips/exception.S	Sat Mar 10 05:38:04 2012	(r232765)
@@ -71,7 +71,7 @@
 /*
  * Reasonable limit
  */
-#define	INTRCNT_COUNT	128
+#define	INTRCNT_COUNT	256
 
 
 /*
@@ -1188,14 +1188,14 @@ sintrnames:
 	.int  INTRCNT_COUNT * (MAXCOMLEN + 1) * 2
 #endif
 
-	.align	4
+	.align	(_MIPS_SZLONG / 8)
 intrcnt:
-	.space  INTRCNT_COUNT * 4 * 2
+	.space  INTRCNT_COUNT * (_MIPS_SZLONG / 8) * 2
 sintrcnt:
 #ifdef __mips_n64
-	.quad  INTRCNT_COUNT * 4 * 2
+	.quad  INTRCNT_COUNT * (_MIPS_SZLONG / 8) * 2
 #else
-	.int  INTRCNT_COUNT * 4 * 2
+	.int  INTRCNT_COUNT * (_MIPS_SZLONG / 8) * 2
 #endif
 
 



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