Module Name: src Committed By: matt Date: Fri Aug 23 06:21:33 UTC 2013
Modified Files: src/sys/arch/powerpc/oea: altivec.c Log Message: Get rid of MDLWP_USED{FPU,VEC} To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/arch/powerpc/oea/altivec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/oea/altivec.c diff -u src/sys/arch/powerpc/oea/altivec.c:1.27 src/sys/arch/powerpc/oea/altivec.c:1.28 --- src/sys/arch/powerpc/oea/altivec.c:1.27 Thu Aug 22 19:50:54 2013 +++ src/sys/arch/powerpc/oea/altivec.c Fri Aug 23 06:21:33 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: altivec.c,v 1.27 2013/08/22 19:50:54 drochner Exp $ */ +/* $NetBSD: altivec.c,v 1.28 2013/08/23 06:21:33 matt Exp $ */ /* * Copyright (C) 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.27 2013/08/22 19:50:54 drochner Exp $"); +__KERNEL_RCSID(0, "$NetBSD: altivec.c,v 1.28 2013/08/23 06:21:33 matt Exp $"); #include "opt_multiprocessor.h" @@ -63,13 +63,13 @@ const pcu_ops_t vec_ops = { bool vec_used_p(lwp_t *l) { - return (l->l_md.md_flags & MDLWP_USEDVEC) != 0; + return pcu_used_p(&vec_ops); } void vec_mark_used(lwp_t *l) { - l->l_md.md_flags |= MDLWP_USEDVEC; + return pcu_discard(&vec_ops, true); } void @@ -109,7 +109,7 @@ vec_state_load(lwp_t *l, u_int flags) /* * Mark vector registers as modified. */ - l->l_md.md_flags |= MDLWP_USEDVEC|PSL_VEC; + l->l_md.md_flags |= PSL_VEC; l->l_md.md_utf->tf_srr1 |= PSL_VEC; }