projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary dependency of netconsole on CONFIG_NET_MULTI
[oweals/u-boot.git]
/
lib_nios2
/
nios_linux.c
diff --git
a/lib_nios2/nios_linux.c
b/lib_nios2/nios_linux.c
index 2c848df67cf88b54fd4125968856a2e3a105b272..9eb34264d0bca5b2a400251bbab3e1fc16ed5df8 100644
(file)
--- a/
lib_nios2/nios_linux.c
+++ b/
lib_nios2/nios_linux.c
@@
-23,10
+23,18
@@
#include <common.h>
#include <command.h>
#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)
{
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 ();
}
}