Files
acrn-hypervisor/hypervisor/include/arch/riscv/asm/pgtable.h
Jian Jun Chen 033bb2e347 [FIXME] hv: riscv: add build dependencies temporarily
Add build dependencies temporarily for the followings:
- hva2hpa: include/arch/riscv/asm/pgtable.h

Tracked-On: #8791
Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2025-09-23 11:30:38 +08:00

20 lines
481 B
C

/*
* Copyright (C) 2018-2024 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef PGTABLE_H
#define PGTABLE_H
/* FIXME: Temporary RISC-V build workaround
* This file provides hva2hpa function stubs to satisfy existing
* code dependencies. Remove this file and migrate to the common
* pgtable.h implementation once the MMU module is properly
* integrated.
*/
static inline uint64_t hva2hpa(const void *x)
{
return (uint64_t)x;
}
#endif /* PGTABLE_H */