1 //------------------------------------------------------------------------------
2 // <copyright file="regdump.h" company="Atheros">
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
6 // Permission to use, copy, modify, and/or distribute this software for any
7 // purpose with or without fee is hereby granted, provided that the above
8 // copyright notice and this permission notice appear in all copies.
10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Author(s): ="Atheros"
22 //==============================================================================
28 #include "athstartpack.h"
32 #include "AR6001/AR6001_regdump.h"
35 #include "AR6002/AR6002_regdump.h"
38 #if !defined(__ASSEMBLER__)
40 * Target CPU state at the time of failure is reflected
41 * in a register dump, which the Host can fetch through
42 * the diagnostic window.
44 PREPACK struct register_dump_s {
45 A_UINT32 target_id; /* Target ID */
46 A_UINT32 assline; /* Line number (if assertion failure) */
47 A_UINT32 pc; /* Program Counter at time of exception */
48 A_UINT32 badvaddr; /* Virtual address causing exception */
49 CPU_exception_frame_t exc_frame; /* CPU-specific exception info */
51 /* Could copy top of stack here, too.... */
53 #endif /* __ASSEMBLER__ */
56 #include "athendpack.h"
59 #endif /* __REGDUMP_H__ */