Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include it's PPC_HAVE_FPU, not PPC_HAS_FPU.



details:   https://anonhg.NetBSD.org/src/rev/27acd4ec26bf
branches:  trunk
changeset: 535004:27acd4ec26bf
user:      chs <chs%NetBSD.org@localhost>
date:      Thu Aug 08 01:27:35 2002 +0000

description:
it's PPC_HAVE_FPU, not PPC_HAS_FPU.
also, include the headers that turn on FPU and AltiVec features
in case no one else does.

diffstat:

 sys/arch/powerpc/include/userret.h |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 6b689164867b -r 27acd4ec26bf sys/arch/powerpc/include/userret.h
--- a/sys/arch/powerpc/include/userret.h        Thu Aug 08 00:29:31 2002 +0000
+++ b/sys/arch/powerpc/include/userret.h        Thu Aug 08 01:27:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: userret.h,v 1.2 2002/08/06 06:18:24 chs Exp $  */
+/*     $NetBSD: userret.h,v 1.3 2002/08/08 01:27:35 chs Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -31,6 +31,10 @@
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "opt_altivec.h"
+
+#include <powerpc/fpu.h>
+
 /*
  * Define the code needed before returning to user mode, for
  * trap and syscall.
@@ -53,7 +57,7 @@
         * If someone stole the fp or vector unit while we were away,
         * disable it
         */
-#ifdef PPC_HAS_FPU
+#ifdef PPC_HAVE_FPU
        if ((pcb->pcb_flags & PCB_FPU) &&
            (p != ci->ci_fpuproc || pcb->pcb_fpcpu != ci)) {
                frame->srr1 &= ~PSL_FP;



Home | Main Index | Thread Index | Old Index