当前位置:网站首页>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的时候
边栏推荐
- Network security of secondary vocational group 2021 Jiangsu provincial competition 5 sets of topics environment + analysis of all necessary private messages I
- 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?
- Nuxt//
- 不要再说微服务可以解决一切问题了!
- Codeforces Round #804 (Div. 2)
- 小程序框架Taro
- Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
- Web Security
- 2022 mobile crane driver examination question bank and simulation examination
- 数据库三大范式
猜你喜欢

如何将 DevSecOps 引入企业?

Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report

A mining of edu certificate station

Review the whole process of the 5th Polkadot Hackathon entrepreneurship competition, and uncover the secrets of the winning projects!

DDR4硬件原理图设计详解

磨砺·聚变|知道创宇移动端官网焕新上线,开启数字安全之旅!

Implement the rising edge in C #, and simulate the PLC environment to verify the difference between if statement using the rising edge and not using the rising edge

DDRx寻址原理

Repair animation 1K to 8K

关于vray 5.2的使用(自研笔记)(二)
随机推荐
【广告系统】增量训练 & 特征准入/特征淘汰
DOM//
Explanation of message passing in DGL
Explanation of full vulnerability script of network security C module of secondary vocational group script containing 4 vulnerabilities
小程序框架Taro
2022 mobile crane driver examination question bank and simulation examination
Operation of simulated examination platform of special operation certificate examination question bank for safety production management personnel of hazardous chemical production units in 2022
vite//
Go language learning notes - first acquaintance with go language
BOM//
2021年山东省赛题库题目抓包
Repair animation 1K to 8K
A usage example that can be compatible with various database transactions
Variables///
The first product of Sepp power battery was officially launched
Honing · fusion | know that the official website of Chuangyu mobile terminal is newly launched, and start the journey of digital security!
Deepfake tutorial
数据库三大范式
Some understandings of heterogeneous graphs in DGL and the usage of heterogeneous graph convolution heterographconv
Stop saying that microservices can solve all problems!