public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [MdeModulePkg/PeiCore] How is Data being NULL on entry ensured?
@ 2016-08-13  2:01 Marvin H?user
  2016-08-13  2:47 ` Andrew Fish
  0 siblings, 1 reply; 3+ messages in thread
From: Marvin H?user @ 2016-08-13  2:01 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Dear list subscribers,

I have just been looking around the PeiCore code and wondered, how it is ensured, that the third ("Data") argument of the entry point is NULL on the first run.
EFI_PEI_CORE_ENTRY_POINT only has two arguments and hence most SEC implementations, including MdeModulePkg/SecCore, are going to pass only the first two arguments to the entry point.
I'm aware that the code works and I have never seen an occasion of it failing or seeming to fail because of this design, though I wondered, how is it assured, that the third argument, which is not part of the first call, is being NULL on entry and not some leftover on the temporary stack/in the argument 3 register?

Thank you for your time!

Regards,
Marvin.


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

end of thread, other threads:[~2016-08-13  2:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13  2:01 [MdeModulePkg/PeiCore] How is Data being NULL on entry ensured? Marvin H?user
2016-08-13  2:47 ` Andrew Fish
2016-08-13  2:53   ` Marvin H?user

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