svn commit: r300726 - head/sys/riscv/include

Ruslan Bukin br at FreeBSD.org
Thu May 26 10:03:32 UTC 2016


Author: br
Date: Thu May 26 10:03:30 2016
New Revision: 300726
URL: https://svnweb.freebsd.org/changeset/base/300726

Log:
  Increase the size and alignment of the setjmp buffer.
  This is required for future CPU extentions.
  
  Reviewed by:	brooks
  Sponsored by:	DARPA, AFRL
  Sponsored by:	HEIF5

Modified:
  head/sys/riscv/include/setjmp.h

Modified: head/sys/riscv/include/setjmp.h
==============================================================================
--- head/sys/riscv/include/setjmp.h	Thu May 26 10:03:22 2016	(r300725)
+++ head/sys/riscv/include/setjmp.h	Thu May 26 10:03:30 2016	(r300726)
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>
 
-#define	_JBLEN		32	/* sp, ra, [f]s0-11, magic val, sigmask */
+#define	_JBLEN		63	/* sp, ra, [f]s0-11, magic val, sigmask */
 #define	_JB_SIGMASK	21
 
 #ifdef	__ASSEMBLER__
@@ -54,10 +54,10 @@
  * internally to avoid some run-time errors for mismatches.
  */
 #if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
-typedef	struct _sigjmp_buf { long _sjb[_JBLEN + 1]; } sigjmp_buf[1];
+typedef	struct _sigjmp_buf { long _sjb[_JBLEN + 1] __aligned(16); } sigjmp_buf[1];
 #endif
 
-typedef	struct _jmp_buf { long _jb[_JBLEN + 1]; } jmp_buf[1];
+typedef	struct _jmp_buf { long _jb[_JBLEN + 1] __aligned(16); } jmp_buf[1];
 #endif	/* __ASSEMBLER__ */
 
 #endif /* !_MACHINE_SETJMP_H_ */


More information about the svn-src-head mailing list