This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new e3b3a6145a arch/x86_64: idle convert all asm() to __asm__()
e3b3a6145a is described below

commit e3b3a6145ab19ed8532997d9b11e0c9eb96f5a53
Author: liwenxiang1 <liwenxia...@xiaomi.com>
AuthorDate: Thu Oct 10 11:24:48 2024 +0800

    arch/x86_64: idle convert all asm() to __asm__()
    
    Signed-off-by: liwenxiang1 <liwenxia...@xiaomi.com>
---
 arch/x86_64/src/intel64/intel64_idle.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/x86_64/src/intel64/intel64_idle.c 
b/arch/x86_64/src/intel64/intel64_idle.c
index 53ed6db048..adf060ea44 100644
--- a/arch/x86_64/src/intel64/intel64_idle.c
+++ b/arch/x86_64/src/intel64/intel64_idle.c
@@ -66,7 +66,7 @@ void up_idle(void)
 
   nxsched_process_timer();
 #elif defined(CONFIG_ARCH_X86_64_IDLE_NOP)
-  asm volatile("nop");
+  __asm__ volatile("nop");
 #elif defined(CONFIG_ARCH_X86_64_IDLE_MWAIT_ECX)
   /* Dummy value to make MONITOR/MWAIT work */
 
@@ -74,15 +74,15 @@ void up_idle(void)
 
   /* MONITOR eax, ecx, edx */
 
-  asm volatile(".byte 0x0f, 0x01, 0xc8" ::
-                "a"(&dummy), "c"(0), "d"(0));
+  __asm__ volatile(".byte 0x0f, 0x01, 0xc8" ::
+                   "a"(&dummy), "c"(0), "d"(0));
 
   /* We enable sub C-state here and wait for interrupts */
 
   /* MWAIT eax, ecx */
 
-  asm volatile(".byte 0x0f, 0x01, 0xc9" ::
-                "a"(0), "c"(CONFIG_ARCH_X86_64_IDLE_MWAIT_ECX));
+  __asm__ volatile(".byte 0x0f, 0x01, 0xc9" ::
+                   "a"(0), "c"(CONFIG_ARCH_X86_64_IDLE_MWAIT_ECX));
 #else
   __asm__ volatile("hlt");
 #endif

Reply via email to