sync up to hp300/hp300/machdep.c 7.36
authorAkito Fujita <akito@ucbvax.Berkeley.EDU>
Thu, 11 Mar 1993 07:41:29 +0000 (23:41 -0800)
committerAkito Fujita <akito@ucbvax.Berkeley.EDU>
Thu, 11 Mar 1993 07:41:29 +0000 (23:41 -0800)
SCCS-vsn: sys/luna68k/luna68k/machdep.c 7.8

usr/src/sys/luna68k/luna68k/machdep.c

index e33a836..50b6414 100644 (file)
@@ -11,9 +11,9 @@
  * %sccs.include.redist.c%
  *
  * from: Utah $Hdr: machdep.c 1.63 91/04/24$
  * %sccs.include.redist.c%
  *
  * from: Utah $Hdr: machdep.c 1.63 91/04/24$
- * from: hp300/hp300/machdep.c 7.35 (Berkeley) 12/28/92
+ * from: hp300/hp300/machdep.c   7.36 (Berkeley) 2/10/93
  *
  *
- *     @(#)machdep.c   7.7 (Berkeley) %G%
+ *     @(#)machdep.c   7.8 (Berkeley) %G%
  */
 
 #include <sys/param.h>
  */
 
 #include <sys/param.h>
@@ -47,6 +47,9 @@
 #define        MAXMEM  64*1024*CLSIZE  /* XXX - from cmap.h */
 #include <vm/vm_kern.h>
 
 #define        MAXMEM  64*1024*CLSIZE  /* XXX - from cmap.h */
 #include <vm/vm_kern.h>
 
+/* the following is used externally (sysctl_hw) */
+char machine[] = "luna68k";            /* cpu "architecture" */
+
 vm_map_t buffer_map;
 extern vm_offset_t avail_end;
 
 vm_map_t buffer_map;
 extern vm_offset_t avail_end;
 
@@ -305,13 +308,23 @@ setregs(p, entry, retval)
 #endif
 }
 
 #endif
 }
 
+extern char machine[];
+char   cpu_model[120];
+extern char ostype[], osrelease[], version[];
+
 identifyfpu()
 {
 identifyfpu()
 {
-    if ( fpptype == -1 ) {
-       printf("unknow FPU type \n");
-       panic("startup");
-    }
-    printf("LUNA(20Mhz MC68030 CPU, 20Mhz MC6888%d FPU)\n",fpptype);
+       if ( fpptype == -1 ) {
+               printf("unknow FPU type \n");
+               panic("startup");
+       }
+
+       sprintf(cpu_model, "LUNA-I (20MHz MC68030 CPU+MMU, 20MHz MC6888%d FPU)", fpptype);
+       printf("%s\n", cpu_model);
+
+/*
+       printf("LUNA(20Mhz MC68030 CPU, 20Mhz MC6888%d FPU)\n",fpptype);
+ */
 }
 
 #define SS_RTEFRAME    1
 }
 
 #define SS_RTEFRAME    1