当前位置:网站首页>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
- Talk about the understanding of fault tolerance mechanism and state consistency in Flink framework
- Scaffold development foundation
- DOM//
- 9、 Disk management
- Repair animation 1K to 8K
- 32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)
- How can gbase 8C database view the login information of the login user, such as the date, time and IP of the last login authentication?
- Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!
- Pull up loading principle
猜你喜欢
DGL中的消息传递相关内容的讲解
A mining of edu certificate station
九、磁盘管理
2022 mobile crane driver examination question bank and simulation examination
一次edu证书站的挖掘
How to make full-color LED display more energy-saving and environmental protection
关于vray 5.2的使用(自研笔记)(二)
【DNS】“Can‘t resolve host“ as non-root user, but works fine as root
【广告系统】增量训练 & 特征准入/特征淘汰
32:第三章:开发通行证服务:15:浏览器存储介质,简介;(cookie,Session Storage,Local Storage)
随机推荐
上拉加载原理
九、磁盘管理
websocket
字符串、、
跨页面通讯
Detailed explanation of MATLAB cov function
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
How to make full-color LED display more energy-saving and environmental protection
LDAP overview
Cross page communication
Go language learning notes - first acquaintance with go language
Do you really understand the things about "prototype"? [part I]
About the use of Vray 5.2 (self research notes) (II)
基于昇腾AI丨爱笔智能推出银行网点数字化解决方案,实现从总部到网点的信息数字化全覆盖
2022 t elevator repair operation certificate examination questions and answers
Buried point 111
GBase 8c数据库如何查看登录用户的登录信息,如上一次登录认证通过的日期、时间和IP等信息?
【广告系统】Parameter Server分布式训练
[advertising system] incremental training & feature access / feature elimination
Intelligent metal detector based on openharmony