diff options
author | Samer El-Haj-Mahmoud elhaj <Samer El-Haj-Mahmoud elhaj@hp.com> | 2014-09-22 05:54:41 +0000 |
---|---|---|
committer | jyao1 <jyao1@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-09-22 05:54:41 +0000 |
commit | b15aae9f2e33b8a24d2c1abd86422763642bc9c6 (patch) | |
tree | 3576330d3cc020e62fb0debba93d35a73e977d18 /BaseTools | |
parent | c609f3d7f9eddd9d1bfe0d0e1a41f1deda5593bc (diff) | |
download | edk2-b15aae9f2e33b8a24d2c1abd86422763642bc9c6.tar.gz edk2-b15aae9f2e33b8a24d2c1abd86422763642bc9c6.tar.bz2 edk2-b15aae9f2e33b8a24d2c1abd86422763642bc9c6.zip |
Fix X64 native function call prolog. Prepare space for at least 4 arguments,
even if the native function's arguments are less than 4.
From MSDN x64 Software Conventions, Overview of x64 Calling Conventions:
“The caller is responsible for allocating space for parameters to the
callee, and must always allocate sufficient space for the 4 register
parameters, even if the callee doesn’t have that many parameters.
This aids in the simplicity of supporting C unprototyped functions,
and vararg C/C++ functions.”
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud elhaj@hp.com
Reviewed by: Jiewen Yao <Jiewen.Yao@intel.com>
Reviewed by: Feng Tian <Feng.Tian@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16152 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools')
0 files changed, 0 insertions, 0 deletions