Implement Instant for UEFI
- Uses Timestamp Protocol if present. Else use rdtsc for x86 and x86-64 Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
This commit is contained in:
parent
5f40394baa
commit
dee2d0f333
2 changed files with 120 additions and 0 deletions
|
@ -263,6 +263,10 @@
|
|||
#![cfg_attr(any(windows, target_os = "uefi"), feature(round_char_boundary))]
|
||||
#![cfg_attr(target_os = "xous", feature(slice_ptr_len))]
|
||||
#![cfg_attr(target_family = "wasm", feature(stdarch_wasm_atomic_wait))]
|
||||
#![cfg_attr(
|
||||
all(any(target_arch = "x86_64", target_arch = "x86"), target_os = "uefi"),
|
||||
feature(stdarch_x86_has_cpuid)
|
||||
)]
|
||||
//
|
||||
// Language features:
|
||||
// tidy-alphabetical-start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue