Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit f5f0ffb

Browse files
committed
Shuffle some paths around
1 parent 31a4704 commit f5f0ffb

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

src/asm.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// - Jorge Aparicio
77
// - Andre Richter <[email protected]>
88

9-
//! Miscellaneous assembly instructions
9+
//! Wrappers around ARMv8-A instructions.
10+
11+
pub mod barrier;
1012

1113
/// The classic no-op
1214
#[inline(always)]
@@ -22,7 +24,7 @@ pub fn nop() {
2224

2325
/// Wait For Interrupt
2426
///
25-
/// For more details on wfi, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html)
27+
/// For more details on wfi, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html).
2628
#[inline(always)]
2729
pub fn wfi() {
2830
#[cfg(target_arch = "aarch64")]
@@ -36,7 +38,7 @@ pub fn wfi() {
3638

3739
/// Wait For Event
3840
///
39-
/// For more details of wfe - sev pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html)
41+
/// For more details of wfe - sev pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html).
4042
#[inline(always)]
4143
pub fn wfe() {
4244
#[cfg(target_arch = "aarch64")]
@@ -52,7 +54,7 @@ pub fn wfe() {
5254
///
5355
/// SEV causes an event to be signaled to the local core within a multiprocessor system.
5456
///
55-
/// For more details of wfe - sev/sevl pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html)
57+
/// For more details of wfe - sev/sevl pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html).
5658
#[inline(always)]
5759
pub fn sevl() {
5860
#[cfg(target_arch = "aarch64")]
@@ -68,7 +70,7 @@ pub fn sevl() {
6870
///
6971
/// SEV causes an event to be signaled to all cores within a multiprocessor system.
7072
///
71-
/// For more details of wfe - sev pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html)
73+
/// For more details of wfe - sev pair, refer to [here](http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0802a/CIHEGBBF.html).
7274
#[inline(always)]
7375
pub fn sev() {
7476
#[cfg(target_arch = "aarch64")]

src/barrier.rs renamed to src/asm/barrier.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
// Author(s):
66
// - Andre Richter <[email protected]>
77

8-
// Borrow implementations from the pending upstream ACLE implementation until it is merged.
9-
// Afterwards, we'll probably just reexport them, hoping that the API doesn't change.
10-
//
11-
// https://github.com/rust-lang-nursery/stdsimd/pull/557
8+
//! Barrier functions.
129
1310
mod sealed {
1411
pub trait Dmb {

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,4 @@
8585
#![no_std]
8686

8787
pub mod asm;
88-
pub mod barrier;
8988
pub mod registers;
File renamed without changes.

0 commit comments

Comments
 (0)