diff options
author | Matt Redfearn <matt.redfearn@mips.com> | 2018-02-26 17:02:45 +0000 |
---|---|---|
committer | James Hogan <jhogan@kernel.org> | 2018-03-09 11:22:48 +0000 |
commit | ce6828faeb543d00f0697997c858bd82b5905670 (patch) | |
tree | 5f19460392d3816f9d38107132a6ff6a81b2260d /arch | |
parent | 13b8638ba09896b94c5b7eea54c8db75f13edcdb (diff) | |
download | linux-stable-ce6828faeb543d00f0697997c858bd82b5905670.tar.gz linux-stable-ce6828faeb543d00f0697997c858bd82b5905670.tar.bz2 linux-stable-ce6828faeb543d00f0697997c858bd82b5905670.zip |
MIPS: VDSO: Replace __mips_isa_rev with MIPS_ISA_REV
Remove the need to check that __mips_isa_rev is defined by using the
newly added MIPS_ISA_REV.
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18678/
Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/vdso/elf.S | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/mips/vdso/elf.S b/arch/mips/vdso/elf.S index be37bbb1f061..428a1917afc6 100644 --- a/arch/mips/vdso/elf.S +++ b/arch/mips/vdso/elf.S @@ -10,6 +10,8 @@ #include "vdso.h" +#include <asm/isa-rev.h> + #include <linux/elfnote.h> #include <linux/version.h> @@ -40,11 +42,7 @@ __mips_abiflags: .byte __mips /* isa_level */ /* isa_rev */ -#ifdef __mips_isa_rev - .byte __mips_isa_rev -#else - .byte 0 -#endif + .byte MIPS_ISA_REV /* gpr_size */ #ifdef __mips64 @@ -54,7 +52,7 @@ __mips_abiflags: #endif /* cpr1_size */ -#if (defined(__mips_isa_rev) && __mips_isa_rev >= 6) || defined(__mips64) +#if (MIPS_ISA_REV >= 6) || defined(__mips64) .byte 2 /* AFL_REG_64 */ #else .byte 1 /* AFL_REG_32 */ |