From 71b70482d375f48e55dc6a0781e76877699ab4aa Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 30 Oct 2024 14:01:20 -0600 Subject: [PATCH] acpid: Only acquire I/O port rights on x86 --- acpid/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/acpid/src/main.rs b/acpid/src/main.rs index a0b07ec895..9ddd3ca01d 100644 --- a/acpid/src/main.rs +++ b/acpid/src/main.rs @@ -59,6 +59,7 @@ fn daemon(daemon: redox_daemon::Daemon) -> ! { let acpi_context = self::acpi::AcpiContext::init(physaddrs_iter); // TODO: I/O permission bitmap? + #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] common::acquire_port_io_rights().expect("acpid: failed to set I/O privilege level to Ring 3"); let shutdown_pipe = File::open("/scheme/kernel.acpi/kstop")