From 381382288617a0bef7c628031f70e564217826fb Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Fri, 21 Aug 2020 16:38:48 +0200 Subject: arch/x86/walkcbfs.S: Mark code as x86_32 The code can only be compiled as x86_32. Mark it as such to fix errors in the x86_64 assembler. The caller has to make sure to call this code in protected mode only. Tested on HP Z220: * Still boots on x86_32. Change-Id: I4c0221fb3886b586c22fe05e36109fcdc20b7eed Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/44674 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/arch/x86/walkcbfs.S | 1 + 1 file changed, 1 insertion(+) (limited to 'src/arch/x86') diff --git a/src/arch/x86/walkcbfs.S b/src/arch/x86/walkcbfs.S index 087c59b8e7..b8d4fb985a 100644 --- a/src/arch/x86/walkcbfs.S +++ b/src/arch/x86/walkcbfs.S @@ -20,6 +20,7 @@ #define CBFS_FILE_STRUCTSIZE (CBFS_FILE_OFFSET + 4) +.code32 .section .text .global walkcbfs_asm -- cgit v1.2.3