xref: /aosp_15_r20/external/coreboot/src/arch/x86/include/arch/null_breakpoint.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _NULL_BREAKPOINT_H_
3 #define _NULL_BREAKPOINT_H_
4 
5 #if CONFIG(DEBUG_NULL_DEREF_BREAKPOINTS) && \
6     (CONFIG(DEBUG_NULL_DEREF_BREAKPOINTS_IN_ALL_STAGES) || ENV_RAMSTAGE)
7 
8 /* Places data and instructions breakpoints at address zero. */
9 void null_breakpoint_init(void);
10 void null_breakpoint_disable(void);
11 #else
null_breakpoint_init(void)12 static inline void null_breakpoint_init(void)
13 {
14 	/* Not implemented */
15 }
null_breakpoint_disable(void)16 static inline void null_breakpoint_disable(void)
17 {
18 	/* Not implemented */
19 }
20 #endif
21 #endif /* _NULL_BREAKPOINT_H_ */
22