/* This function is the common entry point of MM Status Code Router. It produces MM Report Status Code Handler and Status Code protocol. */
EFI_STATUS GenericStatusCodeCommonEntry(VOID)
/* This function is the common entry point of MM Status Code Router. It produces MM Report Status Code Handler and Status Code protocol. */
EFI_STATUS GenericStatusCodeCommonEntry(VOID)
{
  EFI_STATUS  Status;
  EFI_HANDLE  Handle;
  Handle = NULL;
  Status = gMmst->MmInstallProtocolInterface (
                    &Handle,
                    &gEfiMmRscHandlerProtocolGuid,
                    EFI_NATIVE_INTERFACE,
                    &mSmmRscHandlerProtocol
                    );
  ASSERT_EFI_ERROR (Status);
  Status = gMmst->MmInstallProtocolInterface (
                    &Handle,
                    &gEfiMmStatusCodeProtocolGuid,
                    EFI_NATIVE_INTERFACE,
                    &mSmmStatusCodeProtocol
                    );
  ASSERT_EFI_ERROR (Status);
  return EFI_SUCCESS;
}