Date: Fri, 26 Mar 2010 22:04:57 +0000 (UTC) From: Juli Mallett <jmallett@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r205715 - user/jmallett/octeon/sys/mips/mips Message-ID: <201003262204.o2QM4vYW073642@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003262204.o2QM4vYW073642>