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
8
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
8 commits
Select commit
Hold shift + click to select a range
6306747
Add missing registers
CUB3D 08bab00
Add hacr_el2
CUB3D 920cfca
Add OSDLR_EL1
CUB3D 703da13
Update ID_AA64DFR1_EL1
CUB3D 2b6761d
Fmt
CUB3D e4d23ee
Add id_aa64isar2_el1, id_aa64isar3_el1 and missing fields in id_aa64d…
CUB3D 0aba3af
Add id_aa64isar2_el1
CUB3D d05eba7
Changes from review
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,35 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
| use tock_registers::register_bitfields; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| register_bitfields! {u64, | ||
| pub ACCDATA_EL1 [ | ||
| ACCDATA OFFSET(0) NUMBITS(32) [], | ||
| ] | ||
| } | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "ACCDATA_EL1", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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,28 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "ACTLRMASK_EL1", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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,28 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "ACTLRMASK_EL2", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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,30 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "AFSR0_EL2", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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,30 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "AFSR0_EL3", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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,28 @@ | ||
| // 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::interfaces::Readable; | ||
| use tock_registers::register_bitfields; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| register_bitfields! {u64, | ||
| pub CCSIDR2_EL1 [ | ||
| NumSets OFFSET(0) NUMBITS(24) [], | ||
| ] | ||
| } | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = CCSIDR2_EL1::Register; | ||
|
|
||
| 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,28 @@ | ||
| // 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::interfaces::{Readable, Writeable}; | ||
|
|
||
| pub struct Reg; | ||
|
|
||
| impl Readable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| sys_coproc_read_raw!(u64, "HACR_EL2", "x"); | ||
| } | ||
|
|
||
| impl Writeable for Reg { | ||
| type T = u64; | ||
| type R = (); | ||
|
|
||
| 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.