Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/arch/alpha Adapt to change to PCU.
details: https://anonhg.NetBSD.org/src/rev/a637a3b4ddae
branches: trunk
changeset: 765894:a637a3b4ddae
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 09 13:41:40 2011 +0000
description:
Adapt to change to PCU.
diffstat:
sys/compat/linux/arch/alpha/linux_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 6286938fa7c2 -r a637a3b4ddae sys/compat/linux/arch/alpha/linux_machdep.c
--- a/sys/compat/linux/arch/alpha/linux_machdep.c Thu Jun 09 13:09:42 2011 +0000
+++ b/sys/compat/linux/arch/alpha/linux_machdep.c Thu Jun 09 13:41:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_machdep.c,v 1.47 2011/03/04 22:25:31 joerg Exp $ */
+/* $NetBSD: linux_machdep.c,v 1.48 2011/06/09 13:41:40 matt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.47 2011/03/04 22:25:31 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_machdep.c,v 1.48 2011/06/09 13:41:40 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -154,7 +154,8 @@
frametoreg(tf, (struct reg *)sigframe.uc.uc_mcontext.sc_regs);
sigframe.uc.uc_mcontext.sc_regs[R_SP] = alpha_pal_rdusp();
- alpha_enable_fp(l, 1);
+ fpu_load();
+ alpha_pal_wrfen(1);
sigframe.uc.uc_mcontext.sc_fpcr = alpha_read_fpcr();
sigframe.uc.uc_mcontext.sc_fp_control = alpha_read_fp_c(l);
alpha_pal_wrfen(0);
Home |
Main Index |
Thread Index |
Old Index