]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Fix comment on interrupt handler prologue
authorRohan McLure <rmclure@linux.ibm.com>
Wed, 21 Sep 2022 06:55:47 +0000 (16:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Sep 2022 13:00:15 +0000 (23:00 +1000)
commitd0af62b97289c01ec3ebf42bc09199310c60df76
tree5c5f7940e73e641f188ac8d458ba85fb1696a84e
parente79ead8a5d2e68f9dd4b9ef6dfcc1f55314ae687
powerpc/64s: Fix comment on interrupt handler prologue

Interrupt handlers on 64s systems will often need to save register state
from the interrupted process to make space for loading special purpose
registers or for internal state.

Fix a comment documenting a common code path macro in the beginning of
interrupt handlers where r10 is saved to the PACA to afford space for
the value of the CFAR. Comment is currently written as if r10-r12 are
saved to PACA, but in fact only r10 is saved, with r11-r12 saved much
later. The distance in code between these saves has grown over the many
revisions of this macro. Fix this by signalling with a comment where
r11-r12 are saved to the PACA.

Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reported-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220921065605.1051927-8-rmclure@linux.ibm.com
arch/powerpc/kernel/exceptions-64s.S