mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 12:15:32 +08:00
[fixup] check NULL pointer before access (#8573)
Signed-off-by: Shell <smokewood@qq.com>
This commit is contained in:
@@ -9,10 +9,11 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <rtthread.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printf("hello rt-thread\n");
|
||||
rt_kprintf("hello rt-thread\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
#include "mmu.h"
|
||||
#include "gtimer.h"
|
||||
|
||||
#ifdef BSP_USING_GICV3
|
||||
#include <gicv3.h>
|
||||
#endif
|
||||
|
||||
#ifdef RT_USING_SMP
|
||||
|
||||
extern unsigned long MMUTable[];
|
||||
@@ -29,6 +33,10 @@ void rt_hw_secondary_cpu_bsp_start(void)
|
||||
|
||||
arm_gic_cpu_init(0, 0);
|
||||
|
||||
#ifdef BSP_USING_GICV3
|
||||
arm_gic_redist_init(0, 0);
|
||||
#endif /* BSP_USING_GICV3 */
|
||||
|
||||
// local timer init
|
||||
rt_hw_gtimer_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user