more ifdef -> if fixes.
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 21 Apr 2011 21:26:58 +0000 (21:26 +0000)
committerStefan Reinauer <stepan@openbios.org>
Thu, 21 Apr 2011 21:26:58 +0000 (21:26 +0000)
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6537 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/arch/x86/Kconfig
src/boot/selfboot.c
src/cpu/amd/model_gx2/syspreinit.c
src/cpu/amd/model_lx/syspreinit.c
src/southbridge/amd/rs780/early_setup.c

index a903827c1148cebf9143e4209b3b14b3e0b362b0..f98cf5bd546b3a2ecfc832eab6edbd0469cc82a6 100644 (file)
@@ -91,4 +91,12 @@ config CMOS_DEFAULT_FILE
 config BOOTBLOCK_SOUTHBRIDGE_INIT
        string
 
+config BIG_ENDIAN
+       bool
+       default n
+
+config LITTLE_ENDIAN
+       bool
+       default !BIG_ENDIAN
+
 endmenu
index f8be72c77c98e31abb50682d0d9c6dad358b6125..5f7a8f11f5efcd5e4d5bb53960f7f8ac42297a08 100644 (file)
@@ -30,7 +30,7 @@
 #include <cbfs.h>
 #include <lib.h>
 
-#ifndef CONFIG_BIG_ENDIAN
+#if !CONFIG_BIG_ENDIAN
 #define ntohl(x) ( ((x&0xff)<<24) | ((x&0xff00)<<8) | \
                ((x&0xff0000) >> 8) | ((x&0xff000000) >> 24) )
 #else
@@ -477,7 +477,7 @@ static int load_self_segments(
                                                return 0;
                                        break;
                                }
-#if CONFIG_COMPRESSED_PAYLOAD_NRV2B==1
+#if CONFIG_COMPRESSED_PAYLOAD_NRV2B
                                case CBFS_COMPRESS_NRV2B: {
                                        printk(BIOS_DEBUG, "using NRV2B\n");
                                        unsigned long unrv2b(u8 *src, u8 *dst, unsigned long *ilen_p);
index bfec739312f38f9e1c90c35b1e6bbed7d472fb11..814034823c3d5b99a79c4ed790b9fffc0143021e 100644 (file)
@@ -13,7 +13,7 @@ static void StartTimer1(void)
 void SystemPreInit(void)
 {
        /* they want a jump ... */
-#ifndef CONFIG_CACHE_AS_RAM
+#if !CONFIG_CACHE_AS_RAM
        __asm__ __volatile__("jmp .+2\ninvd\njmp .+2\n");
 #endif
        StartTimer1();
index 0d80cba69d6988bbf0bd694182c622b91c65a3a9..35c54fba5f45f7fc439313967c325dd868375917 100644 (file)
@@ -39,7 +39,7 @@ void SystemPreInit(void)
 {
 
        /* they want a jump ... */
-#ifndef CONFIG_CACHE_AS_RAM
+#if !CONFIG_CACHE_AS_RAM
        __asm__ __volatile__("jmp .+2\ninvd\njmp .+2\n");
 #endif
        StartTimer1();
index a93ba83172a5b14e4bce11d4eb7ef2f83b1f992e..b9d9a3104e60f53cbeb60851d033186b00571210 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef CONFIG_NORTHBRIDGE_AMD_AMDFAM10
-#define CONFIG_NORTHBRIDGE_AMD_AMDFAM10 0
-#endif
-
 #include "rev.h"
 
 #define NBHTIU_INDEX           0x94 /* Note: It is different with RS690, whose HTIU index is 0xA8 */