diff options
| author | weety <[email protected]> | 2015-09-04 21:58:08 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2015-09-04 21:58:08 +0800 |
| commit | 2021f5a276ff26930cb2cf969fd6c7bd1207a0b6 (patch) | |
| tree | 13259ce6bf7c92ec7d9386431daf67d49cf18319 /libcpu | |
| parent | b71cb4c09da7037038bec47151333acc9fdfdf7b (diff) | |
Add the license.
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/dm36x/cpuport.c | 2 | ||||
| -rw-r--r-- | libcpu/arm/dm36x/mmu.c | 15 |
2 files changed, 1 insertions, 16 deletions
diff --git a/libcpu/arm/dm36x/cpuport.c b/libcpu/arm/dm36x/cpuport.c index 9908471a5c..bf012b10fa 100644 --- a/libcpu/arm/dm36x/cpuport.c +++ b/libcpu/arm/dm36x/cpuport.c @@ -19,7 +19,7 @@ * * Change Logs: * Date Author Notes - * 2011-01-13 weety modified from mini2440 + * 2011-01-13 weety first version */ #include <rthw.h> diff --git a/libcpu/arm/dm36x/mmu.c b/libcpu/arm/dm36x/mmu.c index 3259ee7294..643f6bc3de 100644 --- a/libcpu/arm/dm36x/mmu.c +++ b/libcpu/arm/dm36x/mmu.c @@ -515,21 +515,6 @@ static void build_pte_mem_desc(struct mem_desc *mdesc, rt_uint32_t size) } } -#if 0 -void mmu_setmtt(rt_uint32_t vaddrStart, rt_uint32_t vaddrEnd, rt_uint32_t paddrStart, rt_uint32_t attr) -{ - volatile rt_uint32_t *pTT; - volatile int i,nSec; - pTT=(rt_uint32_t *)_page_table+(vaddrStart>>20); - nSec=(vaddrEnd>>20)-(vaddrStart>>20); - for(i=0;i<=nSec;i++) - { - *pTT = attr |(((paddrStart>>20)+i)<<20); - pTT++; - } -} -#endif - void rt_hw_mmu_init(struct mem_desc *mdesc, rt_uint32_t size) { /* disable I/D cache */ |
