patch-2.1.48 linux/fs/proc/array.c
Next file: linux/fs/proc/link.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Thu Jul 31 13:09:18 1997
- Orig file:
v2.1.47/linux/fs/proc/array.c
- Orig date:
Thu Jul 17 10:06:07 1997
diff -u --recursive --new-file v2.1.47/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -455,7 +455,7 @@
return ((unsigned long *)schedule_frame)[12];
}
return pc;
- }
+ }
#elif defined(__mc68000__)
{
unsigned long fp, pc;
@@ -480,6 +480,8 @@
fp = *(unsigned long *) fp;
} while (count++ < 16);
}
+#elif defined(__powerpc__)
+ return (p->tss.wchan);
#endif
return 0;
}
@@ -505,6 +507,9 @@
eip = ((struct pt_regs *) (tsk)->tss.esp0)->pc; \
eip; })
#define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->tss.usp)
+#elif defined(__powerpc__)
+#define KSTK_EIP(tsk) ((tsk)->tss.regs->nip)
+#define KSTK_ESP(tsk) ((tsk)->tss.regs->gpr[1])
#elif defined (__sparc_v9__)
# define KSTK_EIP(tsk) ((tsk)->tss.kregs->tpc)
# define KSTK_ESP(tsk) ((tsk)->tss.kregs->u_regs[UREG_FP])
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov