f4ee62f185
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
From f5b9fc324c31c765e3fa7fb5a0f3d61130c65ef3 Mon Sep 17 00:00:00 2001
|
|
From: Mattias Mattsson <vitplister@gmail.com>
|
|
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 479cbf7..2fb7c83 100644
|
|
--- a/internal.c
|
|
+++ b/internal.c
|
|
@@ -334,6 +334,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.9.3
|
|
|