From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by mx.groups.io with SMTP id smtpd.web09.3215.1653619430953251872 for ; Thu, 26 May 2022 19:43:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=h+Qoeu2A; spf=pass (domain: amazon.de, ip: 99.78.197.218, mailfrom: prvs=139655964=graf@amazon.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1653619431; x=1685155431; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uNNDCIhRB2bXIHcV/9Ub/0PuGJzAEaZAp8wW7y2v1/s=; b=h+Qoeu2AshK6YvcbHfM5gfrdzGbbM8iTWspcEpJHaZffYD4h4a0pbZgX 6e8r3CcGeCrKGrAr8f/pWy7wsdQMk1ZYrk+5u76B5AMDGi7sIasz1qWDg bBEfXA+FGVOnwbTX66kb4p3YGWJ1SVEXCyy1BgCZUEU5eKeSi42TregyG Y=; X-IronPort-AV: E=Sophos;i="5.91,254,1647302400"; d="scan'208";a="92454024" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1d-7a21ed79.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 27 May 2022 02:43:34 +0000 Received: from EX13MTAUWC001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-7a21ed79.us-east-1.amazon.com (Postfix) with ESMTPS id ED87F220EA5; Fri, 27 May 2022 02:43:32 +0000 (UTC) Received: from EX13D20UWC001.ant.amazon.com (10.43.162.244) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Fri, 27 May 2022 02:43:32 +0000 Received: from u79c5a0a55de558.ant.amazon.com (10.43.162.202) by EX13D20UWC001.ant.amazon.com (10.43.162.244) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Fri, 27 May 2022 02:43:30 +0000 From: "Alexander Graf" To: CC: Ard Biesheuvel , Leif Lindholm , Dandan Bi , Zhichao Gao , Liming Gao Subject: [PATCH 03/12] MdePkg: Add Fallback timer support for BaseDebugBootlog Date: Fri, 27 May 2022 04:43:08 +0200 Message-ID: <20220527024317.13476-4-graf@amazon.com> X-Mailer: git-send-email 2.28.0.394.ge197136389 In-Reply-To: <20220527024317.13476-1-graf@amazon.com> References: <20220527024317.13476-1-graf@amazon.com> MIME-Version: 1.0 X-Originating-IP: [10.43.162.202] X-ClientProxiedBy: EX13D35UWB003.ant.amazon.com (10.43.161.65) To EX13D20UWC001.ant.amazon.com (10.43.162.244) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The bootlog infrastructure records time stamps of every message. However, not all platforms have readily available time sources. Add a fallback path to return 0 for every time stamp. Signed-off-by: Alexander Graf --- .../BaseDebugBootlog/DebugBootlogNotime.c | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 MdePkg/Library/BaseDebugBootlog/DebugBootlogNotime.c diff --git a/MdePkg/Library/BaseDebugBootlog/DebugBootlogNotime.c b/MdePkg/Library/BaseDebugBootlog/DebugBootlogNotime.c new file mode 100644 index 0000000000..e88c949cf2 --- /dev/null +++ b/MdePkg/Library/BaseDebugBootlog/DebugBootlogNotime.c @@ -0,0 +1,31 @@ +/** @file + Base Debug library instance for a RAM based boot log + It provides functions to store debug messages in RAM and make them available as + Bootlog Configuration Table. + + Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
+ Copyright (c) 2022, Amazon Development Center Germany GmbH.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include "BaseDebugBootlog.h" + +UINT64 +EFIAPI +BaseDebugLibBootlogTicksPerSecond ( + VOID + ) +{ + return 0; +} + +UINT64 +EFIAPI +BaseDebugLibBootlogTicks ( + VOID + ) +{ + return 0; +} + -- 2.28.0.394.ge197136389 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879