X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=lib_nios2%2Fnios_linux.c;h=9eb34264d0bca5b2a400251bbab3e1fc16ed5df8;hb=5ae31ee114741ff1643308d160e1918b78eb72c6;hp=2c848df67cf88b54fd4125968856a2e3a105b272;hpb=5c952cf0245421feb4644f2e71487c0b2e1dbd13;p=oweals%2Fu-boot.git diff --git a/lib_nios2/nios_linux.c b/lib_nios2/nios_linux.c index 2c848df67c..9eb34264d0 100644 --- a/lib_nios2/nios_linux.c +++ b/lib_nios2/nios_linux.c @@ -23,10 +23,18 @@ #include #include +#include + +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 (); }