Skip to content

[RFC] revamp the exception / interrupt registration mechanism #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- [breaking-change] Renamed `StackedRergisters` to `ExceptionFrame` to better
reflect the ARM documentation.

- [breaking-change] Renamed the variants of `Exception` to better match the
ARM documentation.

- [breaking-change] Renamed `Exception::current` to `Exception::active` and
changed the signature to return `None` when no exception is being serviced.

### Removed

- [breaking-change] The `ctxt` module along with the exception "tokens" in the
`exception` module. The `cortex-m-rt` crate v0.3.0 provides a more ergonomic
mechanism to add state to interrupts / exceptions; replace your uses of
`Local` with that.

- [breaking-change] `default_handler`, `DEFAULT_HANDLERS` and `Handlers` from
the `exception` module as well as `Reserved` from the root of the crate.
`cortex-m-rt` v0.3.0 provides a mechanism to override exceptions and the
default exception handler. Change your use of these `Handlers` and others to
that.

### Fixed

- `interrupt::{enable,disable}` are now compiler barriers. The compiler should
not reorder code around these function calls for memory safety; that is the
case now.

## [v0.2.11] - 2017-06-16

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords = ["arm", "cortex-m", "register", "peripheral"]
license = "MIT OR Apache-2.0"
name = "cortex-m"
repository = "https://github.com/japaric/cortex-m"
version = "0.2.11"
version = "0.3.0"

[dependencies]
aligned = "0.1.1"
Expand Down
160 changes: 0 additions & 160 deletions src/ctxt.rs

This file was deleted.

Loading