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.
29 lines
697 B
Rust
29 lines
697 B
Rust
5 years ago
|
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||
5 years ago
|
//
|
||
4 years ago
|
// Copyright (c) 2018-2021 Andre Richter <andre.o.richter@gmail.com>
|
||
5 years ago
|
|
||
4 years ago
|
//! Architectural processor code.
|
||
3 years ago
|
//!
|
||
|
//! # Orientation
|
||
|
//!
|
||
|
//! Since arch modules are imported into generic modules using the path attribute, the path of this
|
||
|
//! file is:
|
||
|
//!
|
||
|
//! crate::cpu::arch_cpu
|
||
|
|
||
|
use cortex_a::asm;
|
||
5 years ago
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
4 years ago
|
// Public Code
|
||
5 years ago
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
||
|
pub use asm::nop;
|
||
|
|
||
4 years ago
|
/// Pause execution on the core.
|
||
5 years ago
|
#[inline(always)]
|
||
|
pub fn wait_forever() -> ! {
|
||
|
loop {
|
||
|
asm::wfe()
|
||
|
}
|
||
|
}
|