summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-10 23:51:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-11-10 23:51:57 +0000
commita84392db857e3a7514d46930e61007306cfaf3b2 (patch)
tree2b58e262607beb68dbb0faca396ed3a7005d5f29 /c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
parent2004-11-10 Richard Campbell <richard.campbell@oarcorp.com> (diff)
downloadrtems-a84392db857e3a7514d46930e61007306cfaf3b2.tar.bz2
2004-11-10 Richard Campbell <richard.campbell@oarcorp.com>
* configure.ac, mpc6xx/exceptions/raw_exception.c, mpc6xx/exceptions/raw_exception.h, mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/mmuAsm.S, shared/include/cpuIdent.c, shared/include/cpuIdent.h: Add MPC8240 and MPC8245 support. There was also a significant amount of spelling and whitespace cleanup.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c')
-rw-r--r--c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
index 74e18078cf..bfe5600328 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
+++ b/c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
@@ -42,8 +42,10 @@ char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
case PPC_620: return "MPC620";
case PPC_860: return "MPC860";
case PPC_8260: return "MPC8260";
+ case PPC_8245: return "MPC8245";
default:
- printk("Unknown CPU value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu );
+ printk("Unknown CPU value of 0x%x. Please add it to "
+ "<libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu );
}
return "UNKNOWN";
}
@@ -66,9 +68,11 @@ ppc_cpu_id_t get_ppc_cpu_type()
case PPC_620:
case PPC_860:
case PPC_8260:
+ case PPC_8245:
return current_ppc_cpu;
default:
- printk("Unknown PVR value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", pvr );
+ printk("Unknown PVR value of 0x%x. Please add it to "
+ "<libcpu/powerpc/shared/include/cpuIdent.c>\n", pvr );
return PPC_UNKNOWN;
}
}