Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 10:03:31 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300726 - head/sys/riscv/include
Message-ID:  <201605261003.u4QA3VYH077142@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



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