Is the 16bit code segment descriptor needed in early DXE before CpuDxe (DXE MP)?
> -----Original Message----- > From: Tom Lendacky <[email protected]> > Sent: Thursday, November 21, 2019 4:07 AM > To: [email protected] > Cc: Justen, Jordan L <[email protected]>; Laszlo Ersek > <[email protected]>; Ard Biesheuvel > <[email protected]>; Kinney, Michael D <[email protected]>; > Gao, Liming <[email protected]>; Dong, > Eric <[email protected]>; Ni, Ray <[email protected]>; Brijesh Singh > <[email protected]>; Wang, Jian J > <[email protected]>; Wu, Hao A <[email protected]>; Bi, Dandan > <[email protected]> > Subject: [RFC PATCH v3 33/43] MdeModulePkg: Reserve a 16-bit protected mode > code segment descriptor > > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198 > > SEV-ES guest AP boot support needs to transition from 64-bit long mode > into 16-bit real mode. This will require a 16-bit code segment descriptor. > Reserve one of the spare segment descriptors (0x28) for this purpose. > > Cc: Jian J Wang <[email protected]> > Cc: Hao A Wu <[email protected]> > Cc: Dandan Bi <[email protected]> > Cc: Liming Gao <[email protected]> > Signed-off-by: Tom Lendacky <[email protected]> > --- > MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > index 284b34818ca7..c9cf2e36214f 100644 > --- a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > +++ b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c > @@ -33,7 +33,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED IA32_GDT gGdtEntries[] = { > /* 0x10 */ {{0xffff, 0, 0, 0xf, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, > //linear code segment descriptor > /* 0x18 */ {{0xffff, 0, 0, 0x3, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, > //system data segment descriptor > /* 0x20 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, > //system code segment descriptor > -/* 0x28 */ {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, > //spare segment descriptor > +/* 0x28 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 0, 0, 1, 0}}, > //system code16 segment descriptor > /* 0x30 */ {{0xffff, 0, 0, 0x2, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}}, > //system data segment descriptor > /* 0x38 */ {{0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 1, 0, 1, 0}}, > //system code segment descriptor > /* 0x40 */ {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, > //spare segment descriptor > -- > 2.17.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52151): https://edk2.groups.io/g/devel/message/52151 Mute This Topic: https://groups.io/mt/60973140/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
