Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/stand/bootxx use booted_dev_fd() and booted_d...



details:   https://anonhg.NetBSD.org/src/rev/1bd211d57bc2
branches:  trunk
changeset: 471477:1bd211d57bc2
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Apr 02 03:50:47 1999 +0000

description:
use booted_dev_fd() and booted_dev_close()

diffstat:

 sys/arch/alpha/stand/bootxx/bootxx.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r d013c4ea4c3b -r 1bd211d57bc2 sys/arch/alpha/stand/bootxx/bootxx.c
--- a/sys/arch/alpha/stand/bootxx/bootxx.c      Fri Apr 02 03:45:12 1999 +0000
+++ b/sys/arch/alpha/stand/bootxx/bootxx.c      Fri Apr 02 03:50:47 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootxx.c,v 1.13 1999/04/02 03:35:55 cgd Exp $ */
+/* $NetBSD: bootxx.c,v 1.14 1999/04/02 03:50:47 cgd Exp $ */
 
 /*
  * Copyright (C) 1998 by Ross Harvey
@@ -149,7 +149,6 @@
 void
 main()
 {
-       int fd;
        char *loadaddr;
        struct bbinfo *bbinfop;
        void (*entry) __P((int));
@@ -166,14 +165,14 @@
                putstr("Can't open boot device\n");
                return;
        }
-       if (!load_file(fd, bbinfop, loadaddr)) {
+       if (!load_file(booted_dev_fd, bbinfop, loadaddr)) {
                putstr("\nLOAD FAILED!\n\n");
                return;
        }
 
        putstr("Jumping to entry point...\n");
        entry = (void (*)(int))loadaddr;
-       (*entry)(fd);
-       prom_close(fd);
+       (*entry)(booted_dev_fd);
+       booted_dev_close();
        putstr("SECONDARY BOOT RETURNED!\n");
 }



Home | Main Index | Thread Index | Old Index