powerpc: Use PPC_LONG and PPC_LONG_ALIGN in lib/string.S
Replace ifdef clutter with the PPC_LONG and PPC_LONG_ALIGN macros for readability. No change to the generated code. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Родитель
551c3c04b4
Коммит
76bfdcf71c
|
@ -13,13 +13,7 @@
|
||||||
#include <asm/ppc_asm.h>
|
#include <asm/ppc_asm.h>
|
||||||
|
|
||||||
.section __ex_table,"a"
|
.section __ex_table,"a"
|
||||||
#ifdef CONFIG_PPC64
|
PPC_LONG_ALIGN
|
||||||
.align 3
|
|
||||||
#define EXTBL .llong
|
|
||||||
#else
|
|
||||||
.align 2
|
|
||||||
#define EXTBL .long
|
|
||||||
#endif
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
_GLOBAL(strcpy)
|
_GLOBAL(strcpy)
|
||||||
|
@ -160,9 +154,9 @@ _GLOBAL(__clear_user)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
.section __ex_table,"a"
|
.section __ex_table,"a"
|
||||||
EXTBL 11b,90b
|
PPC_LONG 11b,90b
|
||||||
EXTBL 1b,91b
|
PPC_LONG 1b,91b
|
||||||
EXTBL 8b,92b
|
PPC_LONG 8b,92b
|
||||||
.text
|
.text
|
||||||
|
|
||||||
_GLOBAL(__strncpy_from_user)
|
_GLOBAL(__strncpy_from_user)
|
||||||
|
@ -183,7 +177,7 @@ _GLOBAL(__strncpy_from_user)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
.section __ex_table,"a"
|
.section __ex_table,"a"
|
||||||
EXTBL 1b,99b
|
PPC_LONG 1b,99b
|
||||||
.text
|
.text
|
||||||
|
|
||||||
/* r3 = str, r4 = len (> 0), r5 = top (highest addr) */
|
/* r3 = str, r4 = len (> 0), r5 = top (highest addr) */
|
||||||
|
@ -208,4 +202,4 @@ _GLOBAL(__strnlen_user)
|
||||||
blr
|
blr
|
||||||
|
|
||||||
.section __ex_table,"a"
|
.section __ex_table,"a"
|
||||||
EXTBL 1b,99b
|
PPC_LONG 1b,99b
|
||||||
|
|
Загрузка…
Ссылка в новой задаче