summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/CommonDataClass
diff options
context:
space:
mode:
authorRay Ni <ray.ni@intel.com>2022-05-18 13:44:24 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-06-10 07:54:48 +0000
commit21a9b605b846902833f4818e1b3b37b12a245b8c (patch)
tree991e93bb9cef1aafdefd860a4a0ba0d2055e0ea7 /BaseTools/Source/Python/CommonDataClass
parentff36b2550f94dc5fac838cf298ae5a23cfddf204 (diff)
downloadedk2-21a9b605b846902833f4818e1b3b37b12a245b8c.tar.gz
edk2-21a9b605b846902833f4818e1b3b37b12a245b8c.tar.bz2
edk2-21a9b605b846902833f4818e1b3b37b12a245b8c.zip
CpuException: Avoid allocating code pages for DXE instance
Today the DXE instance allocates code page and then copies the IDT vectors to the allocated code page. Then it fixes up the vector number in the IDT vector. But if we update the NASM file to generate 256 IDT vectors, there is no need to do the copy and fix-up. A side effect is 4096 bytes (HOOKAFTER_STUB_SIZE * 256) is used for 256 IDT vectors while 32 IDT vectors only require 512 bytes without this change, in following library instances: 1. 32bit SecPeiCpuExceptionHandlerLib and PeiCpuExceptionHandlerLib 2. 64bit PeiCpuExceptionHandlerLib But considering the code logic simplification, 3.5K extra space is not a big deal. If 3.5K is too much, we can enhance the code further to generate 32 vectors for above mentioned library instances. Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Acked-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass')
0 files changed, 0 insertions, 0 deletions