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)12static inline void null_breakpoint_init(void) 13 { 14 /* Not implemented */ 15 } null_breakpoint_disable(void)16static inline void null_breakpoint_disable(void) 17 { 18 /* Not implemented */ 19 } 20 #endif 21 #endif /* _NULL_BREAKPOINT_H_ */ 22