Don't nuke fw_argX from CFE - Thanks jhansen
authorPeter Denison <openwrt@marshadder.org>
Tue, 27 May 2008 15:01:07 +0000 (15:01 +0000)
committerPeter Denison <openwrt@marshadder.org>
Tue, 27 May 2008 15:01:07 +0000 (15:01 +0000)
SVN-Revision: 11275

target/linux/brcm-2.4/image/lzma-loader/src/decompress.c

index ec510e21e387d057d5cae667a5aa7400ae5be875..ce2876a3047ebfdf086e92c717a9c3540465b8cd 100644 (file)
@@ -120,7 +120,9 @@ static __inline__ unsigned char get_byte(void)
 
 /* should be the first function */
 void entry(unsigned long icache_size, unsigned long icache_lsize, 
-       unsigned long dcache_size, unsigned long dcache_lsize)
+       unsigned long dcache_size, unsigned long dcache_lsize,
+       unsigned long fw_arg0, unsigned long fw_arg1,
+       unsigned long fw_arg2, unsigned long fw_arg3)
 {
        unsigned int i;  /* temp value */
        unsigned int lc; /* literal context bits */
@@ -170,6 +172,8 @@ void entry(unsigned long icache_size, unsigned long icache_lsize,
                blast_icache(icache_size, icache_lsize);
 
                /* Jump to load address */
-               ((void (*)(void)) LOADADDR)();
+               ((void (*)(unsigned long, unsigned long, unsigned long,
+                       unsigned long)) LOADADDR)(fw_arg0, fw_arg1, fw_arg2,
+                               fw_arg3);
        }
 }