Add missing function comments

signed-off-by: jiewen.yao@intel.com
reviewed-by: eric.dong@intel.com

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13639 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jyao1 2012-08-16 03:39:10 +00:00
parent b8a605d0a9
commit 54e27ada3e
1 changed files with 24 additions and 0 deletions

View File

@ -43,12 +43,22 @@ BOOLEAN mPage1GSupport;
VOID *mOriginalHandler;
UINTN mS3NvsPageTableAddress;
/**
Page fault handler.
**/
VOID
EFIAPI
PageFaultHandlerHook (
VOID
);
/**
Hook IDT with our page fault handler so that the on-demand paging works on page fault.
@param IdtEntry a pointer to IDT entry
**/
VOID
HookPageFaultHandler (
IN INTERRUPT_GATE_DESCRIPTOR *IdtEntry
@ -135,6 +145,13 @@ SetIdtEntry (
AsmWriteIdtr (IdtDescriptor);
}
/**
Get new page address.
@param PageNum new page number needed
@return new page address
**/
UINTN
GetNewPage (
IN UINTN PageNum
@ -147,6 +164,13 @@ GetNewPage (
return NewPage;
}
/**
The page fault handler that on-demand read >4G memory/MMIO.
@retval TRUE The page fault is correctly handled.
@retval FALSE The page fault is not handled and is passed through to original handler.
**/
BOOLEAN
EFIAPI
PageFaultHandler (