diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2020-08-21 16:38:48 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-08-24 07:05:33 +0000 |
commit | 381382288617a0bef7c628031f70e564217826fb (patch) | |
tree | 0290c9e685c68ede7fcc9ff5ca2fe4b7734a7e63 /src | |
parent | 18ad7fa51f5c6560c9d7a9bcf68e9e277e37cd49 (diff) |
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 <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44674
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/walkcbfs.S | 1 |
1 files changed, 1 insertions, 0 deletions
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 |