Browse Source

[fix] typo

wangxiaoyao 2 years ago
parent
commit
6b259b8f12

+ 1 - 1
components/lwp/arch/arm/cortex-a/lwp_arch.h

@@ -30,7 +30,7 @@ extern "C" {
 
 rt_inline unsigned long rt_hw_ffz(unsigned long x)
 {
-    return __builtin_ffsll(~x) - 1;
+    return __builtin_ffsl(~x) - 1;
 }
 
 rt_inline void icache_invalid_all(void)

+ 1 - 1
components/lwp/arch/risc-v/rv64/lwp_arch.h

@@ -53,7 +53,7 @@ rt_mmu_info* arch_kernel_get_mmu_info(void);
 
 rt_inline unsigned long rt_hw_ffz(unsigned long x)
 {
-    return __builtin_ffsll(~x) - 1;
+    return __builtin_ffsl(~x) - 1;
 }
 
 rt_inline void icache_invalid_all(void)

+ 1 - 1
components/lwp/arch/x86/i386/lwp_arch.h

@@ -37,7 +37,7 @@ void lwp_signal_do_return(rt_hw_stack_frame_t *frame);
         
 rt_inline unsigned long rt_hw_ffz(unsigned long x)
 {
-    return __builtin_ffsll(~x) - 1;
+    return __builtin_ffsl(~x) - 1;
 }
 
 #ifdef __cplusplus

+ 3 - 0
libcpu/aarch64/common/cpu_gcc.S

@@ -86,6 +86,9 @@ rt_cpu_vector_set_base:
     RET
 
 
+/**
+ * unsigned long rt_hw_ffz(unsigned long x)
+ */
 .global rt_hw_ffz
 rt_hw_ffz:
     mvn x1, x0