fix booting from disk boot program and memory mini-root.
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 16 Feb 1993 03:04:00 +0000 (19:04 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Tue, 16 Feb 1993 03:04:00 +0000 (19:04 -0800)
SCCS-vsn: sys/pmax/pmax/machdep.c 7.15

usr/src/sys/pmax/pmax/machdep.c

index ab27ec6..a3db4aa 100644 (file)
@@ -10,7 +10,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)machdep.c   7.14 (Berkeley) %G%
+ *     @(#)machdep.c   7.15 (Berkeley) %G%
  */
 
 /* from: Utah $Hdr: machdep.c 1.63 91/04/24$ */
  */
 
 /* from: Utah $Hdr: machdep.c 1.63 91/04/24$ */
@@ -245,8 +245,10 @@ mach_init(argc, argv, code, cv)
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
         * Check to see if a mini-root was loaded into memory. It resides
         * at the start of the next page just after the end of BSS.
         */
-       if (boothowto & RB_MINIROOT)
+       if (boothowto & RB_MINIROOT) {
+               boothowto |= RB_DFLTROOT;
                v += mfs_initminiroot(v);
                v += mfs_initminiroot(v);
+       }
 #endif
 
        /*
 #endif
 
        /*
@@ -631,6 +633,15 @@ consinit()
        }
        if (pmax_boardtype == DS_PMAX && kbd == 1)
                cn_tab.cn_screen = 1;
        }
        if (pmax_boardtype == DS_PMAX && kbd == 1)
                cn_tab.cn_screen = 1;
+       /*
+        * The boot program uses PMAX ROM entrypoints so the ROM sets
+        * osconsole to '1' like the PMAX.
+        */
+       if (pmax_boardtype == DS_3MAX && crt == -1 && kbd == 1) {
+               cn_tab.cn_screen = 1;
+               crt = 0;
+               kbd = 7;
+       }
 
        /*
         * First try the keyboard/crt cases then fall through to the
 
        /*
         * First try the keyboard/crt cases then fall through to the