kern

view src/tss.h @ 80:4db99a52863e

fixed the "endianess" of the text messages in the ATA identify info block. this is the first time I've seen wrong byteorder in ascii text, the ATA committee should be commended.
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 06 Dec 2011 13:35:39 +0200
parents 8ea6debe4265
children
line source
1 #ifndef TSS_H_
2 #define TSS_H_
4 #include <inttypes.h>
6 struct task_state {
7 uint32_t prev_task;
8 uint32_t esp0, ss0; /* we only ever set these two values */
9 uint32_t esp1, ss1;
10 uint32_t esp2, ss2;
11 uint32_t cr3;
12 uint32_t eip;
13 uint32_t eflags;
14 uint32_t eax, ecx, edx, ebx;
15 uint32_t esp, ebp, esi, edi;
16 uint32_t es, cs, ss, ds, fs, gs;
17 uint32_t ldt_sel;
18 uint16_t trap, iomap_addr;
19 } __attribute__((packed));
21 #endif /* TSS_H_ */