mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 08:25:39 +07:00
b422d28b21
Support DEBUG_WX to check whether there are mapping with write and execute permission at the same time. [akpm@linux-foundation.org: replace macros with C] Signed-off-by: Zong Li <zong.li@sifive.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Borislav Petkov <bp@alien8.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will@kernel.org> Link: http://lkml.kernel.org/r/282e266311bced080bc6f7c255b92f87c1eb65d6.1587455584.git.zong.li@sifive.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
23 lines
338 B
C
23 lines
338 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2019 SiFive
|
|
*/
|
|
|
|
#ifndef _ASM_RISCV_PTDUMP_H
|
|
#define _ASM_RISCV_PTDUMP_H
|
|
|
|
void ptdump_check_wx(void);
|
|
|
|
#ifdef CONFIG_DEBUG_WX
|
|
static inline void debug_checkwx(void)
|
|
{
|
|
ptdump_check_wx();
|
|
}
|
|
#else
|
|
static inline void debug_checkwx(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ASM_RISCV_PTDUMP_H */
|