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/installboot set bb_flags to zero; who k...



details:   https://anonhg.NetBSD.org/src/rev/9156ff5b0c59
branches:  trunk
changeset: 473680:9156ff5b0c59
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon Jun 14 23:55:29 1999 +0000

description:
set bb_flags to zero; who knows what they were (on disk) previously,
and SRM is finicky about what values it will allow.

diffstat:

 sys/arch/alpha/stand/installboot/installboot.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7e912c02bb8d -r 9156ff5b0c59 sys/arch/alpha/stand/installboot/installboot.c
--- a/sys/arch/alpha/stand/installboot/installboot.c    Mon Jun 14 23:52:25 1999 +0000
+++ b/sys/arch/alpha/stand/installboot/installboot.c    Mon Jun 14 23:55:29 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.15 1999/04/05 05:01:44 cgd Exp $ */
+/* $NetBSD: installboot.c,v 1.16 1999/06/14 23:55:29 cgd Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -145,7 +145,7 @@
                    (unsigned long long)bb.bb_secsize);
        }
 
-       bb.bb_secstart = bb.bb_secsize = 0;
+       bb.bb_secstart = bb.bb_secsize = bb.bb_flags = 0;
        CHECKSUM_BOOT_BLOCK(&bb, &bb.bb_cksum);
 
        fprintf(stderr, "new boot block checksum: %#llx\n",
@@ -224,6 +224,7 @@
        /* fill in the updated boot block fields, and checksum boot block */
        bb.bb_secsize = howmany(bootstrapsb.st_size, BOOT_BLOCK_BLOCKSIZE);
        bb.bb_secstart = 1;
+       bb.bb_flags = 0;
        CHECKSUM_BOOT_BLOCK(&bb, &bb.bb_cksum);
 
        if (verbose) {



Home | Main Index | Thread Index | Old Index