forked from Imagelibrary/rtems
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:
@@ -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:
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user