/* Undoes HookEntry. This code executes in boot services context. */
VOID UnhookEntry(IN EFI_EXCEPTION_TYPE ExceptionType)
/* Undoes HookEntry. This code executes in boot services context. */
VOID UnhookEntry(IN EFI_EXCEPTION_TYPE ExceptionType)
{
  BOOLEAN  OldIntFlagState;
  OldIntFlagState = SaveAndDisableInterrupts ();
  WriteIdtGateDescriptor (ExceptionType, &(IdtEntryTable[ExceptionType].OrigDesc));
  SetInterruptState (OldIntFlagState);
  return;
}