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.
Signed-off-by: Rohan McLure <redacted>
---
V1 -> V2: Given its own commit
---
arch/powerpc/kernel/exceptions-64s.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Andrew Donnellan <hidden> Date: 2022-08-08 05:07:34
On Mon, 2022-07-25 at 16:31 +1000, Rohan McLure wrote:
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.
Signed-off-by: Rohan McLure <redacted>
Reviewed-by: Andrew Donnellan <redacted>
--
Andrew Donnellan OzLabs, ADL Canberra
ajd@linux.ibm.com IBM Australia Limited
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.
Maybe it would be interesting to know from which patch the error comes.
quoted hunk
Signed-off-by: Rohan McLure <redacted>
---
V1 -> V2: Given its own commit
---
arch/powerpc/kernel/exceptions-64s.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Maybe it would be interesting to know from which patch the error comes.
It’s hard to attribute this to a single commit, but the distance between r10’s save
location and r11-r12’s save location has definitely grown over time. The comment is
introduced in commit 7180e3e636de
("[POWERPC] force 64bit mode in fwnmi handlers to workaround firmware bugs”) way back in 2006.
In v3 will insert another comment to better signal where r11-r12 are saved.