Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/boot/boot make booting from FS_RAID work. test...



details:   https://anonhg.NetBSD.org/src/rev/e535e57080c7
branches:  trunk
changeset: 533211:e535e57080c7
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Jun 24 14:53:16 2002 +0000

description:
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 3945299c30e4 -r e535e57080c7 sys/arch/vax/boot/boot/rom.c
--- a/sys/arch/vax/boot/boot/rom.c      Mon Jun 24 14:49:15 2002 +0000
+++ b/sys/arch/vax/boot/boot/rom.c      Mon Jun 24 14:53:16 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.4 2002/06/24 14:53:16 mrg 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