From: Amelia Coutard Date: Thu, 12 May 2022 12:17:50 +0000 (+0200) Subject: Added missing volatile specifier to inline asm containing cli and hlt. X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=37a35147de96c0e484839e31ec762f25b7bc08c2;p=voyage-au-centre-des-fichiers.git Added missing volatile specifier to inline asm containing cli and hlt. --- diff --git a/src/utils.cpp b/src/utils.cpp index 6c501aa..2c53ef6 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -1,7 +1,7 @@ #include "utils.hpp" void os::halt() { - asm( + asm volatile ( "cli\n" "\t1:\thlt\n" "\tjmp 1b"