diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2020-11-30 13:35:43 +0100 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-12-01 16:00:40 +0000 |
commit | 429c77a5e3ffab99c7a637d9ed0793df9f0319e3 (patch) | |
tree | 6336e97aa03de2a26594c77c9f18417812f74ab6 | |
parent | 983ea18f179bb71b837907c81a5d394ad274ea84 (diff) | |
download | coreboot-429c77a5e3ffab99c7a637d9ed0793df9f0319e3.tar.xz |
cpu/x86/early_reset: Mark assemblycode as 32bit
Allows to compile the file under x86_64 without errors.
The caller has to make sure to call the functions while in protected
mode, which is usually the case in early bootblock.
Change-Id: Ic6601e2af57e0acc6474fc3a4297e3d2281decd6
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48165
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/cpu/x86/early_reset.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/x86/early_reset.S b/src/cpu/x86/early_reset.S index 6ce9d52a6d..07e63f42de 100644 --- a/src/cpu/x86/early_reset.S +++ b/src/cpu/x86/early_reset.S @@ -7,6 +7,7 @@ #include <cpu/x86/mtrr.h> +.code32 .section .text .global check_mtrr |