summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-23 21:32:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-09-24 08:46:22 +0200
commit0ceafe14be072696eff3e549d8c7b7de8a3e416d (patch)
treec0ea8344342f23ab546e26a78753452075294619 /arch/arm
parentaba80a2d2d0f1b25185246925577ce2108247dde (diff)
downloadbarebox-0ceafe14be072696eff3e549d8c7b7de8a3e416d.tar.gz
barebox-0ceafe14be072696eff3e549d8c7b7de8a3e416d.tar.xz
Replace direct header access with the API routines
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib/armlinux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c
index b50d535811..7c2cbf95ea 100644
--- a/arch/arm/lib/armlinux.c
+++ b/arch/arm/lib/armlinux.c
@@ -212,7 +212,7 @@ int do_bootm_linux(struct image_data *data)
void (*theKernel)(int zero, int arch, void *params);
image_header_t *os_header = &data->os->header;
- if (os_header->ih_type == IH_TYPE_MULTI) {
+ if (image_check_type(os_header, IH_TYPE_MULTI)) {
printf("Multifile images not handled at the moment\n");
return -1;
}
@@ -227,14 +227,14 @@ int do_bootm_linux(struct image_data *data)
return -1;
}
- theKernel = (void *)ntohl(os_header->ih_ep);
+ theKernel = (void *)image_get_ep(os_header);
debug("## Transferring control to Linux (at address 0x%p) ...\n",
theKernel);
setup_tags();
- if (relocate_image(data->os, (void *)ntohl(os_header->ih_load)))
+ if (relocate_image(data->os, (void *)image_get_load(os_header)))
return -1;
/* we assume that the kernel is in place */