patch-2.1.17 linux/arch/sparc/kernel/process.c
Next file: linux/arch/sparc/kernel/ptrace.c
Previous file: linux/arch/sparc/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Thu Dec 19 11:03:32 1996
- Orig file:
v2.1.16/linux/arch/sparc/kernel/process.c
- Orig date:
Wed Dec 18 15:58:43 1996
diff -u --recursive --new-file v2.1.16/linux/arch/sparc/kernel/process.c linux/arch/sparc/kernel/process.c
@@ -1,4 +1,4 @@
-/* $Id: process.c,v 1.83 1996/12/10 07:38:39 davem Exp $
+/* $Id: process.c,v 1.85 1996/12/18 06:33:42 tridge Exp $
* linux/arch/sparc/kernel/process.c
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -215,6 +215,9 @@
void show_regs(struct pt_regs * regs)
{
+#if __MPP__
+ printk("CID: %d\n",mpp_cid());
+#endif
printk("PSR: %08lx PC: %08lx NPC: %08lx Y: %08lx\n", regs->psr,
regs->pc, regs->npc, regs->y);
printk("g0: %08lx g1: %08lx g2: %08lx g3: %08lx\n",
@@ -305,7 +308,7 @@
current->tss.sstk_info.cur_status = 0;
current->tss.sstk_info.the_stack = 0;
- /* No new signal delivey by default */
+ /* No new signal delivery by default */
current->tss.new_signal = 0;
#ifndef __SMP__
if(last_task_used_math == current) {
@@ -406,7 +409,7 @@
* allocate the task_struct and kernel stack in
* do_fork().
*/
-extern void ret_sys_call(void);
+extern void ret_from_syscall(void);
int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
struct task_struct *p, struct pt_regs *regs)
@@ -439,7 +442,7 @@
copy_regwin(new_stack, (((struct reg_window *) regs) - 1));
p->tss.ksp = p->saved_kernel_stack = (unsigned long) new_stack;
- p->tss.kpc = (((unsigned long) ret_sys_call) - 0x8);
+ p->tss.kpc = (((unsigned long) ret_from_syscall) - 0x8);
p->tss.kpsr = current->tss.fork_kpsr;
p->tss.kwim = current->tss.fork_kwim;
p->tss.kregs = childregs;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov