diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2020-12-01 16:14:31 +0100 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-12-02 16:48:25 +0000 |
commit | 9e7497e64fabc9a9f7ab1349c44e917d822dc4fe (patch) | |
tree | a248ea24e600602b6faa0aed0da913411c93394d /src/cpu | |
parent | 89bbe146cba86eb17ad5f03c44dd7d4915ae661f (diff) |
cpu/x86/smm/smm_stub: Fix GDT for x86_64
The previous code was crashing when jumping back to ramstage, now it
works. The GDT is now using the same values as the other ones in
coreboot.
Change-Id: Id00467d9d8a4138ddea73adbda4b39f12def583f
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48214
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/x86/smm/smm_stub.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/smm/smm_stub.S b/src/cpu/x86/smm/smm_stub.S index 11ea9a71a8..56e2504892 100644 --- a/src/cpu/x86/smm/smm_stub.S +++ b/src/cpu/x86/smm/smm_stub.S @@ -91,7 +91,7 @@ smm_relocate_gdt: /* gdt selector 0x18, flat code segment (64-bit) */ .word 0xffff, 0x0000 - .byte 0x00, 0x9b, 0xcf, 0x00 + .byte 0x00, 0x9b, 0xaf, 0x00 /* gdt selector 0x20 tss segment */ .word 0xffff, 0x0000 |