18 |
#ifndef __rtmk_i386_thread_state_h |
#ifndef __rtmk_i386_thread_state_h |
19 |
#define __rtmk_i386_thread_state_h 1 |
#define __rtmk_i386_thread_state_h 1 |
20 |
|
|
21 |
|
#define THREAD_STATE_FLAVOR_I386_CPU 1 |
22 |
#define THREAD_STATE_FLAVOR_I386_LDT 2 |
#define THREAD_STATE_FLAVOR_I386_LDT 2 |
23 |
|
|
24 |
/* This structure corresponds to the state of user registers |
/* This structure corresponds to the state of user registers |
25 |
as saved upon kernel entry. It lives in the pcb. |
as saved upon kernel entry. It lives in the pcb. |
26 |
It is also pushed onto the stack for exceptions in the kernel. */ |
It is also pushed onto the stack for exceptions in the kernel. */ |
27 |
|
struct thread_state_i386_cpu |
|
struct thread_state_i386 |
|
28 |
{ |
{ |
29 |
unsigned int gs; |
unsigned int gs; |
30 |
unsigned int fs; |
unsigned int fs; |
55 |
} v86_segs; |
} v86_segs; |
56 |
}; |
}; |
57 |
|
|
58 |
typedef struct thread_state_i386 thread_state_i386_t; |
typedef struct thread_state_i386_cpu thread_state_i386_cpu_t; |
59 |
|
|
60 |
struct thread_state_i386_ldt |
struct thread_state_i386_ldt |
61 |
{ |
{ |