From c03b43e0d4dcc4a0d00a769da863ffa4acf71a5a Mon Sep 17 00:00:00 2001 From: Tyler Smith <74526874+tylertms@users.noreply.github.com> Date: Sun, 15 Nov 2026 01:31:24 -0500 Subject: [PATCH] fix(acpi): end an AML semaphore wait that cannot take its units at once when no SCI is armed, whatever its timeout, where an Acquire or Wait of up to 0xFFFE ms spun that long with nothing able to signal it --- crates/stela-boot/src/engine/aml.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/stela-boot/src/engine/aml.rs b/crates/stela-boot/src/engine/aml.rs index 6436aec133..36419f8ebb 100644 --- a/crates/stela-boot/src/engine/aml.rs +++ b/crates/stela-boot/src/engine/aml.rs @@ -482,7 +482,13 @@ unsafe extern "C" fn wait_semaphore( if take() { return AE_OK; } - if timeout == WAIT_FOREVER && provider.sci.borrow().is_none() { + if timeout == 0 { + return AE_TIME; + } + // Only ACPICA's SCI work, on this one processor, signals a semaphore + // while AML waits: without it no wait, however long, can end, and one + // of 0xFFFE ms (an Acquire or Wait short of forever) would only spin. + if provider.sci.borrow().is_none() { provider.report( Gap::Wait, format_args!("semaphore wait has no interrupt progress source"),