summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-02-25 00:10:20 +0000
committerobrien <obrien@FreeBSD.org>2003-02-25 00:10:20 +0000
commit53638b8b18135ac726fc800dabf49b4b9d7f1e48 (patch)
tree36c89040ecc999b5afc3caca64dddd3abf81c528 /sys
parent42278654602742fc35c4d1ef5129483d74643308 (diff)
downloadFreeBSD-src-53638b8b18135ac726fc800dabf49b4b9d7f1e48.zip
FreeBSD-src-53638b8b18135ac726fc800dabf49b4b9d7f1e48.tar.gz
Only apply rev 1.10 (which hacks around the i386 boot2 being too big for
both ufs1 and ufs2 support) on i386.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/common/ufsread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 8d674ae..7f46615 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -28,8 +28,13 @@
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
+#ifdef __i386__
+/* XXX: Revert to old (broken for over 1.5Tb filesystems) version of cgbase
+ (see sys/ufs/ffs/fs.h rev 1.39) so that i386 boot loader (boot2) can
+ support both UFS1 and UFS2 again. */
#undef cgbase
#define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c)))
+#endif
/*
* We use 4k `virtual' blocks for filesystem data, whatever the actual
OpenPOWER on IntegriCloud