]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Don't save TOC by default in asm helpers
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 27 Jun 2022 14:02:31 +0000 (00:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 25 Jul 2022 02:05:15 +0000 (12:05 +1000)
commit19d51f47ef7f0afdf859fb5506ff8ed7f0cec208
treee9a085b357e7fef4852298348c519756aa2623a8
parent1c3184be89cd61fad93c27948f7f47aad4f317e6
selftests/powerpc: Don't save TOC by default in asm helpers

Thare are some asm helpers for creating/popping stack frames in
basic_asm.h. They always save/restore r2 (TOC pointer), but none of the
selftests change r2, so it's unnecessary to save it by default.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220627140239.2464900-5-mpe@ellerman.id.au
tools/testing/selftests/powerpc/include/basic_asm.h