diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-05-18 17:55:41 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-05-18 17:55:41 +0000 |
commit | f5affd4f36d839d706b02f1ffb69e0cf70c4140c (patch) | |
tree | 105a7093a2f5989136da5fe7128d6d95a3b9cad4 /target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h | |
parent | 267af10b33745d098198ad9c1d2b5ab69efb128f (diff) | |
download | upstream-f5affd4f36d839d706b02f1ffb69e0cf70c4140c.tar.gz upstream-f5affd4f36d839d706b02f1ffb69e0cf70c4140c.tar.bz2 upstream-f5affd4f36d839d706b02f1ffb69e0cf70c4140c.zip |
bump to 2.6.30-rc6
SVN-Revision: 15918
Diffstat (limited to 'target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h')
-rw-r--r-- | target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h new file mode 100644 index 0000000000..c1bcadea37 --- /dev/null +++ b/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2006 Atheros Communications Inc. + * All rights reserved. + * + * $ATH_LICENSE_HOSTSDK0_C$ + * + */ + +#ifndef __AR6000_REGDUMP_H__ +#define __AR6000_REGDUMP_H__ + +#if !defined(__ASSEMBLER__) +/* + * Target CPU state at the time of failure is reflected + * in a register dump, which the Host can fetch through + * the diagnostic window. + */ + +struct MIPS_exception_frame_s { + A_UINT32 pc; /* Program Counter */ + A_UINT32 at; /* MIPS General Purpose registers */ + A_UINT32 v0; + A_UINT32 v1; + A_UINT32 a0; + A_UINT32 a1; + A_UINT32 a2; + A_UINT32 a3; + A_UINT32 t0; + A_UINT32 t1; + A_UINT32 t2; + A_UINT32 t3; + A_UINT32 t4; + A_UINT32 t5; + A_UINT32 t6; + A_UINT32 t7; + A_UINT32 s0; + A_UINT32 s1; + A_UINT32 s2; + A_UINT32 s3; + A_UINT32 s4; + A_UINT32 s5; + A_UINT32 s6; + A_UINT32 s7; + A_UINT32 t8; + A_UINT32 t9; + A_UINT32 k0; + A_UINT32 k1; + A_UINT32 gp; + A_UINT32 sp; + A_UINT32 s8; + A_UINT32 ra; + A_UINT32 cause; /* Selected coprocessor regs */ + A_UINT32 status; +}; +typedef struct MIPS_exception_frame_s CPU_exception_frame_t; + +#endif + +/* + * Offsets into MIPS_exception_frame structure, for use in assembler code + * MUST MATCH C STRUCTURE ABOVE + */ +#define RD_pc 0 +#define RD_at 1 +#define RD_v0 2 +#define RD_v1 3 +#define RD_a0 4 +#define RD_a1 5 +#define RD_a2 6 +#define RD_a3 7 +#define RD_t0 8 +#define RD_t1 9 +#define RD_t2 10 +#define RD_t3 11 +#define RD_t4 12 +#define RD_t5 13 +#define RD_t6 14 +#define RD_t7 15 +#define RD_s0 16 +#define RD_s1 17 +#define RD_s2 18 +#define RD_s3 19 +#define RD_s4 20 +#define RD_s5 21 +#define RD_s6 22 +#define RD_s7 23 +#define RD_t8 24 +#define RD_t9 25 +#define RD_k0 26 +#define RD_k1 27 +#define RD_gp 28 +#define RD_sp 29 +#define RD_s8 30 +#define RD_ra 31 +#define RD_cause 32 +#define RD_status 33 + +#define RD_SIZE (34*4) /* Space for this number of words */ + +#endif /* __AR6000_REGDUMP_H__ */ |