You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
571 B
Rust
22 lines
571 B
Rust
5 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
//
|
||
|
// Copyright (c) 2018-2019 Andre Richter <andre.o.richter@gmail.com>
|
||
|
|
||
|
//! AArch64.
|
||
|
|
||
|
global_asm!(include_str!("aarch64/start.S"));
|
||
|
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
// Implementation of the kernel's architecture abstraction code
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
/// Pause execution on the calling CPU core.
|
||
|
#[inline(always)]
|
||
|
pub fn wait_forever() -> ! {
|
||
|
unsafe {
|
||
|
loop {
|
||
|
asm!("wfe" :::: "volatile")
|
||
|
}
|
||
|
}
|
||
|
}
|