aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc/proc.h')
-rw-r--r--kernel/inc/proc.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h
index b8912a5..754693f 100644
--- a/kernel/inc/proc.h
+++ b/kernel/inc/proc.h
@@ -22,27 +22,11 @@
#define RING(regs) ((regs->cs) & 3)
-#define PROC_MAX_BLOCK_IDS 16
-#define PROC_BLOCK_MAGIC 0x00528491
-
#define STREAM_MAX_SIZE 4096
enum stream_defaults { STREAM_IN, STREAM_OUT, STREAM_ERR, STREAM_LOG, STREAM_UNKNOWN = -1 };
enum proc_priv { PROC_PRIV_NONE, PROC_PRIV_ROOT, PROC_PRIV_KERNEL };
enum proc_state { PROC_RUNNING, PROC_BLOCKED };
-enum proc_block_type { PROC_BLOCK_DEV, PROC_BLOCK_MSG };
-
-struct proc_block_identifier {
- u32 magic;
- u32 id;
- enum proc_block_type type;
- u32 func_ptr;
-};
-
-struct proc_block {
- struct proc_block_identifier ids[PROC_MAX_BLOCK_IDS];
- u32 id_cnt;
-};
struct stream {
u32 offset_read;
@@ -59,7 +43,6 @@ struct proc {
struct stream streams[4];
struct page_dir *page_dir;
struct regs regs;
- struct proc_block block; // dev_id
enum proc_priv priv;
enum proc_state state;
struct stack *messages;
@@ -92,8 +75,6 @@ void proc_yield(struct regs *r) NONNULL;
void proc_set_quantum(struct proc *proc, u32 value);
void proc_reset_quantum(struct proc *proc);
void proc_state(struct proc *proc, enum proc_state state);
-void proc_block(u32 id, enum proc_block_type type, u32 func_ptr);
-void proc_unblock(u32 id, enum proc_block_type type);
struct proc *proc_make(enum proc_priv priv);
void proc_stack_push(struct proc *proc, u32 data) NONNULL;