mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 11:53:24 +00:00
Add RISC-V base support
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
839c2a6689
commit
4fa0e6334b
@ -943,3 +943,10 @@ const fn is_pod_once<T: Pod>() -> bool {
|
||||
|
||||
size == 1 || size == 2 || size == 4 || size == 8
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "riscv64")]
|
||||
const fn is_pod_once<T: Pod>() -> bool {
|
||||
let size = size_of::<T>();
|
||||
|
||||
size == 1 || size == 2 || size == 4 || size == 8
|
||||
}
|
||||
|
Reference in New Issue
Block a user