xref: /kernel/linux/linux-5.10/arch/riscv/include/asm/ptdump.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/riscv/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2019 SiFive
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _ASM_RISCV_PTDUMP_H
78c2ecf20Sopenharmony_ci#define _ASM_RISCV_PTDUMP_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_civoid ptdump_check_wx(void);
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_WX
128c2ecf20Sopenharmony_cistatic inline void debug_checkwx(void)
138c2ecf20Sopenharmony_ci{
148c2ecf20Sopenharmony_ci	ptdump_check_wx();
158c2ecf20Sopenharmony_ci}
168c2ecf20Sopenharmony_ci#else
178c2ecf20Sopenharmony_cistatic inline void debug_checkwx(void)
188c2ecf20Sopenharmony_ci{
198c2ecf20Sopenharmony_ci}
208c2ecf20Sopenharmony_ci#endif
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#endif /* _ASM_RISCV_PTDUMP_H */
23

Indexes created Thu Nov 07 10:32:03 CST 2024