diff options
| author | Shell <[email protected]> | 2024-02-23 17:49:15 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-23 17:49:15 +0800 |
| commit | 71560bafb5735220696ca24a42ba4a668b55949b (patch) | |
| tree | 236df5973a1fd5b6f0cc9f6c6b6a2d71fd069203 /bsp | |
| parent | 6fe69d7431ed54fcea863ed68d7c4f9746e771b0 (diff) | |
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <[email protected]>
Co-authored-by: xqyjlj <[email protected]>
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/qemu-vexpress-a9/applications/main.c | 4 | ||||
| -rw-r--r-- | bsp/qemu-vexpress-a9/drivers/secondary_cpu.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bsp/qemu-vexpress-a9/applications/main.c b/bsp/qemu-vexpress-a9/applications/main.c index b9364eee2f..8f4edcb5b1 100644 --- a/bsp/qemu-vexpress-a9/applications/main.c +++ b/bsp/qemu-vexpress-a9/applications/main.c @@ -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; } diff --git a/bsp/qemu-vexpress-a9/drivers/secondary_cpu.c b/bsp/qemu-vexpress-a9/drivers/secondary_cpu.c index 5b4ba767e7..deed7b16c1 100644 --- a/bsp/qemu-vexpress-a9/drivers/secondary_cpu.c +++ b/bsp/qemu-vexpress-a9/drivers/secondary_cpu.c @@ -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 */ |
