mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 08:07:46 -04:00
Fix SMP debugging issue on rp2040
Related to #1172 Add `multicore_reset_core1` before `multicore_launch_core1` in `xPortStartScheduler` function to fix debugging issue on rp2040 with SMP enabled. * Modify `portable/ThirdParty/GCC/RP2040/port.c` to include a call to `multicore_reset_core1` before `multicore_launch_core1` within the `#if portRUNNING_ON_BOTH_CORES` block.
This commit is contained in:
parent
8225a7f554
commit
653d5aad27
1 changed files with 1 additions and 3 deletions
4
portable/ThirdParty/GCC/RP2040/port.c
vendored
4
portable/ThirdParty/GCC/RP2040/port.c
vendored
|
@ -22,9 +22,6 @@
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*
|
*
|
||||||
* https://www.FreeRTOS.org
|
|
||||||
* https://github.com/FreeRTOS
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
|
@ -378,6 +375,7 @@ void vPortStartFirstTask( void )
|
||||||
#if portRUNNING_ON_BOTH_CORES
|
#if portRUNNING_ON_BOTH_CORES
|
||||||
ucPrimaryCoreNum = configTICK_CORE;
|
ucPrimaryCoreNum = configTICK_CORE;
|
||||||
configASSERT( get_core_num() == 0 ); /* we must be started on core 0 */
|
configASSERT( get_core_num() == 0 ); /* we must be started on core 0 */
|
||||||
|
multicore_reset_core1();
|
||||||
multicore_launch_core1( prvDisableInterruptsAndPortStartSchedulerOnCore );
|
multicore_launch_core1( prvDisableInterruptsAndPortStartSchedulerOnCore );
|
||||||
#else
|
#else
|
||||||
ucPrimaryCoreNum = get_core_num();
|
ucPrimaryCoreNum = get_core_num();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue