Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/vax/boot/boot Pull up revision 1.4 (requested ...



details:   https://anonhg.NetBSD.org/src/rev/322574e8711a
branches:  netbsd-1-6
changeset: 528091:322574e8711a
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 26 11:06:11 2002 +0000

description:
Pull up revision 1.4 (requested by mrg in ticket #370):
make booting from FS_RAID work.  tested on vs4000/90.

diffstat:

 sys/arch/vax/boot/boot/rom.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 7cfb242d363e -r 322574e8711a sys/arch/vax/boot/boot/rom.c
--- a/sys/arch/vax/boot/boot/rom.c      Wed Jun 26 00:48:50 2002 +0000
+++ b/sys/arch/vax/boot/boot/rom.c      Wed Jun 26 11:06:11 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rom.c,v 1.3 2000/07/19 00:58:25 matt Exp $ */
+/*     $NetBSD: rom.c,v 1.3.18.1 2002/06/26 11:06:11 lukem Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -37,6 +37,8 @@
 #include "sys/reboot.h"
 #include "sys/disklabel.h"
 
+#define RF_PROTECTED_SECTORS   64      /* XXX <dev/raidframe/raidframevar.h> */
+
 #include "lib/libsa/stand.h"
 #include "lib/libsa/ufs.h"
 
@@ -106,6 +108,8 @@
        block = dblk + lp->d_partitions[dpart].p_offset;
        if (dunit >= 0 && dunit < 10)
                bootrpb.unit = dunit;
+       if (lp->d_partitions[dpart].p_fstype == FS_RAID)
+               block += RF_PROTECTED_SECTORS;
 
        if (func == F_WRITE)
                romwrite_uvax(block, size, buf, &bootrpb);



Home | Main Index | Thread Index | Old Index