aboutsummaryrefslogtreecommitdiff
path: root/drivers/crypto/vmx/ppc-xlate.pl
diff options
context:
space:
mode:
authorAnton Blanchard2016-06-10 16:47:02 +1000
committerHerbert Xu2016-06-13 17:43:04 +0800
commit975f57fdff1d0eb9816806cabd27162a8a1a4038 (patch)
tree4e396a79abd7260da2f52f65ee0cdf3a2f8d07ba /drivers/crypto/vmx/ppc-xlate.pl
parent446985428d2cd10efd5d139c33de16c50ee771ba (diff)
crypto: vmx - Fix ABI detection
When calling ppc-xlate.pl, we pass it either linux-ppc64 or linux-ppc64le. The script however was expecting linux64le, a result of its OpenSSL origins. This means we aren't obeying the ppc64le ABIv2 rules. Fix this by checking for linux-ppc64le. Fixes: 5ca55738201c ("crypto: vmx - comply with ABIs that specify vrsave as reserved.") Cc: stable@vger.kernel.org Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/vmx/ppc-xlate.pl')
-rw-r--r--drivers/crypto/vmx/ppc-xlate.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/vmx/ppc-xlate.pl b/drivers/crypto/vmx/ppc-xlate.pl
index 9f4994cabcc7..b18e67d0e065 100644
--- a/drivers/crypto/vmx/ppc-xlate.pl
+++ b/drivers/crypto/vmx/ppc-xlate.pl
@@ -141,7 +141,7 @@ my $vmr = sub {
# Some ABIs specify vrsave, special-purpose register #256, as reserved
# for system use.
-my $no_vrsave = ($flavour =~ /aix|linux64le/);
+my $no_vrsave = ($flavour =~ /linux-ppc64le/);
my $mtspr = sub {
my ($f,$idx,$ra) = @_;
if ($idx == 256 && $no_vrsave) {