diff options
author | dfr <dfr@FreeBSD.org> | 1998-08-22 10:31:01 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-08-22 10:31:01 +0000 |
commit | e2b188b518313be90f07469c70efe961df7fe79d (patch) | |
tree | d9b3226272c51c5361342939cdd134d2c78461fa /sys/boot/alpha/common | |
parent | 83d0a1cbadb8ba309fe95e6669b3ca3945eac04a (diff) | |
download | FreeBSD-src-e2b188b518313be90f07469c70efe961df7fe79d.zip FreeBSD-src-e2b188b518313be90f07469c70efe961df7fe79d.tar.gz |
Minor tweaks to track a couple of i386 changes and to make it compile.
Diffstat (limited to 'sys/boot/alpha/common')
-rw-r--r-- | sys/boot/alpha/common/main.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sys/boot/alpha/common/main.c b/sys/boot/alpha/common/main.c index c4d8d71..6c0b10f 100644 --- a/sys/boot/alpha/common/main.c +++ b/sys/boot/alpha/common/main.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: main.c,v 1.1.1.1 1998/08/21 03:17:42 msmith Exp $ */ @@ -96,9 +96,9 @@ main(void) (devsw[i]->dv_init)(); printf("\n"); - printf(">> %s, Revision %s\n", bootprog_name, bootprog_rev); - printf(">> (%s, %s)\n", bootprog_maker, bootprog_date); - printf(">> Memory: %ld k\n", memsize() / 1024); + printf("%s, Revision %s\n", bootprog_name, bootprog_rev); + printf("(%s, %s)\n", bootprog_maker, bootprog_date); + printf("Memory: %ld k\n", memsize() / 1024); /* We're booting from an SRM disk, try to spiff this */ currdev.d_dev = devsw[0]; /* XXX presumes that biosdisk is first in devsw */ @@ -120,9 +120,22 @@ main(void) archsw.arch_getdev = alpha_getdev; /* + * SRM firmware takes *ages* to open the disk device. We hold it + * open until the closeall() when we exec the kernel. Note that + * we must close it eventually since otherwise the firmware leaves + * the ncr hardware in a broken state (at least it does on my EB164). + */ + open("/", O_RDONLY); + + /* * XXX should these be in the MI source? */ source("/boot/boot.config"); + printf("\n"); + autoboot(10, NULL); /* try to boot automatically */ + printf("\nType '?' for a list of commands, 'help' for more detailed help.\n"); + /* setenv("prompt", "$currdev>", 1); */ + interact(); /* doesn't return */ } |