···11-/*22- * linux/include/asm/reg.h33- * Layout of the registers as expected by gdb on the Sparc44- * we should replace the user.h definitions with those in55- * this file, we don't even use the other66- * -miguel77- *88- * The names of the structures, constants and aliases in this file99- * have the same names as the sunos ones, some programs rely on these1010- * names (gdb for example).1111- *1212- */1313-1414-#ifndef __SPARC_REG_H1515-#define __SPARC_REG_H1616-1717-struct regs {1818- int r_psr;1919-#define r_ps r_psr2020- int r_pc;2121- int r_npc;2222- int r_y;2323- int r_g1;2424- int r_g2;2525- int r_g3;2626- int r_g4;2727- int r_g5;2828- int r_g6;2929- int r_g7;3030- int r_o0;3131- int r_o1;3232- int r_o2;3333- int r_o3;3434- int r_o4;3535- int r_o5;3636- int r_o6;3737- int r_o7;3838-};3939-4040-struct fpq {4141- unsigned long *addr;4242- unsigned long instr;4343-};4444-4545-struct fq {4646- union {4747- double whole;4848- struct fpq fpq;4949- } FQu;5050-};5151-5252-#define FPU_REGS_TYPE unsigned int5353-#define FPU_FSR_TYPE unsigned5454-5555-struct fp_status {5656- union {5757- FPU_REGS_TYPE Fpu_regs[32];5858- double Fpu_dregs[16];5959- } fpu_fr;6060- FPU_FSR_TYPE Fpu_fsr;6161- unsigned Fpu_flags;6262- unsigned Fpu_extra;6363- unsigned Fpu_qcnt;6464- struct fq Fpu_q[16];6565-};6666-6767-#define fpu_regs f_fpstatus.fpu_fr.Fpu_regs6868-#define fpu_dregs f_fpstatus.fpu_fr.Fpu_dregs6969-#define fpu_fsr f_fpstatus.Fpu_fsr7070-#define fpu_flags f_fpstatus.Fpu_flags7171-#define fpu_extra f_fpstatus.Fpu_extra7272-#define fpu_q f_fpstatus.Fpu_q7373-#define fpu_qcnt f_fpstatus.Fpu_qcnt7474-7575-struct fpu {7676- struct fp_status f_fpstatus;7777-};7878-7979-#endif /* __SPARC_REG_H */
-56
arch/sparc/include/asm/reg_64.h
···11-/*22- * linux/asm/reg.h33- * Layout of the registers as expected by gdb on the Sparc44- * we should replace the user.h definitions with those in55- * this file, we don't even use the other66- * -miguel77- *88- * The names of the structures, constants and aliases in this file99- * have the same names as the sunos ones, some programs rely on these1010- * names (gdb for example).1111- *1212- */1313-1414-#ifndef __SPARC64_REG_H1515-#define __SPARC64_REG_H1616-1717-struct regs {1818- unsigned long r_g1;1919- unsigned long r_g2;2020- unsigned long r_g3;2121- unsigned long r_g4;2222- unsigned long r_g5;2323- unsigned long r_g6;2424- unsigned long r_g7;2525- unsigned long r_o0;2626- unsigned long r_o1;2727- unsigned long r_o2;2828- unsigned long r_o3;2929- unsigned long r_o4;3030- unsigned long r_o5;3131- unsigned long r_o6;3232- unsigned long r_o7;3333- unsigned long __pad;3434- unsigned long r_tstate;3535- unsigned long r_tpc;3636- unsigned long r_tnpc;3737- unsigned int r_y;3838- unsigned int r_fprs;3939-};4040-4141-#define FPU_REGS_TYPE unsigned int4242-#define FPU_FSR_TYPE unsigned long4343-4444-struct fp_status {4545- unsigned long fpu_fr[32];4646- unsigned long Fpu_fsr;4747-};4848-4949-struct fpu {5050- struct fp_status f_fpstatus;5151-};5252-5353-#define fpu_regs f_fpstatus.fpu_fr5454-#define fpu_fsr f_fpstatus.Fpu_fsr5555-5656-#endif /* __SPARC64_REG_H */