OSDN Git Service

powerpc/64: asm use consistent global variable declaration and access
authorNicholas Piggin <npiggin@gmail.com>
Mon, 26 Sep 2022 03:40:54 +0000 (13:40 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2022 09:22:12 +0000 (19:22 +1000)
commitdab3b8f4fd09c22e8dbb2d9608194c7d52252f33
treed4466f017436a103218cf6c93243968d56568a81
parent17773afdcd1589c5925a984f512330410cb2ba4f
powerpc/64: asm use consistent global variable declaration and access

Use helper macros to access global variables, and place them in .data
sections rather than in .toc. Putting addresses in TOC is not required
because the kernel is linked with a single TOC.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220926034057.2360083-3-npiggin@gmail.com
arch/powerpc/boot/opal-calls.S
arch/powerpc/boot/ppc_asm.h
arch/powerpc/kernel/swsusp_asm64.S
arch/powerpc/kernel/trace/ftrace_mprofile.S
arch/powerpc/kernel/vector.S
arch/powerpc/lib/copypage_64.S
arch/powerpc/lib/string_64.S
arch/powerpc/perf/bhrb.S
arch/powerpc/xmon/spr_access.S