Mips cache lock

来源:互联网 发布:淘宝怎么直播呀 编辑:程序博客网 时间:2024/06/05 08:46

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
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(294) | 评论(0) | 转发(0) |
0

上一篇:Nand ECC学习

下一篇:宏定义中的##操作符和... and _ _VA_ARGS_ _

相关热门文章
  • A sample .exrc file for vi e...
  • IBM System p5 服务器 HACMP ...
  • 游标的特征
  • DB2 9 应用开发(733 考试)认...
  • busybox的httpd使用CGI脚本(Bu...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击