2024-07-18 09:28:07 +00:00
|
|
|
struc Context {
|
2024-07-19 07:53:03 +00:00
|
|
|
.edi dd ?
|
|
|
|
.esi dd ?
|
|
|
|
.ebx dd ?
|
|
|
|
.ebp dd ?
|
|
|
|
.eip dd ?
|
2024-07-18 09:28:07 +00:00
|
|
|
}
|
2024-07-19 07:53:03 +00:00
|
|
|
DEFN Context
|
2024-07-18 09:28:07 +00:00
|
|
|
|
|
|
|
struc Process {
|
2024-07-21 16:14:38 +00:00
|
|
|
.state dd ?
|
2024-07-19 07:53:03 +00:00
|
|
|
.pagedir dd ?
|
|
|
|
.kstack dd ?
|
|
|
|
.parent dd ?
|
|
|
|
.trapframe dd ?
|
|
|
|
.context dd ?
|
2024-07-18 09:28:07 +00:00
|
|
|
}
|
2024-07-19 07:53:03 +00:00
|
|
|
DEFN Process
|
2024-07-18 09:28:07 +00:00
|
|
|
|
|
|
|
PROCESS_STATE_IDL = 0
|
|
|
|
PROCESS_STATE_RUN = 1
|
|
|
|
PROCESS_STATE_SLEEP = 2
|
|
|
|
PROCESS_STATE_STOP = 3
|
|
|
|
PROCESS_STATE_ZOMBIE = 4
|
|
|
|
|
|
|
|
PZERO = 22
|
|
|
|
PWAIT = 24
|
|
|
|
PLOCK = 36
|
|
|
|
PPAUSE = 40
|
|
|
|
PUSER = 50
|