Skip to content

Commit f9943c7

Browse files
committed
[FREELDR:UEFI] Simplify Reboot() fallback code (reactos#9409)
CORE-11954 Addendum to commit 2a74f5e (PR reactos#9092) - The `__halt()` intrinsic is also defined for GCC-based builds, see: sdk/include/vcruntime/mingw32/intrin_x86.h - The `_M_IX86` and `_M_AMD64` defines are also defined for GCC-based builds, see: sdk/include/reactos/msvctarget.h
1 parent 83c2505 commit f9943c7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎boot/freeldr/freeldr/arch/uefi/uefildr.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ VOID __cdecl Reboot(VOID)
123123
/* Fallback dead-loop if runtime services are missing or fail to respond */
124124
for (;;)
125125
{
126-
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64))
126+
#if defined(_M_IX86) || defined(_M_AMD64)
127127
__halt();
128-
#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
129-
__asm__ __volatile__("hlt");
130128
#else
131129
/* Fallback placeholder loop for other platforms */
132130
NOTHING;

0 commit comments

Comments
 (0)