From e264ec74ba11b7e1b8dca5079a8b4df87b405d7c Mon Sep 17 00:00:00 2001 From: Mattias Mattsson Date: Wed, 27 Jul 2011 21:02:50 +0400 Subject: [PATCH 8/9] ppc hack --- internal.c | 2 ++ processor_enable.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/internal.c b/internal.c index 5b24577..e5dde1f 100644 --- a/internal.c +++ b/internal.c @@ -336,6 +336,8 @@ int internal_init(void) "Aborting.\n"); return 1; #endif +#elif defined(__powerpc__) || defined(__ppc__) + return 0; #else /* FIXME: Remove this unconditional abort once all PCI drivers are * converted to use little-endian accesses for memory BARs. diff --git a/processor_enable.c b/processor_enable.c index d680f97..014e019 100644 --- a/processor_enable.c +++ b/processor_enable.c @@ -24,7 +24,7 @@ #include "flash.h" #include "programmer.h" -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__) int processor_flash_enable(void) { -- 1.7.10.4