ptdump.h 338 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2019 SiFive
  4. */
  5. #ifndef _ASM_RISCV_PTDUMP_H
  6. #define _ASM_RISCV_PTDUMP_H
  7. void ptdump_check_wx(void);
  8. #ifdef CONFIG_DEBUG_WX
  9. static inline void debug_checkwx(void)
  10. {
  11. ptdump_check_wx();
  12. }
  13. #else
  14. static inline void debug_checkwx(void)
  15. {
  16. }
  17. #endif
  18. #endif /* _ASM_RISCV_PTDUMP_H */