/* Event callback function to invoke status code handler in list. */
VOID EFIAPI RscHandlerNotification(IN EFI_EVENT Event, IN VOID *Context)
/* Event callback function to invoke status code handler in list. */
VOID EFIAPI RscHandlerNotification(IN EFI_EVENT Event, IN VOID *Context)
{
  RSC_HANDLER_CALLBACK_ENTRY  *CallbackEntry;
  EFI_PHYSICAL_ADDRESS        Address;
  RSC_DATA_ENTRY              *RscData;
  CallbackEntry = (RSC_HANDLER_CALLBACK_ENTRY *)Context;
  Address = CallbackEntry->StatusCodeDataBuffer;
  while (Address < CallbackEntry->EndPointer) {
    RscData = (RSC_DATA_ENTRY *)(UINTN)Address;
    CallbackEntry->RscHandlerCallback (
                     RscData->Type,
                     RscData->Value,
                     RscData->Instance,
                     &RscData->CallerId,
                     &RscData->Data
                     );
    Address += (OFFSET_OF (RSC_DATA_ENTRY, Data) + RscData->Data.HeaderSize + RscData->Data.Size);
    Address  = ALIGN_VARIABLE (Address);
  }
  CallbackEntry->EndPointer = CallbackEntry->StatusCodeDataBuffer;
}