File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ CONFIG_RT_VER_NUM=0x40004
8181CONFIG_ARCH_ARM=y
8282CONFIG_RT_USING_CPU_FFS=y
8383CONFIG_ARCH_ARM_CORTEX_A=y
84- CONFIG_RT_NO_USING_GIC =y
84+ CONFIG_RT_USING_GIC_V2 =y
8585CONFIG_ARCH_ARM_CORTEX_A9=y
8686
8787#
Original file line number Diff line number Diff 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
2829source "$BSP_DIR/drivers/Kconfig"
Original file line number Diff line number Diff 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/*@}*/
Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments