Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga identifycpu() is not just cosmetic for ...



details:   https://anonhg.NetBSD.org/src/rev/dea0f0de4c89
branches:  trunk
changeset: 771260:dea0f0de4c89
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Thu Nov 17 07:45:53 2011 +0000

description:
identifycpu() is not just cosmetic for the banner but initializes how FPU
contexts are saved.
Also drop code that checks for fputype before it is determined.

diffstat:

 sys/arch/amiga/amiga/machdep.c |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (40 lines):

diff -r 689396370c0d -r dea0f0de4c89 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Thu Nov 17 02:41:55 2011 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Thu Nov 17 07:45:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.234 2011/06/12 03:35:38 rmind Exp $      */
+/*     $NetBSD: machdep.c,v 1.235 2011/11/17 07:45:53 mlelstv Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -48,7 +48,7 @@
 #include "opt_m68k_arch.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.234 2011/06/12 03:35:38 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.235 2011/11/17 07:45:53 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -216,9 +216,6 @@
 #endif
        vaddr_t minaddr, maxaddr;
 
-       if (fputype != FPU_NONE)
-               m68k_make_fpu_idle_frame();
-
        /*
         * Initialize error message buffer (at end of core).
         */
@@ -250,6 +247,11 @@
         */
        banner();
 
+       /*
+        * Get MMU/FPU type from bootstrap
+        */
+       identifycpu();
+
 #ifdef DEBUG
        pmapdebug = opmapdebug;
 #endif



Home | Main Index | Thread Index | Old Index