2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>

* shared/include/cpuIdent.c, shared/include/cpuIdent.h
	(get_ppc_cpu_type_name): Return const char*.
This commit is contained in:
Ralf Corsepius
2011-12-01 08:06:06 +00:00
parent cadea7923e
commit 952199297e
3 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/include/cpuIdent.c, shared/include/cpuIdent.h
(get_ppc_cpu_type_name): Return const char*.
2011-11-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1927/bsps:

View File

@@ -27,7 +27,7 @@ ppc_cpu_id_t current_ppc_cpu = PPC_UNKNOWN;
ppc_cpu_revision_t current_ppc_revision = 0xff;
ppc_feature_t current_ppc_features;
char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu)
{
switch (cpu) {
case PPC_405: return "PPC405";

View File

@@ -91,7 +91,7 @@ extern ppc_cpu_id_t current_ppc_cpu;
typedef unsigned short ppc_cpu_revision_t;
extern ppc_cpu_id_t get_ppc_cpu_type (void);
extern char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
extern const char *get_ppc_cpu_type_name(ppc_cpu_id_t cpu);
extern ppc_cpu_revision_t get_ppc_cpu_revision (void);
extern ppc_cpu_revision_t current_ppc_revision;