mirror_edk2/MdeModulePkg/Include/Library
Ray Ni 2a09527ebc CpuException: Remove InitializeCpuInterruptHandlers
InitializeCpuExceptionHandlers() expects caller allocates IDT while
InitializeCpuInterruptHandlers() allocates 256 IDT entries itself.

InitializeCpuExceptionHandlers() fills max 32 IDT entries allocated
by caller. If caller allocates 10 entries, the API just fills 10 IDT
entries.

The inconsistency between the two APIs makes code hard to
unerstand and hard to share.

Because there is only one caller (CpuDxe) for
InitializeCpuInterruptHandler(), this patch updates CpuDxe driver
to allocates 256 IDT entries then call
InitializeCpuExceptionHandlers().

This is also a backward compatible change.

With this change, InitializeCpuInterruptHandlers() is removed
completely.

And InitializeCpuExceptionHandlers() fills max 32 entries for PEI
and SMM instance, max 256 entries for DXE instance.
Such behavior matches to the original one.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
2022-06-10 07:54:48 +00:00
..
AuthVariableLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BmpSupportLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
BootLogoLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CapsuleLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuExceptionHandlerLib.h CpuException: Remove InitializeCpuInterruptHandlers 2022-06-10 07:54:48 +00:00
CustomizedDisplayLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DebugAgentLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
DisplayUpdateProgressLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
FileExplorerLib.h MdeModulePkg: Change OPTIONAL keyword usage style 2021-12-07 17:24:28 +00:00
FmpAuthenticationLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FrameBufferBltLib.h MdeModulePkg: Change OPTIONAL keyword usage style 2021-12-07 17:24:28 +00:00
HiiLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IpmiLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
LockBoxLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryProfileLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
NonDiscoverableDeviceRegistrationLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
OemHookStatusCodeLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PciHostBridgeLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformBootManagerLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformHookLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PlatformVarCleanupLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetSystemLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ResetUtilityLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SecurityManagementLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SmmCorePlatformHookLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SortLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TpmMeasurementLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiBootManagerLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UefiHiiServicesLib.h MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
VarCheckLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariableFlashInfoLib.h MdeModulePkg/VariableFlashInfoLib: Add initial library 2022-05-19 06:11:20 +00:00
VariablePolicyHelperLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VariablePolicyLib.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00