Comments (4)
Really appreciate you taking the time to provide this detail. It may take a little time to digest and fix. Would also be great if, once everything is running smoothly, you could also open a pull request to upstream your enhanced port.
from freertos-kernel.
I was wrong.
The race condition is possible and if it happen the stack won't be broken.
from freertos-kernel.
Lets say Task A is executing the SR/RETI sequence when a context switch occurs to Task B between the SR and RETI instructions. When the context switches back to Task A, would it not return to the RETI instruction allowing Task A to continue from there? Is that what you mean by "I was wrong"?
from freertos-kernel.
If the race condition occur, between sr
and reta
instructions, then the stack won't be broken. The instruction reta will be executed next time.
This is no longer a bug, so I'm closing it.
from freertos-kernel.
Related Issues (20)
- [BUG] Access violation in taskSELECT_HIGHEST_PRIORITY_TASK() HOT 11
- pvPortRealloc Implementation in AVR32_UC3 Port HOT 1
- [BUG]
- Five heaps to choose? HOT 4
- [Feature Request] The number of system calls needs to support the sizeof(uintptr_t) HOT 4
- [DOC] HOT 1
- RISC-V Kernel Security Isolation
- [BUG] Release commit for 10.6.2 is not in-tree HOT 2
- [BUG] Missing type cast in vTaskGetInfo causes compiler warning HOT 1
- [BUG] xTaskGetTickCount() erroneously skips ahead HOT 4
- SPDX file contains numerous issues HOT 6
- smp for cortex-m7 HOT 1
- MPU V2 for CM3 & CM4 HOT 1
- [BUG] Atomic_*s are not atomic! HOT 2
- [BUG] GCC_ARM_CM4_MPU assumes FPU HOT 2
- [BUG] - TCBs and dynamic stacks leaked when scheduler is stopped HOT 17
- FreeRTOS.h configSTACK_DEPTH_TYPE inconsistent with default type HOT 1
- [BUG] SMP prvSelectHighestPriorityTask adds current task to the front of the ready list if pxIndex points to the head of the list HOT 2
- [Feature Request] Default Affinity Set HOT 2
- Add support to cortex A7 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freertos-kernel.