svn commit: r232765 - head/sys/mips/mips
Juli Mallett
jmallett at FreeBSD.org
Sat Mar 10 05:38:04 UTC 2012
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
More information about the svn-src-all
mailing list