summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-10-26 15:00:34 +0000
committerimp <imp@FreeBSD.org>2007-10-26 15:00:34 +0000
commite99b1842b7ded05d5ef33489343c72ed73962b3d (patch)
treee9af72e07a5dd3789c417928ff62c960b8e66e19
parente18c6c89fad417225517f8f8daa5d743f64c40c0 (diff)
downloadFreeBSD-src-e99b1842b7ded05d5ef33489343c72ed73962b3d.zip
FreeBSD-src-e99b1842b7ded05d5ef33489343c72ed73962b3d.tar.gz
The arm boot code uses this function as well. Redefining cgbase()
saves about 500 bytes in the boot code. While the AT91RM9200 has 12k of space for the boot loader, which is more than i386's 8k, the code generated by gcc is a bit bigger. I've had this in p4 for about two years now.
-rw-r--r--sys/boot/common/ufsread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c
index 715387c..da06055 100644
--- a/sys/boot/common/ufsread.c
+++ b/sys/boot/common/ufsread.c
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
-#if defined(__i386__) && !defined(GPTBOOT)
+#if (defined(__i386__) && !defined(GPTBOOT)) || defined(__arm__)
/* 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. */
OpenPOWER on IntegriCloud