Rev 1828 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1828 | Rev 1829 | ||
---|---|---|---|
Line 270... | Line 270... | ||
270 | static inline void gdtr_store(ptr_16_32_t *gdtr_reg) |
270 | static inline void gdtr_store(ptr_16_32_t *gdtr_reg) |
271 | { |
271 | { |
272 | __asm__ volatile ("sgdtl %0\n" : : "m" (*gdtr_reg)); |
272 | __asm__ volatile ("sgdtl %0\n" : : "m" (*gdtr_reg)); |
273 | } |
273 | } |
274 | 274 | ||
275 | /** Load IDTR register from memory. |
- | |
276 | * |
- | |
277 | * @param idtr_reg Address of memory from where to load IDTR. |
- | |
278 | */ |
- | |
279 | static inline void idtr_load(ptr_16_32_t *idtr_reg) |
- | |
280 | { |
- | |
281 | __asm__ volatile ("lidtl %0\n" : : "m" (*idtr_reg)); |
- | |
282 | } |
- | |
283 | - | ||
284 | /** Load TR from descriptor table. |
275 | /** Load TR from descriptor table. |
285 | * |
276 | * |
286 | * @param sel Selector specifying descriptor of TSS segment. |
277 | * @param sel Selector specifying descriptor of TSS segment. |
287 | */ |
278 | */ |
288 | static inline void tr_load(uint16_t sel) |
279 | static inline void tr_load(uint16_t sel) |