]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc: introduce arch_enter_from_user_mode
authorMukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
Mon, 27 Apr 2026 12:27:37 +0000 (17:57 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 20 May 2026 01:27:13 +0000 (06:57 +0530)
commit09a9d3a8499db606563eb5e75a993419f4d1901e
tree4f84f2e9acd8781a99212174a3e63eb75e984f16
parentdec63ea6fafffb91811381d9a4686d4bc39f01ae
powerpc: introduce arch_enter_from_user_mode

Implement the arch_enter_from_user_mode() hook required by the generic
entry/exit framework. This helper prepares the CPU state when entering
the kernel from userspace, ensuring correct handling of KUAP/KUEP,
transactional memory, and debug register state.

This patch contains no functional changes, it is purely preparatory for
enabling the generic syscall and interrupt entry path on PowerPC.

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-4-mkchauras@gmail.com
arch/powerpc/include/asm/entry-common.h