From e080c951f0d10842dfedb43dd527d1d509ffdeaa Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 Jan 2022 14:41:21 -0800 Subject: fix(windows-kernel-rs): don't waste cpu cycles :) --- crates/windows-kernel-rs/src/allocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/windows-kernel-rs/src/allocator.rs') diff --git a/crates/windows-kernel-rs/src/allocator.rs b/crates/windows-kernel-rs/src/allocator.rs index 2cb1515..9c9f996 100644 --- a/crates/windows-kernel-rs/src/allocator.rs +++ b/crates/windows-kernel-rs/src/allocator.rs @@ -15,7 +15,7 @@ use crate::version::VersionInfo; /// See issue #52191. #[alloc_error_handler] -fn alloc_error(_: Layout) -> ! { loop {} } // core::panic!() +fn alloc_error(_: Layout) -> ! { loop { x86_64::instructions::hlt() } } lazy_static! { /// The version of Microsoft Windows that is currently running. This is used by -- cgit v1.2.3