svn commit: r205715 - user/jmallett/octeon/sys/mips/mips
Juli Mallett
jmallett at FreeBSD.org
Fri Mar 26 22:04:57 UTC 2010
Author: jmallett
Date: Fri Mar 26 22:04:57 2010
New Revision: 205715
URL: http://svn.freebsd.org/changeset/base/205715
Log:
Shift exception code to get offset into table of 64-bit pointers.
Modified:
user/jmallett/octeon/sys/mips/mips/exception.S
Modified: user/jmallett/octeon/sys/mips/mips/exception.S
==============================================================================
--- user/jmallett/octeon/sys/mips/mips/exception.S Fri Mar 26 22:04:11 2010 (r205714)
+++ user/jmallett/octeon/sys/mips/mips/exception.S Fri Mar 26 22:04:57 2010 (r205715)
@@ -203,6 +203,9 @@ VECTOR(MipsException, unknown)
sll k0, k0, 3 # shift user bit for cause index
#endif
and k1, k1, CR_EXC_CODE # Mask out the cause bits.
+#if defined(__mips_n64)
+ sll k1, k1, 1 # shift code to get 8-byte offset
+#endif
or k1, k1, k0 # change index to user table
1:
PTR_LA k0, _C_LABEL(machExceptionTable) # get base of the jump table
More information about the svn-src-user
mailing list