Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/asm.h

    r2b4a9f26 rd99c1d2  
    3838
    3939#include <arch/pm.h>
    40 #include <arch/cpu.h>
    4140#include <typedefs.h>
    4241#include <config.h>
     
    300299}
    301300
    302 /** Check interrupts state.
    303  *
    304  * @return True if interrupts are disabled.
    305  *
    306  */
    307 static inline bool interrupts_disabled(void)
    308 {
    309         ipl_t v;
    310        
    311         asm volatile (
    312                 "pushf\n"
    313                 "popl %[v]\n"
    314                 : [v] "=r" (v)
    315         );
    316        
    317         return ((v & EFLAGS_IF) == 0);
    318 }
    319 
    320301/** Write to MSR */
    321302static inline void write_msr(uint32_t msr, uint64_t value)
Note: See TracChangeset for help on using the changeset viewer.