From 91d0ae783e51062f77b120b05c97cd352b9b86d5 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 17 Aug 2022 22:14:15 -0700 Subject: Initial commit --- src/_arch/arm/cpu.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/_arch/arm/cpu.rs (limited to 'src/_arch/arm/cpu.rs') diff --git a/src/_arch/arm/cpu.rs b/src/_arch/arm/cpu.rs new file mode 100644 index 0000000..1ca6fab --- /dev/null +++ b/src/_arch/arm/cpu.rs @@ -0,0 +1,10 @@ +//! Architectural processor code. +mod asm; +pub use asm::*; + +/// Pause execution +pub fn wait_forever() -> ! { + loop { + asm::wfe() + } +} -- cgit v1.2.1