On Wed, 2021-04-07 at 00:21 +0000, Xu, Min M wrote: > Hi, Laszlo > > For Intel TDX supported guest, all processors start in 32-bit > protected > mode, while for Non-Td guest, it starts in 16-bit real mode. To make > the > ResetVector work on both Td-guest and Non-Td guest, ResetVector are > updated as below: > ------------------------------------------------------------------ > ALIGN 16 > resetVector: > ; > ; Reset Vector > ; > ; This is where the processor will begin execution > ; > nop > nop > smsw ax > test al, 1 > jnz EarlyBspPmEntry > jmp EarlyBspInitReal16
Well, then use the rel8 jump like the compiler would in this situation: smsw ax test al, 1 jz 1f jmp EarlyBspPmEntry 1: jmp EarlyBspInitReal16 So now both entries can be 32k away. James -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73750): https://edk2.groups.io/g/devel/message/73750 Mute This Topic: https://groups.io/mt/81584577/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-