summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-10 11:47:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-15 11:46:50 +0100
commitccc25627e587302325c32193016cc978e147f2c3 (patch)
tree9a1d24b012bc31b66303f7902ad19e45089fa472 /arch/arm/cpu
parent2f251039f7523c4a25a91e9bc31957222b46abfa (diff)
downloadbarebox-ccc25627e587302325c32193016cc978e147f2c3.tar.gz
barebox-ccc25627e587302325c32193016cc978e147f2c3.tar.xz
ARM cpuinfo: decode more bits, use ARRAY_SIZE
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/cpuinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
index 05971b313b..7be16716fc 100644
--- a/arch/arm/cpu/cpuinfo.c
+++ b/arch/arm/cpu/cpuinfo.c
@@ -47,8 +47,8 @@ static void decode_cache(unsigned long size)
}
static char *crbits[] = {"M", "A", "C", "W", "P", "D", "L", "B", "S", "R",
- "F", "Z", "I", "V", "RR", "L4", "", "", "", "", "", "FI", "U", "XP",
- "VE", "EE", "L2"};
+ "F", "Z", "I", "V", "RR", "L4", "DT", "", "IT", "ST", "", "FI", "U", "XP",
+ "VE", "EE", "L2", "", "TRE", "AFE", "TE"};
static int do_cpuinfo(struct command *cmdtp, int argc, char *argv[])
{
@@ -170,7 +170,7 @@ static int do_cpuinfo(struct command *cmdtp, int argc, char *argv[])
}
printf("Control register: ");
- for (i = 0; i < 27; i++)
+ for (i = 0; i < ARRAY_SIZE(crbits); i++)
if (cr & (1 << i))
printf("%s ", crbits[i]);
printf("\n");