From 706a5c26062b2d0026957a30fab918a932f896a5 Mon Sep 17 00:00:00 2001 From: Rahix Date: Fri, 7 Aug 2020 18:16:02 +0200 Subject: [PATCH] interrupt: Fix interrupt::free() reading wrong address The SREG is at IO address 0x3F, not 0x35. Fix interrupt::free() to read the correct register to make it work as advertised. Signed-off-by: Rahix --- src/interrupt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interrupt.rs b/src/interrupt.rs index d8f2990..5eeec1a 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -44,7 +44,7 @@ where // Store current state unsafe { llvm_asm!( - "in $0,0x35" + "in $0,0x3F" : "=r"(sreg) : : -- 2.49.0