Skip to content

Commit 1040f4a

Browse files
fix ci error. (#68)
Co-authored-by: guozhanxin <[email protected]>
1 parent 38e0c2a commit 1040f4a

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

bsp/qemu-vexpress-gemini/.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ CONFIG_RT_VER_NUM=0x40100
8282
CONFIG_ARCH_ARM=y
8383
CONFIG_RT_USING_CPU_FFS=y
8484
CONFIG_ARCH_ARM_CORTEX_A=y
85-
CONFIG_RT_NO_USING_GIC=y
85+
# CONFIG_RT_SMP_AUTO_BOOT is not set
86+
CONFIG_RT_USING_GIC_V2=y
87+
# CONFIG_RT_USING_GIC_V3 is not set
8688
CONFIG_ARCH_ARM_CORTEX_A9=y
8789

8890
#

bsp/qemu-vexpress-gemini/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ config SOC_VEXPRESS_GEMINI
2323
select ARCH_ARM_CORTEX_A9
2424
select RT_USING_COMPONENTS_INIT
2525
# select RT_USING_USER_MAIN
26+
select RT_USING_GIC_V2
2627
default y
2728

2829
source "$BSP_DIR/drivers/Kconfig"

bsp/qemu-vexpress-gemini/cpu/cpu.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,21 @@ void rt_hw_cpu_shutdown()
3030
}
3131
}
3232

33+
#ifdef RT_USING_CPU_FFS
34+
/**
35+
* This function finds the first bit set (beginning with the least significant bit)
36+
* in value and return the index of that bit.
37+
*
38+
* Bits are numbered starting at 1 (the least significant bit). A return value of
39+
* zero from any of these functions means that the argument was zero.
40+
*
41+
* @return return the index of the first bit set. If value is 0, then this function
42+
* shall return 0.
43+
*/
44+
int __rt_ffs(int value)
45+
{
46+
return __builtin_ffs(value);
47+
}
48+
#endif
49+
3350
/*@}*/

bsp/qemu-vexpress-gemini/rtconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define ARCH_ARM
5252
#define RT_USING_CPU_FFS
5353
#define ARCH_ARM_CORTEX_A
54-
#define RT_NO_USING_GIC
54+
#define RT_USING_GIC_V2
5555
#define ARCH_ARM_CORTEX_A9
5656

5757
/* RT-Thread Components */

bsp/stm32/stm32u575-st-nucleo/.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ CONFIG_RT_PIPE_BUFSZ=512
129129
CONFIG_RT_USING_SERIAL=y
130130
CONFIG_RT_USING_SERIAL_V1=y
131131
# CONFIG_RT_USING_SERIAL_V2 is not set
132-
CONFIG_RT_SERIAL_USING_DMA=y
132+
# CONFIG_RT_SERIAL_USING_DMA is not set
133133
CONFIG_RT_SERIAL_RB_BUFSZ=64
134134
# CONFIG_RT_USING_CAN is not set
135135
# CONFIG_RT_USING_HWTIMER is not set

bsp/stm32/stm32u575-st-nucleo/rtconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
#define RT_PIPE_BUFSZ 512
8787
#define RT_USING_SERIAL
8888
#define RT_USING_SERIAL_V1
89-
#define RT_SERIAL_USING_DMA
9089
#define RT_SERIAL_RB_BUFSZ 64
9190
#define RT_USING_PIN
9291

0 commit comments

Comments
 (0)