mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
Support DEBUG_WX to check whether there are mapping with write and execute permission at the same time. [[email protected]: replace macros with C] Signed-off-by: Zong Li <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Will Deacon <[email protected]> Link: http://lkml.kernel.org/r/282e266311bced080bc6f7c255b92f87c1eb65d6.1587455584.git.zong.li@sifive.com Signed-off-by: Linus Torvalds <[email protected]>
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 */
|