当前位置:网站首页>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的时候
边栏推荐
- 力扣(LeetCode)185. 部门工资前三高的所有员工(2022.07.04)
- Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
- How to make full-color LED display more energy-saving and environmental protection
- 基于昇腾AI丨爱笔智能推出银行网点数字化解决方案,实现从总部到网点的信息数字化全覆盖
- 在C# 中实现上升沿,并模仿PLC环境验证 If 语句使用上升沿和不使用上升沿的不同
- 2022 mobile crane driver examination question bank and simulation examination
- 埋点111
- Lazy loading scheme of pictures
- Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
- 关于vray5.2怎么关闭日志窗口
猜你喜欢
第五届 Polkadot Hackathon 创业大赛全程回顾,获胜项目揭秘!
如何让全彩LED显示屏更加节能环保
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
Go-3-第一个Go程序
Based on shengteng AI Yisa technology, it launched a full target structured solution for video images, reaching the industry-leading level
2022 t elevator repair operation certificate examination questions and answers
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
R3live series learning (IV) r2live source code reading (2)
2022 mobile crane driver examination question bank and simulation examination
Go语言-1-开发环境配置
随机推荐
数据类型、
Sqlserver regularly backup database and regularly kill database deadlock solution
Cross page communication
使用GBase 8c数据库过程中报错:80000502,Cluster:%s is busy,是怎么回事?
运算符、、
Web3 Foundation grant program empowers developers to review four successful projects
修复动漫1K变8K
Network security of secondary vocational group 2021 Jiangsu provincial competition 5 sets of topics environment + analysis of all necessary private messages I
Stop saying that microservices can solve all problems!
Intelligent metal detector based on openharmony
Data type
How to make full-color LED display more energy-saving and environmental protection
Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
Variables///
Three suggestions for purchasing small spacing LED display
脚手架开发基础
vite//
Detailed explanation of MATLAB cov function
uniapp
[first release in the whole network] (tips for big tables) sometimes it takes only 1 minute for 2 hours of SQL operation