mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
x86/checksum_32: Remove .fixup usage
Simply add EX_FLAG_CLEAR_AX to do as the .fixup used to do. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20211110101325.899657959@infradead.org
This commit is contained in:
@@ -260,9 +260,9 @@ unsigned int csum_partial_copy_generic (const char *src, char *dst,
|
|||||||
* Copy from ds while checksumming, otherwise like csum_partial
|
* Copy from ds while checksumming, otherwise like csum_partial
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define EXC(y...) \
|
#define EXC(y...) \
|
||||||
9999: y; \
|
9999: y; \
|
||||||
_ASM_EXTABLE_UA(9999b, 6001f)
|
_ASM_EXTABLE_TYPE(9999b, 7f, EX_TYPE_UACCESS | EX_FLAG_CLEAR_AX)
|
||||||
|
|
||||||
#ifndef CONFIG_X86_USE_PPRO_CHECKSUM
|
#ifndef CONFIG_X86_USE_PPRO_CHECKSUM
|
||||||
|
|
||||||
@@ -358,15 +358,6 @@ EXC( movb %cl, (%edi) )
|
|||||||
adcl $0, %eax
|
adcl $0, %eax
|
||||||
7:
|
7:
|
||||||
|
|
||||||
# Exception handler:
|
|
||||||
.section .fixup, "ax"
|
|
||||||
|
|
||||||
6001:
|
|
||||||
xorl %eax, %eax
|
|
||||||
jmp 7b
|
|
||||||
|
|
||||||
.previous
|
|
||||||
|
|
||||||
popl %ebx
|
popl %ebx
|
||||||
popl %esi
|
popl %esi
|
||||||
popl %edi
|
popl %edi
|
||||||
@@ -439,10 +430,6 @@ EXC( movb %dl, (%edi) )
|
|||||||
6: addl %edx, %eax
|
6: addl %edx, %eax
|
||||||
adcl $0, %eax
|
adcl $0, %eax
|
||||||
7:
|
7:
|
||||||
.section .fixup, "ax"
|
|
||||||
6001: xorl %eax, %eax
|
|
||||||
jmp 7b
|
|
||||||
.previous
|
|
||||||
|
|
||||||
popl %esi
|
popl %esi
|
||||||
popl %edi
|
popl %edi
|
||||||
|
Reference in New Issue
Block a user