From 8d7b90cdd73e65f2b6876435630047ac1e4af586 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 26 Oct 2007 15:00:34 +0000 Subject: [PATCH] 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. --- sys/boot/common/ufsread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/common/ufsread.c b/sys/boot/common/ufsread.c index 715387cc7752..da060553eb85 100644 --- a/sys/boot/common/ufsread.c +++ b/sys/boot/common/ufsread.c @@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$"); #include #include -#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. */