ia64/xen-unstable

view xen/include/asm-ia64/debugger.h @ 5704:9b73afea874e

Certain types of event channel are now auto-bound to vcpu0 by Xen.
Make sure that xenolinux agrees with this.
author sos22@douglas.cl.cam.ac.uk
date Fri Jul 08 15:35:43 2005 +0000 (2005-07-08)
parents 65b28c74cec2
children 34f2b388beb0
line source
1 /******************************************************************************
2 * asm/debugger.h
3 *
4 * Generic hooks into arch-dependent Xen.
5 *
6 * Each debugger should define two functions here:
7 *
8 * 1. debugger_trap_entry():
9 * Called at start of any synchronous fault or trap, before any other work
10 * is done. The idea is that if your debugger deliberately caused the trap
11 * (e.g. to implement breakpoints or data watchpoints) then you can take
12 * appropriate action and return a non-zero value to cause early exit from
13 * the trap function.
14 *
15 * 2. debugger_trap_fatal():
16 * Called when Xen is about to give up and crash. Typically you will use this
17 * hook to drop into a debug session. It can also be used to hook off
18 * deliberately caused traps (which you then handle and return non-zero)
19 * but really these should be hooked off 'debugger_trap_entry'.
20 */
22 #ifndef __ASM_DEBUGGER_H__
23 #define __ASM_DEBUGGER_H__
25 #include <xen/softirq.h>
27 /* The main trap handlers use these helper macros which include early bail. */
28 static inline int debugger_trap_entry(
29 unsigned int vector, struct cpu_user_regs *regs)
30 {
31 return 0;
32 }
34 static inline int debugger_trap_fatal(
35 unsigned int vector, struct cpu_user_regs *regs)
36 {
37 return 0;
38 }
40 #define debugger_trap_immediate() do {} while(0)
42 #endif /* __ASM_DEBUGGER_H__ */