OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
MeasureTicks.c File Reference
#include "../OcCpuInternals.h"
#include <Library/BaseLib.h>
#include <Library/IoLib.h>

Go to the source code of this file.

Functions

VOID EFIAPI AsmMeasureTicks (IN UINT32 AcpiTicksDuration, IN UINT16 TimerAddr, OUT UINT32 *AcpiTicksDelta, OUT UINT64 *TscTicksDelta)
 

Detailed Description

Copyright (C) 2020, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file MeasureTicks.c.

Function Documentation

◆ AsmMeasureTicks()

VOID EFIAPI AsmMeasureTicks ( IN UINT32 AcpiTicksDuration,
IN UINT16 TimerAddr,
OUT UINT32 * AcpiTicksDelta,
OUT UINT64 * TscTicksDelta )

Measures TSC and ACPI ticks over specified ACPI tick amount.

Parameters
[in]AcpiTicksDurationNumber of ACPI ticks for calculation.
[in]TimerAddrACPI timer address.
[out]AcpiTicksDeltaReported ACPI ticks delta.
[out]TscTicksDeltaReported TSC ticks delta.

Definition at line 22 of file MeasureTicks.c.