Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/stand/lib Use partition_cyl_high and partit...



details:   https://anonhg.NetBSD.org/src/rev/542a790cce87
branches:  trunk
changeset: 759030:542a790cce87
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 25 13:45:17 2010 +0000

description:
Use partition_cyl_high and partition_cyl_low to find the "RiscBSD"
partition.

Makes nbfs somewhat work on my RiscPC.

diffstat:

 sys/arch/acorn32/stand/lib/riscospart.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a2d5b8e06247 -r 542a790cce87 sys/arch/acorn32/stand/lib/riscospart.c
--- a/sys/arch/acorn32/stand/lib/riscospart.c   Thu Nov 25 09:13:37 2010 +0000
+++ b/sys/arch/acorn32/stand/lib/riscospart.c   Thu Nov 25 13:45:17 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: riscospart.c,v 1.2 2006/06/25 21:32:41 christos Exp $  */
+/*     $NetBSD: riscospart.c,v 1.3 2010/11/25 13:45:17 skrll Exp $     */
 
 /*-
  * Copyright (c) 2006 Ben Harris
@@ -160,7 +160,7 @@
        bb = (struct filecore_bootblock *) buf;
        if (bb->checksum == filecore_checksum((u_char *)bb)) {
                if (bb->partition_type == PARTITION_FORMAT_RISCBSD)
-                       labelsect = (daddr_t)bb->partition_cyl_low *
+                       labelsect = ((bb->partition_cyl_high << 8) + bb->partition_cyl_low) *
                            bb->heads * bb->secspertrack + LABELSECTOR;
                else {
                        err = EUNLAB;



Home | Main Index | Thread Index | Old Index