Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/stand/boot Display debug messages before loadi...



details:   https://anonhg.NetBSD.org/src/rev/affdb83c6d16
branches:  trunk
changeset: 345987:affdb83c6d16
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun Jun 19 09:42:28 2016 +0000

description:
Display debug messages before loading the kernel.
It makes easy to read.

diffstat:

 sys/arch/x68k/stand/boot/boot.c |  24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diffs (45 lines):

diff -r 36a185a21218 -r affdb83c6d16 sys/arch/x68k/stand/boot/boot.c
--- a/sys/arch/x68k/stand/boot/boot.c   Sun Jun 19 09:35:06 2016 +0000
+++ b/sys/arch/x68k/stand/boot/boot.c   Sun Jun 19 09:42:28 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.25 2016/06/19 09:23:16 isaki Exp $  */
+/*     $NetBSD: boot.c,v 1.26 2016/06/19 09:42:28 isaki Exp $  */
 
 /*
  * Copyright (c) 2001 Minoura Makoto
@@ -142,17 +142,6 @@
 
        printf("Starting %s, flags 0x%x\n", file, flags);
 
-       loadflag = LOAD_KERNEL;
-       if (file[0] == 'f')
-               loadflag &= ~LOAD_BACKWARDS;
-               
-       marks[MARK_START] = 0x100000;
-       if ((fd = loadfile(file, marks, loadflag)) == -1) {
-               printf("loadfile failed\n");
-               return;
-       }
-       close(fd);
-
        if (devparse(file, &dev, &unit, &part, &name) != 0) {
                printf("XXX: unknown corruption in /boot.\n");
        }
@@ -195,6 +184,17 @@
 #endif
 #endif
 
+       loadflag = LOAD_KERNEL;
+       if (file[0] == 'f')
+               loadflag &= ~LOAD_BACKWARDS;
+
+       marks[MARK_START] = 0x100000;
+       if ((fd = loadfile(file, marks, loadflag)) == -1) {
+               printf("loadfile failed\n");
+               return;
+       }
+       close(fd);
+
        p = ((short*) marks[MARK_ENTRY]) - 1;
 #ifdef DEBUG
        printf("Kernel Version: 0x%x\n", *p);



Home | Main Index | Thread Index | Old Index