powerpc/asm: Convert .llong directives to .8byte
authorTobin C. Harding <me@tobin.cc>
Thu, 9 Mar 2017 05:42:12 +0000 (16:42 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:47 +0000 (14:26 +1000)
.llong is an undocumented PPC specific directive. The generic
equivalent is .quad, but even better (because it's self describing) is
.8byte.

Convert all .llong directives to .8byte.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
12 files changed:
arch/powerpc/boot/crt0.S
arch/powerpc/include/asm/asm-compat.h
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/head_64.S
arch/powerpc/kernel/reloc_64.S
arch/powerpc/kernel/systbl.S
arch/powerpc/platforms/powernv/opal-wrappers.S
arch/powerpc/platforms/pseries/hvCall.S
arch/powerpc/purgatory/trampoline.S
tools/testing/selftests/powerpc/switch_endian/switch_endian_test.S

index 12866ccb5694d3bce05fa7ab8030a57585eb2914..dcf2f15e679715b2e4000727a576e1a9f6cb1bb1 100644 (file)
@@ -26,17 +26,17 @@ _zimage_start_opd:
 
 #ifdef __powerpc64__
 .balign 8
-p_start:       .llong  _start
-p_etext:       .llong  _etext
-p_bss_start:   .llong  __bss_start
-p_end:         .llong  _end
-
-p_toc:         .llong  __toc_start + 0x8000 - p_base
-p_dyn:         .llong  __dynamic_start - p_base
-p_rela:                .llong  __rela_dyn_start - p_base
-p_prom:                .llong  0
+p_start:       .8byte  _start
+p_etext:       .8byte  _etext
+p_bss_start:   .8byte  __bss_start
+p_end:         .8byte  _end
+
+p_toc:         .8byte  __toc_start + 0x8000 - p_base
+p_dyn:         .8byte  __dynamic_start - p_base
+p_rela:                .8byte  __rela_dyn_start - p_base
+p_prom:                .8byte  0
        .weak   _platform_stack_top
-p_pstack:      .llong  _platform_stack_top
+p_pstack:      .8byte  _platform_stack_top
 #else
 p_start:       .long   _start
 p_etext:       .long   _etext
index cee3aa087653d805225db3e182857c0f5ac7adc9..7f2a7702596cd5a2a44c386431df1ad590acac86 100644 (file)
@@ -25,7 +25,7 @@
 #define PPC_LCMPI      stringify_in_c(cmpdi)
 #define PPC_LCMPLI     stringify_in_c(cmpldi)
 #define PPC_LCMP       stringify_in_c(cmpd)
-#define PPC_LONG       stringify_in_c(.llong)
+#define PPC_LONG       stringify_in_c(.8byte)
 #define PPC_LONG_ALIGN stringify_in_c(.balign 8)
 #define PPC_TLNEI      stringify_in_c(tdnei)
 #define PPC_LLARX(t, a, b, eh) PPC_LDARX(t, a, b, eh)
index 2de2319b99e2c6a69991df5de988cc02c9abb3aa..8f88f771cc55ce982c11599b273e584babd38600 100644 (file)
  */
 #if defined(CONFIG_PPC64) && !defined(__powerpc64__)
 /* 64 bits kernel, 32 bits code (ie. vdso32) */
-#define FTR_ENTRY_LONG         .llong
+#define FTR_ENTRY_LONG         .8byte
 #define FTR_ENTRY_OFFSET       .long 0xffffffff; .long
 #elif defined(CONFIG_PPC64)
-#define FTR_ENTRY_LONG         .llong
-#define FTR_ENTRY_OFFSET       .llong
+#define FTR_ENTRY_LONG         .8byte
+#define FTR_ENTRY_OFFSET       .8byte
 #else
 #define FTR_ENTRY_LONG         .long
 #define FTR_ENTRY_OFFSET       .long
index 2c4366ada97632ecb8bc07edfdf8b1ddeb2749d3..f92eaf7a4c0d5b7c6a6f3748cb9d8d79caa5d2ad 100644 (file)
@@ -1344,12 +1344,12 @@ static inline void msr_check_and_clear(unsigned long bits)
                                ".section __ftr_fixup,\"a\"\n"          \
                                ".align 3\n"                            \
                                "98:\n"                                 \
-                               "       .llong %1\n"                    \
-                               "       .llong %1\n"                    \
-                               "       .llong 97b-98b\n"               \
-                               "       .llong 99b-98b\n"               \
-                               "       .llong 0\n"                     \
-                               "       .llong 0\n"                     \
+                               "       .8byte %1\n"                    \
+                               "       .8byte %1\n"                    \
+                               "       .8byte 97b-98b\n"               \
+                               "       .8byte 99b-98b\n"               \
+                               "       .8byte 0\n"                     \
+                               "       .8byte 0\n"                     \
                                ".previous"                             \
                        : "=r" (rval) \
                        : "i" (CPU_FTR_CELL_TB_BUG), "i" (SPRN_TBRL) : "cr0"); \
index 55e9d03b5de973e7176245a5caf2a9b85229eb97..4a0fd4f4024533c473f5cfe6f015924e29ed4acc 100644 (file)
@@ -1104,7 +1104,7 @@ _ASM_NOKPROBE_SYMBOL(__enter_rtas)
 _ASM_NOKPROBE_SYMBOL(rtas_return_loc)
 
        .align  3
-1:     .llong  rtas_restore_regs
+1:     .8byte  rtas_restore_regs
 
 rtas_restore_regs:
        /* relocation is on at this point */
index 0ddc602b33a4dcad12e935c197a5f944617e5935..ff8511d6d8eadbd03e48ce9c0b639c8d3c80e8aa 100644 (file)
@@ -92,13 +92,13 @@ END_FTR_SECTION(0, 1)
        .balign 8
        .globl  __secondary_hold_spinloop
 __secondary_hold_spinloop:
-       .llong  0x0
+       .8byte  0x0
 
        /* Secondary processors write this value with their cpu # */
        /* after they enter the spin loop immediately below.      */
        .globl  __secondary_hold_acknowledge
 __secondary_hold_acknowledge:
-       .llong  0x0
+       .8byte  0x0
 
 #ifdef CONFIG_RELOCATABLE
        /* This flag is set to 1 by a loader if the kernel should run
@@ -650,7 +650,7 @@ __after_prom_start:
        bctr
 
 .balign 8
-p_end: .llong _end - copy_to_here
+p_end: .8byte _end - copy_to_here
 
 4:
        /*
@@ -892,7 +892,7 @@ _GLOBAL(relative_toc)
        blr
 
 .balign 8
-p_toc: .llong  __toc_start + 0x8000 - 0b
+p_toc: .8byte  __toc_start + 0x8000 - 0b
 
 /*
  * This is where the main kernel code starts.
index d88736fbece67c6627e6f33a9c4fd3e31ee2b533..e8cfc69f59aeff3be4e1737d9ce37fb8aa83f0d9 100644 (file)
@@ -82,7 +82,7 @@ _GLOBAL(relocate)
 6:     blr
 
 .balign 8
-p_dyn: .llong  __dynamic_start - 0b
-p_rela:        .llong  __rela_dyn_start - 0b
-p_st:  .llong  _stext - 0b
+p_dyn: .8byte  __dynamic_start - 0b
+p_rela:        .8byte  __rela_dyn_start - 0b
+p_st:  .8byte  _stext - 0b
 
index 4d6b1d3a747f63cd8b9f54aff9ec3ebb2da11c94..7ccb7f81f8db813a82fd72014cf1efc0fed57807 100644 (file)
 #include <asm/ppc_asm.h>
 
 #ifdef CONFIG_PPC64
-#define SYSCALL(func)          .llong  DOTSYM(sys_##func),DOTSYM(sys_##func)
-#define COMPAT_SYS(func)       .llong  DOTSYM(sys_##func),DOTSYM(compat_sys_##func)
-#define PPC_SYS(func)          .llong  DOTSYM(ppc_##func),DOTSYM(ppc_##func)
-#define OLDSYS(func)           .llong  DOTSYM(sys_ni_syscall),DOTSYM(sys_ni_syscall)
-#define SYS32ONLY(func)                .llong  DOTSYM(sys_ni_syscall),DOTSYM(compat_sys_##func)
-#define PPC64ONLY(func)                .llong  DOTSYM(ppc_##func),DOTSYM(sys_ni_syscall)
-#define SYSX(f, f3264, f32)    .llong  DOTSYM(f),DOTSYM(f3264)
+#define SYSCALL(func)          .8byte  DOTSYM(sys_##func),DOTSYM(sys_##func)
+#define COMPAT_SYS(func)       .8byte  DOTSYM(sys_##func),DOTSYM(compat_sys_##func)
+#define PPC_SYS(func)          .8byte  DOTSYM(ppc_##func),DOTSYM(ppc_##func)
+#define OLDSYS(func)           .8byte  DOTSYM(sys_ni_syscall),DOTSYM(sys_ni_syscall)
+#define SYS32ONLY(func)                .8byte  DOTSYM(sys_ni_syscall),DOTSYM(compat_sys_##func)
+#define PPC64ONLY(func)                .8byte  DOTSYM(ppc_##func),DOTSYM(sys_ni_syscall)
+#define SYSX(f, f3264, f32)    .8byte  DOTSYM(f),DOTSYM(f3264)
 #else
 #define SYSCALL(func)          .long   sys_##func
 #define COMPAT_SYS(func)       .long   sys_##func
index 951fa93f881ddca48f741add57d5c7b2a588a5bb..8c1ede2d3f7e5fe4655d8acc30226dbc3c0d5294 100644 (file)
@@ -27,7 +27,7 @@
 
        .globl opal_tracepoint_refcount
 opal_tracepoint_refcount:
-       .llong  0
+       .8byte  0
 
        .section        ".text"
 
index 74b5b8e239c8235ac61b529b8085cc3ceff096ed..c511a1743a449aa6e0da5932c411f595708322b0 100644 (file)
@@ -23,7 +23,7 @@
 
        .globl hcall_tracepoint_refcount
 hcall_tracepoint_refcount:
-       .llong  0
+       .8byte  0
 
        .section        ".text"
 #endif
index 30277446892ccc468199a3a0ac665b8d2918976d..4aad9dd10ace93fe9632a344595df9e42a8e9912 100644 (file)
@@ -104,13 +104,13 @@ master:
        .balign 8
        .globl kernel
 kernel:
-       .llong  0x0
+       .8byte  0x0
        .size kernel, . - kernel
 
        .balign 8
        .globl dt_offset
 dt_offset:
-       .llong  0x0
+       .8byte  0x0
        .size dt_offset, . - dt_offset
 
 
index ef7c971abb67f23bc0a6ddd560653259c91dfcb5..bceb53f57573b5d4a6ad07105fd8321345c7e93a 100644 (file)
@@ -8,7 +8,7 @@ message:
        .section ".toc"
        .balign 8
 pattern:
-       .llong 0x5555AAAA5555AAAA
+       .8byte 0x5555AAAA5555AAAA
 
        .text
 FUNC_START(_start)