Rev 803 | Rev 1072 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 803 | Rev 806 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | * @param port Port to write to |
70 | * @param port Port to write to |
71 | * @param val Value to write |
71 | * @param val Value to write |
72 | */ |
72 | */ |
73 | static inline void outb(__u16 port, __u8 val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); } |
73 | static inline void outb(__u16 port, __u8 val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); } |
74 | 74 | ||
- | 75 | /** Swap Hidden part of GS register with visible one */ |
|
- | 76 | static inline void swapgs(void) { __asm__ volatile("swapgs"); } |
|
- | 77 | ||
75 | /** Enable interrupts. |
78 | /** Enable interrupts. |
76 | * |
79 | * |
77 | * Enable interrupts and return previous |
80 | * Enable interrupts and return previous |
78 | * value of EFLAGS. |
81 | * value of EFLAGS. |
79 | * |
82 | * |