patch-2.1.16 linux/arch/ppc/kernel/mk_defs.c
Next file: linux/arch/ppc/kernel/pci.c
Previous file: linux/arch/ppc/kernel/misc.S
Back to the patch index
Back to the overall index
- Lines: 50
- Date:
Wed Dec 18 10:49:52 1996
- Orig file:
v2.1.15/linux/arch/ppc/kernel/mk_defs.c
- Orig date:
Mon Jul 8 11:27:42 1996
diff -u --recursive --new-file v2.1.15/linux/arch/ppc/kernel/mk_defs.c linux/arch/ppc/kernel/mk_defs.c
@@ -25,6 +25,8 @@
FILE *out;
struct task_struct task;
struct thread_struct tss;
+ int i;
+ char s[256];
struct pt_regs regs;
if (!(out = fopen(argv[1], "w")))
{
@@ -62,6 +64,8 @@
put_line(out, "MMU_SEG13", (int)&tss.segs[13]-(int)&tss);
put_line(out, "MMU_SEG14", (int)&tss.segs[14]-(int)&tss);
put_line(out, "MMU_SEG15", (int)&tss.segs[15]-(int)&tss);
+ put_line(out, "TSS_EXPC", (int)&tss.expc-(int)&tss);
+ put_line(out, "TSS_EXCOUNT", (int)&tss.excount-(int)&tss);
put_line(out, "TSS_FPR0", (int)&tss.fpr[0]-(int)&tss);
put_line(out, "TSS_FPR1", (int)&tss.fpr[1]-(int)&tss);
put_line(out, "TSS_FPR2", (int)&tss.fpr[2]-(int)&tss);
@@ -94,6 +98,7 @@
put_line(out, "TSS_FPR29", (int)&tss.fpr[29]-(int)&tss);
put_line(out, "TSS_FPR30", (int)&tss.fpr[30]-(int)&tss);
put_line(out, "TSS_FPR31", (int)&tss.fpr[31]-(int)&tss);
+ put_line(out, "TSS_FP_USED", (int)&tss.fp_used-(int)&tss);
/* Interrupt register frame */
put_line(out, "INT_FRAME_SIZE", sizeof(regs));
put_line(out, "GPR0", (int)®s.gpr[0]-(int)®s);
@@ -128,14 +133,19 @@
put_line(out, "GPR29", (int)®s.gpr[29]-(int)®s);
put_line(out, "GPR30", (int)®s.gpr[30]-(int)®s);
put_line(out, "GPR31", (int)®s.gpr[31]-(int)®s);
- put_line(out, "FPR0", (int)®s.fpr[0]-(int)®s);
- put_line(out, "FPR1", (int)®s.fpr[1]-(int)®s);
- put_line(out, "FPR2", (int)®s.fpr[2]-(int)®s);
- put_line(out, "FPR3", (int)®s.fpr[3]-(int)®s);
+#if 0
+ for ( i = 0 ; i <= 31 ; i++)
+ {
+ sprintf(s,"FPR%d",i);
+ put_line(out, s, (int)®s.fpr[i]-(int)®s);
+ }
+#endif
put_line(out, "FPCSR", (int)®s.fpcsr-(int)®s);
/* Note: these symbols include "_" because they overlap with special register names */
put_line(out, "_NIP", (int)®s.nip-(int)®s);
put_line(out, "_MSR", (int)®s.msr-(int)®s);
+ /* put_line(out, "_SRR1", (int)®s.srr1-(int)®s);
+ put_line(out, "_SRR0", (int)®s.srr0-(int)®s); */
put_line(out, "_CTR", (int)®s.ctr-(int)®s);
put_line(out, "_LINK", (int)®s.link-(int)®s);
put_line(out, "_CCR", (int)®s.ccr-(int)®s);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov