summaryrefslogtreecommitdiff
path: root/scripts/livepatch/init.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-11-04 11:48:55 +0100
committerHeiko Carstens <hca@linux.ibm.com>2025-11-14 11:34:28 +0100
commit37450e0994f717d8f621b1dfc1c713f9c66cf59c (patch)
tree93473673dfe730ec77c8ceffab0cd74ef3bc3b3e /scripts/livepatch/init.c
parent14e4e4175b64dd9216b522f6ece8af6997d063b2 (diff)
s390/processor: Add __forward_psw() helper
Similar to __rewind_psw() add the counter part __forward_psw(). This helps to make code more readable if a PSW address has to be forwarded, since it is more natural to write addr = __forward_psw(psw, ilen); instead of addr = __rewind_psw(psw, -ilen); This renames also the ilc parameter of __rewind_psw() to ilen, since the parameter reflects an instruction length, and not an instruction length code. Also change the type of ilen from unsigned long to long so it reflects that lengths can be negative or positive. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions