x86: use _ASM_EXTABLE macro in include/asm-x86/uaccess_64.h
Use the _ASM_EXTABLE macro from <asm/asm.h>, instead of open-coding __ex_table entires in include/asm-x86/uaccess_64.h. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
14e6d17d68
commit
71713eeed0
|
@ -181,10 +181,7 @@ struct __large_struct { unsigned long buf[100]; };
|
||||||
"3: mov %3,%0\n" \
|
"3: mov %3,%0\n" \
|
||||||
" jmp 2b\n" \
|
" jmp 2b\n" \
|
||||||
".previous\n" \
|
".previous\n" \
|
||||||
".section __ex_table,\"a\"\n" \
|
_ASM_EXTABLE(1b,3b) \
|
||||||
" .align 8\n" \
|
|
||||||
" .quad 1b,3b\n" \
|
|
||||||
".previous" \
|
|
||||||
: "=r"(err) \
|
: "=r"(err) \
|
||||||
: ltype (x), "m"(__m(addr)), "i"(errno), "0"(err))
|
: ltype (x), "m"(__m(addr)), "i"(errno), "0"(err))
|
||||||
|
|
||||||
|
@ -226,10 +223,7 @@ do { \
|
||||||
" xor"itype" %"rtype"1,%"rtype"1\n" \
|
" xor"itype" %"rtype"1,%"rtype"1\n" \
|
||||||
" jmp 2b\n" \
|
" jmp 2b\n" \
|
||||||
".previous\n" \
|
".previous\n" \
|
||||||
".section __ex_table,\"a\"\n" \
|
_ASM_EXTABLE(1b,3b) \
|
||||||
" .align 8\n" \
|
|
||||||
" .quad 1b,3b\n" \
|
|
||||||
".previous" \
|
|
||||||
: "=r"(err), ltype (x) \
|
: "=r"(err), ltype (x) \
|
||||||
: "m"(__m(addr)), "i"(errno), "0"(err))
|
: "m"(__m(addr)), "i"(errno), "0"(err))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue