Commit a1d75611 authored by Anton Blanchard's avatar Anton Blanchard Committed by Kamal Mostafa

crypto: vmx - Fix ABI detection

BugLink: http://bugs.launchpad.net/bugs/1592481

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: 5ca55738 ("crypto: vmx - comply with ABIs that specify vrsave as reserved.")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 975f57fd git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git)
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarSeth Forshee <seth.forshee@canonical.com>
parent dbd12f2f
...@@ -141,7 +141,7 @@ my $vmr = sub { ...@@ -141,7 +141,7 @@ my $vmr = sub {
# Some ABIs specify vrsave, special-purpose register #256, as reserved # Some ABIs specify vrsave, special-purpose register #256, as reserved
# for system use. # for system use.
my $no_vrsave = ($flavour =~ /aix|linux64le/); my $no_vrsave = ($flavour =~ /linux-ppc64le/);
my $mtspr = sub { my $mtspr = sub {
my ($f,$idx,$ra) = @_; my ($f,$idx,$ra) = @_;
if ($idx == 256 && $no_vrsave) { if ($idx == 256 && $no_vrsave) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment