diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-05-10 03:15:16 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-05-10 03:15:16 +0000 |
commit | 73dfa91cce64f5070a5132ced431a122377f31d6 (patch) | |
tree | d0c8d7802d612ea6e23bf165d845ba534b4a2975 /sys/arch/mvme68k | |
parent | 5c2763412ef979de9d3e5ac4a9fd2f4e25f08e7f (diff) |
init more fields so that kernel can generate a valid disklabel without
any help from wrtvid.
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/mvme68k/disksubr.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/disksubr.c b/sys/arch/mvme68k/mvme68k/disksubr.c index 760bb0daae5..8a738197dd4 100644 --- a/sys/arch/mvme68k/mvme68k/disksubr.c +++ b/sys/arch/mvme68k/mvme68k/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.5 1996/05/04 16:07:47 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.6 1996/05/10 03:15:15 chuck Exp $ */ /* * Copyright (c) 1995 Dale Rahn. @@ -358,6 +358,23 @@ bsdtocpulabel(lp, clp) clp->checksum = lp->d_checksum; bcopy(&lp->d_partitions[0], clp->vid_4, sizeof(struct partition) * 4); bcopy(&lp->d_partitions[4], clp->cfg_4, sizeof(struct partition) * 12); + + /* + * here are the parts of the cpu_disklabel the kernel must init. + * see disklabel.h for more details + * [note: this used to be handled by 'wrtvid'] + */ + bcopy(VID_ID, clp->vid_id, sizeof(clp->vid_id)); + clp->vid_oss = VID_OSS; + clp->vid_osl = VID_OSL; + clp->vid_osa_u = VID_OSAU; + clp->vid_osa_l = VID_OSAL; + clp->vid_cas = VID_CAS; + clp->vid_cal = VID_CAL; + bcopy(VID_MOT, clp->vid_mot, sizeof(clp->vid_mot)); + clp->cfg_rec = CFG_REC; + clp->cfg_psm = CFG_PSM; + } static void |