From b83bdb364356236a960e1278f66d0052dd901d11 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 14 Nov 2016 10:46:53 -0700 Subject: [PATCH] Interrupt enable and nop function --- arch/test/src/interrupt.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/test/src/interrupt.rs b/arch/test/src/interrupt.rs index 723490d..df9d367 100644 --- a/arch/test/src/interrupt.rs +++ b/arch/test/src/interrupt.rs @@ -23,6 +23,12 @@ pub unsafe fn halt() { ::std::thread::yield_now(); } +/// Set interrupts and nop +#[inline(always)] +pub unsafe fn enable_and_nop() { + enable(); +} + /// Set interrupts and halt #[inline(always)] pub unsafe fn enable_and_halt() {