From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.496.1675897799423125516 for ; Wed, 08 Feb 2023 15:09:59 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=R5PWAvnz; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675897799; x=1707433799; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ww1XyHBfdghLlRbPM2f3NaUJVs/n23HYJP/D10/fVDk=; b=R5PWAvnzfxp7KLr2M7+ddSx68FPxBvx22nfp7NG7xyU6iqA9rpeMvW5W hnQTRxNh0Y7szt1kKZAOymH4PDoF6EPcx2hqQqc84a0yiir/gglf4QMJ8 W49Inyj9Jos5sjS5mRBG6qZZDgVJcYcQ90W1zycacFFzkboXWvg7tGlrk zWv//5jjKI51PmhvXe1dfxQ2OW79tpKEFEsSvuBJPdTxd/0Q0ZjUoJ2M+ 6McueBxB9giGJlnKuMxi9UaXB5kU+XSwmQTJBClka0pxAgX+fdrN/g+xo tkorpncBrVMP4D89VbVoYIXc/magFJrfBSLiLwofL4nRZX3K0GYv2QElV A==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="332078098" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="332078098" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 15:09:58 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="736087302" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="736087302" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.240.15]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 15:09:57 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Deric Cole , Andrew Fish , Ray Ni Subject: [Patch 1/1] EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay Date: Wed, 8 Feb 2023 15:09:48 -0800 Message-Id: <20230208230949.1429-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.37.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Deric Cole REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4339 Thunk->Sleep is expecting nanoseconds, no need to multiply by 100. Cc: Andrew Fish Cc: Ray Ni Signed-off-by: Deric Cole Reviewed-by: Michael D Kinney --- EmulatorPkg/Include/Protocol/EmuThunk.h | 2 +- EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EmulatorPkg/Include/Protocol/EmuThunk.h b/EmulatorPkg/Include/Protocol/EmuThunk.h index b720023ac9c7..c419d0a67790 100644 --- a/EmulatorPkg/Include/Protocol/EmuThunk.h +++ b/EmulatorPkg/Include/Protocol/EmuThunk.h @@ -130,7 +130,7 @@ UINT64 typedef VOID (EFIAPI *EMU_SLEEP)( - IN UINT64 Milliseconds + IN UINT64 Nanoseconds ); typedef diff --git a/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c b/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c index 8c4f20f42b47..5344719f98d8 100644 --- a/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c +++ b/EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c @@ -1,7 +1,7 @@ /** @file A non-functional instance of the Timer Library. - Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.
+ Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -65,7 +65,7 @@ NanoSecondDelay ( ); if (!EFI_ERROR (Status)) { Thunk = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk (); - Thunk->Sleep (NanoSeconds * 100); + Thunk->Sleep (NanoSeconds); return NanoSeconds; } -- 2.37.1.windows.1