Module Name: src
Committed By: skrll
Date: Thu Nov 25 13:45:17 UTC 2010
Modified Files:
src/sys/arch/acorn32/stand/lib: riscospart.c
Log Message:
Use partition_cyl_high and partition_cyl_low to find the "RiscBSD"
partition.
Makes nbfs somewhat work on my RiscPC.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/acorn32/stand/lib/riscospart.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/acorn32/stand/lib/riscospart.c
diff -u src/sys/arch/acorn32/stand/lib/riscospart.c:1.2 src/sys/arch/acorn32/stand/lib/riscospart.c:1.3
--- src/sys/arch/acorn32/stand/lib/riscospart.c:1.2 Sun Jun 25 21:32:41 2006
+++ src/sys/arch/acorn32/stand/lib/riscospart.c Thu Nov 25 13:45:17 2010
@@ -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;