From fa583c906b0452997951e22e68c0f14d81afb843 Mon Sep 17 00:00:00 2001 From: Chao Li Date: Tue, 18 Jun 2024 10:39:55 +0800 Subject: [PATCH] app/main: Adjust the inline ASM to i386 only Make the inline ASM code in function run_at() x86 arch only. Singed-off-by: Chao Li --- app/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.c b/app/main.c index 94b2356..7a2634f 100644 --- a/app/main.c +++ b/app/main.c @@ -166,7 +166,7 @@ static void run_at(uintptr_t addr, int my_cpu) } LONG_BARRIER; -#ifndef __x86_64__ +#ifdef __i386__ // The 32-bit startup code needs to know where it is located. __asm__ __volatile__("movl %0, %%edi" : : "r" (new_start_addr)); #endif