Skip to content

Commit

Permalink
MdePkg: Remove EfiResetSystem() from UefiRuntimeLib
Browse files Browse the repository at this point in the history
Removes the EfiResetSystem() API from the library. ResetSystemLib
can be used for reset.

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
Bret Barkelew authored and makubacki committed Jun 20, 2024
1 parent 2e176fc commit a248cf8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
19 changes: 11 additions & 8 deletions MdePkg/Include/Library/UefiRuntimeLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ EfiGetNextHighMonotonicCount (
OUT UINT32 *HighCount
);

// MU_CHANGE [BEGIN] - Move EfiResetSystem out of UefiRuntimeLib and into ResetSystemLib.

/**
This service is a wrapper for the UEFI Runtime Service ResetSystem().
Expand Down Expand Up @@ -351,14 +353,15 @@ EfiGetNextHighMonotonicCount (
address. For a ResetType of EfiResetPlatformSpecific the data buffer also starts with a Null-terminated
string that is followed by an EFI_GUID that describes the specific type of reset to perform.
**/
VOID
EFIAPI
EfiResetSystem (
IN EFI_RESET_TYPE ResetType,
IN EFI_STATUS ResetStatus,
IN UINTN DataSize,
IN VOID *ResetData OPTIONAL
);
// VOID
// EFIAPI
// EfiResetSystem (
// IN EFI_RESET_TYPE ResetType,
// IN EFI_STATUS ResetStatus,
// IN UINTN DataSize,
// IN VOID *ResetData OPTIONAL
// );
// MU_CHANGE [END] - Move EfiResetSystem out of UefiRuntimeLib and into ResetSystemLib.

/**
This service is a wrapper for the UEFI Runtime Service ConvertPointer().
Expand Down
25 changes: 14 additions & 11 deletions MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ EfiGoneVirtual (
return mEfiGoneVirtual;
}

// MU_CHANGE [BEGIN] - Move EfiResetSystem out of UefiRuntimeLib and into ResetSystemLib.

/**
This service is a wrapper for the UEFI Runtime Service ResetSystem().
Expand Down Expand Up @@ -221,17 +223,18 @@ EfiGoneVirtual (
that is followed by a physical VOID * to an EFI_CAPSULE_HEADER.
**/
VOID
EFIAPI
EfiResetSystem (
IN EFI_RESET_TYPE ResetType,
IN EFI_STATUS ResetStatus,
IN UINTN DataSize,
IN VOID *ResetData OPTIONAL
)
{
mInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
}
// VOID
// EFIAPI
// EfiResetSystem (
// IN EFI_RESET_TYPE ResetType,
// IN EFI_STATUS ResetStatus,
// IN UINTN DataSize,
// IN VOID *ResetData OPTIONAL
// )
// {
// mInternalRT->ResetSystem (ResetType, ResetStatus, DataSize, ResetData);
// }
// MU_CHANGE [END] - Move EfiResetSystem out of UefiRuntimeLib and into ResetSystemLib.

/**
This service is a wrapper for the UEFI Runtime Service GetTime().
Expand Down

0 comments on commit a248cf8

Please sign in to comment.