Path: blob/master/arch/mn10300/include/asm/debugger.h
15126 views
/* Kernel debugger for MN103001*2* Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public Licence7* as published by the Free Software Foundation; either version8* 2 of the Licence, or (at your option) any later version.9*/1011#ifndef _ASM_DEBUGGER_H12#define _ASM_DEBUGGER_H1314#if defined(CONFIG_KERNEL_DEBUGGER)1516extern int debugger_intercept(enum exception_code, int, int, struct pt_regs *);17extern int at_debugger_breakpoint(struct pt_regs *);1819#ifndef CONFIG_MN10300_DEBUGGER_CACHE_NO_FLUSH20extern void debugger_local_cache_flushinv(void);21extern void debugger_local_cache_flushinv_one(u8 *);22#else23static inline void debugger_local_cache_flushinv(void) {}24static inline void debugger_local_cache_flushinv_one(u8 *addr) {}25#endif2627#else /* CONFIG_KERNEL_DEBUGGER */2829static inline int debugger_intercept(enum exception_code excep,30int signo, int si_code,31struct pt_regs *regs)32{33return 0;34}3536static inline int at_debugger_breakpoint(struct pt_regs *regs)37{38return 0;39}4041#endif /* CONFIG_KERNEL_DEBUGGER */42#endif /* _ASM_DEBUGGER_H */434445