Files
linux/arch/powerpc/kernel
Mukesh Kumar Chaurasiya d7a6797e0b powerpc: add exit_flags field in pt_regs
Add a new field `exit_flags` in the pt_regs structure. This field will hold
the flags set during interrupt or syscall execution that are required during
exit to user mode.

Specifically, the `TIF_RESTOREALL` flag, stored in this field, helps the
exit routine determine if any NVGPRs were modified and need to be restored
before returning to userspace.

This addition ensures a clean and architecture-specific mechanism to track
per-syscall or per-interrupt state transitions related to register restore.

Changes:
 - Add `exit_flags` and `__pt_regs_pad` to maintain 16-byte stack alignment
 - Update asm-offsets.c and ptrace.c for offset and validation
 - Update PT_* constants in uapi header to reflect the new layout

Signed-off-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
Tested-by: Samir M <samir@linux.ibm.com>
Tested-by: David Gow <davidgow@google.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260427122742.210074-6-mkchauras@gmail.com
2026-05-20 06:57:14 +05:30
..
2022-05-08 22:15:40 +10:00
2025-07-26 13:07:52 +05:30
2024-06-28 22:28:47 +10:00
2022-09-26 23:00:14 +10:00
2020-12-04 01:01:09 +11:00
2026-04-01 09:21:06 +05:30
2021-12-09 22:41:21 +11:00
2024-10-29 23:01:52 +11:00
2023-10-10 13:35:55 -06:00
2026-03-27 10:19:08 -05:00
2022-09-26 22:47:37 +10:00
2026-05-20 06:57:13 +05:30
2024-10-29 23:01:52 +11:00
2025-02-26 21:15:09 +05:30
2021-12-09 22:41:21 +11:00