Files
acrn-hypervisor/hypervisor/include/arch/riscv/asm/lib/bits.h
hangliu1 0cd5567140 hv:multiarch:riscv: add dummy function
add dummy function bitmap_set_lock, need to be replaced
with real implementation.

Tracked-On: #8801
Signed-off-by: hangliu1 <hang1.liu@intel.com>
Reviewed-by: Wang, Yu1 <yu1.wang@intel.com>
Reviewed-by: Liu, Yifan1 <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2025-09-19 15:04:55 +08:00

56 lines
1.2 KiB
C

/*
* Copyright (C) 2025 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef RISCV_BITS_H
#define RISCV_BITS_H
#include <types.h>
uint16_t ffs64(__unused uint64_t value)
{
/**
* Dummy implementation.
* Official implementations are to be provided in the library patchset (by Haoyu).
*/
return 0U;
}
bool bitmap_test(__unused uint16_t nr, __unused const volatile uint64_t *addr)
{
/**
* Dummy implementation.
* Official implementations are to be provided in the library patchset (by Haoyu).
*/
return true;
}
void bitmap_set_lock(__unused uint16_t nr_arg, __unused volatile uint64_t *addr)
{
/**
* Dummy implementation.
* Official implementations are to be provided in the library patchset (by Haoyu).
*/
}
void bitmap_clear_lock(__unused uint16_t nr_arg, __unused volatile uint64_t *addr)
{
/**
* Dummy implementation.
* Official implementations are to be provided in the library patchset (by Haoyu).
*/
}
void bitmap_clear_nolock(__unused uint16_t nr_arg, __unused volatile uint64_t *addr)
{
/**
* Dummy implementation.
* Official implementations are to be provided in the library patchset (by Haoyu).
*/
}
#endif /* RISCV_BITS_H */