From 740cf98f0f962e5d78f5bced1b2f4a9f57f88f7f Mon Sep 17 00:00:00 2001 From: Shuo Liu Date: Tue, 21 May 2024 01:13:35 +0800 Subject: util/cbfstool: Fix linux_trampoline.c generation linux_trampoline.c generation is broken with latest crossgcc-i386 toolchain. Fix the issue to enable the building. ../cbfstool/linux_trampoline.S: Assembler messages: ../cbfstool/linux_trampoline.S:100: Error: no instruction mnemonic suffix given and no register operands; can't size instruction : recipe for target '../cbfstool/linux_trampoline.o' failed TEST=Build and boot on intel/archercity CRB cd util/cbfstool/ rm linux_trampoline.c make linux_trampoline.c Change-Id: I7faca296f946bb4e9fd510661357925e5dcf9a6b Signed-off-by: Shuo Liu Reviewed-on: https://review.coreboot.org/c/coreboot/+/82704 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- util/cbfstool/linux_trampoline.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/cbfstool') diff --git a/util/cbfstool/linux_trampoline.S b/util/cbfstool/linux_trampoline.S index 6a62ff0ed5..4f61209257 100644 --- a/util/cbfstool/linux_trampoline.S +++ b/util/cbfstool/linux_trampoline.S @@ -97,7 +97,7 @@ je .endScan cmp $12, 16(%edi) /* type */ jng .next_e820_entry /* Fixup the type to 2, reserved memory */ -mov $2, 16(%edi) +movl $2, 16(%edi) .next_e820_entry: dec %eax add $20, %edi -- cgit v1.2.3