mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-15 12:00:26 +00:00
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>
56 lines
1.2 KiB
C
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 */
|