summaryrefslogtreecommitdiffstats
path: root/purgatory
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2008-03-17 10:25:43 +0900
committerSimon Horman <horms@verge.net.au>2008-03-18 11:34:44 +0900
commit3973e307e10c865712ad59b3f609e27f1e2bddfc (patch)
treeb1fbee6624b7763278fd92ab243a9ecee0b37177 /purgatory
parentbbe2590b0b03240ff54cb24b563e9a853b6dd4a2 (diff)
downloadkexec-tools-3973e307e10c865712ad59b3f609e27f1e2bddfc.tar.gz
kexec-tools: mips: support big-endian mips (repost)
[ Reposted with correct linux-mips address ] Hi, this patch switches the mips support in kexec-tools around a little bit. All the files and directories containing "mipsel" have been renamed to contain "mips" instead. This is kind of consistent with the way that ARCH=mips in the kernel works for both big and little endian. After a small amount of tweaking, which is also included in this patch, the code compiles and works fine for big endian mips as well as small endian mips. All you need to do is compile using an appropriate compiler. That is to say, kexec-tools's build system doesn't need to be told about which endienness the code is being compiled for. I have added kept mipsel as a supported "architecture" via ./configure, though its just an alias for mips now. This is consistent with how other architectures such as sh are treated. But I'm happy to remove mipsel from ./configure if the mips people want that. I tested this patch using qemu and the 2.6.24.3 tag of the mips-2.6 git tree compiled for the qemu machine type for both big and little endian. The qemu machine type has subsequently been removed, and kexec-tools needs some work in order to function with qemu - as far as I understand the way the boot parameters are passed needs to be fixed, likely in purgatory. However, this is not related to the changes introduced in this patch. I intend to merge this patch into kexec-tools-testing if no alarm bells are sounded. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/Makefile2
-rw-r--r--purgatory/arch/mips/Makefile11
-rw-r--r--purgatory/arch/mips/console-mips.c (renamed from purgatory/arch/mipsel/console-mipsel.c)0
-rw-r--r--purgatory/arch/mips/purgatory-mips.c (renamed from purgatory/arch/mipsel/purgatory-mipsel.c)2
-rw-r--r--purgatory/arch/mips/purgatory-mips.h (renamed from purgatory/arch/mipsel/purgatory-mipsel.h)0
-rw-r--r--purgatory/arch/mipsel/Makefile11
6 files changed, 13 insertions, 13 deletions
diff --git a/purgatory/Makefile b/purgatory/Makefile
index 61035449..6c747b1d 100644
--- a/purgatory/Makefile
+++ b/purgatory/Makefile
@@ -20,7 +20,7 @@ include $(srcdir)/purgatory/arch/alpha/Makefile
include $(srcdir)/purgatory/arch/arm/Makefile
include $(srcdir)/purgatory/arch/i386/Makefile
include $(srcdir)/purgatory/arch/ia64/Makefile
-include $(srcdir)/purgatory/arch/mipsel/Makefile
+include $(srcdir)/purgatory/arch/mips/Makefile
include $(srcdir)/purgatory/arch/ppc/Makefile
include $(srcdir)/purgatory/arch/ppc64/Makefile
include $(srcdir)/purgatory/arch/s390/Makefile
diff --git a/purgatory/arch/mips/Makefile b/purgatory/arch/mips/Makefile
new file mode 100644
index 00000000..9ec0c8b3
--- /dev/null
+++ b/purgatory/arch/mips/Makefile
@@ -0,0 +1,11 @@
+#
+# Purgatory mips
+#
+
+mips_PURGATORY_SRCS+= purgatory/arch/mips/purgatory-mips.c
+mips_PURGATORY_SRCS+= purgatory/arch/mips/console-mips.c
+
+dist += purgatory/arch/mips/Makefile $(mips_PURGATORY_C_SRCS) \
+ purgatory/arch/mips/include/limits.h \
+ purgatory/arch/mips/purgatory-mips.h
+
diff --git a/purgatory/arch/mipsel/console-mipsel.c b/purgatory/arch/mips/console-mips.c
index 389b7be0..389b7be0 100644
--- a/purgatory/arch/mipsel/console-mipsel.c
+++ b/purgatory/arch/mips/console-mips.c
diff --git a/purgatory/arch/mipsel/purgatory-mipsel.c b/purgatory/arch/mips/purgatory-mips.c
index f8780def..cb25bf7c 100644
--- a/purgatory/arch/mipsel/purgatory-mipsel.c
+++ b/purgatory/arch/mips/purgatory-mips.c
@@ -1,5 +1,5 @@
#include <purgatory.h>
-#include "purgatory-mipsel.h"
+#include "purgatory-mips.h"
void setup_arch(void)
{
diff --git a/purgatory/arch/mipsel/purgatory-mipsel.h b/purgatory/arch/mips/purgatory-mips.h
index c57b4029..c57b4029 100644
--- a/purgatory/arch/mipsel/purgatory-mipsel.h
+++ b/purgatory/arch/mips/purgatory-mips.h
diff --git a/purgatory/arch/mipsel/Makefile b/purgatory/arch/mipsel/Makefile
deleted file mode 100644
index c6e0580a..00000000
--- a/purgatory/arch/mipsel/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# Purgatory mipsel
-#
-
-mipsel_PURGATORY_C_SRCS+= purgatory/arch/mipsel/purgatory-mipsel.c
-mipsel_PURGATORY_C_SRCS+= purgatory/arch/mipsel/console-mipsel.c
-
-dist += purgatory/arch/mipsel/Makefile $(mipsel_PURGATORY_C_SRCS) \
- purgatory/arch/mipsel/include/limits.h \
- purgatory/arch/mipsel/purgatory-mipsel.h
-