OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="regdump.h" company="Atheros"> |
| 3 // Copyright (c) 2004-2007 Atheros Corporation. All rights reserved. |
| 4 // |
| 5 // This program is free software; you can redistribute it and/or modify |
| 6 // it under the terms of the GNU General Public License version 2 as |
| 7 // published by the Free Software Foundation; |
| 8 // |
| 9 // Software distributed under the License is distributed on an "AS |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 11 // implied. See the License for the specific language governing |
| 12 // rights and limitations under the License. |
| 13 // |
| 14 // |
| 15 //------------------------------------------------------------------------------ |
| 16 //============================================================================== |
| 17 // Author(s): ="Atheros" |
| 18 //============================================================================== |
| 19 |
| 20 #ifndef __REGDUMP_H__ |
| 21 #define __REGDUMP_H__ |
| 22 #if defined(AR6001) |
| 23 #include "AR6001/AR6001_regdump.h" |
| 24 #endif |
| 25 #if defined(AR6002) |
| 26 #include "AR6002/AR6002_regdump.h" |
| 27 #endif |
| 28 |
| 29 #if !defined(__ASSEMBLER__) |
| 30 /* |
| 31 * Target CPU state at the time of failure is reflected |
| 32 * in a register dump, which the Host can fetch through |
| 33 * the diagnostic window. |
| 34 */ |
| 35 struct register_dump_s { |
| 36 A_UINT32 target_id; /* Target ID */ |
| 37 A_UINT32 assline; /* Line number (if assertion failure) */ |
| 38 A_UINT32 pc; /* Program Counter at time of exception */ |
| 39 A_UINT32 badvaddr; /* Virtual address causing exception */ |
| 40 CPU_exception_frame_t exc_frame; /* CPU-specific exception info */ |
| 41 |
| 42 /* Could copy top of stack here, too.... */ |
| 43 }; |
| 44 #endif /* __ASSEMBLER__ */ |
| 45 #endif /* __REGDUMP_H__ */ |
OLD | NEW |