1 //------------------------------------------------------------------------------
2 // Copyright (c) 2006-2010 Atheros Corporation. All rights reserved.
5 // Permission to use, copy, modify, and/or distribute this software for any
6 // purpose with or without fee is hereby granted, provided that the above
7 // copyright notice and this permission notice appear in all copies.
9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 //------------------------------------------------------------------------------
19 //==============================================================================
20 // Author(s): ="Atheros"
21 //==============================================================================
23 #ifndef __AR6002_REGDUMP_H__
24 #define __AR6002_REGDUMP_H__
26 #if !defined(__ASSEMBLER__)
29 * This must match the state saved by the target exception handler.
31 struct XTensa_exception_frame_s
{
45 u32 epc1
, epc2
, epc3
, epc4
;
47 /* Extra info to simplify post-mortem stack walkback */
48 #define AR6002_REGDUMP_FRAMES 10
54 } wb
[AR6002_REGDUMP_FRAMES
];
56 typedef struct XTensa_exception_frame_s CPU_exception_frame_t
;
57 #define RD_SIZE sizeof(CPU_exception_frame_t)
60 #endif /* __AR6002_REGDUMP_H__ */