Skip to content

Commit b8dfbaf

Browse files
Flip order of cfgs.
1 parent 4cd4e07 commit b8dfbaf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

aarch32-cpu/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub mod asm;
2323

2424
pub mod cache;
2525

26-
#[cfg(any(test, doc, arm_architecture = "v8-r", arm_architecture = "v7-a"))]
26+
#[cfg(any(test, doc, arm_architecture = "v7-a", arm_architecture = "v8-r"))]
2727
pub mod generic_timer;
2828

2929
pub mod interrupt;

aarch32-rt/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@
533533
#[cfg(target_arch = "arm")]
534534
use aarch32_cpu::register::{cpsr::ProcessorMode, Cpsr};
535535

536-
#[cfg(any(arm_architecture = "v8-r", arm_architecture = "v7-a"))]
536+
#[cfg(any(arm_architecture = "v7-a", arm_architecture = "v8-r"))]
537537
use aarch32_cpu::register::Hactlr;
538538

539539
pub use aarch32_rt_macros::{entry, exception, irq};
@@ -946,7 +946,7 @@ core::arch::global_asm!(
946946
// Go straight to our default routine
947947
#[cfg(all(
948948
target_arch = "arm",
949-
not(any(arm_architecture = "v8-r", arm_architecture = "v7-a"))
949+
not(any(arm_architecture = "v7-a", arm_architecture = "v8-r"))
950950
))]
951951
core::arch::global_asm!(
952952
r#"
@@ -994,7 +994,7 @@ core::arch::global_asm!(
994994
// always enable it.
995995
//
996996
// We boot into EL2, set up a stack pointer, and run `kmain` in EL1.
997-
#[cfg(any(arm_architecture = "v8-r", arm_architecture = "v7-a"))]
997+
#[cfg(any(arm_architecture = "v7-a", arm_architecture = "v8-r"))]
998998
core::arch::global_asm!(
999999
r#"
10001000
// Work around https://github.com/rust-lang/rust/issues/127269

0 commit comments

Comments
 (0)