Chinaunix首页 | 论坛 | 博客
  • 博客访问: 18646
  • 博文数量: 4
  • 博客积分: 162
  • 博客等级: 入伍新兵
  • 技术积分: 50
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-01 23:20
文章分类

全部博文(4)

文章存档

2010年(4)

我的朋友
最近访客

分类: 嵌入式

2010-02-03 23:17:47


Maybe mips cache lock is not used as much as cache writeback and cache invalidate,so we need a chance to "learning through practice".

In embedded system,before we have init the RAM,we have no writeable space for stack,but we can use mips cache lock to solve it,lock stack in cache and we can get a small wirteable space for our "C" code.That is what U-Boot do on some mips platform board.

You can see the U-BOOT-SOURCE/cpu/mips/cache.S and U-BOOT-SOURCE/cpu/mips/start.S for detail.It use cache op is 0x1d,reference "See MIPS Run Linux Second Edition" chapter 4,you can know it lock the L1 D-cache.

BTW:In "See MIPS Run Linux Second Edition" Section 4.9.1 The Cache Instruction,third paragraph:
        Of the 5-bit field,the upper 2 bits select which cache to work on
should be:
        Of the 5-bit field,the lower 2 bits select which chache to work on
阅读(1160) | 评论(1) | 转发(2) |
给主人留下些什么吧!~~

ceo10002011-11-16 22:45:45

上海保洁公司         http://www.shwdbj.net

上海保洁                http://www.shwdbj.net

上海市保洁公司     http://www.shwdbj.net



上海普陀保洁公司  回复 | 举报