From cb427869d10604bddea07514a916d9266897b6ed Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 18 May 2021 14:09:04 +0200 Subject: [PATCH] fix unwinding exceptions that push FPU registers onto the stack the correct value of constant EXC_RETURN_MARKER is 0xFFFF_FFE0 but the value was typo-ed in the refactor part of PR #163 --- src/cortexm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cortexm.rs b/src/cortexm.rs index 5418df86..6343e649 100644 --- a/src/cortexm.rs +++ b/src/cortexm.rs @@ -5,7 +5,7 @@ use std::{mem, ops::Range}; use crate::VectorTable; pub(crate) const ADDRESS_SIZE: u8 = mem::size_of::() as u8; -pub(crate) const EXC_RETURN_MARKER: u32 = 0xFFFF_FFF0; +pub(crate) const EXC_RETURN_MARKER: u32 = 0xFFFF_FFE0; const THUMB_BIT: u32 = 1; // According to the ARM Cortex-M Reference Manual RAM memory must be located in this address range // (vendors still place e.g. Core-Coupled RAM outside this address range)