ia64/xen-unstable

view extras/mini-os/include/ia64/traps.h @ 18106:f4135a620f59

mini-os: add stack walking debug

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 18 14:09:14 2008 +0100 (2008-07-18)
parents 2197a263a300
children
line source
1 /*
2 * Done by Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
3 *
4 ****************************************************************************
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to
7 * deal in the Software without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 */
24 #if !defined(_TRAPS_H_)
25 #define _TRAPS_H_
27 #if !defined(__ASSEMBLY__)
29 /* See ia64_cpu.h */
30 struct trap_frame;
32 #define pt_regs trap_frame
34 /*
35 * A dummy function, which is currently not supported.
36 */
37 inline static void trap_init(void)
38 {
39 //printk("trap_init() until now not needed!\n");
40 }
41 inline static void trap_fini(void)
42 {
43 //printk("trap_fini() until now not needed!\n");
44 }
47 #endif /* !defined(__ASSEMBLY__) */
49 #include "ia64_cpu.h"
51 void stack_walk(void);
53 #endif /* !defined(_TRAPS_H_) */