make booting from FS_RAID work. tested on vs4000/90.
This commit is contained in:
parent
382230624e
commit
383ef0f9dc
|
@ -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 @@ romstrategy (f, func, dblk, size, buf, rsize)
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue