This patch adds bootlog time stamp infrastructure for ARM. It leverages the architected timer which is present on all supported platforms.
Signed-off-by: Alexander Graf <g...@amazon.com> --- .../BaseDebugBootlog/DebugBootlogArm.c | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 MdePkg/Library/BaseDebugBootlog/DebugBootlogArm.c diff --git a/MdePkg/Library/BaseDebugBootlog/DebugBootlogArm.c b/MdePkg/Library/BaseDebugBootlog/DebugBootlogArm.c new file mode 100644 index 0000000000..5a2c346844 --- /dev/null +++ b/MdePkg/Library/BaseDebugBootlog/DebugBootlogArm.c @@ -0,0 +1,32 @@ +/** @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.<BR> + Copyright (c) 2022, Amazon Development Center Germany GmbH.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include "BaseDebugBootlog.h" +#include <Library/ArmGenericTimerCounterLib.h> + +UINT64 +EFIAPI +BaseDebugLibBootlogTicksPerSecond ( + VOID + ) +{ + return ArmGenericTimerGetTimerFreq(); +} + +UINT64 +EFIAPI +BaseDebugLibBootlogTicks ( + VOID + ) +{ + return ArmGenericTimerGetSystemCount(); +} + -- 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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90074): https://edk2.groups.io/g/devel/message/90074 Mute This Topic: https://groups.io/mt/91368915/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-