StupidOS/kernel/sys/process.inc

44 lines
542 B
PHP
Raw Permalink Normal View History

2024-07-18 09:28:07 +00:00
struc Context {
2024-08-18 12:19:28 +00:00
.gs dw ?
.fs dw ?
.es dw ?
.ds dw ?
.ss dw ?
.eax dd ?
2024-07-19 07:53:03 +00:00
.ebx dd ?
2024-08-18 12:19:28 +00:00
.ecx dd ?
.edx dd ?
.esi dd ?
.edi dd ?
2024-07-19 07:53:03 +00:00
.ebp dd ?
2024-08-18 12:19:28 +00:00
.error dd ?
.eip dd ?
.cs dd ?
.eflags 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