SF.net SVN: gar:[25793] csw/mgar/pkg/openssl1/trunk

janholzh at users.sourceforge.net janholzh at users.sourceforge.net
Wed Jun 29 15:09:12 CEST 2016


Revision: 25793
          http://sourceforge.net/p/gar/code/25793
Author:   janholzh
Date:     2016-06-29 13:09:11 +0000 (Wed, 29 Jun 2016)
Log Message:
-----------
openssl1/trunk: add new patch from oracle for HW crypto

Modified Paths:
--------------
    csw/mgar/pkg/openssl1/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/openssl1/trunk/files/049-use-srln.patch

Modified: csw/mgar/pkg/openssl1/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openssl1/trunk/Makefile	2016-06-29 12:01:05 UTC (rev 25792)
+++ csw/mgar/pkg/openssl1/trunk/Makefile	2016-06-29 13:09:11 UTC (rev 25793)
@@ -138,6 +138,7 @@
 PATCHFILES += 040-uninitialized_ctx.patch
 PATCHFILES += 043-x86_wrong_platform.patch
 PATCHFILES += 044-suppress_v8plus_abi_warnings.patch
+PATCHFILES += 049-use-srln.patch
 #PATCHFILES += 046-weak-ciphers.patch
 
 LICENSE = LICENSE

Added: csw/mgar/pkg/openssl1/trunk/files/049-use-srln.patch
===================================================================
--- csw/mgar/pkg/openssl1/trunk/files/049-use-srln.patch	                        (rev 0)
+++ csw/mgar/pkg/openssl1/trunk/files/049-use-srln.patch	2016-06-29 13:09:11 UTC (rev 25793)
@@ -0,0 +1,115 @@
+# This patch fixes the invalid use of 64-bit instruction (srlx) by 32-bit
+# applications.  This was developed in house and submitted to the upstream:
+#    https://github.com/openssl/openssl/pull/1259
+--- a/crypto/des/asm/dest4-sparcv9.pl	2016-05-03 06:44:42.000000000 -0700
++++ b/crypto/des/asm/dest4-sparcv9.pl	2016-06-23 09:34:51.212075615 -0700
+@@ -110,7 +111,7 @@
+ 	and		$out, 7, %g4
+ 	alignaddrl	$out, %g0, $out
+ 	srl		$omask, %g4, $omask
+-	srlx		$len, 3, $len
++	srln		$len, 3, $len
+ 	movrz		%g4, 0, $omask
+ 	prefetch	[$out], 22
+ 
+@@ -211,7 +212,7 @@
+ 	and		$out, 7, %g4
+ 	alignaddrl	$out, %g0, $out
+ 	srl		$omask, %g4, $omask
+-	srlx		$len, 3, $len
++	srln		$len, 3, $len
+ 	movrz		%g4, 0, $omask
+ 	prefetch	[$out], 22
+ 
+@@ -319,7 +320,7 @@
+ 	and		$out, 7, %g4
+ 	alignaddrl	$out, %g0, $out
+ 	srl		$omask, %g4, $omask
+-	srlx		$len, 3, $len
++	srln		$len, 3, $len
+ 	movrz		%g4, 0, $omask
+ 	prefetch	[$out], 22
+ 
+@@ -471,7 +472,7 @@
+ 	and		$out, 7, %g4
+ 	alignaddrl	$out, %g0, $out
+ 	srl		$omask, %g4, $omask
+-	srlx		$len, 3, $len
++	srln		$len, 3, $len
+ 	movrz		%g4, 0, $omask
+ 	prefetch	[$out], 22
+ 
+--- a/crypto/perlasm/sparcv9_modes.pl	2016-05-03 06:44:42.000000000 -0700
++++ b/crypto/perlasm/sparcv9_modes.pl	2016-06-23 09:34:10.707332695 -0700
+@@ -75,7 +75,7 @@
+ 	srl		$omask, $ooff, $omask
+ 
+ 	alignaddrl	$out, %g0, $out
+-	srlx		$len, 4, $len
++	srln		$len, 4, $len
+ 	prefetch	[$out], 22
+ 
+ .L${bits}_cbc_enc_loop:
+@@ -185,7 +185,7 @@
+ 	and	$blk_init, 63, $blk_init	! tail
+ 	sub	$len, $blk_init, $len
+ 	add	$blk_init, 15, $blk_init	! round up to 16n
+-	srlx	$len, 4, $len
++	srln	$len, 4, $len
+ 	srl	$blk_init, 4, $blk_init
+ 
+ .L${bits}_cbc_enc_blk_loop:
+@@ -292,7 +292,7 @@
+ 	srl		$omask, $ooff, $omask
+ 
+ 	andcc		$len, 16, %g0		! is number of blocks even?
+-	srlx		$len, 4, $len
++	srln		$len, 4, $len
+ 	alignaddrl	$out, %g0, $out
+ 	bz		%icc, .L${bits}_cbc_dec_loop2x
+ 	prefetch	[$out], 22
+@@ -517,7 +517,7 @@
+ 	and	$blk_init, 63, $blk_init	! tail
+ 	sub	$len, $blk_init, $len
+ 	add	$blk_init, 15, $blk_init	! round up to 16n
+-	srlx	$len, 4, $len
++	srln	$len, 4, $len
+ 	srl	$blk_init, 4, $blk_init
+ 	sub	$len, 1, $len
+ 	add	$blk_init, 1, $blk_init
+@@ -648,7 +648,7 @@
+ 	andcc		$len, 16, %g0		! is number of blocks even?
+ 	alignaddrl	$out, %g0, $out
+ 	bz		%icc, .L${bits}_ctr32_loop2x
+-	srlx		$len, 4, $len
++	srln		$len, 4, $len
+ .L${bits}_ctr32_loop:
+ 	ldx		[$inp + 0], %o0
+ 	brz,pt		$ileft, 4f
+@@ -819,7 +819,7 @@
+ 	and	$blk_init, 63, $blk_init	! tail
+ 	sub	$len, $blk_init, $len
+ 	add	$blk_init, 15, $blk_init	! round up to 16n
+-	srlx	$len, 4, $len
++	srln	$len, 4, $len
+ 	srl	$blk_init, 4, $blk_init
+ 	sub	$len, 1, $len
+ 	add	$blk_init, 1, $blk_init
+@@ -966,7 +966,7 @@
+ $code.=<<___;
+ 	alignaddrl	$out, %g0, $out
+ 	bz		%icc, .L${bits}_xts_${dir}loop2x
+-	srlx		$len, 4, $len
++	srln		$len, 4, $len
+ .L${bits}_xts_${dir}loop:
+ 	ldx		[$inp + 0], %o0
+ 	brz,pt		$ileft, 4f
+@@ -1172,7 +1172,7 @@
+ 	and	$blk_init, 63, $blk_init	! tail
+ 	sub	$len, $blk_init, $len
+ 	add	$blk_init, 15, $blk_init	! round up to 16n
+-	srlx	$len, 4, $len
++	srln	$len, 4, $len
+ 	srl	$blk_init, 4, $blk_init
+ 	sub	$len, 1, $len
+ 	add	$blk_init, 1, $blk_init

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list