summaryrefslogtreecommitdiff
path: root/lib_nios2/nios_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_nios2/nios_linux.c')
-rw-r--r--lib_nios2/nios_linux.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib_nios2/nios_linux.c b/lib_nios2/nios_linux.c
index 2c848df..9eb3426 100644
--- a/lib_nios2/nios_linux.c
+++ b/lib_nios2/nios_linux.c
@@ -23,10 +23,18 @@
#include <common.h>
#include <command.h>
+#include <asm/byteorder.h>
+
+extern image_header_t header; /* common/cmd_bootm.c */
-/* TODO
- */
void do_bootm_linux(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[],
ulong addr, ulong *len_ptr, int verify)
{
+ image_header_t *hdr = &header;
+ void (*kernel)(void) = (void (*)(void))ntohl (hdr->ih_ep);
+
+ /* For now we assume the Microtronix linux ... which only
+ * needs to be called ;-)
+ */
+ kernel ();
}