[edk2-devel][PATCH v3 1/8] IntelFsp2Pkg: X64 compatible changes to support PEI in 64bit

Ni, Ray ray.ni at intel.com
Thu Apr 7 00:08:42 UTC 2022


> >> -; UINT32
> >> +; UINTN
> >> ; EFIAPI
> >> -; AsmReadEsp (
> >> +; AsmReadStackPointer (
> >> ;   VOID
> >> ;   );
> >> ;------------------------------------------------------------------------------
> >> -global ASM_PFX(AsmReadEsp)
> >> -ASM_PFX(AsmReadEsp):
> >> +global ASM_PFX(AsmReadStackPointer)
> >> +ASM_PFX(AsmReadStackPointer):
> >>     mov     eax, esp
> >>     ret
> >>
> >
> > I guess it's possible that bootloader sets up the stack above 4G.
> > If that's the case, above code doesn't work.
> >
> >
> 
> Is there an issue with the SecSwitchStack too?

I didn't read the whole patch😊.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#88485): https://edk2.groups.io/g/devel/message/88485
Mute This Topic: https://groups.io/mt/90294483/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list