Skip to content

Commit 4be9bcd

Browse files
Make generic_timer available on Armv7-A
Fixes #140
1 parent a7d4d1c commit 4be9bcd

File tree

19 files changed

+48
-33
lines changed

19 files changed

+48
-33
lines changed

aarch32-cpu/src/lib.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,23 @@ pub mod asm;
2222
pub mod asm;
2323

2424
pub mod cache;
25+
26+
#[cfg(any(test, doc, arm_architecture = "v8-r", arm_architecture = "v7-a"))]
27+
pub mod generic_timer;
28+
2529
pub mod interrupt;
30+
31+
#[cfg(any(test, doc, arm_architecture = "v7-a"))]
2632
pub mod mmu;
33+
2734
pub mod register;
35+
2836
#[cfg(target_arch = "arm")]
2937
pub mod stacks;
3038

3139
#[cfg(any(test, doc, arm_architecture = "v7-r"))]
3240
pub mod pmsav7;
3341

34-
#[cfg(any(test, doc, arm_architecture = "v8-r"))]
35-
pub mod generic_timer;
36-
3742
#[cfg(any(test, doc, arm_architecture = "v8-r"))]
3843
pub mod pmsav8;
3944

aarch32-cpu/src/register/armv8r/mod.rs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
//! Access registers for Armv8-R only
22
3-
pub mod cntfrq;
4-
pub mod cnthctl;
5-
pub mod cnthp_ctl;
6-
pub mod cnthp_cval;
7-
pub mod cnthp_tval;
8-
pub mod cntkctl;
9-
pub mod cntp_ctl;
10-
pub mod cntp_cval;
11-
pub mod cntp_tval;
12-
pub mod cntpct;
13-
pub mod cntv_ctl;
14-
pub mod cntv_cval;
15-
pub mod cntv_tval;
16-
pub mod cntvct;
17-
pub mod cntvoff;
183
pub mod hacr;
194
pub mod hactlr;
205
pub mod hactlr2;
@@ -110,21 +95,6 @@ pub mod prlar9;
11095
pub mod prselr;
11196
pub mod vbar;
11297

113-
pub use cntfrq::Cntfrq;
114-
pub use cnthctl::Cnthctl;
115-
pub use cnthp_ctl::CnthpCtl;
116-
pub use cnthp_cval::CnthpCval;
117-
pub use cnthp_tval::CnthpTval;
118-
pub use cntkctl::Cntkctl;
119-
pub use cntp_ctl::CntpCtl;
120-
pub use cntp_cval::CntpCval;
121-
pub use cntp_tval::CntpTval;
122-
pub use cntpct::CntPct;
123-
pub use cntv_ctl::CntvCtl;
124-
pub use cntv_cval::CntvCval;
125-
pub use cntv_tval::CntvTval;
126-
pub use cntvct::CntVct;
127-
pub use cntvoff::CntVoff;
12898
pub use hacr::Hacr;
12999
pub use hactlr::Hactlr;
130100
pub use hactlr2::Hactlr2;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)