summaryrefslogtreecommitdiff
path: root/arch/i386/include/kernel/asm.h
blob: 33ec3d753dc4a5b2df5707538889728c46d06d65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef I386_ASM_H
#define I386_ASM_H

static inline void enable_ints(void) {
        __asm__ volatile("sti");
        return;
}

static inline void disable_ints(void) {
        __asm__ volatile("cli");
        return;
}

static inline void flush_tss(void) {
        __asm__ volatile("movw $0x28, %ax; ltr %ax");
        return;
}

#endif