rename CFG_ macros to CONFIG_SYS
[platform/kernel/u-boot.git] / lib_sh / bootm.c
index d5056ae..078a24d 100644 (file)
@@ -28,7 +28,7 @@
 #include <command.h>
 #include <asm/byteorder.h>
 
-#ifdef CFG_DEBUG
+#ifdef CONFIG_SYS_DEBUG
 static void hexdump(unsigned char *buf, int len)
 {
        int i;
@@ -48,11 +48,12 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
        /* Linux kernel load address */
        void (*kernel) (void) = (void (*)(void))images->ep;
        /* empty_zero_page */
-       unsigned char *param = (unsigned char *)image_get_ep(images);
+       unsigned char *param
+               = (unsigned char *)image_get_load(images->legacy_hdr_os);
        /* Linux kernel command line */
-       unsigned char *cmdline = param + 0x100;
+       char *cmdline = (char *)param + 0x100;
        /* PAGE_SIZE */
-       unsigned long size = images->ep - image_get_ep(images);
+       unsigned long size = images->ep - (unsigned long)param;
        char *bootargs = getenv("bootargs");
 
        /* Setup parameters */