summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c')
-rw-r--r--CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
index 2dfc6fe6c5..30c93a45ea 100644
--- a/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
+++ b/CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c
@@ -9,6 +9,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
#include <Uefi.h>
#include <CrtLibSupport.h>
+#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
//
@@ -195,3 +196,12 @@ gmtime (
return GmTime;
}
+
+unsigned int
+sleep (
+ unsigned int seconds
+ )
+{
+ gBS->Stall (seconds * 1000 * 1000);
+ return 0;
+}