diff options
author | Kees Cook <keescook@chromium.org> | 2022-02-19 17:20:02 -0800 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-02-26 20:32:03 -0800 |
commit | 575d6b77fa2697afd2b3a443f7f879faa65ae0ca (patch) | |
tree | 9dfb690f0e69086eef55ba4dbbb51a7e0a48ab64 /arch/m68k/Kconfig | |
parent | 92652cf986441b18282db6e5bd82afc74e8ed5e9 (diff) | |
download | lwn-575d6b77fa2697afd2b3a443f7f879faa65ae0ca.tar.gz lwn-575d6b77fa2697afd2b3a443f7f879faa65ae0ca.zip |
m68k: Implement "current_stack_pointer"
To follow the existing per-arch conventions, add asm "sp" as
"current_stack_pointer". This will let it be used in non-arch places
(like HARDENED_USERCOPY).
Cc: linux-m68k@lists.linux-m68k.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/lkml/CAMuHMdU6msvi0j=mS28GFYbm+uMRk7PkYe+zOM4sDmOVxeibLQ@mail.gmail.com
Diffstat (limited to 'arch/m68k/Kconfig')
-rw-r--r-- | arch/m68k/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/m68k/Kconfig b/arch/m68k/Kconfig index 936e1803c7c7..f0eac0e2f123 100644 --- a/arch/m68k/Kconfig +++ b/arch/m68k/Kconfig @@ -4,6 +4,7 @@ config M68K default y select ARCH_32BIT_OFF_T select ARCH_HAS_BINFMT_FLAT + select ARCH_HAS_CURRENT_STACK_POINTER select ARCH_HAS_DMA_PREP_COHERENT if HAS_DMA && MMU && !COLDFIRE select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA select ARCH_HAVE_NMI_SAFE_CMPXCHG if RMW_INSNS |