]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arc: move common sources in library
authorAlexey Brodkin <abrodkin@synopsys.com>
Sat, 27 Dec 2014 23:42:12 +0000 (02:42 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Thu, 15 Jan 2015 19:40:49 +0000 (22:40 +0300)
commit660d5f0d495197b4057bc1b3bdd201e500b03f1a
tree1af828cf7be238a85134eab36e3d4232231e5037
parent70a0442a420ccea85e6255fedb760448c5b7b87f
arc: move common sources in library

"reset.c" and "cpu.c" have no architecture-specific code at all.
Others are applicable to either ARC CPU.

This change is a preparation to submission of ARCv2 architecture port.

Even though ARCv1 and ARCv2 ISAs are not binary compatible most of
built-in modules still have the same programming model - AUX registers
are mapped in the same addresses and hold the same data (new featues
extend existing ones).

So only low-level assembly code (start-up, interrupt handlers) is left
as CPU(actually ISA)-specific. This significantyl simplifies maintenance
of multiple CPUs/ISAs.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Igor Guryanov <guryanov@synopsys.com>
arch/arc/cpu/arc700/Makefile
arch/arc/lib/Makefile
arch/arc/lib/cache.c [moved from arch/arc/cpu/arc700/cache.c with 100% similarity]
arch/arc/lib/cpu.c [moved from arch/arc/cpu/arc700/cpu.c with 100% similarity]
arch/arc/lib/interrupts.c [moved from arch/arc/cpu/arc700/interrupts.c with 100% similarity]
arch/arc/lib/reset.c [moved from arch/arc/cpu/arc700/reset.c with 100% similarity]
arch/arc/lib/timer.c [moved from arch/arc/cpu/arc700/timer.c with 100% similarity]