Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst On architectures that have no BIOS (and so ...
details: https://anonhg.NetBSD.org/src/rev/b77d843e903d
branches: trunk
changeset: 333168:b77d843e903d
user: martin <martin%NetBSD.org@localhost>
date: Tue Oct 21 18:19:17 2014 +0000
description:
On architectures that have no BIOS (and so do not set a BIOS geometry)
we need to initialize the globals bsec, bcyl and bhead before using
them.
diffstat:
usr.sbin/sysinst/mbr.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 907ec73e7124 -r b77d843e903d usr.sbin/sysinst/mbr.c
--- a/usr.sbin/sysinst/mbr.c Tue Oct 21 16:05:01 2014 +0000
+++ b/usr.sbin/sysinst/mbr.c Tue Oct 21 18:19:17 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbr.c,v 1.3 2014/08/19 06:49:21 martin Exp $ */
+/* $NetBSD: mbr.c,v 1.4 2014/10/21 18:19:17 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -1459,6 +1459,11 @@
*/
if (bsec == 0)
bsec = pm->dlsec;
+ if (bhead == 0)
+ bhead = pm->dlhead;
+ if (bcyl == 0)
+ bhead = pm->dlcyl;
+
ptn_0_offset = bsec;
/* use 1MB default offset on large disks as fdisk(8) */
if (pm->dlsize > 2048 * 1024 * 128)
Home |
Main Index |
Thread Index |
Old Index