summaryrefslogtreecommitdiff
path: root/ext2load
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-06-19 14:45:28 +0200
committerGuido Günther <agx@sigxcpu.org>2011-06-19 16:15:00 +0200
commitaaab7cb61134f634df7017fb86e3e19b1aec4608 (patch)
treedb65f224919dedec7d79b4e06c2dc78acb8b42a3 /ext2load
parent5184fe49c0964b6e16b462df610f353a3b7ea416 (diff)
Ease building on non MIPS platforms
Diffstat (limited to 'ext2load')
-rw-r--r--ext2load/loader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext2load/loader.c b/ext2load/loader.c
index 1feb6ba..2e64cbe 100644
--- a/ext2load/loader.c
+++ b/ext2load/loader.c
@@ -512,6 +512,7 @@ void _start64(LONG argc,
CHAR * argv[],
unsigned long long *addr)
{
+#if (defined __mips__) || (defined __mipsel__)
__asm__ __volatile__(
".set push\n"
"\t.set mips3\n"
@@ -523,6 +524,9 @@ void _start64(LONG argc,
"\tjr $1\n"
"\t nop\n"
"\t.set pop": : "r" (addr), "r" (argc), "r" (argv) : "$4", "$5");
+#else
+# warning "No kernel entry defined"
+#endif
}
void _start(LONG argc, CHAR *argv[], CHAR *envp[])