mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 09:04:49 -04:00
Fix assembly
This commit is contained in:
parent
03b6cff766
commit
0dc733e404
@ -5,6 +5,9 @@
|
|||||||
// http://www.boost.org/LICENSE_1_0.txt)
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
|
#ifndef ARCH_HPP
|
||||||
|
#define ARCH_HPP
|
||||||
|
|
||||||
#include "types.hpp"
|
#include "types.hpp"
|
||||||
|
|
||||||
namespace arch {
|
namespace arch {
|
||||||
@ -12,7 +15,7 @@ namespace arch {
|
|||||||
void enable_sse();
|
void enable_sse();
|
||||||
|
|
||||||
inline void disable_hwint(size_t& rflags){
|
inline void disable_hwint(size_t& rflags){
|
||||||
asm volatile("pushfq: pop %0; cli;" : "=g" (rflags));
|
asm volatile("pushfq; pop %0; cli;" : "=g" (rflags));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void enable_hwint(size_t& rflags){
|
inline void enable_hwint(size_t& rflags){
|
||||||
@ -20,3 +23,5 @@ inline void enable_hwint(size_t& rflags){
|
|||||||
}
|
}
|
||||||
|
|
||||||
} //enf of arch namespace
|
} //enf of arch namespace
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user