public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* EmulatorPkg Unix Host Segmentation fault.
@ 2018-11-18  4:51 Liu Yu
  2018-11-18  9:27 ` Jordan Justen
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Liu Yu @ 2018-11-18  4:51 UTC (permalink / raw)
  To: "afish@apple.com;  jordan.l.justen@intel.com ; ruiyu.ni"@intel.com
  Cc: edk2-devel@lists.01.org

OS: Ubuntu

Toolchain:GCC48

Issue Description :

  Program received signal SIGSEGV, Segmentation fault.
   at /home/pedroa/workspace/orign/edkcrb/MdeModulePkg/Core/Pei/Memory/MemoryServices.c:129
129      Private->MemoryPages.Size = (UINTN) (Private->HobList.HandoffInformationTable->EfiMemoryTop -


if the GCC optimization option is used not -O0 so the "rbp" register will be used as "general register"

in the SecTemporaryRamSupport function as below, this function will modify the rbp (as general register not stack base address pointer)value that result in program crash.

ASM_PFX(SecTemporaryRamSupport):
  // Adjust callers %rbp to account for stack move
  subq    %rdx, %rbp     // Calc offset of %rbp in Temp Memory
  addq    %r8,  %rbp     // add in permanent base to offset


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-02-18  2:45 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-18  4:51 EmulatorPkg Unix Host Segmentation fault Liu Yu
2018-11-18  9:27 ` Jordan Justen
2018-11-18 12:07   ` Liu Yu
2018-11-18 22:37     ` Andrew Fish
2018-11-19  1:13       ` Jordan Justen
2018-11-19 19:16         ` Jordan Justen
2018-11-19 21:22           ` Andrew Fish
2018-11-19 22:12             ` Laszlo Ersek
2018-11-19 23:39               ` Andrew Fish
2018-11-19 22:29             ` Jordan Justen
2018-11-20  0:54               ` Andrew Fish
2018-11-20  8:57               ` Laszlo Ersek
2019-02-16  7:29 ` Ni, Ray
2019-02-16  7:40 ` Ni, Ray
2019-02-16 20:23   ` Andrew Fish
2019-02-16  7:43 ` Ni, Ray
2019-02-16  8:05   ` Ni, Ray
2019-02-16  9:11     ` Jordan Justen
2019-02-18  2:25       ` Ni, Ray
2019-02-18  2:45         ` Jordan Justen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox