patch-pre2.0.8 linux/arch/ppc/kernel/mk_defs.c
Next file: linux/arch/ppc/kernel/mkboot.c
Previous file: linux/arch/ppc/kernel/misc.S
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon May 27 12:00:58 1996
- Orig file:
pre2.0.7/linux/arch/ppc/kernel/mk_defs.c
- Orig date:
Sat Dec 30 15:48:22 1995
diff -u --recursive --new-file pre2.0.7/linux/arch/ppc/kernel/mk_defs.c linux/arch/ppc/kernel/mk_defs.c
@@ -28,7 +28,7 @@
struct pt_regs regs;
if (!(out = fopen(argv[1], "w")))
{
- fprintf(stderr, "Can't create output file: %d\n", errno);
+ fprintf(stderr, "Can't create output file: %s\n", strerror(errno));
exit(1);
}
fprintf(out, "/*\n");
@@ -42,6 +42,10 @@
put_line(out, "TSS", (int)&task.tss-(int)&task);
put_line(out, "KSP", (int)&tss.ksp-(int)&tss);
put_line(out, "LAST_PC", (int)&tss.last_pc-(int)&tss);
+ put_line(out, "USER_STACK", (int)&tss.user_stack-(int)&tss);
+ put_line(out, "PT_REGS", (int)&tss.regs-(int)&tss);
+ put_line(out, "PF_TRACESYS", PF_TRACESYS);
+ put_line(out, "TASK_FLAGS", (int)&task.flags-(int)&task);
put_line(out, "MMU_SEG0", (int)&tss.segs[0]-(int)&tss);
put_line(out, "MMU_SEG1", (int)&tss.segs[1]-(int)&tss);
put_line(out, "MMU_SEG2", (int)&tss.segs[2]-(int)&tss);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this