summaryrefslogtreecommitdiffstats
path: root/lib_nios2
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-01-08 18:14:09 +0100
committerWolfgang Denk <wd@denx.de>2008-02-07 01:12:53 +0100
commitb97a2a0a21f279d66de8a9bdbfe21920968bcb1c (patch)
tree7746eae37d3a468f3471cd303156920637445350 /lib_nios2
parented29bc4e8142b46b626f67524207b36e43d9aad6 (diff)
downloadu-boot-b97a2a0a21f279d66de8a9bdbfe21920968bcb1c.tar.gz
u-boot-b97a2a0a21f279d66de8a9bdbfe21920968bcb1c.tar.xz
u-boot-b97a2a0a21f279d66de8a9bdbfe21920968bcb1c.zip
[new uImage] Define a API for image handling operations
- Add inline helper macros for basic header processing - Move common non inline code common/image.c - Replace direct header access with the API routines - Rename IH_CPU_* to IH_ARCH_* Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_nios2')
-rw-r--r--lib_nios2/nios_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_nios2/nios_linux.c b/lib_nios2/nios_linux.c
index 9eb34264d0..dea1ec174a 100644
--- a/lib_nios2/nios_linux.c
+++ b/lib_nios2/nios_linux.c
@@ -31,7 +31,7 @@ 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);
+ void (*kernel)(void) = (void (*)(void))image_get_ep (hdr);
/* For now we assume the Microtronix linux ... which only
* needs to be called ;-)