kern
diff src/tss.h @ 29:8ea6debe4265
starting on the task switching implementation
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Sat, 23 Apr 2011 00:51:18 +0300 |
parents | |
children | 38f768da2f31 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/tss.h Sat Apr 23 00:51:18 2011 +0300 1.3 @@ -0,0 +1,21 @@ 1.4 +#ifndef TSS_H_ 1.5 +#define TSS_H_ 1.6 + 1.7 +#include <inttypes.h> 1.8 + 1.9 +struct task_state { 1.10 + uint32_t prev_task; 1.11 + uint32_t esp0, ss0; 1.12 + uint32_t esp1, ss1; 1.13 + uint32_t esp2, ss2; 1.14 + uint32_t cr3; 1.15 + uint32_t eip; 1.16 + uint32_t eflags; 1.17 + uint32_t eax, ecx, edx, ebx; 1.18 + uint32_t esp, ebp, esi, edi; 1.19 + uint32_t es, cs, ss, ds, fs, gs; 1.20 + uint32_t ldt_sel; 1.21 + uint16_t trap, iomap_addr; 1.22 +} __attribute__((packed)); 1.23 + 1.24 +#endif /* TSS_H_ */