summaryrefslogtreecommitdiff
path: root/cpu/74xx_7xx/cpu.c
diff options
context:
space:
mode:
authorroy zang <tie-fei.zang@freescale.com>2006-12-01 19:01:25 +0800
committerZang Tiefei <roy@bus.ap.freescale.net>2006-12-01 19:01:25 +0800
commitc9c1eeed7dd193fa65fb194654132040d49d4d3a (patch)
treefa1dda96eb652eeb59f54a8e49c54b73f3e9476c /cpu/74xx_7xx/cpu.c
parente0b369e4f71b11dd5716903dd6258028cf07e6e8 (diff)
downloadu-boot-imx-c9c1eeed7dd193fa65fb194654132040d49d4d3a.zip
u-boot-imx-c9c1eeed7dd193fa65fb194654132040d49d4d3a.tar.gz
u-boot-imx-c9c1eeed7dd193fa65fb194654132040d49d4d3a.tar.bz2
Fix the exception occuring in RAM table search issue.
The original search_one_table() function code can only processes the search for the exception occurring in FLASH/ROM, because the exception and fixup table usually locate in FLASH. If the exception address is also in FLASH, it will be OK. If the exception occurs in RAM, after the u-boot relocation, a relocation offset should be added. clean up the code in cpu/74xx_7xx/cpu.c Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Diffstat (limited to 'cpu/74xx_7xx/cpu.c')
-rw-r--r--cpu/74xx_7xx/cpu.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/cpu/74xx_7xx/cpu.c b/cpu/74xx_7xx/cpu.c
index ca45ca0..84d5da3 100644
--- a/cpu/74xx_7xx/cpu.c
+++ b/cpu/74xx_7xx/cpu.c
@@ -108,11 +108,11 @@ get_cpu_type(void)
case 0x8003:
type = CPU_7447A;
break;
-
+
case 0x8004:
type = CPU_7448;
break;
-
+
default:
break;
}
@@ -164,6 +164,10 @@ int checkcpu (void)
str = "MPC7410";
break;
+ case CPU_7447A:
+ str = "MPC7447A";
+ break;
+
case CPU_7448:
str = "MPC7448";
break;
@@ -180,14 +184,6 @@ int checkcpu (void)
str = "MPC7457";
break;
- case CPU_7447A:
- str = "MPC7447A";
- break;
-
- case CPU_7448:
- str = "MPC7448";
- break;
-
default:
printf("Unknown CPU -- PVR: 0x%08x\n", pvr);
return -1;