]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: boot log: decontaminate ARCv2 ISA_CONFIG register
authorVineet Gupta <vgupta@synopsys.com>
Fri, 22 Sep 2017 00:46:38 +0000 (17:46 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 4 Oct 2017 03:36:49 +0000 (20:36 -0700)
commit5c1593233d10aa5f4f0039de9468f0222927ad5b
tree7ad8780e807cf953be4d31055394655b3b06868a
parent712d0b6b4df9498def28385e0f0985db842dc64f
ARC: boot log: decontaminate ARCv2 ISA_CONFIG register

ARCv2 ISA_CONFIG and ARC700_BUILD build config registers are not
compatible. cpuinfo_arc had isa info placeholder which was mashup of bits
form both.

Untangle this by defining it off of ARCv2 ISA info and it is fine even
for ARC700 since former is a super set of latter (ARC700 buildonly has 2
bits for atomics and stack check).

At runtime, we treat ARCv2 ISA info as a generic placeholder but
populate it correctly depending on ARC700 or HS.

This paves way for adding more HS specific bits in isa info which was
colliding with the extra bits for arc700.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/arcregs.h
arch/arc/kernel/setup.c