blob: 25bed16e5891243e2e38dd58c681029152ac47ee [file] [log] [blame]
Ronak Kanabar1ae366f2023-06-07 01:21:56 +05301/** @file
2 RISC-V package definitions.
3
4 Copyright (c) 2016 - 2022, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef RISCV_IMPL_H_
11#define RISCV_IMPL_H_
12
13#include <Register/RiscV64/RiscVEncoding.h>
14
15#define _ASM_FUNC(Name, Section) \
16 .global Name ; \
17 .section #Section, "ax" ; \
18 .type Name, %function ; \
19 .p2align 2 ; \
20 Name:
21
22#define ASM_FUNC(Name) _ASM_FUNC(ASM_PFX(Name), .text. ## Name)
23#define RISCV_TIMER_COMPARE_BITS 32
24
25#endif