Skip to content

Commit 9a16a61

Browse files
committed
doc(port_arm): fix broken intra-doc links
1 parent a9ee19c commit 9a16a61

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

src/r3_port_arm/src/gic/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use super::{gic_regs, imp::GicRegs};
1212
/// the target.
1313
/// **Requires [`GicOptions`].**
1414
///
15-
/// [`PortInterrupts`]: r3::kernel::PortInterrupts
15+
/// [`PortInterrupts`]: r3_kernel::PortInterrupts
1616
/// [`InterruptController`]: crate::InterruptController
1717
///
1818
/// # Safety

src/r3_port_arm/src/gic/imp.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub fn end_interrupt<Traits: Gic>(num: InterruptNum) {
110110
cpu_interface.EOIR.set(num as _);
111111
}
112112

113-
/// Implements [`r3::kernel::PortInterrupts::set_interrupt_line_priority`].
113+
/// Implements [`r3_kernel::PortInterrupts::set_interrupt_line_priority`].
114114
pub fn set_interrupt_line_priority<Traits: Gic>(
115115
line: InterruptNum,
116116
priority: InterruptPriority,
@@ -126,7 +126,7 @@ pub fn set_interrupt_line_priority<Traits: Gic>(
126126
Ok(())
127127
}
128128

129-
/// Implements [`r3::kernel::PortInterrupts::enable_interrupt_line`].
129+
/// Implements [`r3_kernel::PortInterrupts::enable_interrupt_line`].
130130
pub fn enable_interrupt_line<Traits: Gic>(
131131
line: InterruptNum,
132132
) -> Result<(), EnableInterruptLineError> {
@@ -142,7 +142,7 @@ pub fn enable_interrupt_line<Traits: Gic>(
142142
Ok(())
143143
}
144144

145-
/// Implements [`r3::kernel::PortInterrupts::disable_interrupt_line`].
145+
/// Implements [`r3_kernel::PortInterrupts::disable_interrupt_line`].
146146
pub fn disable_interrupt_line<Traits: Gic>(
147147
line: InterruptNum,
148148
) -> Result<(), EnableInterruptLineError> {
@@ -158,7 +158,7 @@ pub fn disable_interrupt_line<Traits: Gic>(
158158
Ok(())
159159
}
160160

161-
/// Implements [`r3::kernel::PortInterrupts::pend_interrupt_line`].
161+
/// Implements [`r3_kernel::PortInterrupts::pend_interrupt_line`].
162162
pub fn pend_interrupt_line<Traits: Gic>(line: InterruptNum) -> Result<(), PendInterruptLineError> {
163163
let distributor = Traits::gic_regs().distributor;
164164

@@ -173,7 +173,7 @@ pub fn pend_interrupt_line<Traits: Gic>(line: InterruptNum) -> Result<(), PendIn
173173
Ok(())
174174
}
175175

176-
/// Implements [`r3::kernel::PortInterrupts::clear_interrupt_line`].
176+
/// Implements [`r3_kernel::PortInterrupts::clear_interrupt_line`].
177177
pub fn clear_interrupt_line<Traits: Gic>(
178178
line: InterruptNum,
179179
) -> Result<(), ClearInterruptLineError> {
@@ -190,7 +190,7 @@ pub fn clear_interrupt_line<Traits: Gic>(
190190
Ok(())
191191
}
192192

193-
/// Implements [`r3::kernel::PortInterrupts::is_interrupt_line_pending`].
193+
/// Implements [`r3_kernel::PortInterrupts::is_interrupt_line_pending`].
194194
pub fn is_interrupt_line_pending<Traits: Gic>(
195195
line: InterruptNum,
196196
) -> Result<bool, QueryInterruptLineError> {

src/r3_port_arm/src/lib.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ The valid priority range is `0..255`. All priorities are [*managed*] - unmanaged
6363

6464
The GIC driver exposes additional operations on interrupt lines through [`Gic`] implemented on your kernel trait type.
6565

66-
[`PortInterrupts`]: r3::kernel::PortInterrupts
67-
[*managed*]: r3::kernel::PortInterrupts::MANAGED_INTERRUPT_PRIORITY_RANGE
66+
[`PortInterrupts`]: r3_kernel::PortInterrupts
67+
[*managed*]: r3_kernel::PortInterrupts::MANAGED_INTERRUPT_PRIORITY_RANGE
6868

6969
# Implementation
7070

@@ -112,7 +112,7 @@ struct ContextState {
112112

113113
`sp` is stored in [`TaskCb::port_task_state`].
114114

115-
[`TaskCb::port_task_state`]: r3::kernel::TaskCb::port_task_state
115+
[`TaskCb::port_task_state`]: r3_kernel::TaskCb::port_task_state
116116

117117
When a task is activated, a new context state is created inside the task's stack. By default, only essential registers are preloaded with known values. The **`preload-registers`** Cargo feature enables preloading for all GPRs, which might help in debugging at the cost of performance and code size.
118118

@@ -124,4 +124,4 @@ For the idle task, saving and restoring the context store is essentially replace
124124
- **Supervisor**: Non-task context
125125
- **IRQ**: The processor enters this mode when it takes an exception. This state lasts only briefly because the IRQ handler switches to Supervisor as soon as possible to allow reentry. `sp_irq` is only used as a scratch register.
126126

127-
[`running_task_ptr`]: r3::kernel::State::running_task_ptr
127+
[`running_task_ptr`]: r3_kernel::State::running_task_ptr

src/r3_port_arm/src/sp804/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use r3::kernel::{InterruptNum, InterruptPriority};
66
/// also implements [`Timer`] on the kernel trait type.
77
/// **Requires [`Sp804Options`].**
88
///
9-
/// [`PortTimer`]: r3::kernel::PortTimer
9+
/// [`PortTimer`]: r3_kernel::PortTimer
1010
/// [`Timer`]: crate::Timer
1111
/// [Arm PrimeCell SP804 Dual Timer]: https://developer.arm.com/documentation/ddi0271/d/
1212
///

src/r3_port_arm/src/sp804/imp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ fn hw_tick_count<Traits: Sp804Instance>() -> u32 {
121121
hw_tick_count
122122
}
123123

124-
/// Implements [`r3::kernel::PortTimer::tick_count`]
124+
/// Implements [`r3_kernel::PortTimer::tick_count`]
125125
///
126126
/// # Safety
127127
///
@@ -136,7 +136,7 @@ pub unsafe fn tick_count<Traits: Sp804Instance>() -> UTicks {
136136
tstate.tick_count(tcfg, hw_tick_count)
137137
}
138138

139-
/// Implements [`r3::kernel::PortTimer::pend_tick`]
139+
/// Implements [`r3_kernel::PortTimer::pend_tick`]
140140
///
141141
/// # Safety
142142
///
@@ -147,7 +147,7 @@ pub unsafe fn pend_tick<Traits: Sp804Instance>() {
147147
.unwrap();
148148
}
149149

150-
/// Implements [`r3::kernel::PortTimer::pend_tick_after`]
150+
/// Implements [`r3_kernel::PortTimer::pend_tick_after`]
151151
///
152152
/// # Safety
153153
///

src/r3_port_arm/src/threading/cfg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub trait InterruptController {
77
/// Initialize the driver. This will be called just before entering
88
/// [`PortToKernel::boot`].
99
///
10-
/// [`PortToKernel::boot`]: r3::kernel::PortToKernel::boot
10+
/// [`PortToKernel::boot`]: r3_kernel::PortToKernel::boot
1111
///
1212
/// # Safety
1313
///
@@ -36,7 +36,7 @@ pub trait Timer {
3636
/// Initialize the driver. This will be called just before entering
3737
/// [`PortToKernel::boot`].
3838
///
39-
/// [`PortToKernel::boot`]: r3::kernel::PortToKernel::boot
39+
/// [`PortToKernel::boot`]: r3_kernel::PortToKernel::boot
4040
///
4141
/// # Safety
4242
///
@@ -72,7 +72,7 @@ pub trait EntryPoint {
7272
/// [`EntryPoint`]. **Requires [`ThreadingOptions`], [`InterruptController`],
7373
/// and [`Timer`].**
7474
///
75-
/// [`PortThreading`]: r3::kernel::PortThreading
75+
/// [`PortThreading`]: r3_kernel::PortThreading
7676
#[macro_export]
7777
macro_rules! use_port {
7878
(unsafe $vis:vis struct $Traits:ident) => {

src/r3_port_arm/src/threading/imp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl State {
148148
/// - Push the second-level state.
149149
/// - Store SP to the current task's `TaskState`.
150150
/// - **`dispatch:`** (alternate entry point)
151-
/// - Call [`r3::kernel::PortToKernel::choose_running_task`].
151+
/// - Call [`r3_kernel::PortToKernel::choose_running_task`].
152152
/// - Restore SP from the next scheduled task's `TaskState`.
153153
/// - If there's no task to schedule, branch to [`Self::idle_task`].
154154
/// - Pop the second-level state of the next scheduled task.

0 commit comments

Comments
 (0)