2012-07-11 08:06:53 +00:00
|
|
|
From e264ec74ba11b7e1b8dca5079a8b4df87b405d7c Mon Sep 17 00:00:00 2001
|
2011-08-12 18:44:38 +00:00
|
|
|
From: Mattias Mattsson <vitplister@gmail.com>
|
|
|
|
Date: Wed, 27 Jul 2011 21:02:50 +0400
|
2012-03-31 17:16:30 +00:00
|
|
|
Subject: [PATCH 8/9] ppc hack
|
2011-08-12 18:44:38 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
internal.c | 2 ++
|
|
|
|
processor_enable.c | 2 +-
|
2012-03-31 17:16:30 +00:00
|
|
|
2 files changed, 3 insertions(+), 1 deletion(-)
|
2011-08-12 18:44:38 +00:00
|
|
|
|
|
|
|
diff --git a/internal.c b/internal.c
|
2012-07-11 08:06:53 +00:00
|
|
|
index 5b24577..e5dde1f 100644
|
2011-08-12 18:44:38 +00:00
|
|
|
--- a/internal.c
|
|
|
|
+++ b/internal.c
|
2012-07-11 08:06:53 +00:00
|
|
|
@@ -336,6 +336,8 @@ int internal_init(void)
|
2011-08-12 18:44:38 +00:00
|
|
|
"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)
|
|
|
|
{
|
|
|
|
--
|
2012-07-11 08:06:53 +00:00
|
|
|
1.7.10.4
|
2011-08-12 18:44:38 +00:00
|
|
|
|