summaryrefslogtreecommitdiff
path: root/lib_nios2
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-03-30 23:28:18 +0000
committerwdenk <wdenk>2005-03-30 23:28:18 +0000
commit0c1c117cf18ffa3fdc0342dfc47c6003fc5fc5a0 (patch)
treeac60588bc373565ce7a626e39b3d149e715be025 /lib_nios2
parent8f0b7cbe8027c3745f5e0a199ecd152b032d8ad0 (diff)
* Patch by Scott McNutt, 21 Oct 2004:
Add support for Nios-II EPCS Controller core. * Patch by Scott McNutt, 20 Oct 2004: Nios-II cleanups: - Add sysid command (Nios-II only). - Locate default exception trampoline at proper offset. - Implement I/O routines (readb, writeb, etc) - Implement do_bootm_linux
Diffstat (limited to 'lib_nios2')
-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 2c848df67cf..9eb34264d0b 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 ();
}