如何冲洗PowerPC板上的所有缓存?

发布于 2025-02-05 17:44:00 字数 231 浏览 2 评论 0原文

我有一个在嵌入式PowerPC系统上运行的Linux内核应用程序。我正在寻找一种方法来记录处理器内部缓存中所有修改后的高速缓存线,以使主内存并无效(冲洗)内部缓存。我知道X86具有将执行此操作的指令(WBINVD)。

有没有办法通过C功能调用或汇编指令在PowerPC下进行相同的事情?

我知道有PowerPC指令,例如dcbt,它将更新该地址的缓存,但是我正在寻找可以冲洗所有内容的东西。

I have a Linux kernel application running on an embedded PowerPC system. I'm looking for a way to write back all modified cache lines in the processor’s internal cache to main memory and invalidate (flush) the internal caches. I know that the x86 has an instruction that will do this (wbinvd).

Is there a way to do the same thing under PowerPC via a C function call or assembly instruction?

I know that there are PowerPC instructions like dcbt which will update the cache for that address, but I'm looking for something that will flush everything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文