File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,10 @@ config ARCH_ARM_CORTEX_A9
152152 bool
153153 select ARCH_ARM_CORTEX_A
154154
155+ config ARCH_ARM_CORTEX_A55
156+ bool
157+ select ARCH_ARM_CORTEX_A
158+
155159config ARCH_ARM_SECURE_MODE
156160 bool "Running in secure mode [ARM Cortex-A]"
157161 default n
Original file line number Diff line number Diff line change 1818.type rt_hw_cpu_id_set , @function
1919rt_hw_cpu_id_set:
2020 mrs x0 , mpidr_el1 / * MPIDR_EL1: Multi - Processor Affinity Register * /
21+ #ifdef ARCH_ARM_CORTEX_A55
22+ lsr x0 , x0 , # 8
23+ #endif
2124 and x0 , x0 , # 15
2225 msr tpidr_el1 , x0
2326 ret
Original file line number Diff line number Diff line change @@ -374,4 +374,20 @@ rt_weak void rt_hw_cpu_shutdown()
374374}
375375MSH_CMD_EXPORT_ALIAS (rt_hw_cpu_shutdown , shutdown , shutdown machine );
376376
377+ #ifdef RT_USING_CPU_FFS
378+ /**
379+ * This function finds the first bit set (beginning with the least significant bit)
380+ * in value and return the index of that bit.
381+ *
382+ * Bits are numbered starting at 1 (the least significant bit). A return value of
383+ * zero from any of these functions means that the argument was zero.
384+ *
385+ * @return return the index of the first bit set. If value is 0, then this function
386+ * shall return 0.
387+ */
388+ int __rt_ffs (int value )
389+ {
390+ return __builtin_ffs (value );
391+ }
392+ #endif
377393/*@}*/
You can’t perform that action at this time.
0 commit comments