Cache, L2 Cache, CacheRangeFlush

本文详细介绍了缓存刷新的不同类型,包括TLB刷新、指令缓存刷新和数据缓存刷新等,并列举了多种缓存刷新的方式,如用户发起的缓存刷新、设备重启时的刷新等。还特别介绍了CacheRangeFlush函数的应用场景。

Throughout this topic, the term flush is used for writing back and invalidating cache lines.

Cache 

Cache flushes are categorized as one of the following:

  • TLB flush
  • Instruction cache (I-cache) flush
  • Data cache (D-cache) flush

Cache flushing is generally done in the following ways:

  • User-initiated cache flush, by using the CacheRangeFlush function
  • Turning the device off and back on
  • Page acquisition or release, by using internal OEM functions to get a page and then free it
  • Process deletion
  • Uncaching a page
  • API call return to a server other than the current server
  • Thread switching to a process other than the current active process

L2 CACHE

..

CacheRangeFlush

CacheRangeFlush :This function is called by device drivers and applications to flush a specified range of the cache.

OEMCacheRangeFlush:This function is used by the kernel to flush or invalidate a certain range of the cache or translation look-aside buffer (TLB). OEMs must implement this function in the OAL.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值