diff options
author | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-18 17:55:41 +0000 |
---|---|---|
committer | lars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-05-18 17:55:41 +0000 |
commit | fb189822fcab111e55d1c7e83c482dc2c144500a (patch) | |
tree | dd10e61f382ace3afbe40af3af8238757cf5e3d0 /target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/AR6001_regdump.h | |
parent | c5f7c391b56bb88e21895f0fc9310cd0919e8d0c (diff) |
[s3c24xx] bump to 2.6.30-rc6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15918 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 000000000..c1bcadea3 --- /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__ */ |