Skip to content

Commit 6c642b7

Browse files
committed
update CHANGELOG
1 parent 45ec58c commit 6c642b7

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- [breaking-change] Renamed `StackedRergisters` to `ExceptionFrame` to better
13+
reflect the ARM documentation.
14+
15+
- [breaking-change] Renamed the variants of `Exception` to better match the
16+
ARM documentation.
17+
18+
- [breaking-change] Renamed `Exception::current` to `Exception::active` and
19+
changed the signature to return `None` when no exception is being serviced.
20+
21+
### Removed
22+
23+
- [breaking-change] The `ctxt` module along with the exception "tokens" in the
24+
`exception` module. The `cortex-m-rt` crate v0.3.0 provides a more ergonomic
25+
mechanism to add state to interrupts / exceptions; replace your uses of
26+
`Local` with that.
27+
28+
- [breaking-change] `default_handler`, `DEFAULT_HANDLERS` and `Handlers` from
29+
the `exception` module as well as `Reserved` from the root of the crate.
30+
`cortex-m-rt` v0.3.0 provides a mechanism to override exceptions and the
31+
default exception handler. Change your use of these `Handlers` and others to
32+
that.
33+
34+
### Fixed
35+
36+
- `interrupt::{enable,disable}` are now compiler barriers. The compiler should
37+
not reorder code around these function calls for memory safety; that is the
38+
case now.
39+
1040
## [v0.2.11] - 2017-06-16
1141

1242
### Added

src/exception.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
55
pub enum Exception {
66
/// Non-maskable interrupt
7-
Nmi,
7+
NMI,
88
/// Other type of faults and unhandled faults
99
HardFault,
1010
/// Memory protection related fault
@@ -14,9 +14,9 @@ pub enum Exception {
1414
/// Fault due to undefined instruction or illegal state
1515
UsageFault,
1616
/// Supervisor call
17-
Svcall,
17+
SVCall,
1818
/// Pendable request for system-level service
19-
Pendsv,
19+
PendSV,
2020
/// System timer exception
2121
SysTick,
2222
/// An interrupt
@@ -36,13 +36,13 @@ impl Exception {
3636

3737
Some(match icsr as u8 {
3838
0 => return None,
39-
2 => Exception::Nmi,
39+
2 => Exception::NMI,
4040
3 => Exception::HardFault,
4141
4 => Exception::MenManage,
4242
5 => Exception::BusFault,
4343
6 => Exception::UsageFault,
44-
11 => Exception::Svcall,
45-
14 => Exception::Pendsv,
44+
11 => Exception::SVCall,
45+
14 => Exception::PendSV,
4646
15 => Exception::SysTick,
4747
n if n >= 16 => Exception::Interrupt(n - 16),
4848
_ => Exception::Reserved,

0 commit comments

Comments
 (0)