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 <lichao@loongson.cn>
This commit is contained in:
Chao Li 2024-06-18 10:39:55 +08:00 committed by Lionel Debroux
parent 28689102a4
commit fa583c906b

View File

@ -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