Repository navigation
More register definitions #79
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
Open
CUB3D
wants to merge
9
commits into
rust-embedded:main
Choose a base branch
from
CUB3D:missing_regs2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2531587
Add missing registers
CUB3D 7146f80
Add hacr_el2
CUB3D 7001811
Add OSDLR_EL1
CUB3D c23d7b7
Update ID_AA64DFR1_EL1
CUB3D 33832b6
Fmt
CUB3D 3dad810
Add id_aa64isar2_el1, id_aa64isar3_el1 and missing fields in id_aa64d…
CUB3D ff260b7
Add id_aa64isar2_el1
CUB3D 4c7a070
Changes from review
CUB3D 2cb6567
Update to tock-registers 0.12
CUB3D File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2018-2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Accelerator Data - EL1 | ||
|
|
||
| use tock_registers::{register_bitfields, Read, Register, Write}; | ||
|
|
||
| register_bitfields! {u64, | ||
| pub ACCDATA_EL1 [ | ||
| ACCDATA OFFSET(0) NUMBITS(32) [], | ||
| ] | ||
| } | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "ACCDATA_EL1", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "ACCDATA_EL1", "x"); | ||
| } | ||
|
|
||
| pub const ACCDATA_EL1: Reg = Reg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2018-2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Auxiliary Control Masking Register - EL1 | ||
|
|
||
| use tock_registers::{Read, Register, Write}; | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "ACTLRMASK_EL1", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "ACTLRMASK_EL1", "x"); | ||
| } | ||
|
|
||
| pub const ACTLRMASK_EL1: Reg = Reg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2018-2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Auxiliary Control Masking Register - EL2 | ||
|
|
||
| use tock_registers::{Read, Register, Write}; | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "ACTLRMASK_EL2", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "ACTLRMASK_EL2", "x"); | ||
| } | ||
|
|
||
| pub const ACTLRMASK_EL2: Reg = Reg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Auxiliary Fault Status Register 0 - EL2 | ||
| //! | ||
| //! Provides IMPLEMENTATION DEFINED fault status information for synchronous aborts that are taken to EL2. | ||
|
|
||
| use tock_registers::{Read, Register, Write}; | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "AFSR0_EL2", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "AFSR0_EL2", "x"); | ||
| } | ||
|
|
||
| pub const AFSR0_EL2: Reg = Reg {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Auxiliary Fault Status Register 0 - EL3 | ||
| //! | ||
| //! Provides IMPLEMENTATION DEFINED fault status information for synchronous aborts that are taken to EL3. | ||
|
|
||
| use tock_registers::{Read, Register, Write}; | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "AFSR0_EL3", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "AFSR0_EL3", "x"); | ||
| } | ||
|
|
||
| pub const AFSR0_EL3: Reg = Reg {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2018-2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Current Cache Size ID Register 2 - EL1 | ||
|
|
||
| use tock_registers::{register_bitfields, Read, Register}; | ||
|
|
||
| register_bitfields! {u64, | ||
| pub CCSIDR2_EL1 [ | ||
| NumSets OFFSET(0) NUMBITS(24) [], | ||
| ] | ||
| } | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "CCSIDR2_EL1", "x"); | ||
| } | ||
|
|
||
| pub const CCSIDR2_EL1: Reg = Reg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
| // | ||
| // Copyright (c) 2018-2026 by the author(s) | ||
| // | ||
| // Author(s): | ||
| // - Callum Thomson <callumthom11@gmail.com> | ||
|
|
||
| //! Hypervisor Auxiliary Control Register - EL2 | ||
|
|
||
| use tock_registers::{Read, Register, Write}; | ||
|
|
||
| #[derive(Copy, Clone)] | ||
| pub struct Reg; | ||
|
|
||
| impl Register for Reg { | ||
| type DataType = u64; | ||
| } | ||
|
|
||
| impl Read for Reg { | ||
| sys_coproc_read_raw!(u64, "HACR_EL2", "x"); | ||
| } | ||
|
|
||
| impl Write for Reg { | ||
| sys_coproc_write_raw!(u64, "HACR_EL2", "x"); | ||
| } | ||
|
|
||
| pub const HACR_EL2: Reg = Reg; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.