2013-07-30 13:07:08 +00:00
|
|
|
From 726ed55ebf1dbfe4a70a864331f36c3824421727 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-12-30 11:19:02 +00:00
|
|
|
Subject: [PATCH 7/7] ppc hack
|
2011-08-12 18:44:38 +00:00
|
|
|
|
|
|
|
---
|
2012-09-08 14:14:28 +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
|
2013-07-30 13:07:08 +00:00
|
|
|
index ab3c81f..1bad0ea 100644
|
2011-08-12 18:44:38 +00:00
|
|
|
--- a/internal.c
|
|
|
|
+++ b/internal.c
|
2013-07-30 13:07:08 +00:00
|
|
|
@@ -352,6 +352,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
|
2012-09-08 14:14:28 +00:00
|
|
|
index 1361dd5..49d4006 100644
|
2011-08-12 18:44:38 +00:00
|
|
|
--- a/processor_enable.c
|
|
|
|
+++ b/processor_enable.c
|
2012-09-08 14:14:28 +00:00
|
|
|
@@ -77,7 +77,7 @@ int processor_flash_enable(void)
|
|
|
|
flashbase = 0x1fc00000;
|
|
|
|
ret = 0;
|
|
|
|
}
|
|
|
|
-#elif defined(__i386__) || defined(__x86_64__)
|
|
|
|
+#elif defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__powerpc__)
|
|
|
|
/* On x86, flash access is not processor specific except on
|
|
|
|
* AMD Elan SC520, AMD Geode and maybe other SoC-style CPUs.
|
|
|
|
* FIXME: Move enable_flash_cs5536 and get_flashbase_sc520 here.
|
2011-08-12 18:44:38 +00:00
|
|
|
--
|
2013-07-30 13:07:08 +00:00
|
|
|
1.8.3.1
|
2011-08-12 18:44:38 +00:00
|
|
|
|