projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
temporary, hackish, etc, etc.. lzma support for the arm zImage loader
[openwrt.git]
/
target
/
linux
/
brcm47xx
/
patches-2.6.28
/
800-fix_cfe_detection.patch
diff --git
a/target/linux/brcm47xx/patches-2.6.28/800-fix_cfe_detection.patch
b/target/linux/brcm47xx/patches-2.6.28/800-fix_cfe_detection.patch
index
eb5ec49
..
6cba540
100644
(file)
--- a/
target/linux/brcm47xx/patches-2.6.28/800-fix_cfe_detection.patch
+++ b/
target/linux/brcm47xx/patches-2.6.28/800-fix_cfe_detection.patch
@@
-1,4
+1,3
@@
-diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c
--- a/arch/mips/bcm47xx/prom.c
+++ b/arch/mips/bcm47xx/prom.c
@@ -32,6 +32,7 @@
--- a/arch/mips/bcm47xx/prom.c
+++ b/arch/mips/bcm47xx/prom.c
@@ -32,6 +32,7 @@
@@
-32,7
+31,7
@@
diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c
- int argc = fw_arg0;
- char **envp = (char **) fw_arg2;
- int *prom_vec = (int *) fw_arg3;
- int argc = fw_arg0;
- char **envp = (char **) fw_arg2;
- int *prom_vec = (int *) fw_arg3;
-
+-
- /*
- * Check if a loader was used; if NOT, the 4 arguments are
- * what CFE gives us (handle, 0, EPT and EPTSEAL)
- /*
- * Check if a loader was used; if NOT, the 4 arguments are
- * what CFE gives us (handle, 0, EPT and EPTSEAL)
@@
-62,15
+61,16
@@
diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c
- cfe_eptseal = prom_vec[3];
- }
- }
- cfe_eptseal = prom_vec[3];
- }
- }
-+ cfe_eptseal = (uint32_t) fw_arg3;
-+ cfe_handle = (uint32_t) fw_arg0;
-+ cfe_ept = (uint32_t) fw_arg2;
- if (cfe_eptseal != CFE_EPTSEAL) {
- /* too early for panic to do any good */
- printk(KERN_ERR "CFE's entrypoint seal doesn't match.");
- while (1) ;
- }
- if (cfe_eptseal != CFE_EPTSEAL) {
- /* too early for panic to do any good */
- printk(KERN_ERR "CFE's entrypoint seal doesn't match.");
- while (1) ;
- }
++ cfe_eptseal = (uint32_t) fw_arg3;
++ cfe_handle = (uint32_t) fw_arg0;
++ cfe_ept = (uint32_t) fw_arg2;
++
+ if (cfe_eptseal != CFE_EPTSEAL)
+ return -1;
+ if (cfe_eptseal != CFE_EPTSEAL)
+ return -1;
@@
-98,8
+98,8
@@
diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c
- prom_init_console();
- prom_init_cmdline();
+ if (prom_init_cfe() == 0) {
- prom_init_console();
- prom_init_cmdline();
+ if (prom_init_cfe() == 0) {
-+ prom_init_console_cfe();
-+ prom_init_cmdline_cfe();
++
//
prom_init_console_cfe();
++
//
prom_init_cmdline_cfe();
+ __prom_putchar = prom_putchar_cfe;
+ }
+
+ __prom_putchar = prom_putchar_cfe;
+ }
+
This page took
0.030729 seconds
and
4
git commands to generate.