当前位置:网站首页>FreeRTOS 中 RISC-V-Qemu-virt_GCC 的调度时机
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的调度时机
2022-07-05 10:52:00 【__pop_】
目前总共会在以下两种异常中切换
timer
ecall
timer
Source/portable/GCC/RISC-V/portASM.S
handle_asynchronous:
test_if_mtimer
jal xTaskIncrementTick
流1 :
beqz a0, processed_source // 不调度,直接退出
流2:
jal vTaskSwitchContext
j processed_source
ecall
我们从 这里能看到 freertos 实现了 两种异常 ecall 和 mtimer
我们从 这里的"ecall 后的 freertos_risc_v_trap_handler" 能看到 ecall 后发生了 切换
那什么时候 才会切换呢 ? 调用 portYIELD的时候
边栏推荐
- 数据库三大范式
- Advanced scaffold development
- 第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!
- PWA (Progressive Web App)
- Node の MongoDB Driver
- DDR4的特性与电气参数
- A usage example that can be compatible with various database transactions
- DOM//
- Web3 Foundation grant program empowers developers to review four successful projects
- Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
猜你喜欢

第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!

【DNS】“Can‘t resolve host“ as non-root user, but works fine as root

如何将 DevSecOps 引入企业?

LSTM applied to MNIST dataset classification (compared with CNN)

Intelligent metal detector based on openharmony
![[advertising system] parameter server distributed training](/img/8b/558c2fefbd16b580546003f3afeaf5.png)
[advertising system] parameter server distributed training

DDRx寻址原理

Huawei equipment configures channel switching services without interruption

How to introduce devsecops into enterprises?

Detailed explanation of MATLAB cov function
随机推荐
Function///
小程序框架Taro
使用bat命令一键启动常用浏览器
[TCP] TCP connection status JSON output on the server
正则表达式
购买小间距LED显示屏的三个建议
BOM//
Explanation of message passing in DGL
Pull up loading principle
中职组网络安全2021年江苏省省赛题目5套题目环境+解析全有需要的私信我
流程控制、
R3Live系列学习(四)R2Live源码阅读(2)
如何让全彩LED显示屏更加节能环保
基础篇——REST风格开发
About the use of Vray 5.2 (self research notes)
DOM//
Web Components
Bidirectional RNN and stacked bidirectional RNN
如何将 DevSecOps 引入企业?
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?