Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa Simplify cpu_spawn_return - setregs has d...
details: https://anonhg.NetBSD.org/src/rev/f772e7b410df
branches: trunk
changeset: 326692:f772e7b410df
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Feb 13 15:04:18 2014 +0000
description:
Simplify cpu_spawn_return - setregs has done all the work already.
diffstat:
sys/arch/hppa/hppa/trap.c | 25 ++-----------------------
1 files changed, 2 insertions(+), 23 deletions(-)
diffs (46 lines):
diff -r 0159168d8b7f -r f772e7b410df sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Thu Feb 13 12:00:29 2014 +0000
+++ b/sys/arch/hppa/hppa/trap.c Thu Feb 13 15:04:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.104 2013/10/25 09:46:10 martin Exp $ */
+/* $NetBSD: trap.c,v 1.105 2014/02/13 15:04:18 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.104 2013/10/25 09:46:10 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.105 2014/02/13 15:04:18 skrll Exp $");
/* #define INTRDEBUG */
/* #define TRAPDEBUG */
@@ -983,27 +983,6 @@
void
cpu_spawn_return(struct lwp *l)
{
- struct proc *p = l->l_proc;
- pmap_t pmap = p->p_vmspace->vm_map.pmap;
- pa_space_t space = pmap->pm_space;
- struct trapframe *tf = l->l_md.md_regs;
-
- /* Load all of the user's space registers. */
- tf->tf_sr0 = tf->tf_sr1 = tf->tf_sr3 = tf->tf_sr2 =
- tf->tf_sr4 = tf->tf_sr5 = tf->tf_sr6 = space;
- tf->tf_iisq_head = tf->tf_iisq_tail = space;
-
- /* Load the protection registers */
- tf->tf_pidr1 = tf->tf_pidr2 = pmap->pm_pid;
-
- /*
- * theoretically these could be inherited from the father,
- * but just in case.
- */
- tf->tf_sr7 = HPPA_SID_KERNEL;
- mfctl(CR_EIEM, tf->tf_eiem);
- tf->tf_ipsw = PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I /* | PSW_L */ |
- (curcpu()->ci_psw & PSW_O);
userret(l, l->l_md.md_regs->tf_iioq_head, 0);
#ifdef DEBUG
Home |
Main Index |
Thread Index |
Old Index