diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-09-26 06:40:54 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-28 12:22:12 +0300 |
commit | dab3b8f4fd09c22e8dbb2d9608194c7d52252f33 (patch) | |
tree | d4466f017436a103218cf6c93243968d56568a81 /arch/powerpc/perf | |
parent | 17773afdcd1589c5925a984f512330410cb2ba4f (diff) | |
download | linux-dab3b8f4fd09c22e8dbb2d9608194c7d52252f33.tar.xz |
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
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/bhrb.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/bhrb.S b/arch/powerpc/perf/bhrb.S index 1aa3259716b8..47ba05d5ae76 100644 --- a/arch/powerpc/perf/bhrb.S +++ b/arch/powerpc/perf/bhrb.S @@ -21,7 +21,7 @@ _GLOBAL(read_bhrb) cmpldi r3,31 bgt 1f - ld r4,bhrb_table@got(r2) + LOAD_REG_ADDR(r4, bhrb_table) sldi r3,r3,3 add r3,r4,r3 mtctr r3 |