audk/MdeModulePkg/Core/Pei
jljusten 4ad9d87d7a * MdeModulePkg/Core/Pei/Dependency/Dependency.h
Decrease MAX_GRAMMAR_SIZE from 256 to 64.

In Dependency.c => PeimDispatchReadiness, a local variable 'EvalStack'
makes an array of EVAL_STACK_ENTRY structures to store a stack for
processing the dependency expression.

Due to alignment considerations, sizeof (EVAL_STACK_ENTRY) is 16 bytes 
on 64 bit architectures.  This means the size of the EvalStack local
variable in PeimDispatchReadiness grows to 4kb.

In the PEI phase, the stack area may be very small, and therefore 4kb is 
much to large.  Reducing MAX_GRAMMAR_SIZE to 64 will lower the size
of EvalStack to 1kb.

While reducing this to 1kb solves an issue seen with GCC on X64, it is
still a large usage of stack for the PEI phase, and future improvements
may still need to be made.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7514 6f19259b-4bc3-4df7-8a09-765794883524
2009-02-12 17:15:08 +00:00
..
BootMode Remove some useless EDK_RELEASE_VERSION, EFI_SPECIFICATION_VERSION ,and review VALID_ARCHITECTURES in inf files with DSC file. 2008-12-03 09:08:05 +00:00
Dependency * MdeModulePkg/Core/Pei/Dependency/Dependency.h 2009-02-12 17:15:08 +00:00
Dispatcher Fix a bug which print new stack size and old stack size wrongly. 2009-01-15 08:50:24 +00:00
FwVol check the usage of %d,%x,%ld,%lx and so on in debug print statement. 2008-12-18 08:48:36 +00:00
Hob Use #include "XXX.h" for module internal header files. 2008-10-31 04:35:02 +00:00
Image Use UEFI macros for PE/COFF image types 2009-02-05 19:34:49 +00:00
Memory Use #include "XXX.h" for module internal header files. 2008-10-31 04:35:02 +00:00
PeiMain ECC clanup: Update the doxygen comment. 2008-11-20 02:02:16 +00:00
Ppi Use #include "XXX.h" for module internal header files. 2008-10-31 04:35:02 +00:00
Reset Use #include "XXX.h" for module internal header files. 2008-10-31 04:35:02 +00:00
Security Global variables have been moved backward ahead of functions. 2008-12-03 08:52:39 +00:00
StatusCode Use #include "XXX.h" for module internal header files. 2008-10-31 04:35:02 +00:00
PeiMain.h Clean up FaultTolerantWriteDxe to remove the duplicated definition. 2009-02-06 09:03:12 +00:00
PeiMain.inf Remove some useless EDK_RELEASE_VERSION, EFI_SPECIFICATION_VERSION ,and review VALID_ARCHITECTURES in inf files with DSC file. 2008-12-03 09:08:05 +00:00