From: Marvin H?user <Marvin.Haeuser@outlook.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: [MdeModulePkg/PeiCore] How is Data being NULL on entry ensured?
Date: Sat, 13 Aug 2016 02:01:19 +0000 [thread overview]
Message-ID: <VI1PR06MB1792C370D7C5725632BCE87580100@VI1PR06MB1792.eurprd06.prod.outlook.com> (raw)
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.
next reply other threads:[~2016-08-13 2:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-13 2:01 Marvin H?user [this message]
2016-08-13 2:47 ` [MdeModulePkg/PeiCore] How is Data being NULL on entry ensured? Andrew Fish
2016-08-13 2:53 ` Marvin H?user
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=VI1PR06MB1792C370D7C5725632BCE87580100@VI1PR06MB1792.eurprd06.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox