summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/RuntimeDxe/Runtime.c
diff options
context:
space:
mode:
authorSuqiang Ren <suqiangx.ren@intel.com>2024-02-02 00:20:50 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-02-09 22:16:32 +0000
commitef4d35d4ed45c41dc1e56c313bf6ea0f43b7c241 (patch)
treea9fb61b6a0dc9da90a4adb4d02e53ee4fea87b21 /MdeModulePkg/Core/RuntimeDxe/Runtime.c
parente4ceae5c18a61e73584031195373ab725f518957 (diff)
downloadedk2-ef4d35d4ed45c41dc1e56c313bf6ea0f43b7c241.tar.gz
edk2-ef4d35d4ed45c41dc1e56c313bf6ea0f43b7c241.tar.bz2
edk2-ef4d35d4ed45c41dc1e56c313bf6ea0f43b7c241.zip
MdeModulePkg: Align RuntimeDxe function headers with UEFI return values
RuntimeDxe is used to back the runtime services time functions, so align the description of the function return values with the defined values for these services as described in UEFI Spec 2.10. REF: UEFI spec 2.10 section 8 Services ? Runtime Services Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Suqiang Ren <suqiangx.ren@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/Core/RuntimeDxe/Runtime.c')
-rw-r--r--MdeModulePkg/Core/RuntimeDxe/Runtime.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/RuntimeDxe/Runtime.c b/MdeModulePkg/Core/RuntimeDxe/Runtime.c
index de8f2bfce0..c66ed71e35 100644
--- a/MdeModulePkg/Core/RuntimeDxe/Runtime.c
+++ b/MdeModulePkg/Core/RuntimeDxe/Runtime.c
@@ -117,7 +117,12 @@ RuntimeDriverCalculateEfiHdrCrc (
@retval EFI_SUCCESS The pointer pointed to by Address was modified.
@retval EFI_NOT_FOUND The pointer pointed to by Address was not found to be part
of the current memory map. This is normally fatal.
- @retval EFI_INVALID_PARAMETER One of the parameters has an invalid value.
+ @retval EFI_INVALID_PARAMETER 1) Address is NULL.
+ 2) *Address is NULL and DebugDisposition does
+ not have the EFI_OPTIONAL_PTR bit set.
+ @retval EFI_UNSUPPORTED This call is not supported by this platform at the time the call is made.
+ The platform should describe this runtime service as unsupported at runtime
+ via an EFI_RT_PROPERTIES_TABLE configuration table.
**/
EFI_STATUS
@@ -227,6 +232,9 @@ RuntimeDriverConvertInternalPointer (
map that requires a mapping.
@retval EFI_NOT_FOUND A virtual address was supplied for an address that is not found
in the memory map.
+ @retval EFI_UNSUPPORTED This call is not supported by this platform at the time the call is made.
+ The platform should describe this runtime service as unsupported at runtime
+ via an EFI_RT_PROPERTIES_TABLE configuration table.
**/
EFI_STATUS