Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Simplify cpu_lwp_setprivate.
details: https://anonhg.NetBSD.org/src/rev/8f57c4419f78
branches: trunk
changeset: 763169:8f57c4419f78
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 12 07:27:20 2011 +0000
description:
Simplify cpu_lwp_setprivate.
diffstat:
sys/arch/powerpc/powerpc/sys_machdep.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 343d05123f2f -r 8f57c4419f78 sys/arch/powerpc/powerpc/sys_machdep.c
--- a/sys/arch/powerpc/powerpc/sys_machdep.c Sat Mar 12 07:16:50 2011 +0000
+++ b/sys/arch/powerpc/powerpc/sys_machdep.c Sat Mar 12 07:27:20 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.11 2011/01/18 01:02:55 matt Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.12 2011/03/12 07:27:20 matt Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.11 2011/01/18 01:02:55 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.12 2011/03/12 07:27:20 matt Exp $");
#include <sys/param.h>
@@ -54,9 +54,8 @@
int
cpu_lwp_setprivate(lwp_t *l, void *addr)
{
- struct trapframe *tf;
- tf = trapframe(l);
- tf->tf_fixreg[2] = (register_t)addr;
+ l->l_md.md_utf->tf_fixreg[2] = (register_t)addr;
+
return 0;
}
Home |
Main Index |
Thread Index |
Old Index