Skip to content

Commit

Permalink
crypto: vmx - Fix ABI detection
Browse files Browse the repository at this point in the history
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: 5ca5573 ("crypto: vmx - comply with ABIs that specify vrsave as reserved.")
Cc: [email protected]
Signed-off-by: Anton Blanchard <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
antonblanchard authored and herbertx committed Jun 13, 2016
1 parent 4469854 commit 975f57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/vmx/ppc-xlate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

# 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) {
Expand Down

0 comments on commit 975f57f

Please sign in to comment.