aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-02-10 20:28:16 +0100
committerMarvin Borner2021-02-10 20:28:16 +0100
commite7fb1f97a5f95bcfd1d924b345f98bc0b496f5c0 (patch)
tree70984e3433c5de919d2be59c0ad633156213e30b /kernel/inc
parentedc570a3552a7fdaaf89962e5374d98c2b3dfaa0 (diff)
Print to streams instead of serial console
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/proc.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/kernel/inc/proc.h b/kernel/inc/proc.h
index 9f78a3e..593141b 100644
--- a/kernel/inc/proc.h
+++ b/kernel/inc/proc.h
@@ -19,10 +19,8 @@
#define PROC_MAX_WAIT_IDS 16
-#define STREAM_IN 0
-#define STREAM_OUT 1
-#define STREAM_ERR 2
-#define STREAM_LOG 3
+#define STREAM_MAX_SIZE 4096
+enum stream_defaults { STREAM_IN, STREAM_OUT, STREAM_ERR, STREAM_LOG, STREAM_UNKNOWN = -1 };
enum proc_state { PROC_RUNNING, PROC_SLEEPING };
enum proc_wait_type { PROC_WAIT_DEV };
@@ -35,9 +33,9 @@ struct proc_wait {
};
struct stream {
- u32 offset;
- u32 pos;
- char data[4096];
+ u32 offset_read;
+ u32 offset_write;
+ char data[STREAM_MAX_SIZE];
};
struct proc {