Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Get rid of cpu_lwp_setprivate since it's no...
details: https://anonhg.NetBSD.org/src/rev/1ab1f8e4918d
branches: trunk
changeset: 763918:1ab1f8e4918d
user: matt <matt%NetBSD.org@localhost>
date: Thu Apr 07 02:04:06 2011 +0000
description:
Get rid of cpu_lwp_setprivate since it's not needed on powerpc.
diffstat:
sys/arch/powerpc/include/types.h | 3 +--
sys/arch/powerpc/powerpc/sys_machdep.c | 13 ++-----------
2 files changed, 3 insertions(+), 13 deletions(-)
diffs (48 lines):
diff -r d96ab19f668b -r 1ab1f8e4918d sys/arch/powerpc/include/types.h
--- a/sys/arch/powerpc/include/types.h Thu Apr 07 01:40:32 2011 +0000
+++ b/sys/arch/powerpc/include/types.h Thu Apr 07 02:04:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.38 2011/03/12 07:29:41 matt Exp $ */
+/* $NetBSD: types.h,v 1.39 2011/04/07 02:04:06 matt Exp $ */
/*-
* Copyright (C) 1995 Wolfgang Solfrank.
@@ -73,7 +73,6 @@
#define __HAVE_CPU_COUNTER
#define __HAVE_SYSCALL_INTERN
-#define __HAVE_CPU_LWP_SETPRIVATE
#define __HAVE_CPU_DATA_FIRST
#ifdef _LP64
#define __HAVE_ATOMIC64_OPS
diff -r d96ab19f668b -r 1ab1f8e4918d sys/arch/powerpc/powerpc/sys_machdep.c
--- a/sys/arch/powerpc/powerpc/sys_machdep.c Thu Apr 07 01:40:32 2011 +0000
+++ b/sys/arch/powerpc/powerpc/sys_machdep.c Thu Apr 07 02:04:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_machdep.c,v 1.12 2011/03/12 07:27:20 matt Exp $ */
+/* $NetBSD: sys_machdep.c,v 1.13 2011/04/07 02:04:07 matt Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.12 2011/03/12 07:27:20 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.13 2011/04/07 02:04:07 matt Exp $");
#include <sys/param.h>
@@ -50,12 +50,3 @@
*/
return (ENOSYS);
}
-
-int
-cpu_lwp_setprivate(lwp_t *l, void *addr)
-{
-
- l->l_md.md_utf->tf_fixreg[2] = (register_t)addr;
-
- return 0;
-}
Home |
Main Index |
Thread Index |
Old Index