summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/Include/Library/BaseArchLibSupport.h
blob: f5fc97c0ec9a2847d05f655fb76d7961012c102a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/** @file

  Base Architecture Libraries Support.

  Copyright 2024 Google LLC

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

#ifndef BASE_ARCH_LIB_SUPPORT_H
#define BASE_ARCH_LIB_SUPPORT_H

#include <Base.h>

/**
  Report the Physical Address size supported by Processor.

  For X86, returns the actual Physical Address size reported by CPUID.
  For AArch64, returns the actual Physical Address range reported by
    ID_ARCH64MMFR0_EL1.

  @return                         Physical Address Bits

**/
UINT8
ArchGetPhysicalAddressBits (
  VOID
  );

#endif