Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: uncached base is hard constant for ARC, don't save it

ioremap already uses the hard define, just make sure BCR value matches
that

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

+2 -3
-1
arch/arc/include/asm/arcregs.h
··· 320 320 struct bcr_isa isa; 321 321 struct bcr_timer timers; 322 322 unsigned int vec_base; 323 - unsigned int uncached_base; 324 323 struct cpuinfo_arc_ccm iccm, dccm; 325 324 struct { 326 325 unsigned int swap:1, norm:1, minmax:1, barrel:1, crc:1, pad1:3,
+2 -2
arch/arc/kernel/setup.c
··· 54 54 cpu->vec_base = read_aux_reg(AUX_INTR_VEC_BASE); 55 55 56 56 READ_BCR(ARC_REG_D_UNCACH_BCR, uncached_space); 57 - cpu->uncached_base = uncached_space.start << 24; 57 + BUG_ON((uncached_space.start << 24) != ARC_UNCACHED_ADDR_SPACE); 58 58 59 59 READ_BCR(ARC_REG_MUL_BCR, cpu->extn_mpy); 60 60 ··· 218 218 219 219 n += scnprintf(buf + n, len - n, 220 220 "Vector Table\t: %#x\nUncached Base\t: %#x\n", 221 - cpu->vec_base, cpu->uncached_base); 221 + cpu->vec_base, ARC_UNCACHED_ADDR_SPACE); 222 222 223 223 if (cpu->extn.fpu_sp || cpu->extn.fpu_dp) 224 224 n += scnprintf(buf + n, len - n, "FPU\t\t: %s%s\n",