OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ppc/] [kgdb.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 * kgdb.h: Defines and declarations for serial line source level
3
 *         remote debugging of the Linux kernel using gdb.
4
 *
5
 * PPC Mods (C) 1998 Michael Tesch (tesch@cs.wisc.edu)
6
 *
7
 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
8
 */
9
#ifdef __KERNEL__
10
#ifndef _PPC_KGDB_H
11
#define _PPC_KGDB_H
12
 
13
#ifndef __ASSEMBLY__
14
/* To initialize the serial, first thing called */
15
extern void kgdb_map_scc(void);
16
/* To init the kgdb engine. (called by serial hook)*/
17
extern void set_debug_traps(void);
18
 
19
/* To enter the debugger explicitly. */
20
extern void breakpoint(void);
21
 
22
/* For taking exceptions
23
 * these are defined in traps.c
24
 */
25
extern void (*debugger)(struct pt_regs *regs);
26
extern int (*debugger_bpt)(struct pt_regs *regs);
27
extern int (*debugger_sstep)(struct pt_regs *regs);
28
extern int (*debugger_iabr_match)(struct pt_regs *regs);
29
extern int (*debugger_dabr_match)(struct pt_regs *regs);
30
extern void (*debugger_fault_handler)(struct pt_regs *regs);
31
 
32
/* What we bring to the party */
33
int kgdb_bpt(struct pt_regs *regs);
34
int kgdb_sstep(struct pt_regs *regs);
35
void kgdb(struct pt_regs *regs);
36
int kgdb_iabr_match(struct pt_regs *regs);
37
int kgdb_dabr_match(struct pt_regs *regs);
38
 
39
/*
40
 * external low-level support routines (ie macserial.c)
41
 */
42
extern void kgdb_interruptible(int); /* control interrupts from serial */
43
extern void putDebugChar(char);   /* write a single character      */
44
extern char getDebugChar(void);   /* read and return a single char */
45
 
46
#endif /* !(__ASSEMBLY__) */
47
#endif /* !(_PPC_KGDB_H) */
48
#endif /* __KERNEL__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.