mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 02:00:27 +00:00
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>
20 lines
481 B
C
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 */ |