]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Added missing volatile specifier to inline asm containing cli and hlt.
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Thu, 12 May 2022 12:17:50 +0000 (14:17 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Thu, 12 May 2022 12:17:50 +0000 (14:17 +0200)
src/utils.cpp

index 6c501aa8490e5dcc2d057b148b6e0a76112464b9..2c53ef64f84a11e0305c59bb2443e18b819bdcbd 100644 (file)
@@ -1,7 +1,7 @@
 #include "utils.hpp"
 
 void os::halt() {
-       asm(
+       asm volatile (
                "cli\n"
                "\t1:\thlt\n"
                "\tjmp 1b"