Module Name: src Committed By: matt Date: Thu Jun 9 13:41:40 UTC 2011
Modified Files: src/sys/compat/linux/arch/alpha: linux_machdep.c Log Message: Adapt to change to PCU. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/sys/compat/linux/arch/alpha/linux_machdep.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/compat/linux/arch/alpha/linux_machdep.c diff -u src/sys/compat/linux/arch/alpha/linux_machdep.c:1.47 src/sys/compat/linux/arch/alpha/linux_machdep.c:1.48 --- src/sys/compat/linux/arch/alpha/linux_machdep.c:1.47 Fri Mar 4 22:25:31 2011 +++ src/sys/compat/linux/arch/alpha/linux_machdep.c Thu Jun 9 13:41:40 2011 @@ -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);