Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun2/sun2 As a side-effect of the ELF conversion, t...



details:   https://anonhg.NetBSD.org/src/rev/7655b30423a6
branches:  trunk
changeset: 509854:7655b30423a6
user:      fredette <fredette%NetBSD.org@localhost>
date:      Mon May 14 15:36:42 2001 +0000

description:
As a side-effect of the ELF conversion, the msgbuf
can now be 8K large.  Removed more 68881 code that
is only useful if you have the real silicon, which
the 68010 never will.

diffstat:

 sys/arch/sun2/sun2/machdep.c |  19 +++++++++++--------
 sys/arch/sun2/sun2/machdep.h |   5 +----
 2 files changed, 12 insertions(+), 12 deletions(-)

diffs (70 lines):

diff -r 3db83fd912c0 -r 7655b30423a6 sys/arch/sun2/sun2/machdep.c
--- a/sys/arch/sun2/sun2/machdep.c      Mon May 14 15:12:39 2001 +0000
+++ b/sys/arch/sun2/sun2/machdep.c      Mon May 14 15:36:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.4 2001/04/24 04:31:13 thorpej Exp $      */
+/*     $NetBSD: machdep.c,v 1.5 2001/05/14 15:36:42 fredette Exp $     */
 
 /*
  * Copyright (c) 2001 Matthew Fredette.
@@ -259,14 +259,14 @@
 
        /*
         * Initialize message buffer (for kernel printf).
-        * This is put in physical page four so it will
-        * always be in the same place after a reboot.
-        * (physical pages 0-3 are reserved by the PROM
+        * This is put in physical pages four through seven
+        * so it will always be in the same place after a 
+        * reboot. (physical pages 0-3 are reserved by the PROM
         * for its vector table and other stuff.)
         * Its mapping was prepared in pmap_bootstrap().
         * Also, offset some to avoid PROM scribbles.
         */
-       v = (caddr_t) KERNBASE + (NBPG * 4);
+       v = (caddr_t) (NBPG * 4);
        msgbufaddr = (caddr_t)(v + MSGBUFOFF);
        initmsgbuf(msgbufaddr, MSGBUFSIZE);
 
@@ -284,7 +284,12 @@
         */
        printf(version);
        identifycpu();
-       initfpu();      /* also prints FPU type */
+       fputype = FPU_NONE;
+#ifdef  FPU_EMULATE
+       printf("fpu: emulator\n");
+#else
+       printf("fpu: no math support\n");
+#endif
 
        format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
        printf("total memory = %s\n", pbuf);
@@ -451,8 +456,6 @@
 
        /* restore a null state frame */
        p->p_addr->u_pcb.pcb_fpregs.fpf_null = 0;
-       if (fputype)
-               m68881_restore(&p->p_addr->u_pcb.pcb_fpregs);
 
        p->p_md.md_flags = 0;
 }
diff -r 3db83fd912c0 -r 7655b30423a6 sys/arch/sun2/sun2/machdep.h
--- a/sys/arch/sun2/sun2/machdep.h      Mon May 14 15:12:39 2001 +0000
+++ b/sys/arch/sun2/sun2/machdep.h      Mon May 14 15:36:42 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.h,v 1.1 2001/04/06 15:05:56 fredette Exp $     */
+/*     $NetBSD: machdep.h,v 1.2 2001/05/14 15:36:42 fredette Exp $     */
 
 /*
  * Copyright (c) 2001 Matthew Fredette
@@ -91,9 +91,6 @@
 
 void   initfpu __P((void));
 
-void   m68881_save __P((struct fpframe *));
-void   m68881_restore __P((struct fpframe *));
-
 void   set_clk_mode __P((int, int));
 
 void   netintr __P((void));



Home | Main Index | Thread Index | Old Index