mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 03:13:23 +00:00
Support RISC-V ISA extension detection
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
0ddc1bb2d2
commit
bd24ed9ba7
@ -61,6 +61,7 @@ pub fn read_random() -> Option<u64> {
|
||||
}
|
||||
|
||||
pub(crate) fn enable_cpu_features() {
|
||||
cpu::extension::init();
|
||||
unsafe {
|
||||
// We adopt a lazy approach to enable the floating-point unit; it's not
|
||||
// enabled before the first FPU trap.
|
||||
|
Reference in New Issue
Block a user