nds32: split common cache access from cpu into lib
authorMacpaul Lin <macpaul@gmail.com>
Sun, 15 Jul 2012 03:54:13 +0000 (11:54 +0800)
committerMacpaul Lin <macpaul@gmail.com>
Fri, 20 Jul 2012 15:55:52 +0000 (23:55 +0800)
commit8d732840ba1cd4d41c12242ba07f1cf58b6429bf
treeb2e043e58183ee886ecce1992761b670c79e06f3
parent3ec81d758c09d6887a77a1b1259d044a2905bc8e
nds32: split common cache access from cpu into lib

This commit does the following updates.
1. Split the common cache access from cpu.c into lib folder.
2. Rename the following cache api to adapt common.h
 - dcache_flush_rang -> flush_dcache_rang
 - icache_inval_range -> invalidate_icache_range
3. Add invalidate_dcache_range

Signed-off-by: Macpaul Lin <macpaul@gmail.com>
arch/nds32/cpu/n1213/ag101/cpu.c
arch/nds32/cpu/n1213/ag102/cpu.c
arch/nds32/lib/Makefile
arch/nds32/lib/cache.c [new file with mode: 0644]