~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/mn10300/include/asm/debugger.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Kernel debugger for MN10300
 
2
 *
 
3
 * Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.
 
4
 * Written by David Howells (dhowells@redhat.com)
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public Licence
 
8
 * as published by the Free Software Foundation; either version
 
9
 * 2 of the Licence, or (at your option) any later version.
 
10
 */
 
11
 
 
12
#ifndef _ASM_DEBUGGER_H
 
13
#define _ASM_DEBUGGER_H
 
14
 
 
15
#if defined(CONFIG_KERNEL_DEBUGGER)
 
16
 
 
17
extern int debugger_intercept(enum exception_code, int, int, struct pt_regs *);
 
18
extern int at_debugger_breakpoint(struct pt_regs *);
 
19
 
 
20
#ifndef CONFIG_MN10300_DEBUGGER_CACHE_NO_FLUSH
 
21
extern void debugger_local_cache_flushinv(void);
 
22
extern void debugger_local_cache_flushinv_one(u8 *);
 
23
#else
 
24
static inline void debugger_local_cache_flushinv(void) {}
 
25
static inline void debugger_local_cache_flushinv_one(u8 *addr) {}
 
26
#endif
 
27
 
 
28
#else /* CONFIG_KERNEL_DEBUGGER */
 
29
 
 
30
static inline int debugger_intercept(enum exception_code excep,
 
31
                                     int signo, int si_code,
 
32
                                     struct pt_regs *regs)
 
33
{
 
34
        return 0;
 
35
}
 
36
 
 
37
static inline int at_debugger_breakpoint(struct pt_regs *regs)
 
38
{
 
39
        return 0;
 
40
}
 
41
 
 
42
#endif /* CONFIG_KERNEL_DEBUGGER */
 
43
#endif /* _ASM_DEBUGGER_H */