]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc: Prepare to build with generic entry/exit framework
authorMukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
Mon, 27 Apr 2026 12:27:36 +0000 (17:57 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 20 May 2026 01:27:13 +0000 (06:57 +0530)
commitdec63ea6fafffb91811381d9a4686d4bc39f01ae
treed0bead64e3e4cd6c121ac1568f4f986cf0a7a8eb
parentbaa590018fbfc3e7384b604c7a7951eecf10a523
powerpc: Prepare to build with generic entry/exit framework

This patch introduces preparatory changes needed to support building
PowerPC with the generic entry/exit (irqentry) framework.

The following infrastructure updates are added:
 - Add a syscall_work field to struct thread_info to hold SYSCALL_WORK_* flags.
 - Provide a stub implementation of arch_syscall_is_vdso_sigreturn(),
   returning false for now.
 - Introduce on_thread_stack() helper to detect if the current stack pointer
   lies within the task’s kernel stack.

These additions enable later integration with the generic entry/exit
infrastructure while keeping existing PowerPC behavior unchanged.

No functional change is intended in this patch.

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-3-mkchauras@gmail.com
arch/powerpc/include/asm/entry-common.h [new file with mode: 0644]
arch/powerpc/include/asm/stacktrace.h
arch/powerpc/include/asm/syscall.h
arch/powerpc/include/asm/thread_info.h