summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/ptdump.h
blob: 3c9ea6dd5af7eb94bd96287264880d5b12b950ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* 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 */