]> git.sur5r.net Git - u-boot/blobdiff - lib_nios2/nios_linux.c
Merge with http://opensource.freescale.com/pub/scm/u-boot-85xx.git#for_wd
[u-boot] / lib_nios2 / nios_linux.c
index 2c848df67cf88b54fd4125968856a2e3a105b272..9eb34264d0bca5b2a400251bbab3e1fc16ed5df8 100644 (file)
 
 #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 ();
 }