diff options
author | Jens Rottmann <JRottmann@LiPPERTEmbedded.de> | 2008-11-03 23:16:00 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2008-11-03 23:16:00 +0000 |
commit | 98afd9b75b92c96c67bb02a0ec104c42c28aaade (patch) | |
tree | 49a447375f7cb0da271189464017fae5fdfc41fc /src/stream/fs/fat.c | |
parent | 632f86515a132b51b035794e0ba21b8a21eacd15 (diff) | |
download | coreboot-98afd9b75b92c96c67bb02a0ec104c42c28aaade.tar.xz |
Fix compile errors if CONFIG_FS_PAYLOAD=1:
Compile error in filo.c if AUTOBOOT_DELAY=0. Replace
#ifndef AUTOBOOT_DELAY
with
#if !AUTOBOOT_DELAY
which should work for both the #undef and the =0 case.
In ext2fs.c, fat.c
#if ARCH == 'i386'
results in a compile warning: "multi-character character constant" and
the condition ARCH == 'i386' is mis-evaluated as FALSE, eventually
choking the assembler on a PPC instruction. Change it to
#ifdef __i386
Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3729 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/stream/fs/fat.c')
-rw-r--r-- | src/stream/fs/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream/fs/fat.c b/src/stream/fs/fat.c index 540cac370e..01e4e03cc2 100644 --- a/src/stream/fs/fat.c +++ b/src/stream/fs/fat.c @@ -54,7 +54,7 @@ struct fat_superblock #define FAT_CACHE_SIZE 2048 -#if ARCH == 'i386' +#ifdef __i386 static __inline__ unsigned long log2 (unsigned long word) { |