pub fn is_single_kernel() -> bool {
	let unsafe_storage = get_unsafe_storage();
	unsafe {
		if unsafe_storage == 0 {
			intrinsics::volatile_load(&(*BOOT_INFO).single_kernel) != 0
		}
		else {
			copy_from_safe(BOOT_INFO, 1);
			isolation_start!();
			let single_kernel = intrinsics::volatile_load(&(*(unsafe_storage as *const BootInfo)).single_kernel);
			isolation_end!();
			clear_unsafe_storage();

			return single_kernel != 0;
		}
	}
}
/// Whether HermitCore is running alone (true) or side-by-side to Linux in Multi-Kernel mode (false).
Whether HermitCore is running alone (true) or side-by-side to Linux in Multi-Kernel mode (false).
Whether HermitCore is running alone ( true ) or side - by - side to Linux in Multi - Kernel mode ( false ) .
pub fn is_single_kernel() -> bool {
	let unsafe_storage = get_unsafe_storage();
	unsafe {
		if unsafe_storage == 0 {
			intrinsics::volatile_load(&(*BOOT_INFO).single_kernel) != 0
		}
		else {
			copy_from_safe(BOOT_INFO, 1);
			isolation_start!();
			let single_kernel = intrinsics::volatile_load(&(*(unsafe_storage as *const BootInfo)).single_kernel);
			isolation_end!();
			clear_unsafe_storage();
			return single_kernel != 0;
		}
	}
}
pub fn is_single_kernel ( ) -> bool { let unsafe_storage = get_unsafe_storage ( ) ; unsafe { if unsafe_storage == 0 { intrinsics :: volatile_load ( & ( * BOOT_INFO ) . single_kernel ) != 0 } else { copy_from_safe ( BOOT_INFO , 1 ) ; isolation_start ! ( ) ; let single_kernel = intrinsics :: volatile_load ( & ( * ( unsafe_storage as * const BootInfo ) ) . single_kernel ) ; isolation_end ! ( ) ; clear_unsafe_storage ( ) ; return single_kernel != 0 ; } } }
Whether HermitCore is running alone (true) or side-by-side to Linux in Multi-Kernel mode (false).
Whether HermitCore is running alone ( true ) or side - by - side to Linux in Multi - Kernel mode ( false ) .