TianoCore EDK2 master
Loading...
Searching...
No Matches
AArch64Cap.c File Reference
#include <openssl/types.h>
#include "crypto/arm_arch.h"
#include <Library/BaseLib.h>

Go to the source code of this file.

Macros

#define GET_BITFIELD(value, shift, mask)    ((value >> shift) & mask)
 

Functions

void OPENSSL_cpuid_setup (void)
 
uint32_t OPENSSL_rdtsc (void)
 

Variables

UINT32 OPENSSL_armcap_P = 0
 

Detailed Description

Arm capabilities probing.

Copyright (c) 2023 - 2024, Arm Limited. All rights reserved.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AArch64Cap.c.

Macro Definition Documentation

◆ GET_BITFIELD

#define GET_BITFIELD (   value,
  shift,
  mask 
)     ((value >> shift) & mask)

Get bits from a value.

Shift the input value from 'shift' bits and apply 'mask'.

Parameters
valueThe value to get the bits from.
shiftIndex of the bits to read.
maskMask to apply to the value once shifted.
Returns
The desired bitfield from the value.

Definition at line 24 of file AArch64Cap.c.

Function Documentation

◆ OPENSSL_cpuid_setup()

void OPENSSL_cpuid_setup ( void  )

Definition at line 30 of file AArch64Cap.c.

◆ OPENSSL_rdtsc()

uint32_t OPENSSL_rdtsc ( void  )

Read system counter value.

Used to get some non-trusted entropy.

Returns
Lower bits of the physical counter.

Definition at line 102 of file AArch64Cap.c.

Variable Documentation

◆ OPENSSL_armcap_P

UINT32 OPENSSL_armcap_P = 0

Definition at line 27 of file AArch64Cap.c.