Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions target/ast10x0/tests/interrupts/user/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/ipc/user/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/mctp/ipc_client/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -21,8 +22,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
5 changes: 4 additions & 1 deletion target/ast10x0/tests/mctp/server/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_board::{Ast10x0Board, Ast10x0BoardDescriptor, I2cBusCfg};
use ast10x0_peripherals::i2c::{ClockConfig, I2cConfig, I2cSpeed, I2cXferMode};
use ast10x0_peripherals::scu::pinctrl;
Expand Down Expand Up @@ -46,7 +47,9 @@ impl TargetInterface for Target {
}

codegen::start();
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/orchestrator/runtime/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/orchestrator/timer/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
6 changes: 4 additions & 2 deletions target/ast10x0/tests/peripherals/gpio/gpio_irq/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_peripherals::scu::{pinctrl, ScuRegisters};
use console_backend::console_backend_write_all;
use entry as _;
Expand All @@ -24,8 +25,9 @@ impl TargetInterface for Target {
}

codegen::start();
#[expect(clippy::empty_loop)]
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_peripherals::i2c;
use ast10x0_peripherals::scu::pinctrl;
use console_backend::console_backend_write_all;
Expand Down Expand Up @@ -37,8 +38,9 @@ impl TargetInterface for Target {
}

codegen::start();
#[expect(clippy::empty_loop)]
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
6 changes: 4 additions & 2 deletions target/ast10x0/tests/peripherals/sgpiom/sgpiom_irq/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_peripherals::scu::{pinctrl, ScuRegisters};
use console_backend::console_backend_write_all;
use entry as _;
Expand All @@ -33,8 +34,9 @@ impl TargetInterface for Target {
}

codegen::start();
#[expect(clippy::empty_loop)]
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
5 changes: 4 additions & 1 deletion target/ast10x0/tests/spdm/auth/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_board::{Ast10x0Board, Ast10x0BoardDescriptor, I2cBusCfg};
use ast10x0_peripherals::i2c::{ClockConfig, I2cConfig, I2cSpeed, I2cXferMode};
use ast10x0_peripherals::scu::pinctrl;
Expand Down Expand Up @@ -46,7 +47,9 @@ impl TargetInterface for Target {
}

codegen::start();
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/spdm/responder/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -17,8 +18,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
5 changes: 4 additions & 1 deletion target/ast10x0/tests/spdm/vca/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use ast10x0_board::{Ast10x0Board, Ast10x0BoardDescriptor, I2cBusCfg};
use ast10x0_peripherals::i2c::{ClockConfig, I2cConfig, I2cSpeed, I2cXferMode};
use ast10x0_peripherals::scu::pinctrl;
Expand Down Expand Up @@ -46,7 +47,9 @@ impl TargetInterface for Target {
}

codegen::start();
loop {}
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/stress/ipc/user/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -15,8 +16,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/usart/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use cortex_m_semihosting::debug::{exit, EXIT_FAILURE, EXIT_SUCCESS};
use target_common::{declare_target, TargetInterface};
use {console_backend as _, entry as _};
Expand All @@ -20,8 +21,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
9 changes: 7 additions & 2 deletions target/ast10x0/tests/util_ipc/async_transaction/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#![no_std]
#![no_main]

use arch_arm_cortex_m::Arch;
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
Expand All @@ -21,8 +22,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
8 changes: 7 additions & 1 deletion target/earlgrey/syscall_latency/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![no_std]
#![no_main]

use arch_riscv::Arch;
use target_common::{declare_target, TargetInterface};
use {console_backend as _, entry as _, kernel as _};

Expand All @@ -13,7 +14,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}

fn shutdown(code: u32) -> ! {
Expand Down
8 changes: 7 additions & 1 deletion target/earlgrey/tests/drivers/gpio/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#![no_std]
#![no_main]
use arch_riscv::Arch;
use target_common::{declare_target, TargetInterface};
use {console_backend as _, entry as _};

Expand All @@ -13,7 +14,12 @@ impl TargetInterface for Target {

fn main() -> ! {
codegen::start();
loop {}
// The bootstrap thread has nothing left to do. Sleep rather than spin: a
// spinning thread at the same priority as the app threads takes a time
// slice at every scheduler tick and delays every wake-up behind it.
loop {
let _ = kernel::sleep_until(Arch, kernel::Instant::MAX);
}
}
}

Expand Down
Loading
Loading