Enable the 0-31 temporary IDT entries prior to activate the LongMode. If not enable the temporary IDT table, DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED may not work correctly till CPU DXE programs the IDT table.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3966 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -49,6 +49,12 @@ typedef union {
|
||||
UINT64 Uint64;
|
||||
} IA32_GDT;
|
||||
|
||||
typedef struct {
|
||||
IA32_IDT_GATE_DESCRIPTOR Ia32IdtEntry;
|
||||
UINT32 Offset32To63;
|
||||
UINT32 Reserved;
|
||||
} X64_IDT_GATE_DESCRIPTOR;
|
||||
|
||||
//
|
||||
// Page-Map Level-4 Offset (PML4) and
|
||||
// Page-Directory-Pointer Offset (PDPE) entries 4K & 2MB
|
||||
@@ -104,4 +110,38 @@ CreateIdentityMappingPageTables (
|
||||
)
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Fix up the vector number in the vector code.
|
||||
|
||||
@param VectorBase Base address of the vector handler.
|
||||
|
||||
@param VectorNum Index of vector.
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
AsmVectorFixup (
|
||||
VOID *VectorBase,
|
||||
UINT8 VectorNum
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Get the information of vector template.
|
||||
|
||||
@param TemplateBase Base address of the template code.
|
||||
|
||||
@return Size of the Template code.
|
||||
|
||||
**/
|
||||
UINTN
|
||||
EFIAPI
|
||||
AsmGetVectorTemplatInfo (
|
||||
OUT VOID **TemplateBase
|
||||
);
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user