Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc Update to new pcu_state_{load, state, release...
details: https://anonhg.NetBSD.org/src/rev/1ac705f6cec3
branches: trunk
changeset: 783505:1ac705f6cec3
user: matt <matt%NetBSD.org@localhost>
date: Wed Dec 26 19:05:03 2012 +0000
description:
Update to new pcu_state_{load,state,release} definitions
diffstat:
sys/arch/powerpc/booke/spe.c | 16 ++++++++--------
sys/arch/powerpc/oea/altivec.c | 16 ++++++++--------
sys/arch/powerpc/powerpc/fpu.c | 16 ++++++++--------
3 files changed, 24 insertions(+), 24 deletions(-)
diffs (174 lines):
diff -r 6a39871000cc -r 1ac705f6cec3 sys/arch/powerpc/booke/spe.c
--- a/sys/arch/powerpc/booke/spe.c Wed Dec 26 18:35:47 2012 +0000
+++ b/sys/arch/powerpc/booke/spe.c Wed Dec 26 19:05:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spe.c,v 1.5 2011/06/07 01:01:42 matt Exp $ */
+/* $NetBSD: spe.c,v 1.6 2012/12/26 19:05:04 matt Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.5 2011/06/07 01:01:42 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spe.c,v 1.6 2012/12/26 19:05:04 matt Exp $");
#include "opt_altivec.h"
@@ -49,9 +49,9 @@
#include <powerpc/psl.h>
#include <powerpc/pcb.h>
-static void vec_state_load(lwp_t *, bool);
-static void vec_state_save(lwp_t *);
-static void vec_state_release(lwp_t *);
+static void vec_state_load(lwp_t *, u_int);
+static void vec_state_save(lwp_t *, u_int);
+static void vec_state_release(lwp_t *, u_int);
const pcu_ops_t vec_ops = {
.pcu_id = PCU_VEC,
@@ -73,7 +73,7 @@
}
void
-vec_state_load(lwp_t *l, bool used)
+vec_state_load(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -110,7 +110,7 @@
}
void
-vec_state_save(lwp_t *l)
+vec_state_save(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -135,7 +135,7 @@
}
void
-vec_state_release(lwp_t *l)
+vec_state_release(lwp_t *l, u_int flags)
{
/*
* Turn off SPV so the next SPE instruction will cause a
diff -r 6a39871000cc -r 1ac705f6cec3 sys/arch/powerpc/oea/altivec.c
--- a/sys/arch/powerpc/oea/altivec.c Wed Dec 26 18:35:47 2012 +0000
+++ b/sys/arch/powerpc/oea/altivec.c Wed Dec 26 19:05:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: altivec.c,v 1.25 2011/06/07 01:01:43 matt Exp $ */
+/* $NetBSD: altivec.c,v 1.26 2012/12/26 19:05:03 matt Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.25 2011/06/07 01:01:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.26 2012/12/26 19:05:03 matt Exp $");
#include "opt_multiprocessor.h"
@@ -49,9 +49,9 @@
#include <powerpc/oea/spr.h>
#include <powerpc/psl.h>
-static void vec_state_load(lwp_t *, bool);
-static void vec_state_save(lwp_t *);
-static void vec_state_release(lwp_t *);
+static void vec_state_load(lwp_t *, u_int);
+static void vec_state_save(lwp_t *, u_int);
+static void vec_state_release(lwp_t *, u_int);
const pcu_ops_t vec_ops = {
.pcu_id = PCU_VEC,
@@ -73,7 +73,7 @@
}
void
-vec_state_load(lwp_t *l, bool used)
+vec_state_load(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -114,7 +114,7 @@
}
void
-vec_state_save(lwp_t *l)
+vec_state_save(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -149,7 +149,7 @@
}
void
-vec_state_release(lwp_t *l)
+vec_state_release(lwp_t *l, u_int flags)
{
__asm volatile("dssall;sync");
l->l_md.md_utf->tf_srr1 &= ~PSL_VEC;
diff -r 6a39871000cc -r 1ac705f6cec3 sys/arch/powerpc/powerpc/fpu.c
--- a/sys/arch/powerpc/powerpc/fpu.c Wed Dec 26 18:35:47 2012 +0000
+++ b/sys/arch/powerpc/powerpc/fpu.c Wed Dec 26 19:05:03 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu.c,v 1.31 2011/06/07 01:01:43 matt Exp $ */
+/* $NetBSD: fpu.c,v 1.32 2012/12/26 19:05:03 matt Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.31 2011/06/07 01:01:43 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu.c,v 1.32 2012/12/26 19:05:03 matt Exp $");
#include "opt_multiprocessor.h"
@@ -48,9 +48,9 @@
#include <machine/psl.h>
#ifdef PPC_HAVE_FPU
-static void fpu_state_load(lwp_t *, bool);
-static void fpu_state_save(lwp_t *);
-static void fpu_state_release(lwp_t *);
+static void fpu_state_load(lwp_t *, u_int);
+static void fpu_state_save(lwp_t *, u_int);
+static void fpu_state_release(lwp_t *, u_int);
#endif
const pcu_ops_t fpu_ops = {
@@ -76,7 +76,7 @@
#ifdef PPC_HAVE_FPU
void
-fpu_state_load(lwp_t *l, bool used)
+fpu_state_load(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -104,7 +104,7 @@
* Save the contents of the current CPU's FPU to its PCB.
*/
void
-fpu_state_save(lwp_t *l)
+fpu_state_save(lwp_t *l, u_int flags)
{
struct pcb * const pcb = lwp_getpcb(l);
@@ -120,7 +120,7 @@
}
void
-fpu_state_release(lwp_t *l)
+fpu_state_release(lwp_t *l, u_int flags)
{
l->l_md.md_utf->tf_srr1 &= ~PSL_FP;
}
Home |
Main Index |
Thread Index |
Old Index