]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
unwind_user: Enhance comments on get CFA, FP, and RA
authorJens Remus <jremus@linux.ibm.com>
Mon, 8 Dec 2025 16:03:49 +0000 (17:03 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Dec 2025 12:31:07 +0000 (13:31 +0100)
commit2d6ad925fb2386f3ee1d26f5022f7ea71bbc1541
tree4b2618a0c0c7f07760ad84e86c794176a5d244cb
parent65eb3a9a8a34fa9188e0ab5e657d84ce4fa242a7
unwind_user: Enhance comments on get CFA, FP, and RA

Move the comment "Get the Canonical Frame Address (CFA)" to the top
of the sequence of statements that actually get the CFA.  Reword the
comment "Find the Return Address (RA)" to "Get ...", as the statements
actually get the RA.  Add a respective comment to the statements that
get the FP.  This will be useful once future commits extend the logic
to get the RA and FP.

While at it align the comment on the "stack going in wrong direction"
check to the following one on the "address is word aligned" check.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251208160352.1363040-2-jremus@linux.ibm.com
kernel/unwind/user.c