mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-11-16 12:34:33 +00:00
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com> Co-authored-by: xqyjlj <xqyjlj@126.com>
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("Hello RT-Thread!\n");
|
||||
rt_kprintf("Hello RT-Thread!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ void rt_hw_secondary_cpu_up(void)
|
||||
*plat_boot_reg-- = (void *)(size_t)-1;
|
||||
*plat_boot_reg = (void *)entry;
|
||||
rt_hw_dsb();
|
||||
rt_hw_ipi_send(0, 1 << 1);
|
||||
rt_hw_ipi_send(0, RT_CPU_MASK ^ (1 << rt_hw_cpu_id()));
|
||||
}
|
||||
|
||||
/* Interface */
|
||||
|
||||
Reference in New Issue
Block a user