diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2018-10-29 17:44:18 +0100 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2018-11-12 19:38:27 +0100 |
commit | afba5d157fe1f2e64bc3df46fe83841657ec8fdd (patch) | |
tree | 94048003fd788d997759bc0cf3fd50224bd44947 /arch/arc | |
parent | ARC: IOC: panic if kernel was started with previously enabled IOC (diff) | |
download | linux-afba5d157fe1f2e64bc3df46fe83841657ec8fdd.tar.xz linux-afba5d157fe1f2e64bc3df46fe83841657ec8fdd.zip |
ARCv2: boot log unaligned access in use
ARC gcc 8.x generates unaligned accesses by default, so call that out
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/kernel/setup.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index b2cae79a25d7..eea8c5ce6335 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -243,7 +243,7 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len) { struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id]; struct bcr_identity *core = &cpu->core; - int i, n = 0; + int i, n = 0, ua = 0; FIX_PTR(cpu); @@ -263,10 +263,13 @@ static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len) IS_AVAIL2(cpu->extn.rtc, "RTC [UP 64-bit] ", CONFIG_ARC_TIMERS_64BIT), IS_AVAIL2(cpu->extn.gfrc, "GFRC [SMP 64-bit] ", CONFIG_ARC_TIMERS_64BIT)); - n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s", +#ifdef __ARC_UNALIGNED__ + ua = 1; +#endif + n += i = scnprintf(buf + n, len - n, "%s%s%s%s%s%s", IS_AVAIL2(cpu->isa.atomic, "atomic ", CONFIG_ARC_HAS_LLSC), IS_AVAIL2(cpu->isa.ldd, "ll64 ", CONFIG_ARC_HAS_LL64), - IS_AVAIL1(cpu->isa.unalign, "unalign (not used)")); + IS_AVAIL1(cpu->isa.unalign, "unalign "), IS_USED_RUN(ua)); if (i) n += scnprintf(buf + n, len - n, "\n\t\t: "); |